[2025-03-07 00:00:05] Production.INFO: next invoice date [2025-03-07 00:00:05] Production.INFO: 2025-04-07 [2025-03-07 00:00:05] Production.INFO: getdaysdiff [2025-03-07 00:00:05] Production.INFO: +31 [2025-03-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (155,11,1,31,31,'RMScheduler',2025-03-07 00:00:05,1,0,,,0) [2025-03-07 00:00:05] Production.INFO: next invoice date [2025-03-07 00:00:05] Production.INFO: 2025-04-07 [2025-03-07 00:00:05] Production.INFO: getdaysdiff [2025-03-07 00:00:05] Production.INFO: +31 [2025-03-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,16,1,31,31,'RMScheduler',2025-03-07 00:00:05,1,0,,,0) [2025-03-07 00:00:05] Production.INFO: next invoice date [2025-03-07 00:00:05] Production.INFO: 2025-04-07 [2025-03-07 00:00:05] Production.INFO: getdaysdiff [2025-03-07 00:00:05] Production.INFO: +31 [2025-03-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,31,31,'RMScheduler',2025-03-07 00:00:05,1,0,,,0) [2025-03-07 00:00:05] Production.INFO: next invoice date [2025-03-07 00:00:05] Production.INFO: 2025-04-07 [2025-03-07 00:00:05] Production.INFO: getdaysdiff [2025-03-07 00:00:05] Production.INFO: +31 [2025-03-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,11,1,31,31,'RMScheduler',2025-03-07 00:00:05,0,0,,,0) [2025-03-07 00:00:05] Production.INFO: next invoice date [2025-03-07 00:00:05] Production.INFO: 2025-04-07 [2025-03-07 00:00:05] Production.INFO: getdaysdiff [2025-03-07 00:00:05] Production.INFO: +31 [2025-03-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,31,31,'RMScheduler',2025-03-07 00:00:05,0,0,,,0) [2025-03-07 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:00:07 [end_date_ymd] => 2025-03-07 00:00:07 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:00:07' and `end` < '2025-03-07 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-03-07 00:00:20] Production.INFO: count ==926 [2025-03-07 00:00:20] Production.ERROR: pbx CDR StartTime 2025-03-06 21:00:07 - End Time 2025-03-07 00:00:07 [2025-03-07 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624001', 'tblTempUsageDetail_20' ) start [2025-03-07 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624001', 'tblTempUsageDetail_20' ) end [2025-03-07 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624001', 'tblTempVendorCDR_20' ) start [2025-03-07 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624001', 'tblTempVendorCDR_20' ) end [2025-03-07 00:00:20] Production.INFO: ProcessCDR(1,14624001,1,1,2) [2025-03-07 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624001', 'tblTempUsageDetail_20' ) start [2025-03-07 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624001', 'tblTempUsageDetail_20' ) end [2025-03-07 00:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:00:28] Production.INFO: ==16950== Releasing lock... [2025-03-07 00:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:00:28] Production.INFO: 36.25 MB #Memory Used# [2025-03-07 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:01:05 [end_date_ymd] => 2025-03-07 00:01:05 [RateCDR] => 1 ) [2025-03-07 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:01:05' and `end` < '2025-03-07 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:01:18] Production.INFO: count ==951 [2025-03-07 00:01:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:01:05 - End Time 2025-03-07 00:01:05 [2025-03-07 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624007', 'tblTempUsageDetail_20' ) start [2025-03-07 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624007', 'tblTempUsageDetail_20' ) end [2025-03-07 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624007', 'tblTempVendorCDR_20' ) start [2025-03-07 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624007', 'tblTempVendorCDR_20' ) end [2025-03-07 00:01:18] Production.INFO: ProcessCDR(1,14624007,1,1,2) [2025-03-07 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624007', 'tblTempUsageDetail_20' ) start [2025-03-07 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624007', 'tblTempUsageDetail_20' ) end [2025-03-07 00:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:01:22] Production.INFO: ==17044== Releasing lock... [2025-03-07 00:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:01:22] Production.INFO: 35 MB #Memory Used# [2025-03-07 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:02:06 [end_date_ymd] => 2025-03-07 00:02:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:02:06' and `end` < '2025-03-07 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-03-07 00:02:27] Production.INFO: count ==319 [2025-03-07 00:02:28] Production.ERROR: pbx CDR StartTime 2025-03-06 21:02:06 - End Time 2025-03-07 00:02:06 [2025-03-07 00:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624012', 'tblTempUsageDetail_20' ) start [2025-03-07 00:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624012', 'tblTempUsageDetail_20' ) end [2025-03-07 00:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624012', 'tblTempVendorCDR_20' ) start [2025-03-07 00:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624012', 'tblTempVendorCDR_20' ) end [2025-03-07 00:02:28] Production.INFO: ProcessCDR(1,14624012,1,1,2) [2025-03-07 00:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624012', 'tblTempUsageDetail_20' ) start [2025-03-07 00:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624012', 'tblTempUsageDetail_20' ) end [2025-03-07 00:02:31] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:02:31] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:02:31] Production.INFO: ==17120== Releasing lock... [2025-03-07 00:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:02:31] Production.INFO: 31 MB #Memory Used# [2025-03-07 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:03:05 [end_date_ymd] => 2025-03-07 00:03:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:03:05' and `end` < '2025-03-07 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-03-07 00:03:18] Production.INFO: count ==321 [2025-03-07 00:03:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:03:05 - End Time 2025-03-07 00:03:05 [2025-03-07 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624017', 'tblTempUsageDetail_20' ) start [2025-03-07 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624017', 'tblTempUsageDetail_20' ) end [2025-03-07 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624017', 'tblTempVendorCDR_20' ) start [2025-03-07 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624017', 'tblTempVendorCDR_20' ) end [2025-03-07 00:03:18] Production.INFO: ProcessCDR(1,14624017,1,1,2) [2025-03-07 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624017', 'tblTempUsageDetail_20' ) start [2025-03-07 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624017', 'tblTempUsageDetail_20' ) end [2025-03-07 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:03:21] Production.INFO: ==17192== Releasing lock... [2025-03-07 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-07 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:04:06 [end_date_ymd] => 2025-03-07 00:04:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:04:06' and `end` < '2025-03-07 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-03-07 00:04:18] Production.INFO: count ==316 [2025-03-07 00:04:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:04:06 - End Time 2025-03-07 00:04:06 [2025-03-07 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624022', 'tblTempUsageDetail_20' ) start [2025-03-07 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624022', 'tblTempUsageDetail_20' ) end [2025-03-07 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624022', 'tblTempVendorCDR_20' ) start [2025-03-07 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624022', 'tblTempVendorCDR_20' ) end [2025-03-07 00:04:18] Production.INFO: ProcessCDR(1,14624022,1,1,2) [2025-03-07 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624022', 'tblTempUsageDetail_20' ) start [2025-03-07 00:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624022', 'tblTempUsageDetail_20' ) end [2025-03-07 00:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:04:23] Production.INFO: ==17274== Releasing lock... [2025-03-07 00:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:04:23] Production.INFO: 31 MB #Memory Used# [2025-03-07 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:05:05 [end_date_ymd] => 2025-03-07 00:05:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:05:05' and `end` < '2025-03-07 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-03-07 00:05:17] Production.INFO: count ==316 [2025-03-07 00:05:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:05:05 - End Time 2025-03-07 00:05:05 [2025-03-07 00:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624027', 'tblTempUsageDetail_20' ) start [2025-03-07 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624027', 'tblTempUsageDetail_20' ) end [2025-03-07 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624027', 'tblTempVendorCDR_20' ) start [2025-03-07 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624027', 'tblTempVendorCDR_20' ) end [2025-03-07 00:05:18] Production.INFO: ProcessCDR(1,14624027,1,1,2) [2025-03-07 00:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624027', 'tblTempUsageDetail_20' ) start [2025-03-07 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624027', 'tblTempUsageDetail_20' ) end [2025-03-07 00:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:05:21] Production.INFO: ==17377== Releasing lock... [2025-03-07 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:05:21] Production.INFO: 31 MB #Memory Used# [2025-03-07 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:06:05 [end_date_ymd] => 2025-03-07 00:06:05 [RateCDR] => 1 ) [2025-03-07 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:06:05' and `end` < '2025-03-07 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:06:17] Production.INFO: count ==316 [2025-03-07 00:06:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:06:05 - End Time 2025-03-07 00:06:05 [2025-03-07 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624032', 'tblTempUsageDetail_20' ) start [2025-03-07 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624032', 'tblTempUsageDetail_20' ) end [2025-03-07 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624032', 'tblTempVendorCDR_20' ) start [2025-03-07 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624032', 'tblTempVendorCDR_20' ) end [2025-03-07 00:06:17] Production.INFO: ProcessCDR(1,14624032,1,1,2) [2025-03-07 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624032', 'tblTempUsageDetail_20' ) start [2025-03-07 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624032', 'tblTempUsageDetail_20' ) end [2025-03-07 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:06:21] Production.INFO: ==17457== Releasing lock... [2025-03-07 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:06:21] Production.INFO: 31 MB #Memory Used# [2025-03-07 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:07:05 [end_date_ymd] => 2025-03-07 00:07:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:07:05' and `end` < '2025-03-07 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-03-07 00:07:17] Production.INFO: count ==335 [2025-03-07 00:07:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:07:05 - End Time 2025-03-07 00:07:05 [2025-03-07 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624037', 'tblTempUsageDetail_20' ) start [2025-03-07 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624037', 'tblTempUsageDetail_20' ) end [2025-03-07 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624037', 'tblTempVendorCDR_20' ) start [2025-03-07 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624037', 'tblTempVendorCDR_20' ) end [2025-03-07 00:07:17] Production.INFO: ProcessCDR(1,14624037,1,1,2) [2025-03-07 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624037', 'tblTempUsageDetail_20' ) start [2025-03-07 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624037', 'tblTempUsageDetail_20' ) end [2025-03-07 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:07:21] Production.INFO: ==17531== Releasing lock... [2025-03-07 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:07:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-07 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:08:06 [end_date_ymd] => 2025-03-07 00:08:06 [RateCDR] => 1 ) [2025-03-07 00: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-03-06 21:08:06' and `end` < '2025-03-07 00: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-03-07 00:08:18] Production.INFO: count ==416 [2025-03-07 00:08:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:08:06 - End Time 2025-03-07 00:08:06 [2025-03-07 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624042', 'tblTempUsageDetail_20' ) start [2025-03-07 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624042', 'tblTempUsageDetail_20' ) end [2025-03-07 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624042', 'tblTempVendorCDR_20' ) start [2025-03-07 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624042', 'tblTempVendorCDR_20' ) end [2025-03-07 00:08:18] Production.INFO: ProcessCDR(1,14624042,1,1,2) [2025-03-07 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624042', 'tblTempUsageDetail_20' ) start [2025-03-07 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624042', 'tblTempUsageDetail_20' ) end [2025-03-07 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:08:21] Production.INFO: ==17611== Releasing lock... [2025-03-07 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:08:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:09:05 [end_date_ymd] => 2025-03-07 00:09:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:09:05' and `end` < '2025-03-07 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-03-07 00:09:18] Production.INFO: count ==460 [2025-03-07 00:09:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:09:05 - End Time 2025-03-07 00:09:05 [2025-03-07 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624047', 'tblTempUsageDetail_20' ) start [2025-03-07 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624047', 'tblTempUsageDetail_20' ) end [2025-03-07 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624047', 'tblTempVendorCDR_20' ) start [2025-03-07 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624047', 'tblTempVendorCDR_20' ) end [2025-03-07 00:09:18] Production.INFO: ProcessCDR(1,14624047,1,1,2) [2025-03-07 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624047', 'tblTempUsageDetail_20' ) start [2025-03-07 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624047', 'tblTempUsageDetail_20' ) end [2025-03-07 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:09:21] Production.INFO: ==17688== Releasing lock... [2025-03-07 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:09:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:10:06 [end_date_ymd] => 2025-03-07 00:10:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:10:06' and `end` < '2025-03-07 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-03-07 00:10:18] Production.INFO: count ==464 [2025-03-07 00:10:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:10:06 - End Time 2025-03-07 00:10:06 [2025-03-07 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624053', 'tblTempUsageDetail_20' ) start [2025-03-07 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624053', 'tblTempUsageDetail_20' ) end [2025-03-07 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624053', 'tblTempVendorCDR_20' ) start [2025-03-07 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624053', 'tblTempVendorCDR_20' ) end [2025-03-07 00:10:19] Production.INFO: ProcessCDR(1,14624053,1,1,2) [2025-03-07 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624053', 'tblTempUsageDetail_20' ) start [2025-03-07 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624053', 'tblTempUsageDetail_20' ) end [2025-03-07 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:10:22] Production.INFO: ==17771== Releasing lock... [2025-03-07 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:10:22] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:11:05 [end_date_ymd] => 2025-03-07 00:11:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:11:05' and `end` < '2025-03-07 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-03-07 00:11:17] Production.INFO: count ==464 [2025-03-07 00:11:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:11:05 - End Time 2025-03-07 00:11:05 [2025-03-07 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624058', 'tblTempUsageDetail_20' ) start [2025-03-07 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624058', 'tblTempUsageDetail_20' ) end [2025-03-07 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624058', 'tblTempVendorCDR_20' ) start [2025-03-07 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624058', 'tblTempVendorCDR_20' ) end [2025-03-07 00:11:17] Production.INFO: ProcessCDR(1,14624058,1,1,2) [2025-03-07 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624058', 'tblTempUsageDetail_20' ) start [2025-03-07 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624058', 'tblTempUsageDetail_20' ) end [2025-03-07 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:11:21] Production.INFO: ==17854== Releasing lock... [2025-03-07 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:11:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-07 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:12:06 [end_date_ymd] => 2025-03-07 00:12:06 [RateCDR] => 1 ) [2025-03-07 00:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:12:06' and `end` < '2025-03-07 00:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:12:18] Production.INFO: count ==460 [2025-03-07 00:12:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:12:06 - End Time 2025-03-07 00:12:06 [2025-03-07 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624063', 'tblTempUsageDetail_20' ) start [2025-03-07 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624063', 'tblTempUsageDetail_20' ) end [2025-03-07 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624063', 'tblTempVendorCDR_20' ) start [2025-03-07 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624063', 'tblTempVendorCDR_20' ) end [2025-03-07 00:12:18] Production.INFO: ProcessCDR(1,14624063,1,1,2) [2025-03-07 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624063', 'tblTempUsageDetail_20' ) start [2025-03-07 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624063', 'tblTempUsageDetail_20' ) end [2025-03-07 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:12:21] Production.INFO: ==17935== Releasing lock... [2025-03-07 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:12:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:13:05 [end_date_ymd] => 2025-03-07 00:13:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:13:05' and `end` < '2025-03-07 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-03-07 00:13:19] Production.INFO: count ==464 [2025-03-07 00:13:19] Production.ERROR: pbx CDR StartTime 2025-03-06 21:13:05 - End Time 2025-03-07 00:13:05 [2025-03-07 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624068', 'tblTempUsageDetail_20' ) start [2025-03-07 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624068', 'tblTempUsageDetail_20' ) end [2025-03-07 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624068', 'tblTempVendorCDR_20' ) start [2025-03-07 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624068', 'tblTempVendorCDR_20' ) end [2025-03-07 00:13:19] Production.INFO: ProcessCDR(1,14624068,1,1,2) [2025-03-07 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624068', 'tblTempUsageDetail_20' ) start [2025-03-07 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624068', 'tblTempUsageDetail_20' ) end [2025-03-07 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:13:23] Production.INFO: ==18012== Releasing lock... [2025-03-07 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:13:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:14:05 [end_date_ymd] => 2025-03-07 00:14:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:14:05' and `end` < '2025-03-07 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-03-07 00:14:19] Production.INFO: count ==465 [2025-03-07 00:14:19] Production.ERROR: pbx CDR StartTime 2025-03-06 21:14:05 - End Time 2025-03-07 00:14:05 [2025-03-07 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624073', 'tblTempUsageDetail_20' ) start [2025-03-07 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624073', 'tblTempUsageDetail_20' ) end [2025-03-07 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624073', 'tblTempVendorCDR_20' ) start [2025-03-07 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624073', 'tblTempVendorCDR_20' ) end [2025-03-07 00:14:19] Production.INFO: ProcessCDR(1,14624073,1,1,2) [2025-03-07 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624073', 'tblTempUsageDetail_20' ) start [2025-03-07 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624073', 'tblTempUsageDetail_20' ) end [2025-03-07 00:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:14:24] Production.INFO: ==18090== Releasing lock... [2025-03-07 00:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:14:24] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:15:06 [end_date_ymd] => 2025-03-07 00:15:06 [RateCDR] => 1 ) [2025-03-07 00: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-03-06 21:15:06' and `end` < '2025-03-07 00: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-03-07 00:15:18] Production.INFO: count ==463 [2025-03-07 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:15:06 - End Time 2025-03-07 00:15:06 [2025-03-07 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624078', 'tblTempUsageDetail_20' ) start [2025-03-07 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624078', 'tblTempUsageDetail_20' ) end [2025-03-07 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624078', 'tblTempVendorCDR_20' ) start [2025-03-07 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624078', 'tblTempVendorCDR_20' ) end [2025-03-07 00:15:18] Production.INFO: ProcessCDR(1,14624078,1,1,2) [2025-03-07 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624078', 'tblTempUsageDetail_20' ) start [2025-03-07 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624078', 'tblTempUsageDetail_20' ) end [2025-03-07 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:15:21] Production.INFO: ==18213== Releasing lock... [2025-03-07 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:16:05 [end_date_ymd] => 2025-03-07 00:16:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:16:05' and `end` < '2025-03-07 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-03-07 00:16:17] Production.INFO: count ==460 [2025-03-07 00:16:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:16:05 - End Time 2025-03-07 00:16:05 [2025-03-07 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624083', 'tblTempUsageDetail_20' ) start [2025-03-07 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624083', 'tblTempUsageDetail_20' ) end [2025-03-07 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624083', 'tblTempVendorCDR_20' ) start [2025-03-07 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624083', 'tblTempVendorCDR_20' ) end [2025-03-07 00:16:17] Production.INFO: ProcessCDR(1,14624083,1,1,2) [2025-03-07 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624083', 'tblTempUsageDetail_20' ) start [2025-03-07 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624083', 'tblTempUsageDetail_20' ) end [2025-03-07 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:16:22] Production.INFO: ==18290== Releasing lock... [2025-03-07 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:16:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:17:06 [end_date_ymd] => 2025-03-07 00:17:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:17:06' and `end` < '2025-03-07 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-03-07 00:17:18] Production.INFO: count ==460 [2025-03-07 00:17:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:17:06 - End Time 2025-03-07 00:17:06 [2025-03-07 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624088', 'tblTempUsageDetail_20' ) start [2025-03-07 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624088', 'tblTempUsageDetail_20' ) end [2025-03-07 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624088', 'tblTempVendorCDR_20' ) start [2025-03-07 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624088', 'tblTempVendorCDR_20' ) end [2025-03-07 00:17:18] Production.INFO: ProcessCDR(1,14624088,1,1,2) [2025-03-07 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624088', 'tblTempUsageDetail_20' ) start [2025-03-07 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624088', 'tblTempUsageDetail_20' ) end [2025-03-07 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:17:21] Production.INFO: ==18366== Releasing lock... [2025-03-07 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:17:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:18:05 [end_date_ymd] => 2025-03-07 00:18:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:18:05' and `end` < '2025-03-07 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-03-07 00:18:17] Production.INFO: count ==460 [2025-03-07 00:18:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:18:05 - End Time 2025-03-07 00:18:05 [2025-03-07 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624093', 'tblTempUsageDetail_20' ) start [2025-03-07 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624093', 'tblTempUsageDetail_20' ) end [2025-03-07 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624093', 'tblTempVendorCDR_20' ) start [2025-03-07 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624093', 'tblTempVendorCDR_20' ) end [2025-03-07 00:18:17] Production.INFO: ProcessCDR(1,14624093,1,1,2) [2025-03-07 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624093', 'tblTempUsageDetail_20' ) start [2025-03-07 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624093', 'tblTempUsageDetail_20' ) end [2025-03-07 00:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:18:20] Production.INFO: ==18449== Releasing lock... [2025-03-07 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:18:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:19:05 [end_date_ymd] => 2025-03-07 00:19:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:19:05' and `end` < '2025-03-07 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-03-07 00:19:18] Production.INFO: count ==457 [2025-03-07 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:19:05 - End Time 2025-03-07 00:19:05 [2025-03-07 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624098', 'tblTempUsageDetail_20' ) start [2025-03-07 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624098', 'tblTempUsageDetail_20' ) end [2025-03-07 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624098', 'tblTempVendorCDR_20' ) start [2025-03-07 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624098', 'tblTempVendorCDR_20' ) end [2025-03-07 00:19:18] Production.INFO: ProcessCDR(1,14624098,1,1,2) [2025-03-07 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624098', 'tblTempUsageDetail_20' ) start [2025-03-07 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624098', 'tblTempUsageDetail_20' ) end [2025-03-07 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:19:21] Production.INFO: ==18526== Releasing lock... [2025-03-07 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:19:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:20:06 [end_date_ymd] => 2025-03-07 00:20:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:20:06' and `end` < '2025-03-07 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-03-07 00:20:18] Production.INFO: count ==464 [2025-03-07 00:20:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:20:06 - End Time 2025-03-07 00:20:06 [2025-03-07 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624104', 'tblTempUsageDetail_20' ) start [2025-03-07 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624104', 'tblTempUsageDetail_20' ) end [2025-03-07 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624104', 'tblTempVendorCDR_20' ) start [2025-03-07 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624104', 'tblTempVendorCDR_20' ) end [2025-03-07 00:20:18] Production.INFO: ProcessCDR(1,14624104,1,1,2) [2025-03-07 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624104', 'tblTempUsageDetail_20' ) start [2025-03-07 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624104', 'tblTempUsageDetail_20' ) end [2025-03-07 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:20:23] Production.INFO: ==18623== Releasing lock... [2025-03-07 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:20:23] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:21:05 [end_date_ymd] => 2025-03-07 00:21:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:21:05' and `end` < '2025-03-07 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-03-07 00:21:17] Production.INFO: count ==478 [2025-03-07 00:21:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:21:05 - End Time 2025-03-07 00:21:05 [2025-03-07 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624109', 'tblTempUsageDetail_20' ) start [2025-03-07 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624109', 'tblTempUsageDetail_20' ) end [2025-03-07 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624109', 'tblTempVendorCDR_20' ) start [2025-03-07 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624109', 'tblTempVendorCDR_20' ) end [2025-03-07 00:21:17] Production.INFO: ProcessCDR(1,14624109,1,1,2) [2025-03-07 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624109', 'tblTempUsageDetail_20' ) start [2025-03-07 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624109', 'tblTempUsageDetail_20' ) end [2025-03-07 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:21:20] Production.INFO: ==18700== Releasing lock... [2025-03-07 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:21:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:22:06 [end_date_ymd] => 2025-03-07 00:22:06 [RateCDR] => 1 ) [2025-03-07 00: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-03-06 21:22:06' and `end` < '2025-03-07 00: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-03-07 00:22:18] Production.INFO: count ==475 [2025-03-07 00:22:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:22:06 - End Time 2025-03-07 00:22:06 [2025-03-07 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624114', 'tblTempUsageDetail_20' ) start [2025-03-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624114', 'tblTempUsageDetail_20' ) end [2025-03-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624114', 'tblTempVendorCDR_20' ) start [2025-03-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624114', 'tblTempVendorCDR_20' ) end [2025-03-07 00:22:18] Production.INFO: ProcessCDR(1,14624114,1,1,2) [2025-03-07 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624114', 'tblTempUsageDetail_20' ) start [2025-03-07 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624114', 'tblTempUsageDetail_20' ) end [2025-03-07 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:22:22] Production.INFO: ==18774== Releasing lock... [2025-03-07 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:22:22] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:23:05 [end_date_ymd] => 2025-03-07 00:23:05 [RateCDR] => 1 ) [2025-03-07 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:23:05' and `end` < '2025-03-07 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:23:17] Production.INFO: count ==474 [2025-03-07 00:23:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:23:05 - End Time 2025-03-07 00:23:05 [2025-03-07 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624119', 'tblTempUsageDetail_20' ) start [2025-03-07 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624119', 'tblTempUsageDetail_20' ) end [2025-03-07 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624119', 'tblTempVendorCDR_20' ) start [2025-03-07 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624119', 'tblTempVendorCDR_20' ) end [2025-03-07 00:23:17] Production.INFO: ProcessCDR(1,14624119,1,1,2) [2025-03-07 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624119', 'tblTempUsageDetail_20' ) start [2025-03-07 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624119', 'tblTempUsageDetail_20' ) end [2025-03-07 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:23:20] Production.INFO: ==18846== Releasing lock... [2025-03-07 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:23:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:24:05 [end_date_ymd] => 2025-03-07 00:24:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:24:05' and `end` < '2025-03-07 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-03-07 00:24:17] Production.INFO: count ==473 [2025-03-07 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:24:05 - End Time 2025-03-07 00:24:05 [2025-03-07 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624124', 'tblTempUsageDetail_20' ) start [2025-03-07 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624124', 'tblTempUsageDetail_20' ) end [2025-03-07 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624124', 'tblTempVendorCDR_20' ) start [2025-03-07 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624124', 'tblTempVendorCDR_20' ) end [2025-03-07 00:24:18] Production.INFO: ProcessCDR(1,14624124,1,1,2) [2025-03-07 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624124', 'tblTempUsageDetail_20' ) start [2025-03-07 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624124', 'tblTempUsageDetail_20' ) end [2025-03-07 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:24:21] Production.INFO: ==18916== Releasing lock... [2025-03-07 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:24:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:25:05 [end_date_ymd] => 2025-03-07 00:25:05 [RateCDR] => 1 ) [2025-03-07 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:25:05' and `end` < '2025-03-07 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-03-07 00:25:17] Production.INFO: count ==473 [2025-03-07 00:25:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:25:05 - End Time 2025-03-07 00:25:05 [2025-03-07 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624129', 'tblTempUsageDetail_20' ) start [2025-03-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624129', 'tblTempUsageDetail_20' ) end [2025-03-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624129', 'tblTempVendorCDR_20' ) start [2025-03-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624129', 'tblTempVendorCDR_20' ) end [2025-03-07 00:25:18] Production.INFO: ProcessCDR(1,14624129,1,1,2) [2025-03-07 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624129', 'tblTempUsageDetail_20' ) start [2025-03-07 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624129', 'tblTempUsageDetail_20' ) end [2025-03-07 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:25:21] Production.INFO: ==18991== Releasing lock... [2025-03-07 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:25:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:26:06 [end_date_ymd] => 2025-03-07 00:26:06 [RateCDR] => 1 ) [2025-03-07 00:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:26:06' and `end` < '2025-03-07 00:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:26:18] Production.INFO: count ==472 [2025-03-07 00:26:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:26:06 - End Time 2025-03-07 00:26:06 [2025-03-07 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624134', 'tblTempUsageDetail_20' ) start [2025-03-07 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624134', 'tblTempUsageDetail_20' ) end [2025-03-07 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624134', 'tblTempVendorCDR_20' ) start [2025-03-07 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624134', 'tblTempVendorCDR_20' ) end [2025-03-07 00:26:18] Production.INFO: ProcessCDR(1,14624134,1,1,2) [2025-03-07 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624134', 'tblTempUsageDetail_20' ) start [2025-03-07 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624134', 'tblTempUsageDetail_20' ) end [2025-03-07 00:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:26:23] Production.INFO: ==19065== Releasing lock... [2025-03-07 00:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:26:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:27:05 [end_date_ymd] => 2025-03-07 00:27:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:27:05' and `end` < '2025-03-07 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-03-07 00:27:17] Production.INFO: count ==472 [2025-03-07 00:27:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:27:05 - End Time 2025-03-07 00:27:05 [2025-03-07 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624139', 'tblTempUsageDetail_20' ) start [2025-03-07 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624139', 'tblTempUsageDetail_20' ) end [2025-03-07 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624139', 'tblTempVendorCDR_20' ) start [2025-03-07 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624139', 'tblTempVendorCDR_20' ) end [2025-03-07 00:27:17] Production.INFO: ProcessCDR(1,14624139,1,1,2) [2025-03-07 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624139', 'tblTempUsageDetail_20' ) start [2025-03-07 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624139', 'tblTempUsageDetail_20' ) end [2025-03-07 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:27:21] Production.INFO: ==19143== Releasing lock... [2025-03-07 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:27:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:28:06 [end_date_ymd] => 2025-03-07 00:28:06 [RateCDR] => 1 ) [2025-03-07 00:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:28:06' and `end` < '2025-03-07 00:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:28:18] Production.INFO: count ==475 [2025-03-07 00:28:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:28:06 - End Time 2025-03-07 00:28:06 [2025-03-07 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624144', 'tblTempUsageDetail_20' ) start [2025-03-07 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624144', 'tblTempUsageDetail_20' ) end [2025-03-07 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624144', 'tblTempVendorCDR_20' ) start [2025-03-07 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624144', 'tblTempVendorCDR_20' ) end [2025-03-07 00:28:18] Production.INFO: ProcessCDR(1,14624144,1,1,2) [2025-03-07 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624144', 'tblTempUsageDetail_20' ) start [2025-03-07 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624144', 'tblTempUsageDetail_20' ) end [2025-03-07 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:28:21] Production.INFO: ==19216== Releasing lock... [2025-03-07 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:28:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:29:05 [end_date_ymd] => 2025-03-07 00:29:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:29:05' and `end` < '2025-03-07 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-03-07 00:29:17] Production.INFO: count ==475 [2025-03-07 00:29:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:29:05 - End Time 2025-03-07 00:29:05 [2025-03-07 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624149', 'tblTempUsageDetail_20' ) start [2025-03-07 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624149', 'tblTempUsageDetail_20' ) end [2025-03-07 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624149', 'tblTempVendorCDR_20' ) start [2025-03-07 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624149', 'tblTempVendorCDR_20' ) end [2025-03-07 00:29:17] Production.INFO: ProcessCDR(1,14624149,1,1,2) [2025-03-07 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624149', 'tblTempUsageDetail_20' ) start [2025-03-07 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624149', 'tblTempUsageDetail_20' ) end [2025-03-07 00:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:29:20] Production.INFO: ==19285== Releasing lock... [2025-03-07 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:29:20] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:30:06 [end_date_ymd] => 2025-03-07 00:30:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:30:06' and `end` < '2025-03-07 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-03-07 00:30:18] Production.INFO: count ==480 [2025-03-07 00:30:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:30:06 - End Time 2025-03-07 00:30:06 [2025-03-07 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624155', 'tblTempUsageDetail_20' ) start [2025-03-07 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624155', 'tblTempUsageDetail_20' ) end [2025-03-07 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624155', 'tblTempVendorCDR_20' ) start [2025-03-07 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624155', 'tblTempVendorCDR_20' ) end [2025-03-07 00:30:18] Production.INFO: ProcessCDR(1,14624155,1,1,2) [2025-03-07 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624155', 'tblTempUsageDetail_20' ) start [2025-03-07 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624155', 'tblTempUsageDetail_20' ) end [2025-03-07 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:30:22] Production.INFO: ==19399== Releasing lock... [2025-03-07 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:30:22] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:31:05 [end_date_ymd] => 2025-03-07 00:31:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:31:05' and `end` < '2025-03-07 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-03-07 00:31:18] Production.INFO: count ==489 [2025-03-07 00:31:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:31:05 - End Time 2025-03-07 00:31:05 [2025-03-07 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624160', 'tblTempUsageDetail_20' ) start [2025-03-07 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624160', 'tblTempUsageDetail_20' ) end [2025-03-07 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624160', 'tblTempVendorCDR_20' ) start [2025-03-07 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624160', 'tblTempVendorCDR_20' ) end [2025-03-07 00:31:18] Production.INFO: ProcessCDR(1,14624160,1,1,2) [2025-03-07 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624160', 'tblTempUsageDetail_20' ) start [2025-03-07 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624160', 'tblTempUsageDetail_20' ) end [2025-03-07 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:31:21] Production.INFO: ==19470== Releasing lock... [2025-03-07 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:31:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:32:06 [end_date_ymd] => 2025-03-07 00:32:06 [RateCDR] => 1 ) [2025-03-07 00:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:32:06' and `end` < '2025-03-07 00:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:32:18] Production.INFO: count ==492 [2025-03-07 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:32:06 - End Time 2025-03-07 00:32:06 [2025-03-07 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624165', 'tblTempUsageDetail_20' ) start [2025-03-07 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624165', 'tblTempUsageDetail_20' ) end [2025-03-07 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624165', 'tblTempVendorCDR_20' ) start [2025-03-07 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624165', 'tblTempVendorCDR_20' ) end [2025-03-07 00:32:18] Production.INFO: ProcessCDR(1,14624165,1,1,2) [2025-03-07 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624165', 'tblTempUsageDetail_20' ) start [2025-03-07 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624165', 'tblTempUsageDetail_20' ) end [2025-03-07 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:32:21] Production.INFO: ==19541== Releasing lock... [2025-03-07 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:33:05 [end_date_ymd] => 2025-03-07 00:33:05 [RateCDR] => 1 ) [2025-03-07 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:33:05' and `end` < '2025-03-07 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:33:17] Production.INFO: count ==493 [2025-03-07 00:33:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:33:05 - End Time 2025-03-07 00:33:05 [2025-03-07 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624170', 'tblTempUsageDetail_20' ) start [2025-03-07 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624170', 'tblTempUsageDetail_20' ) end [2025-03-07 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624170', 'tblTempVendorCDR_20' ) start [2025-03-07 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624170', 'tblTempVendorCDR_20' ) end [2025-03-07 00:33:17] Production.INFO: ProcessCDR(1,14624170,1,1,2) [2025-03-07 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624170', 'tblTempUsageDetail_20' ) start [2025-03-07 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624170', 'tblTempUsageDetail_20' ) end [2025-03-07 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:33:22] Production.INFO: ==19614== Releasing lock... [2025-03-07 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:33:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:34:05 [end_date_ymd] => 2025-03-07 00:34:05 [RateCDR] => 1 ) [2025-03-07 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:34:05' and `end` < '2025-03-07 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:34:17] Production.INFO: count ==491 [2025-03-07 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:34:05 - End Time 2025-03-07 00:34:05 [2025-03-07 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624175', 'tblTempUsageDetail_20' ) start [2025-03-07 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624175', 'tblTempUsageDetail_20' ) end [2025-03-07 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624175', 'tblTempVendorCDR_20' ) start [2025-03-07 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624175', 'tblTempVendorCDR_20' ) end [2025-03-07 00:34:18] Production.INFO: ProcessCDR(1,14624175,1,1,2) [2025-03-07 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624175', 'tblTempUsageDetail_20' ) start [2025-03-07 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624175', 'tblTempUsageDetail_20' ) end [2025-03-07 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:34:21] Production.INFO: ==19686== Releasing lock... [2025-03-07 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:35:05 [end_date_ymd] => 2025-03-07 00:35:05 [RateCDR] => 1 ) [2025-03-07 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:35:05' and `end` < '2025-03-07 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:35:17] Production.INFO: count ==488 [2025-03-07 00:35:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:35:05 - End Time 2025-03-07 00:35:05 [2025-03-07 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624180', 'tblTempUsageDetail_20' ) start [2025-03-07 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624180', 'tblTempUsageDetail_20' ) end [2025-03-07 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624180', 'tblTempVendorCDR_20' ) start [2025-03-07 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624180', 'tblTempVendorCDR_20' ) end [2025-03-07 00:35:17] Production.INFO: ProcessCDR(1,14624180,1,1,2) [2025-03-07 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624180', 'tblTempUsageDetail_20' ) start [2025-03-07 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624180', 'tblTempUsageDetail_20' ) end [2025-03-07 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:35:22] Production.INFO: ==19764== Releasing lock... [2025-03-07 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:35:22] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:36:05 [end_date_ymd] => 2025-03-07 00:36:05 [RateCDR] => 1 ) [2025-03-07 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:36:05' and `end` < '2025-03-07 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:36:17] Production.INFO: count ==488 [2025-03-07 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:36:05 - End Time 2025-03-07 00:36:05 [2025-03-07 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624185', 'tblTempUsageDetail_20' ) start [2025-03-07 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624185', 'tblTempUsageDetail_20' ) end [2025-03-07 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624185', 'tblTempVendorCDR_20' ) start [2025-03-07 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624185', 'tblTempVendorCDR_20' ) end [2025-03-07 00:36:18] Production.INFO: ProcessCDR(1,14624185,1,1,2) [2025-03-07 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624185', 'tblTempUsageDetail_20' ) start [2025-03-07 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624185', 'tblTempUsageDetail_20' ) end [2025-03-07 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:36:21] Production.INFO: ==19833== Releasing lock... [2025-03-07 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:36:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:37:05 [end_date_ymd] => 2025-03-07 00:37:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:37:05' and `end` < '2025-03-07 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-03-07 00:37:17] Production.INFO: count ==492 [2025-03-07 00:37:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:37:05 - End Time 2025-03-07 00:37:05 [2025-03-07 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624190', 'tblTempUsageDetail_20' ) start [2025-03-07 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624190', 'tblTempUsageDetail_20' ) end [2025-03-07 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624190', 'tblTempVendorCDR_20' ) start [2025-03-07 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624190', 'tblTempVendorCDR_20' ) end [2025-03-07 00:37:18] Production.INFO: ProcessCDR(1,14624190,1,1,2) [2025-03-07 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624190', 'tblTempUsageDetail_20' ) start [2025-03-07 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624190', 'tblTempUsageDetail_20' ) end [2025-03-07 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:37:21] Production.INFO: ==19903== Releasing lock... [2025-03-07 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:38:05 [end_date_ymd] => 2025-03-07 00:38:05 [RateCDR] => 1 ) [2025-03-07 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:38:05' and `end` < '2025-03-07 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:38:17] Production.INFO: count ==495 [2025-03-07 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:38:05 - End Time 2025-03-07 00:38:05 [2025-03-07 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624195', 'tblTempUsageDetail_20' ) start [2025-03-07 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624195', 'tblTempUsageDetail_20' ) end [2025-03-07 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624195', 'tblTempVendorCDR_20' ) start [2025-03-07 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624195', 'tblTempVendorCDR_20' ) end [2025-03-07 00:38:18] Production.INFO: ProcessCDR(1,14624195,1,1,2) [2025-03-07 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624195', 'tblTempUsageDetail_20' ) start [2025-03-07 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624195', 'tblTempUsageDetail_20' ) end [2025-03-07 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:38:21] Production.INFO: ==19974== Releasing lock... [2025-03-07 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:38:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:39:05 [end_date_ymd] => 2025-03-07 00:39:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:39:05' and `end` < '2025-03-07 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-03-07 00:39:17] Production.INFO: count ==467 [2025-03-07 00:39:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:39:05 - End Time 2025-03-07 00:39:05 [2025-03-07 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624200', 'tblTempUsageDetail_20' ) start [2025-03-07 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624200', 'tblTempUsageDetail_20' ) end [2025-03-07 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624200', 'tblTempVendorCDR_20' ) start [2025-03-07 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624200', 'tblTempVendorCDR_20' ) end [2025-03-07 00:39:17] Production.INFO: ProcessCDR(1,14624200,1,1,2) [2025-03-07 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624200', 'tblTempUsageDetail_20' ) start [2025-03-07 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624200', 'tblTempUsageDetail_20' ) end [2025-03-07 00:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:39:20] Production.INFO: ==20046== Releasing lock... [2025-03-07 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:39:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-07 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:40:06 [end_date_ymd] => 2025-03-07 00:40:06 [RateCDR] => 1 ) [2025-03-07 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:40:06' and `end` < '2025-03-07 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:40:18] Production.INFO: count ==472 [2025-03-07 00:40:19] Production.ERROR: pbx CDR StartTime 2025-03-06 21:40:06 - End Time 2025-03-07 00:40:06 [2025-03-07 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624205', 'tblTempUsageDetail_20' ) start [2025-03-07 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624205', 'tblTempUsageDetail_20' ) end [2025-03-07 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624205', 'tblTempVendorCDR_20' ) start [2025-03-07 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624205', 'tblTempVendorCDR_20' ) end [2025-03-07 00:40:19] Production.INFO: ProcessCDR(1,14624205,1,1,2) [2025-03-07 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624205', 'tblTempUsageDetail_20' ) start [2025-03-07 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624205', 'tblTempUsageDetail_20' ) end [2025-03-07 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:40:22] Production.INFO: ==20119== Releasing lock... [2025-03-07 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:40:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:41:05 [end_date_ymd] => 2025-03-07 00:41:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:41:05' and `end` < '2025-03-07 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-03-07 00:41:17] Production.INFO: count ==474 [2025-03-07 00:41:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:41:05 - End Time 2025-03-07 00:41:05 [2025-03-07 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624211', 'tblTempUsageDetail_20' ) start [2025-03-07 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624211', 'tblTempUsageDetail_20' ) end [2025-03-07 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624211', 'tblTempVendorCDR_20' ) start [2025-03-07 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624211', 'tblTempVendorCDR_20' ) end [2025-03-07 00:41:17] Production.INFO: ProcessCDR(1,14624211,1,1,2) [2025-03-07 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624211', 'tblTempUsageDetail_20' ) start [2025-03-07 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624211', 'tblTempUsageDetail_20' ) end [2025-03-07 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:41:21] Production.INFO: ==20198== Releasing lock... [2025-03-07 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:41:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:42:05 [end_date_ymd] => 2025-03-07 00:42:05 [RateCDR] => 1 ) [2025-03-07 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:42:05' and `end` < '2025-03-07 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:42:17] Production.INFO: count ==472 [2025-03-07 00:42:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:42:05 - End Time 2025-03-07 00:42:05 [2025-03-07 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624216', 'tblTempUsageDetail_20' ) start [2025-03-07 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624216', 'tblTempUsageDetail_20' ) end [2025-03-07 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624216', 'tblTempVendorCDR_20' ) start [2025-03-07 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624216', 'tblTempVendorCDR_20' ) end [2025-03-07 00:42:17] Production.INFO: ProcessCDR(1,14624216,1,1,2) [2025-03-07 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624216', 'tblTempUsageDetail_20' ) start [2025-03-07 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624216', 'tblTempUsageDetail_20' ) end [2025-03-07 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:42:21] Production.INFO: ==20270== Releasing lock... [2025-03-07 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:43:05 [end_date_ymd] => 2025-03-07 00:43:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:43:05' and `end` < '2025-03-07 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-03-07 00:43:17] Production.INFO: count ==475 [2025-03-07 00:43:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:43:05 - End Time 2025-03-07 00:43:05 [2025-03-07 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624221', 'tblTempUsageDetail_20' ) start [2025-03-07 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624221', 'tblTempUsageDetail_20' ) end [2025-03-07 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624221', 'tblTempVendorCDR_20' ) start [2025-03-07 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624221', 'tblTempVendorCDR_20' ) end [2025-03-07 00:43:17] Production.INFO: ProcessCDR(1,14624221,1,1,2) [2025-03-07 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624221', 'tblTempUsageDetail_20' ) start [2025-03-07 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624221', 'tblTempUsageDetail_20' ) end [2025-03-07 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:43:22] Production.INFO: ==20340== Releasing lock... [2025-03-07 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:43:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:44:05 [end_date_ymd] => 2025-03-07 00:44:05 [RateCDR] => 1 ) [2025-03-07 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:44:05' and `end` < '2025-03-07 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:44:17] Production.INFO: count ==477 [2025-03-07 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:44:05 - End Time 2025-03-07 00:44:05 [2025-03-07 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624226', 'tblTempUsageDetail_20' ) start [2025-03-07 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624226', 'tblTempUsageDetail_20' ) end [2025-03-07 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624226', 'tblTempVendorCDR_20' ) start [2025-03-07 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624226', 'tblTempVendorCDR_20' ) end [2025-03-07 00:44:18] Production.INFO: ProcessCDR(1,14624226,1,1,2) [2025-03-07 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624226', 'tblTempUsageDetail_20' ) start [2025-03-07 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624226', 'tblTempUsageDetail_20' ) end [2025-03-07 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:44:21] Production.INFO: ==20413== Releasing lock... [2025-03-07 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:45:06 [end_date_ymd] => 2025-03-07 00:45:06 [RateCDR] => 1 ) [2025-03-07 00:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:45:06' and `end` < '2025-03-07 00:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:45:18] Production.INFO: count ==476 [2025-03-07 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:45:06 - End Time 2025-03-07 00:45:06 [2025-03-07 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624231', 'tblTempUsageDetail_20' ) start [2025-03-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624231', 'tblTempUsageDetail_20' ) end [2025-03-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624231', 'tblTempVendorCDR_20' ) start [2025-03-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624231', 'tblTempVendorCDR_20' ) end [2025-03-07 00:45:18] Production.INFO: ProcessCDR(1,14624231,1,1,2) [2025-03-07 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624231', 'tblTempUsageDetail_20' ) start [2025-03-07 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624231', 'tblTempUsageDetail_20' ) end [2025-03-07 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:45:21] Production.INFO: ==20486== Releasing lock... [2025-03-07 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:46:05 [end_date_ymd] => 2025-03-07 00:46:05 [RateCDR] => 1 ) [2025-03-07 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:46:05' and `end` < '2025-03-07 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:46:17] Production.INFO: count ==479 [2025-03-07 00:46:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:46:05 - End Time 2025-03-07 00:46:05 [2025-03-07 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624236', 'tblTempUsageDetail_20' ) start [2025-03-07 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624236', 'tblTempUsageDetail_20' ) end [2025-03-07 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624236', 'tblTempVendorCDR_20' ) start [2025-03-07 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624236', 'tblTempVendorCDR_20' ) end [2025-03-07 00:46:18] Production.INFO: ProcessCDR(1,14624236,1,1,2) [2025-03-07 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624236', 'tblTempUsageDetail_20' ) start [2025-03-07 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624236', 'tblTempUsageDetail_20' ) end [2025-03-07 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:46:21] Production.INFO: ==20595== Releasing lock... [2025-03-07 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:46:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:47:06 [end_date_ymd] => 2025-03-07 00:47:06 [RateCDR] => 1 ) [2025-03-07 00: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-03-06 21:47:06' and `end` < '2025-03-07 00: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-03-07 00:47:18] Production.INFO: count ==479 [2025-03-07 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:47:06 - End Time 2025-03-07 00:47:06 [2025-03-07 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624241', 'tblTempUsageDetail_20' ) start [2025-03-07 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624241', 'tblTempUsageDetail_20' ) end [2025-03-07 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624241', 'tblTempVendorCDR_20' ) start [2025-03-07 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624241', 'tblTempVendorCDR_20' ) end [2025-03-07 00:47:18] Production.INFO: ProcessCDR(1,14624241,1,1,2) [2025-03-07 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624241', 'tblTempUsageDetail_20' ) start [2025-03-07 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624241', 'tblTempUsageDetail_20' ) end [2025-03-07 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:47:21] Production.INFO: ==20666== Releasing lock... [2025-03-07 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:47:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:48:05 [end_date_ymd] => 2025-03-07 00:48:05 [RateCDR] => 1 ) [2025-03-07 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:48:05' and `end` < '2025-03-07 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:48:17] Production.INFO: count ==478 [2025-03-07 00:48:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:48:05 - End Time 2025-03-07 00:48:05 [2025-03-07 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624246', 'tblTempUsageDetail_20' ) start [2025-03-07 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624246', 'tblTempUsageDetail_20' ) end [2025-03-07 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624246', 'tblTempVendorCDR_20' ) start [2025-03-07 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624246', 'tblTempVendorCDR_20' ) end [2025-03-07 00:48:18] Production.INFO: ProcessCDR(1,14624246,1,1,2) [2025-03-07 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624246', 'tblTempUsageDetail_20' ) start [2025-03-07 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624246', 'tblTempUsageDetail_20' ) end [2025-03-07 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:48:21] Production.INFO: ==20736== Releasing lock... [2025-03-07 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:48:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:49:05 [end_date_ymd] => 2025-03-07 00:49:05 [RateCDR] => 1 ) [2025-03-07 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:49:05' and `end` < '2025-03-07 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:49:18] Production.INFO: count ==478 [2025-03-07 00:49:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:49:05 - End Time 2025-03-07 00:49:05 [2025-03-07 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624251', 'tblTempUsageDetail_20' ) start [2025-03-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624251', 'tblTempUsageDetail_20' ) end [2025-03-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624251', 'tblTempVendorCDR_20' ) start [2025-03-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624251', 'tblTempVendorCDR_20' ) end [2025-03-07 00:49:18] Production.INFO: ProcessCDR(1,14624251,1,1,2) [2025-03-07 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624251', 'tblTempUsageDetail_20' ) start [2025-03-07 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624251', 'tblTempUsageDetail_20' ) end [2025-03-07 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:49:21] Production.INFO: ==20809== Releasing lock... [2025-03-07 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:49:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:50:06 [end_date_ymd] => 2025-03-07 00:50:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:50:06' and `end` < '2025-03-07 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-03-07 00:50:18] Production.INFO: count ==485 [2025-03-07 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:50:06 - End Time 2025-03-07 00:50:06 [2025-03-07 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624257', 'tblTempUsageDetail_20' ) start [2025-03-07 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624257', 'tblTempUsageDetail_20' ) end [2025-03-07 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624257', 'tblTempVendorCDR_20' ) start [2025-03-07 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624257', 'tblTempVendorCDR_20' ) end [2025-03-07 00:50:18] Production.INFO: ProcessCDR(1,14624257,1,1,2) [2025-03-07 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624257', 'tblTempUsageDetail_20' ) start [2025-03-07 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624257', 'tblTempUsageDetail_20' ) end [2025-03-07 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:50:22] Production.INFO: ==20881== Releasing lock... [2025-03-07 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:51:05 [end_date_ymd] => 2025-03-07 00:51:05 [RateCDR] => 1 ) [2025-03-07 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:51:05' and `end` < '2025-03-07 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:51:17] Production.INFO: count ==494 [2025-03-07 00:51:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:51:05 - End Time 2025-03-07 00:51:05 [2025-03-07 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624262', 'tblTempUsageDetail_20' ) start [2025-03-07 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624262', 'tblTempUsageDetail_20' ) end [2025-03-07 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624262', 'tblTempVendorCDR_20' ) start [2025-03-07 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624262', 'tblTempVendorCDR_20' ) end [2025-03-07 00:51:17] Production.INFO: ProcessCDR(1,14624262,1,1,2) [2025-03-07 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624262', 'tblTempUsageDetail_20' ) start [2025-03-07 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624262', 'tblTempUsageDetail_20' ) end [2025-03-07 00:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:51:20] Production.INFO: ==20953== Releasing lock... [2025-03-07 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:51:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:52:05 [end_date_ymd] => 2025-03-07 00:52:05 [RateCDR] => 1 ) [2025-03-07 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:52:05' and `end` < '2025-03-07 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:52:17] Production.INFO: count ==486 [2025-03-07 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:52:05 - End Time 2025-03-07 00:52:05 [2025-03-07 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624267', 'tblTempUsageDetail_20' ) start [2025-03-07 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624267', 'tblTempUsageDetail_20' ) end [2025-03-07 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624267', 'tblTempVendorCDR_20' ) start [2025-03-07 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624267', 'tblTempVendorCDR_20' ) end [2025-03-07 00:52:18] Production.INFO: ProcessCDR(1,14624267,1,1,2) [2025-03-07 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624267', 'tblTempUsageDetail_20' ) start [2025-03-07 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624267', 'tblTempUsageDetail_20' ) end [2025-03-07 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:52:21] Production.INFO: ==21023== Releasing lock... [2025-03-07 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:52:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:53:06 [end_date_ymd] => 2025-03-07 00:53:06 [RateCDR] => 1 ) [2025-03-07 00: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-03-06 21:53:06' and `end` < '2025-03-07 00: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-03-07 00:53:18] Production.INFO: count ==474 [2025-03-07 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:53:06 - End Time 2025-03-07 00:53:06 [2025-03-07 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624272', 'tblTempUsageDetail_20' ) start [2025-03-07 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624272', 'tblTempUsageDetail_20' ) end [2025-03-07 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624272', 'tblTempVendorCDR_20' ) start [2025-03-07 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624272', 'tblTempVendorCDR_20' ) end [2025-03-07 00:53:18] Production.INFO: ProcessCDR(1,14624272,1,1,2) [2025-03-07 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624272', 'tblTempUsageDetail_20' ) start [2025-03-07 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624272', 'tblTempUsageDetail_20' ) end [2025-03-07 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:53:21] Production.INFO: ==21095== Releasing lock... [2025-03-07 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:53:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:54:05 [end_date_ymd] => 2025-03-07 00:54:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:54:05' and `end` < '2025-03-07 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-03-07 00:54:17] Production.INFO: count ==475 [2025-03-07 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:54:05 - End Time 2025-03-07 00:54:05 [2025-03-07 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624277', 'tblTempUsageDetail_20' ) start [2025-03-07 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624277', 'tblTempUsageDetail_20' ) end [2025-03-07 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624277', 'tblTempVendorCDR_20' ) start [2025-03-07 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624277', 'tblTempVendorCDR_20' ) end [2025-03-07 00:54:17] Production.INFO: ProcessCDR(1,14624277,1,1,2) [2025-03-07 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624277', 'tblTempUsageDetail_20' ) start [2025-03-07 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624277', 'tblTempUsageDetail_20' ) end [2025-03-07 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:54:22] Production.INFO: ==21168== Releasing lock... [2025-03-07 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:54:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:55:05 [end_date_ymd] => 2025-03-07 00:55:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:55:05' and `end` < '2025-03-07 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:55:17] Production.INFO: count ==475 [2025-03-07 00:55:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:55:05 - End Time 2025-03-07 00:55:05 [2025-03-07 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624282', 'tblTempUsageDetail_20' ) start [2025-03-07 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624282', 'tblTempUsageDetail_20' ) end [2025-03-07 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624282', 'tblTempVendorCDR_20' ) start [2025-03-07 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624282', 'tblTempVendorCDR_20' ) end [2025-03-07 00:55:18] Production.INFO: ProcessCDR(1,14624282,1,1,2) [2025-03-07 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624282', 'tblTempUsageDetail_20' ) start [2025-03-07 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624282', 'tblTempUsageDetail_20' ) end [2025-03-07 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:55:21] Production.INFO: ==21251== Releasing lock... [2025-03-07 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:55:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:56:05 [end_date_ymd] => 2025-03-07 00:56:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:56:05' and `end` < '2025-03-07 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-03-07 00:56:17] Production.INFO: count ==472 [2025-03-07 00:56:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:56:05 - End Time 2025-03-07 00:56:05 [2025-03-07 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624287', 'tblTempUsageDetail_20' ) start [2025-03-07 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624287', 'tblTempUsageDetail_20' ) end [2025-03-07 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624287', 'tblTempVendorCDR_20' ) start [2025-03-07 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624287', 'tblTempVendorCDR_20' ) end [2025-03-07 00:56:17] Production.INFO: ProcessCDR(1,14624287,1,1,2) [2025-03-07 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624287', 'tblTempUsageDetail_20' ) start [2025-03-07 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624287', 'tblTempUsageDetail_20' ) end [2025-03-07 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:56:21] Production.INFO: ==21324== Releasing lock... [2025-03-07 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:56:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:57:05 [end_date_ymd] => 2025-03-07 00:57:05 [RateCDR] => 1 ) [2025-03-07 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 21:57:05' and `end` < '2025-03-07 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 00:57:18] Production.INFO: count ==471 [2025-03-07 00:57:18] Production.ERROR: pbx CDR StartTime 2025-03-06 21:57:05 - End Time 2025-03-07 00:57:05 [2025-03-07 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624292', 'tblTempUsageDetail_20' ) start [2025-03-07 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624292', 'tblTempUsageDetail_20' ) end [2025-03-07 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624292', 'tblTempVendorCDR_20' ) start [2025-03-07 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624292', 'tblTempVendorCDR_20' ) end [2025-03-07 00:57:18] Production.INFO: ProcessCDR(1,14624292,1,1,2) [2025-03-07 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624292', 'tblTempUsageDetail_20' ) start [2025-03-07 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624292', 'tblTempUsageDetail_20' ) end [2025-03-07 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:57:21] Production.INFO: ==21406== Releasing lock... [2025-03-07 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:57:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-07 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:58:05 [end_date_ymd] => 2025-03-07 00:58:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:58:05' and `end` < '2025-03-07 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-03-07 00:58:17] Production.INFO: count ==471 [2025-03-07 00:58:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:58:05 - End Time 2025-03-07 00:58:05 [2025-03-07 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624297', 'tblTempUsageDetail_20' ) start [2025-03-07 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624297', 'tblTempUsageDetail_20' ) end [2025-03-07 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624297', 'tblTempVendorCDR_20' ) start [2025-03-07 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624297', 'tblTempVendorCDR_20' ) end [2025-03-07 00:58:17] Production.INFO: ProcessCDR(1,14624297,1,1,2) [2025-03-07 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624297', 'tblTempUsageDetail_20' ) start [2025-03-07 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624297', 'tblTempUsageDetail_20' ) end [2025-03-07 00:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:58:20] Production.INFO: ==21492== Releasing lock... [2025-03-07 00:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:58:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-07 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 21:59:05 [end_date_ymd] => 2025-03-07 00:59:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 21:59:05' and `end` < '2025-03-07 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-03-07 00:59:17] Production.INFO: count ==471 [2025-03-07 00:59:17] Production.ERROR: pbx CDR StartTime 2025-03-06 21:59:05 - End Time 2025-03-07 00:59:05 [2025-03-07 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624302', 'tblTempUsageDetail_20' ) start [2025-03-07 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624302', 'tblTempUsageDetail_20' ) end [2025-03-07 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624302', 'tblTempVendorCDR_20' ) start [2025-03-07 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624302', 'tblTempVendorCDR_20' ) end [2025-03-07 00:59:17] Production.INFO: ProcessCDR(1,14624302,1,1,2) [2025-03-07 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624302', 'tblTempUsageDetail_20' ) start [2025-03-07 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624302', 'tblTempUsageDetail_20' ) end [2025-03-07 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 00:59:21] Production.INFO: ==21577== Releasing lock... [2025-03-07 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 00:59:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-07 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:00:06 [end_date_ymd] => 2025-03-07 01:00:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:00:06' and `end` < '2025-03-07 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-03-07 01:00:18] Production.INFO: count ==478 [2025-03-07 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:00:06 - End Time 2025-03-07 01:00:06 [2025-03-07 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624308', 'tblTempUsageDetail_20' ) start [2025-03-07 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624308', 'tblTempUsageDetail_20' ) end [2025-03-07 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624308', 'tblTempVendorCDR_20' ) start [2025-03-07 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624308', 'tblTempVendorCDR_20' ) end [2025-03-07 01:00:18] Production.INFO: ProcessCDR(1,14624308,1,1,2) [2025-03-07 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624308', 'tblTempUsageDetail_20' ) start [2025-03-07 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624308', 'tblTempUsageDetail_20' ) end [2025-03-07 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:00:21] Production.INFO: ==21657== Releasing lock... [2025-03-07 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:00:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:01:05 [end_date_ymd] => 2025-03-07 01:01:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:01:05' and `end` < '2025-03-07 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-03-07 01:01:17] Production.INFO: count ==484 [2025-03-07 01:01:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:01:05 - End Time 2025-03-07 01:01:05 [2025-03-07 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624313', 'tblTempUsageDetail_20' ) start [2025-03-07 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624313', 'tblTempUsageDetail_20' ) end [2025-03-07 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624313', 'tblTempVendorCDR_20' ) start [2025-03-07 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624313', 'tblTempVendorCDR_20' ) end [2025-03-07 01:01:18] Production.INFO: ProcessCDR(1,14624313,1,1,2) [2025-03-07 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624313', 'tblTempUsageDetail_20' ) start [2025-03-07 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624313', 'tblTempUsageDetail_20' ) end [2025-03-07 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:01:21] Production.INFO: ==21790== Releasing lock... [2025-03-07 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:01:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:02:06 [end_date_ymd] => 2025-03-07 01:02:06 [RateCDR] => 1 ) [2025-03-07 01:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:02:06' and `end` < '2025-03-07 01:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:02:18] Production.INFO: count ==485 [2025-03-07 01:02:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:02:06 - End Time 2025-03-07 01:02:06 [2025-03-07 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624318', 'tblTempUsageDetail_20' ) start [2025-03-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624318', 'tblTempUsageDetail_20' ) end [2025-03-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624318', 'tblTempVendorCDR_20' ) start [2025-03-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624318', 'tblTempVendorCDR_20' ) end [2025-03-07 01:02:18] Production.INFO: ProcessCDR(1,14624318,1,1,2) [2025-03-07 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624318', 'tblTempUsageDetail_20' ) start [2025-03-07 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624318', 'tblTempUsageDetail_20' ) end [2025-03-07 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:02:21] Production.INFO: ==21864== Releasing lock... [2025-03-07 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:02:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:03:06 [end_date_ymd] => 2025-03-07 01:03:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:03:06' and `end` < '2025-03-07 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-03-07 01:03:18] Production.INFO: count ==486 [2025-03-07 01:03:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:03:06 - End Time 2025-03-07 01:03:06 [2025-03-07 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624323', 'tblTempUsageDetail_20' ) start [2025-03-07 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624323', 'tblTempUsageDetail_20' ) end [2025-03-07 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624323', 'tblTempVendorCDR_20' ) start [2025-03-07 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624323', 'tblTempVendorCDR_20' ) end [2025-03-07 01:03:18] Production.INFO: ProcessCDR(1,14624323,1,1,2) [2025-03-07 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624323', 'tblTempUsageDetail_20' ) start [2025-03-07 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624323', 'tblTempUsageDetail_20' ) end [2025-03-07 01:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:03:23] Production.INFO: ==21936== Releasing lock... [2025-03-07 01:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:03:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:04:05 [end_date_ymd] => 2025-03-07 01:04:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:04:05' and `end` < '2025-03-07 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-03-07 01:04:17] Production.INFO: count ==486 [2025-03-07 01:04:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:04:05 - End Time 2025-03-07 01:04:05 [2025-03-07 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624328', 'tblTempUsageDetail_20' ) start [2025-03-07 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624328', 'tblTempUsageDetail_20' ) end [2025-03-07 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624328', 'tblTempVendorCDR_20' ) start [2025-03-07 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624328', 'tblTempVendorCDR_20' ) end [2025-03-07 01:04:17] Production.INFO: ProcessCDR(1,14624328,1,1,2) [2025-03-07 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624328', 'tblTempUsageDetail_20' ) start [2025-03-07 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624328', 'tblTempUsageDetail_20' ) end [2025-03-07 01:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:04:20] Production.INFO: ==22009== Releasing lock... [2025-03-07 01:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:04:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:05:06 [end_date_ymd] => 2025-03-07 01:05:06 [RateCDR] => 1 ) [2025-03-07 01: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-03-06 22:05:06' and `end` < '2025-03-07 01: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-03-07 01:05:18] Production.INFO: count ==482 [2025-03-07 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:05:06 - End Time 2025-03-07 01:05:06 [2025-03-07 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624333', 'tblTempUsageDetail_20' ) start [2025-03-07 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624333', 'tblTempUsageDetail_20' ) end [2025-03-07 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624333', 'tblTempVendorCDR_20' ) start [2025-03-07 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624333', 'tblTempVendorCDR_20' ) end [2025-03-07 01:05:18] Production.INFO: ProcessCDR(1,14624333,1,1,2) [2025-03-07 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624333', 'tblTempUsageDetail_20' ) start [2025-03-07 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624333', 'tblTempUsageDetail_20' ) end [2025-03-07 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:05:21] Production.INFO: ==22079== Releasing lock... [2025-03-07 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:05:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:06:05 [end_date_ymd] => 2025-03-07 01:06:05 [RateCDR] => 1 ) [2025-03-07 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:06:05' and `end` < '2025-03-07 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:06:18] Production.INFO: count ==481 [2025-03-07 01:06:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:06:05 - End Time 2025-03-07 01:06:05 [2025-03-07 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624338', 'tblTempUsageDetail_20' ) start [2025-03-07 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624338', 'tblTempUsageDetail_20' ) end [2025-03-07 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624338', 'tblTempVendorCDR_20' ) start [2025-03-07 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624338', 'tblTempVendorCDR_20' ) end [2025-03-07 01:06:18] Production.INFO: ProcessCDR(1,14624338,1,1,2) [2025-03-07 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624338', 'tblTempUsageDetail_20' ) start [2025-03-07 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624338', 'tblTempUsageDetail_20' ) end [2025-03-07 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:06:21] Production.INFO: ==22152== Releasing lock... [2025-03-07 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:06:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:07:05 [end_date_ymd] => 2025-03-07 01:07:05 [RateCDR] => 1 ) [2025-03-07 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:07:05' and `end` < '2025-03-07 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:07:17] Production.INFO: count ==478 [2025-03-07 01:07:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:07:05 - End Time 2025-03-07 01:07:05 [2025-03-07 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624343', 'tblTempUsageDetail_20' ) start [2025-03-07 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624343', 'tblTempUsageDetail_20' ) end [2025-03-07 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624343', 'tblTempVendorCDR_20' ) start [2025-03-07 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624343', 'tblTempVendorCDR_20' ) end [2025-03-07 01:07:17] Production.INFO: ProcessCDR(1,14624343,1,1,2) [2025-03-07 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624343', 'tblTempUsageDetail_20' ) start [2025-03-07 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624343', 'tblTempUsageDetail_20' ) end [2025-03-07 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:07:22] Production.INFO: ==22223== Releasing lock... [2025-03-07 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:07:22] Production.INFO: 32 MB #Memory Used# [2025-03-07 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:08:06 [end_date_ymd] => 2025-03-07 01:08:06 [RateCDR] => 1 ) [2025-03-07 01:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:08:06' and `end` < '2025-03-07 01:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:08:18] Production.INFO: count ==477 [2025-03-07 01:08:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:08:06 - End Time 2025-03-07 01:08:06 [2025-03-07 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624348', 'tblTempUsageDetail_20' ) start [2025-03-07 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624348', 'tblTempUsageDetail_20' ) end [2025-03-07 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624348', 'tblTempVendorCDR_20' ) start [2025-03-07 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624348', 'tblTempVendorCDR_20' ) end [2025-03-07 01:08:18] Production.INFO: ProcessCDR(1,14624348,1,1,2) [2025-03-07 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624348', 'tblTempUsageDetail_20' ) start [2025-03-07 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624348', 'tblTempUsageDetail_20' ) end [2025-03-07 01:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:08:23] Production.INFO: ==22294== Releasing lock... [2025-03-07 01:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:08:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-07 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:09:05 [end_date_ymd] => 2025-03-07 01:09:05 [RateCDR] => 1 ) [2025-03-07 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:09:05' and `end` < '2025-03-07 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:09:17] Production.INFO: count ==477 [2025-03-07 01:09:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:09:05 - End Time 2025-03-07 01:09:05 [2025-03-07 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624353', 'tblTempUsageDetail_20' ) start [2025-03-07 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624353', 'tblTempUsageDetail_20' ) end [2025-03-07 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624353', 'tblTempVendorCDR_20' ) start [2025-03-07 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624353', 'tblTempVendorCDR_20' ) end [2025-03-07 01:09:17] Production.INFO: ProcessCDR(1,14624353,1,1,2) [2025-03-07 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624353', 'tblTempUsageDetail_20' ) start [2025-03-07 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624353', 'tblTempUsageDetail_20' ) end [2025-03-07 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:09:20] Production.INFO: ==22365== Releasing lock... [2025-03-07 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:09:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-07 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:10:06 [end_date_ymd] => 2025-03-07 01:10:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:10:06' and `end` < '2025-03-07 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-03-07 01:10:18] Production.INFO: count ==485 [2025-03-07 01:10:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:10:06 - End Time 2025-03-07 01:10:06 [2025-03-07 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624359', 'tblTempUsageDetail_20' ) start [2025-03-07 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624359', 'tblTempUsageDetail_20' ) end [2025-03-07 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624359', 'tblTempVendorCDR_20' ) start [2025-03-07 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624359', 'tblTempVendorCDR_20' ) end [2025-03-07 01:10:18] Production.INFO: ProcessCDR(1,14624359,1,1,2) [2025-03-07 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624359', 'tblTempUsageDetail_20' ) start [2025-03-07 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624359', 'tblTempUsageDetail_20' ) end [2025-03-07 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:10:21] Production.INFO: ==22438== Releasing lock... [2025-03-07 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:10:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:11:05 [end_date_ymd] => 2025-03-07 01:11:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:11:05' and `end` < '2025-03-07 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-03-07 01:11:17] Production.INFO: count ==496 [2025-03-07 01:11:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:11:05 - End Time 2025-03-07 01:11:05 [2025-03-07 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624364', 'tblTempUsageDetail_20' ) start [2025-03-07 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624364', 'tblTempUsageDetail_20' ) end [2025-03-07 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624364', 'tblTempVendorCDR_20' ) start [2025-03-07 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624364', 'tblTempVendorCDR_20' ) end [2025-03-07 01:11:17] Production.INFO: ProcessCDR(1,14624364,1,1,2) [2025-03-07 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624364', 'tblTempUsageDetail_20' ) start [2025-03-07 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624364', 'tblTempUsageDetail_20' ) end [2025-03-07 01:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:11:20] Production.INFO: ==22510== Releasing lock... [2025-03-07 01:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:11:20] Production.INFO: 32 MB #Memory Used# [2025-03-07 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:12:05 [end_date_ymd] => 2025-03-07 01:12:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:12:05' and `end` < '2025-03-07 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-03-07 01:12:17] Production.INFO: count ==496 [2025-03-07 01:12:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:12:05 - End Time 2025-03-07 01:12:05 [2025-03-07 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624369', 'tblTempUsageDetail_20' ) start [2025-03-07 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624369', 'tblTempUsageDetail_20' ) end [2025-03-07 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624369', 'tblTempVendorCDR_20' ) start [2025-03-07 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624369', 'tblTempVendorCDR_20' ) end [2025-03-07 01:12:18] Production.INFO: ProcessCDR(1,14624369,1,1,2) [2025-03-07 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624369', 'tblTempUsageDetail_20' ) start [2025-03-07 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624369', 'tblTempUsageDetail_20' ) end [2025-03-07 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:12:21] Production.INFO: ==22581== Releasing lock... [2025-03-07 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:12:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:13:05 [end_date_ymd] => 2025-03-07 01:13:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:13:05' and `end` < '2025-03-07 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-03-07 01:13:17] Production.INFO: count ==495 [2025-03-07 01:13:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:13:05 - End Time 2025-03-07 01:13:05 [2025-03-07 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624374', 'tblTempUsageDetail_20' ) start [2025-03-07 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624374', 'tblTempUsageDetail_20' ) end [2025-03-07 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624374', 'tblTempVendorCDR_20' ) start [2025-03-07 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624374', 'tblTempVendorCDR_20' ) end [2025-03-07 01:13:17] Production.INFO: ProcessCDR(1,14624374,1,1,2) [2025-03-07 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624374', 'tblTempUsageDetail_20' ) start [2025-03-07 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624374', 'tblTempUsageDetail_20' ) end [2025-03-07 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:13:21] Production.INFO: ==22651== Releasing lock... [2025-03-07 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:13:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:14:05 [end_date_ymd] => 2025-03-07 01:14:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:14:05' and `end` < '2025-03-07 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-03-07 01:14:17] Production.INFO: count ==494 [2025-03-07 01:14:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:14:05 - End Time 2025-03-07 01:14:05 [2025-03-07 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624379', 'tblTempUsageDetail_20' ) start [2025-03-07 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624379', 'tblTempUsageDetail_20' ) end [2025-03-07 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624379', 'tblTempVendorCDR_20' ) start [2025-03-07 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624379', 'tblTempVendorCDR_20' ) end [2025-03-07 01:14:17] Production.INFO: ProcessCDR(1,14624379,1,1,2) [2025-03-07 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624379', 'tblTempUsageDetail_20' ) start [2025-03-07 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624379', 'tblTempUsageDetail_20' ) end [2025-03-07 01:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:14:20] Production.INFO: ==22731== Releasing lock... [2025-03-07 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:14:20] Production.INFO: 32 MB #Memory Used# [2025-03-07 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:15:05 [end_date_ymd] => 2025-03-07 01:15:05 [RateCDR] => 1 ) [2025-03-07 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:15:05' and `end` < '2025-03-07 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:15:17] Production.INFO: count ==487 [2025-03-07 01:15:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:15:05 - End Time 2025-03-07 01:15:05 [2025-03-07 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624384', 'tblTempUsageDetail_20' ) start [2025-03-07 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624384', 'tblTempUsageDetail_20' ) end [2025-03-07 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624384', 'tblTempVendorCDR_20' ) start [2025-03-07 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624384', 'tblTempVendorCDR_20' ) end [2025-03-07 01:15:17] Production.INFO: ProcessCDR(1,14624384,1,1,2) [2025-03-07 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624384', 'tblTempUsageDetail_20' ) start [2025-03-07 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624384', 'tblTempUsageDetail_20' ) end [2025-03-07 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:15:21] Production.INFO: ==22802== Releasing lock... [2025-03-07 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:16:06 [end_date_ymd] => 2025-03-07 01:16:06 [RateCDR] => 1 ) [2025-03-07 01: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-03-06 22:16:06' and `end` < '2025-03-07 01: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-03-07 01:16:18] Production.INFO: count ==482 [2025-03-07 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:16:06 - End Time 2025-03-07 01:16:06 [2025-03-07 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624389', 'tblTempUsageDetail_20' ) start [2025-03-07 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624389', 'tblTempUsageDetail_20' ) end [2025-03-07 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624389', 'tblTempVendorCDR_20' ) start [2025-03-07 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624389', 'tblTempVendorCDR_20' ) end [2025-03-07 01:16:18] Production.INFO: ProcessCDR(1,14624389,1,1,2) [2025-03-07 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624389', 'tblTempUsageDetail_20' ) start [2025-03-07 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624389', 'tblTempUsageDetail_20' ) end [2025-03-07 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:16:21] Production.INFO: ==22873== Releasing lock... [2025-03-07 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:16:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:17:05 [end_date_ymd] => 2025-03-07 01:17:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:17:05' and `end` < '2025-03-07 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-03-07 01:17:17] Production.INFO: count ==481 [2025-03-07 01:17:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:17:05 - End Time 2025-03-07 01:17:05 [2025-03-07 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624394', 'tblTempUsageDetail_20' ) start [2025-03-07 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624394', 'tblTempUsageDetail_20' ) end [2025-03-07 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624394', 'tblTempVendorCDR_20' ) start [2025-03-07 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624394', 'tblTempVendorCDR_20' ) end [2025-03-07 01:17:17] Production.INFO: ProcessCDR(1,14624394,1,1,2) [2025-03-07 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624394', 'tblTempUsageDetail_20' ) start [2025-03-07 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624394', 'tblTempUsageDetail_20' ) end [2025-03-07 01:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:17:20] Production.INFO: ==22986== Releasing lock... [2025-03-07 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:17:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:18:06 [end_date_ymd] => 2025-03-07 01:18:06 [RateCDR] => 1 ) [2025-03-07 01: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-03-06 22:18:06' and `end` < '2025-03-07 01: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-03-07 01:18:18] Production.INFO: count ==480 [2025-03-07 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:18:06 - End Time 2025-03-07 01:18:06 [2025-03-07 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624399', 'tblTempUsageDetail_20' ) start [2025-03-07 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624399', 'tblTempUsageDetail_20' ) end [2025-03-07 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624399', 'tblTempVendorCDR_20' ) start [2025-03-07 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624399', 'tblTempVendorCDR_20' ) end [2025-03-07 01:18:18] Production.INFO: ProcessCDR(1,14624399,1,1,2) [2025-03-07 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624399', 'tblTempUsageDetail_20' ) start [2025-03-07 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624399', 'tblTempUsageDetail_20' ) end [2025-03-07 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:18:21] Production.INFO: ==23057== Releasing lock... [2025-03-07 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:18:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:19:05 [end_date_ymd] => 2025-03-07 01:19:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:19:05' and `end` < '2025-03-07 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-03-07 01:19:18] Production.INFO: count ==479 [2025-03-07 01:19:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:19:05 - End Time 2025-03-07 01:19:05 [2025-03-07 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624404', 'tblTempUsageDetail_20' ) start [2025-03-07 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624404', 'tblTempUsageDetail_20' ) end [2025-03-07 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624404', 'tblTempVendorCDR_20' ) start [2025-03-07 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624404', 'tblTempVendorCDR_20' ) end [2025-03-07 01:19:18] Production.INFO: ProcessCDR(1,14624404,1,1,2) [2025-03-07 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624404', 'tblTempUsageDetail_20' ) start [2025-03-07 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624404', 'tblTempUsageDetail_20' ) end [2025-03-07 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:19:21] Production.INFO: ==23131== Releasing lock... [2025-03-07 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:20:06 [end_date_ymd] => 2025-03-07 01:20:06 [RateCDR] => 1 ) [2025-03-07 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:20:06' and `end` < '2025-03-07 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:20:18] Production.INFO: count ==489 [2025-03-07 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:20:06 - End Time 2025-03-07 01:20:06 [2025-03-07 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624410', 'tblTempUsageDetail_20' ) start [2025-03-07 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624410', 'tblTempUsageDetail_20' ) end [2025-03-07 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624410', 'tblTempVendorCDR_20' ) start [2025-03-07 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624410', 'tblTempVendorCDR_20' ) end [2025-03-07 01:20:18] Production.INFO: ProcessCDR(1,14624410,1,1,2) [2025-03-07 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624410', 'tblTempUsageDetail_20' ) start [2025-03-07 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624410', 'tblTempUsageDetail_20' ) end [2025-03-07 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:20:22] Production.INFO: ==23204== Releasing lock... [2025-03-07 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:20:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:21:04 [end_date_ymd] => 2025-03-07 01:21:04 [RateCDR] => 1 ) [2025-03-07 01:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:21:04' and `end` < '2025-03-07 01:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:21:16] Production.INFO: count ==497 [2025-03-07 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:21:04 - End Time 2025-03-07 01:21:04 [2025-03-07 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624415', 'tblTempUsageDetail_20' ) start [2025-03-07 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624415', 'tblTempUsageDetail_20' ) end [2025-03-07 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624415', 'tblTempVendorCDR_20' ) start [2025-03-07 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624415', 'tblTempVendorCDR_20' ) end [2025-03-07 01:21:17] Production.INFO: ProcessCDR(1,14624415,1,1,2) [2025-03-07 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624415', 'tblTempUsageDetail_20' ) start [2025-03-07 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624415', 'tblTempUsageDetail_20' ) end [2025-03-07 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:21:20] Production.INFO: ==23275== Releasing lock... [2025-03-07 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:21:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:22:06 [end_date_ymd] => 2025-03-07 01:22:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:22:06' and `end` < '2025-03-07 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-03-07 01:22:18] Production.INFO: count ==497 [2025-03-07 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:22:06 - End Time 2025-03-07 01:22:06 [2025-03-07 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624420', 'tblTempUsageDetail_20' ) start [2025-03-07 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624420', 'tblTempUsageDetail_20' ) end [2025-03-07 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624420', 'tblTempVendorCDR_20' ) start [2025-03-07 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624420', 'tblTempVendorCDR_20' ) end [2025-03-07 01:22:18] Production.INFO: ProcessCDR(1,14624420,1,1,2) [2025-03-07 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624420', 'tblTempUsageDetail_20' ) start [2025-03-07 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624420', 'tblTempUsageDetail_20' ) end [2025-03-07 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:22:21] Production.INFO: ==23345== Releasing lock... [2025-03-07 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:22:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:23:05 [end_date_ymd] => 2025-03-07 01:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:23:05' and `end` < '2025-03-07 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-03-07 01:23:17] Production.INFO: count ==496 [2025-03-07 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:23:05 - End Time 2025-03-07 01:23:05 [2025-03-07 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624425', 'tblTempUsageDetail_20' ) start [2025-03-07 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624425', 'tblTempUsageDetail_20' ) end [2025-03-07 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624425', 'tblTempVendorCDR_20' ) start [2025-03-07 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624425', 'tblTempVendorCDR_20' ) end [2025-03-07 01:23:17] Production.INFO: ProcessCDR(1,14624425,1,1,2) [2025-03-07 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624425', 'tblTempUsageDetail_20' ) start [2025-03-07 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624425', 'tblTempUsageDetail_20' ) end [2025-03-07 01:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:23:20] Production.INFO: ==23421== Releasing lock... [2025-03-07 01:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:23:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:24:06 [end_date_ymd] => 2025-03-07 01:24:06 [RateCDR] => 1 ) [2025-03-07 01:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:24:06' and `end` < '2025-03-07 01:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:24:18] Production.INFO: count ==492 [2025-03-07 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:24:06 - End Time 2025-03-07 01:24:06 [2025-03-07 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624430', 'tblTempUsageDetail_20' ) start [2025-03-07 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624430', 'tblTempUsageDetail_20' ) end [2025-03-07 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624430', 'tblTempVendorCDR_20' ) start [2025-03-07 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624430', 'tblTempVendorCDR_20' ) end [2025-03-07 01:24:18] Production.INFO: ProcessCDR(1,14624430,1,1,2) [2025-03-07 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624430', 'tblTempUsageDetail_20' ) start [2025-03-07 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624430', 'tblTempUsageDetail_20' ) end [2025-03-07 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:24:21] Production.INFO: ==23496== Releasing lock... [2025-03-07 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:24:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:25:06 [end_date_ymd] => 2025-03-07 01:25:06 [RateCDR] => 1 ) [2025-03-07 01: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-03-06 22:25:06' and `end` < '2025-03-07 01: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-03-07 01:25:18] Production.INFO: count ==492 [2025-03-07 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:25:06 - End Time 2025-03-07 01:25:06 [2025-03-07 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624435', 'tblTempUsageDetail_20' ) start [2025-03-07 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624435', 'tblTempUsageDetail_20' ) end [2025-03-07 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624435', 'tblTempVendorCDR_20' ) start [2025-03-07 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624435', 'tblTempVendorCDR_20' ) end [2025-03-07 01:25:18] Production.INFO: ProcessCDR(1,14624435,1,1,2) [2025-03-07 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624435', 'tblTempUsageDetail_20' ) start [2025-03-07 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624435', 'tblTempUsageDetail_20' ) end [2025-03-07 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:25:23] Production.INFO: ==23567== Releasing lock... [2025-03-07 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:25:23] Production.INFO: 32 MB #Memory Used# [2025-03-07 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:26:05 [end_date_ymd] => 2025-03-07 01:26:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:26:05' and `end` < '2025-03-07 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-03-07 01:26:17] Production.INFO: count ==491 [2025-03-07 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:26:05 - End Time 2025-03-07 01:26:05 [2025-03-07 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624440', 'tblTempUsageDetail_20' ) start [2025-03-07 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624440', 'tblTempUsageDetail_20' ) end [2025-03-07 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624440', 'tblTempVendorCDR_20' ) start [2025-03-07 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624440', 'tblTempVendorCDR_20' ) end [2025-03-07 01:26:18] Production.INFO: ProcessCDR(1,14624440,1,1,2) [2025-03-07 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624440', 'tblTempUsageDetail_20' ) start [2025-03-07 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624440', 'tblTempUsageDetail_20' ) end [2025-03-07 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:26:21] Production.INFO: ==23638== Releasing lock... [2025-03-07 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:26:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 01:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:27:06 [end_date_ymd] => 2025-03-07 01:27:06 [RateCDR] => 1 ) [2025-03-07 01: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-03-06 22:27:06' and `end` < '2025-03-07 01: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-03-07 01:27:18] Production.INFO: count ==485 [2025-03-07 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:27:06 - End Time 2025-03-07 01:27:06 [2025-03-07 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624445', 'tblTempUsageDetail_20' ) start [2025-03-07 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624445', 'tblTempUsageDetail_20' ) end [2025-03-07 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624445', 'tblTempVendorCDR_20' ) start [2025-03-07 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624445', 'tblTempVendorCDR_20' ) end [2025-03-07 01:27:18] Production.INFO: ProcessCDR(1,14624445,1,1,2) [2025-03-07 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624445', 'tblTempUsageDetail_20' ) start [2025-03-07 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624445', 'tblTempUsageDetail_20' ) end [2025-03-07 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:27:22] Production.INFO: ==23708== Releasing lock... [2025-03-07 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:27:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:28:05 [end_date_ymd] => 2025-03-07 01:28:05 [RateCDR] => 1 ) [2025-03-07 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:28:05' and `end` < '2025-03-07 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:28:17] Production.INFO: count ==485 [2025-03-07 01:28:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:28:05 - End Time 2025-03-07 01:28:05 [2025-03-07 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624450', 'tblTempUsageDetail_20' ) start [2025-03-07 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624450', 'tblTempUsageDetail_20' ) end [2025-03-07 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624450', 'tblTempVendorCDR_20' ) start [2025-03-07 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624450', 'tblTempVendorCDR_20' ) end [2025-03-07 01:28:17] Production.INFO: ProcessCDR(1,14624450,1,1,2) [2025-03-07 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624450', 'tblTempUsageDetail_20' ) start [2025-03-07 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624450', 'tblTempUsageDetail_20' ) end [2025-03-07 01:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:28:20] Production.INFO: ==23779== Releasing lock... [2025-03-07 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:28:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:29:05 [end_date_ymd] => 2025-03-07 01:29:05 [RateCDR] => 1 ) [2025-03-07 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:29:05' and `end` < '2025-03-07 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:29:18] Production.INFO: count ==485 [2025-03-07 01:29:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:29:05 - End Time 2025-03-07 01:29:05 [2025-03-07 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624455', 'tblTempUsageDetail_20' ) start [2025-03-07 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624455', 'tblTempUsageDetail_20' ) end [2025-03-07 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624455', 'tblTempVendorCDR_20' ) start [2025-03-07 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624455', 'tblTempVendorCDR_20' ) end [2025-03-07 01:29:18] Production.INFO: ProcessCDR(1,14624455,1,1,2) [2025-03-07 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624455', 'tblTempUsageDetail_20' ) start [2025-03-07 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624455', 'tblTempUsageDetail_20' ) end [2025-03-07 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:29:21] Production.INFO: ==23848== Releasing lock... [2025-03-07 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:29:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:30:06 [end_date_ymd] => 2025-03-07 01:30:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:30:06' and `end` < '2025-03-07 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-03-07 01:30:18] Production.INFO: count ==493 [2025-03-07 01:30:19] Production.ERROR: pbx CDR StartTime 2025-03-06 22:30:06 - End Time 2025-03-07 01:30:06 [2025-03-07 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624461', 'tblTempUsageDetail_20' ) start [2025-03-07 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624461', 'tblTempUsageDetail_20' ) end [2025-03-07 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624461', 'tblTempVendorCDR_20' ) start [2025-03-07 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624461', 'tblTempVendorCDR_20' ) end [2025-03-07 01:30:19] Production.INFO: ProcessCDR(1,14624461,1,1,2) [2025-03-07 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624461', 'tblTempUsageDetail_20' ) start [2025-03-07 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624461', 'tblTempUsageDetail_20' ) end [2025-03-07 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:30:22] Production.INFO: ==23921== Releasing lock... [2025-03-07 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:30:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:31:06 [end_date_ymd] => 2025-03-07 01:31:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:31:06' and `end` < '2025-03-07 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-03-07 01:31:18] Production.INFO: count ==517 [2025-03-07 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:31:06 - End Time 2025-03-07 01:31:06 [2025-03-07 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624466', 'tblTempUsageDetail_20' ) start [2025-03-07 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624466', 'tblTempUsageDetail_20' ) end [2025-03-07 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624466', 'tblTempVendorCDR_20' ) start [2025-03-07 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624466', 'tblTempVendorCDR_20' ) end [2025-03-07 01:31:18] Production.INFO: ProcessCDR(1,14624466,1,1,2) [2025-03-07 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624466', 'tblTempUsageDetail_20' ) start [2025-03-07 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624466', 'tblTempUsageDetail_20' ) end [2025-03-07 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:31:22] Production.INFO: ==23996== Releasing lock... [2025-03-07 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:31:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:32:05 [end_date_ymd] => 2025-03-07 01:32:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:32:05' and `end` < '2025-03-07 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-03-07 01:32:18] Production.INFO: count ==517 [2025-03-07 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:32:05 - End Time 2025-03-07 01:32:05 [2025-03-07 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624471', 'tblTempUsageDetail_20' ) start [2025-03-07 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624471', 'tblTempUsageDetail_20' ) end [2025-03-07 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624471', 'tblTempVendorCDR_20' ) start [2025-03-07 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624471', 'tblTempVendorCDR_20' ) end [2025-03-07 01:32:18] Production.INFO: ProcessCDR(1,14624471,1,1,2) [2025-03-07 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624471', 'tblTempUsageDetail_20' ) start [2025-03-07 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624471', 'tblTempUsageDetail_20' ) end [2025-03-07 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:32:21] Production.INFO: ==24108== Releasing lock... [2025-03-07 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:32:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:33:05 [end_date_ymd] => 2025-03-07 01:33:05 [RateCDR] => 1 ) [2025-03-07 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:33:05' and `end` < '2025-03-07 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:33:18] Production.INFO: count ==516 [2025-03-07 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:33:05 - End Time 2025-03-07 01:33:05 [2025-03-07 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624476', 'tblTempUsageDetail_20' ) start [2025-03-07 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624476', 'tblTempUsageDetail_20' ) end [2025-03-07 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624476', 'tblTempVendorCDR_20' ) start [2025-03-07 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624476', 'tblTempVendorCDR_20' ) end [2025-03-07 01:33:18] Production.INFO: ProcessCDR(1,14624476,1,1,2) [2025-03-07 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624476', 'tblTempUsageDetail_20' ) start [2025-03-07 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624476', 'tblTempUsageDetail_20' ) end [2025-03-07 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:33:21] Production.INFO: ==24184== Releasing lock... [2025-03-07 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:33:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:34:05 [end_date_ymd] => 2025-03-07 01:34:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:34:05' and `end` < '2025-03-07 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-03-07 01:34:18] Production.INFO: count ==515 [2025-03-07 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:34:05 - End Time 2025-03-07 01:34:05 [2025-03-07 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624481', 'tblTempUsageDetail_20' ) start [2025-03-07 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624481', 'tblTempUsageDetail_20' ) end [2025-03-07 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624481', 'tblTempVendorCDR_20' ) start [2025-03-07 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624481', 'tblTempVendorCDR_20' ) end [2025-03-07 01:34:18] Production.INFO: ProcessCDR(1,14624481,1,1,2) [2025-03-07 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624481', 'tblTempUsageDetail_20' ) start [2025-03-07 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624481', 'tblTempUsageDetail_20' ) end [2025-03-07 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:34:21] Production.INFO: ==24256== Releasing lock... [2025-03-07 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:34:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:35:06 [end_date_ymd] => 2025-03-07 01:35:06 [RateCDR] => 1 ) [2025-03-07 01:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:35:06' and `end` < '2025-03-07 01:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:35:18] Production.INFO: count ==518 [2025-03-07 01:35:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:35:06 - End Time 2025-03-07 01:35:06 [2025-03-07 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624484', 'tblTempUsageDetail_20' ) start [2025-03-07 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624484', 'tblTempUsageDetail_20' ) end [2025-03-07 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624484', 'tblTempVendorCDR_20' ) start [2025-03-07 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624484', 'tblTempVendorCDR_20' ) end [2025-03-07 01:35:18] Production.INFO: ProcessCDR(1,14624484,1,1,2) [2025-03-07 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624484', 'tblTempUsageDetail_20' ) start [2025-03-07 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624484', 'tblTempUsageDetail_20' ) end [2025-03-07 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:35:21] Production.INFO: ==24325== Releasing lock... [2025-03-07 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:35:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:36:05 [end_date_ymd] => 2025-03-07 01:36:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:36:05' and `end` < '2025-03-07 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-03-07 01:36:17] Production.INFO: count ==517 [2025-03-07 01:36:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:36:05 - End Time 2025-03-07 01:36:05 [2025-03-07 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624491', 'tblTempUsageDetail_20' ) start [2025-03-07 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624491', 'tblTempUsageDetail_20' ) end [2025-03-07 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624491', 'tblTempVendorCDR_20' ) start [2025-03-07 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624491', 'tblTempVendorCDR_20' ) end [2025-03-07 01:36:17] Production.INFO: ProcessCDR(1,14624491,1,1,2) [2025-03-07 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624491', 'tblTempUsageDetail_20' ) start [2025-03-07 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624491', 'tblTempUsageDetail_20' ) end [2025-03-07 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:36:21] Production.INFO: ==24396== Releasing lock... [2025-03-07 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:36:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:37:06 [end_date_ymd] => 2025-03-07 01:37:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:37:06' and `end` < '2025-03-07 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:37:18] Production.INFO: count ==516 [2025-03-07 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:37:06 - End Time 2025-03-07 01:37:06 [2025-03-07 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624496', 'tblTempUsageDetail_20' ) start [2025-03-07 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624496', 'tblTempUsageDetail_20' ) end [2025-03-07 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624496', 'tblTempVendorCDR_20' ) start [2025-03-07 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624496', 'tblTempVendorCDR_20' ) end [2025-03-07 01:37:18] Production.INFO: ProcessCDR(1,14624496,1,1,2) [2025-03-07 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624496', 'tblTempUsageDetail_20' ) start [2025-03-07 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624496', 'tblTempUsageDetail_20' ) end [2025-03-07 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:37:22] Production.INFO: ==24467== Releasing lock... [2025-03-07 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:37:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:38:06 [end_date_ymd] => 2025-03-07 01:38:06 [RateCDR] => 1 ) [2025-03-07 01:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:38:06' and `end` < '2025-03-07 01:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:38:18] Production.INFO: count ==513 [2025-03-07 01:38:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:38:06 - End Time 2025-03-07 01:38:06 [2025-03-07 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624501', 'tblTempUsageDetail_20' ) start [2025-03-07 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624501', 'tblTempUsageDetail_20' ) end [2025-03-07 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624501', 'tblTempVendorCDR_20' ) start [2025-03-07 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624501', 'tblTempVendorCDR_20' ) end [2025-03-07 01:38:18] Production.INFO: ProcessCDR(1,14624501,1,1,2) [2025-03-07 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624501', 'tblTempUsageDetail_20' ) start [2025-03-07 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624501', 'tblTempUsageDetail_20' ) end [2025-03-07 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:38:22] Production.INFO: ==24537== Releasing lock... [2025-03-07 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:38:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:39:06 [end_date_ymd] => 2025-03-07 01:39:06 [RateCDR] => 1 ) [2025-03-07 01:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:39:06' and `end` < '2025-03-07 01:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:39:18] Production.INFO: count ==506 [2025-03-07 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:39:06 - End Time 2025-03-07 01:39:06 [2025-03-07 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624506', 'tblTempUsageDetail_20' ) start [2025-03-07 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624506', 'tblTempUsageDetail_20' ) end [2025-03-07 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624506', 'tblTempVendorCDR_20' ) start [2025-03-07 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624506', 'tblTempVendorCDR_20' ) end [2025-03-07 01:39:18] Production.INFO: ProcessCDR(1,14624506,1,1,2) [2025-03-07 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624506', 'tblTempUsageDetail_20' ) start [2025-03-07 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624506', 'tblTempUsageDetail_20' ) end [2025-03-07 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:39:22] Production.INFO: ==24614== Releasing lock... [2025-03-07 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:39:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:40:06 [end_date_ymd] => 2025-03-07 01:40:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:40:06' and `end` < '2025-03-07 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-03-07 01:40:19] Production.INFO: count ==512 [2025-03-07 01:40:19] Production.ERROR: pbx CDR StartTime 2025-03-06 22:40:06 - End Time 2025-03-07 01:40:06 [2025-03-07 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624512', 'tblTempUsageDetail_20' ) start [2025-03-07 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624512', 'tblTempUsageDetail_20' ) end [2025-03-07 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624512', 'tblTempVendorCDR_20' ) start [2025-03-07 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624512', 'tblTempVendorCDR_20' ) end [2025-03-07 01:40:19] Production.INFO: ProcessCDR(1,14624512,1,1,2) [2025-03-07 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624512', 'tblTempUsageDetail_20' ) start [2025-03-07 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624512', 'tblTempUsageDetail_20' ) end [2025-03-07 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:40:23] Production.INFO: ==24686== Releasing lock... [2025-03-07 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:40:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:41:06 [end_date_ymd] => 2025-03-07 01:41:06 [RateCDR] => 1 ) [2025-03-07 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:41:06' and `end` < '2025-03-07 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:41:18] Production.INFO: count ==525 [2025-03-07 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:41:06 - End Time 2025-03-07 01:41:06 [2025-03-07 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624517', 'tblTempUsageDetail_20' ) start [2025-03-07 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624517', 'tblTempUsageDetail_20' ) end [2025-03-07 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624517', 'tblTempVendorCDR_20' ) start [2025-03-07 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624517', 'tblTempVendorCDR_20' ) end [2025-03-07 01:41:18] Production.INFO: ProcessCDR(1,14624517,1,1,2) [2025-03-07 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624517', 'tblTempUsageDetail_20' ) start [2025-03-07 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624517', 'tblTempUsageDetail_20' ) end [2025-03-07 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:41:22] Production.INFO: ==24760== Releasing lock... [2025-03-07 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:41:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:42:05 [end_date_ymd] => 2025-03-07 01:42:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:42:05' and `end` < '2025-03-07 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-03-07 01:42:17] Production.INFO: count ==524 [2025-03-07 01:42:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:42:05 - End Time 2025-03-07 01:42:05 [2025-03-07 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624522', 'tblTempUsageDetail_20' ) start [2025-03-07 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624522', 'tblTempUsageDetail_20' ) end [2025-03-07 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624522', 'tblTempVendorCDR_20' ) start [2025-03-07 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624522', 'tblTempVendorCDR_20' ) end [2025-03-07 01:42:18] Production.INFO: ProcessCDR(1,14624522,1,1,2) [2025-03-07 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624522', 'tblTempUsageDetail_20' ) start [2025-03-07 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624522', 'tblTempUsageDetail_20' ) end [2025-03-07 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:42:21] Production.INFO: ==24834== Releasing lock... [2025-03-07 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:42:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:43:06 [end_date_ymd] => 2025-03-07 01:43:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:43:06' and `end` < '2025-03-07 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-03-07 01:43:18] Production.INFO: count ==519 [2025-03-07 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:43:06 - End Time 2025-03-07 01:43:06 [2025-03-07 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624527', 'tblTempUsageDetail_20' ) start [2025-03-07 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624527', 'tblTempUsageDetail_20' ) end [2025-03-07 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624527', 'tblTempVendorCDR_20' ) start [2025-03-07 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624527', 'tblTempVendorCDR_20' ) end [2025-03-07 01:43:18] Production.INFO: ProcessCDR(1,14624527,1,1,2) [2025-03-07 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624527', 'tblTempUsageDetail_20' ) start [2025-03-07 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624527', 'tblTempUsageDetail_20' ) end [2025-03-07 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:43:22] Production.INFO: ==24906== Releasing lock... [2025-03-07 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:43:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:44:05 [end_date_ymd] => 2025-03-07 01:44:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:44:05' and `end` < '2025-03-07 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-03-07 01:44:17] Production.INFO: count ==518 [2025-03-07 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:44:05 - End Time 2025-03-07 01:44:05 [2025-03-07 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624532', 'tblTempUsageDetail_20' ) start [2025-03-07 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624532', 'tblTempUsageDetail_20' ) end [2025-03-07 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624532', 'tblTempVendorCDR_20' ) start [2025-03-07 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624532', 'tblTempVendorCDR_20' ) end [2025-03-07 01:44:18] Production.INFO: ProcessCDR(1,14624532,1,1,2) [2025-03-07 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624532', 'tblTempUsageDetail_20' ) start [2025-03-07 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624532', 'tblTempUsageDetail_20' ) end [2025-03-07 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:44:21] Production.INFO: ==24976== Releasing lock... [2025-03-07 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:45:05 [end_date_ymd] => 2025-03-07 01:45:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:45:05' and `end` < '2025-03-07 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-03-07 01:45:17] Production.INFO: count ==518 [2025-03-07 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:45:05 - End Time 2025-03-07 01:45:05 [2025-03-07 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624537', 'tblTempUsageDetail_20' ) start [2025-03-07 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624537', 'tblTempUsageDetail_20' ) end [2025-03-07 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624537', 'tblTempVendorCDR_20' ) start [2025-03-07 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624537', 'tblTempVendorCDR_20' ) end [2025-03-07 01:45:18] Production.INFO: ProcessCDR(1,14624537,1,1,2) [2025-03-07 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624537', 'tblTempUsageDetail_20' ) start [2025-03-07 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624537', 'tblTempUsageDetail_20' ) end [2025-03-07 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:45:21] Production.INFO: ==25057== Releasing lock... [2025-03-07 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:46:06 [end_date_ymd] => 2025-03-07 01:46:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:46:06' and `end` < '2025-03-07 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-03-07 01:46:18] Production.INFO: count ==516 [2025-03-07 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:46:06 - End Time 2025-03-07 01:46:06 [2025-03-07 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624542', 'tblTempUsageDetail_20' ) start [2025-03-07 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624542', 'tblTempUsageDetail_20' ) end [2025-03-07 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624542', 'tblTempVendorCDR_20' ) start [2025-03-07 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624542', 'tblTempVendorCDR_20' ) end [2025-03-07 01:46:18] Production.INFO: ProcessCDR(1,14624542,1,1,2) [2025-03-07 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624542', 'tblTempUsageDetail_20' ) start [2025-03-07 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624542', 'tblTempUsageDetail_20' ) end [2025-03-07 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:46:22] Production.INFO: ==25127== Releasing lock... [2025-03-07 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:46:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:47:05 [end_date_ymd] => 2025-03-07 01:47:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:47:05' and `end` < '2025-03-07 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-03-07 01:47:17] Production.INFO: count ==516 [2025-03-07 01:47:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:47:05 - End Time 2025-03-07 01:47:05 [2025-03-07 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624547', 'tblTempUsageDetail_20' ) start [2025-03-07 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624547', 'tblTempUsageDetail_20' ) end [2025-03-07 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624547', 'tblTempVendorCDR_20' ) start [2025-03-07 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624547', 'tblTempVendorCDR_20' ) end [2025-03-07 01:47:17] Production.INFO: ProcessCDR(1,14624547,1,1,2) [2025-03-07 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624547', 'tblTempUsageDetail_20' ) start [2025-03-07 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624547', 'tblTempUsageDetail_20' ) end [2025-03-07 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:47:21] Production.INFO: ==25196== Releasing lock... [2025-03-07 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:47:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:48:06 [end_date_ymd] => 2025-03-07 01:48:06 [RateCDR] => 1 ) [2025-03-07 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:48:06' and `end` < '2025-03-07 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:48:18] Production.INFO: count ==516 [2025-03-07 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:48:06 - End Time 2025-03-07 01:48:06 [2025-03-07 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624552', 'tblTempUsageDetail_20' ) start [2025-03-07 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624552', 'tblTempUsageDetail_20' ) end [2025-03-07 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624552', 'tblTempVendorCDR_20' ) start [2025-03-07 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624552', 'tblTempVendorCDR_20' ) end [2025-03-07 01:48:18] Production.INFO: ProcessCDR(1,14624552,1,1,2) [2025-03-07 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624552', 'tblTempUsageDetail_20' ) start [2025-03-07 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624552', 'tblTempUsageDetail_20' ) end [2025-03-07 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:48:22] Production.INFO: ==25311== Releasing lock... [2025-03-07 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:48:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:49:05 [end_date_ymd] => 2025-03-07 01:49:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:49:05' and `end` < '2025-03-07 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-03-07 01:49:17] Production.INFO: count ==516 [2025-03-07 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:49:05 - End Time 2025-03-07 01:49:05 [2025-03-07 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624557', 'tblTempUsageDetail_20' ) start [2025-03-07 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624557', 'tblTempUsageDetail_20' ) end [2025-03-07 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624557', 'tblTempVendorCDR_20' ) start [2025-03-07 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624557', 'tblTempVendorCDR_20' ) end [2025-03-07 01:49:18] Production.INFO: ProcessCDR(1,14624557,1,1,2) [2025-03-07 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624557', 'tblTempUsageDetail_20' ) start [2025-03-07 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624557', 'tblTempUsageDetail_20' ) end [2025-03-07 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:49:21] Production.INFO: ==25381== Releasing lock... [2025-03-07 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:49:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:50:07 [end_date_ymd] => 2025-03-07 01:50:07 [RateCDR] => 1 ) [2025-03-07 01:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:50:07' and `end` < '2025-03-07 01:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:50:19] Production.INFO: count ==523 [2025-03-07 01:50:19] Production.ERROR: pbx CDR StartTime 2025-03-06 22:50:07 - End Time 2025-03-07 01:50:07 [2025-03-07 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624563', 'tblTempUsageDetail_20' ) start [2025-03-07 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624563', 'tblTempUsageDetail_20' ) end [2025-03-07 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624563', 'tblTempVendorCDR_20' ) start [2025-03-07 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624563', 'tblTempVendorCDR_20' ) end [2025-03-07 01:50:19] Production.INFO: ProcessCDR(1,14624563,1,1,2) [2025-03-07 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624563', 'tblTempUsageDetail_20' ) start [2025-03-07 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624563', 'tblTempUsageDetail_20' ) end [2025-03-07 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:50:23] Production.INFO: ==25456== Releasing lock... [2025-03-07 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:50:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:51:05 [end_date_ymd] => 2025-03-07 01:51:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:51:05' and `end` < '2025-03-07 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:51:18] Production.INFO: count ==522 [2025-03-07 01:51:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:51:05 - End Time 2025-03-07 01:51:05 [2025-03-07 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624568', 'tblTempUsageDetail_20' ) start [2025-03-07 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624568', 'tblTempUsageDetail_20' ) end [2025-03-07 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624568', 'tblTempVendorCDR_20' ) start [2025-03-07 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624568', 'tblTempVendorCDR_20' ) end [2025-03-07 01:51:18] Production.INFO: ProcessCDR(1,14624568,1,1,2) [2025-03-07 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624568', 'tblTempUsageDetail_20' ) start [2025-03-07 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624568', 'tblTempUsageDetail_20' ) end [2025-03-07 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:51:21] Production.INFO: ==25530== Releasing lock... [2025-03-07 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:51:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:52:06 [end_date_ymd] => 2025-03-07 01:52:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 22:52:06' and `end` < '2025-03-07 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-03-07 01:52:18] Production.INFO: count ==522 [2025-03-07 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:52:06 - End Time 2025-03-07 01:52:06 [2025-03-07 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624573', 'tblTempUsageDetail_20' ) start [2025-03-07 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624573', 'tblTempUsageDetail_20' ) end [2025-03-07 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624573', 'tblTempVendorCDR_20' ) start [2025-03-07 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624573', 'tblTempVendorCDR_20' ) end [2025-03-07 01:52:18] Production.INFO: ProcessCDR(1,14624573,1,1,2) [2025-03-07 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624573', 'tblTempUsageDetail_20' ) start [2025-03-07 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624573', 'tblTempUsageDetail_20' ) end [2025-03-07 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:52:22] Production.INFO: ==25601== Releasing lock... [2025-03-07 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:52:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:53:06 [end_date_ymd] => 2025-03-07 01:53:06 [RateCDR] => 1 ) [2025-03-07 01:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:53:06' and `end` < '2025-03-07 01:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:53:18] Production.INFO: count ==522 [2025-03-07 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:53:06 - End Time 2025-03-07 01:53:06 [2025-03-07 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624578', 'tblTempUsageDetail_20' ) start [2025-03-07 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624578', 'tblTempUsageDetail_20' ) end [2025-03-07 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624578', 'tblTempVendorCDR_20' ) start [2025-03-07 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624578', 'tblTempVendorCDR_20' ) end [2025-03-07 01:53:18] Production.INFO: ProcessCDR(1,14624578,1,1,2) [2025-03-07 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624578', 'tblTempUsageDetail_20' ) start [2025-03-07 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624578', 'tblTempUsageDetail_20' ) end [2025-03-07 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:53:22] Production.INFO: ==25680== Releasing lock... [2025-03-07 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:54:06 [end_date_ymd] => 2025-03-07 01:54:06 [RateCDR] => 1 ) [2025-03-07 01:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:54:06' and `end` < '2025-03-07 01:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:54:18] Production.INFO: count ==522 [2025-03-07 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:54:06 - End Time 2025-03-07 01:54:06 [2025-03-07 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624583', 'tblTempUsageDetail_20' ) start [2025-03-07 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624583', 'tblTempUsageDetail_20' ) end [2025-03-07 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624583', 'tblTempVendorCDR_20' ) start [2025-03-07 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624583', 'tblTempVendorCDR_20' ) end [2025-03-07 01:54:18] Production.INFO: ProcessCDR(1,14624583,1,1,2) [2025-03-07 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624583', 'tblTempUsageDetail_20' ) start [2025-03-07 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624583', 'tblTempUsageDetail_20' ) end [2025-03-07 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:54:22] Production.INFO: ==25754== Releasing lock... [2025-03-07 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:54:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:55:06 [end_date_ymd] => 2025-03-07 01:55:06 [RateCDR] => 1 ) [2025-03-07 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:55:06' and `end` < '2025-03-07 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:55:18] Production.INFO: count ==521 [2025-03-07 01:55:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:55:06 - End Time 2025-03-07 01:55:06 [2025-03-07 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624588', 'tblTempUsageDetail_20' ) start [2025-03-07 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624588', 'tblTempUsageDetail_20' ) end [2025-03-07 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624588', 'tblTempVendorCDR_20' ) start [2025-03-07 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624588', 'tblTempVendorCDR_20' ) end [2025-03-07 01:55:18] Production.INFO: ProcessCDR(1,14624588,1,1,2) [2025-03-07 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624588', 'tblTempUsageDetail_20' ) start [2025-03-07 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624588', 'tblTempUsageDetail_20' ) end [2025-03-07 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:55:22] Production.INFO: ==25824== Releasing lock... [2025-03-07 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:55:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:56:05 [end_date_ymd] => 2025-03-07 01:56:05 [RateCDR] => 1 ) [2025-03-07 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:56:05' and `end` < '2025-03-07 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:56:18] Production.INFO: count ==520 [2025-03-07 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:56:05 - End Time 2025-03-07 01:56:05 [2025-03-07 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624593', 'tblTempUsageDetail_20' ) start [2025-03-07 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624593', 'tblTempUsageDetail_20' ) end [2025-03-07 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624593', 'tblTempVendorCDR_20' ) start [2025-03-07 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624593', 'tblTempVendorCDR_20' ) end [2025-03-07 01:56:18] Production.INFO: ProcessCDR(1,14624593,1,1,2) [2025-03-07 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624593', 'tblTempUsageDetail_20' ) start [2025-03-07 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624593', 'tblTempUsageDetail_20' ) end [2025-03-07 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:56:21] Production.INFO: ==25898== Releasing lock... [2025-03-07 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:56:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-07 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:57:06 [end_date_ymd] => 2025-03-07 01:57:06 [RateCDR] => 1 ) [2025-03-07 01:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:57:06' and `end` < '2025-03-07 01:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:57:18] Production.INFO: count ==520 [2025-03-07 01:57:18] Production.ERROR: pbx CDR StartTime 2025-03-06 22:57:06 - End Time 2025-03-07 01:57:06 [2025-03-07 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624598', 'tblTempUsageDetail_20' ) start [2025-03-07 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624598', 'tblTempUsageDetail_20' ) end [2025-03-07 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624598', 'tblTempVendorCDR_20' ) start [2025-03-07 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624598', 'tblTempVendorCDR_20' ) end [2025-03-07 01:57:18] Production.INFO: ProcessCDR(1,14624598,1,1,2) [2025-03-07 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624598', 'tblTempUsageDetail_20' ) start [2025-03-07 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624598', 'tblTempUsageDetail_20' ) end [2025-03-07 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:57:21] Production.INFO: ==25969== Releasing lock... [2025-03-07 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:57:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-07 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:58:05 [end_date_ymd] => 2025-03-07 01:58:05 [RateCDR] => 1 ) [2025-03-07 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 22:58:05' and `end` < '2025-03-07 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 01:58:17] Production.INFO: count ==524 [2025-03-07 01:58:17] Production.ERROR: pbx CDR StartTime 2025-03-06 22:58:05 - End Time 2025-03-07 01:58:05 [2025-03-07 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624603', 'tblTempUsageDetail_20' ) start [2025-03-07 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624603', 'tblTempUsageDetail_20' ) end [2025-03-07 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624603', 'tblTempVendorCDR_20' ) start [2025-03-07 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624603', 'tblTempVendorCDR_20' ) end [2025-03-07 01:58:17] Production.INFO: ProcessCDR(1,14624603,1,1,2) [2025-03-07 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624603', 'tblTempUsageDetail_20' ) start [2025-03-07 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624603', 'tblTempUsageDetail_20' ) end [2025-03-07 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:58:21] Production.INFO: ==26039== Releasing lock... [2025-03-07 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:58:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 01:59:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 22:59:07 [end_date_ymd] => 2025-03-07 01:59:07 [RateCDR] => 1 ) [2025-03-07 01:59: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-03-06 22:59:07' and `end` < '2025-03-07 01:59: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-03-07 01:59:19] Production.INFO: count ==528 [2025-03-07 01:59:19] Production.ERROR: pbx CDR StartTime 2025-03-06 22:59:07 - End Time 2025-03-07 01:59:07 [2025-03-07 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624608', 'tblTempUsageDetail_20' ) start [2025-03-07 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624608', 'tblTempUsageDetail_20' ) end [2025-03-07 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624608', 'tblTempVendorCDR_20' ) start [2025-03-07 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624608', 'tblTempVendorCDR_20' ) end [2025-03-07 01:59:19] Production.INFO: ProcessCDR(1,14624608,1,1,2) [2025-03-07 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624608', 'tblTempUsageDetail_20' ) start [2025-03-07 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624608', 'tblTempUsageDetail_20' ) end [2025-03-07 01:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 01:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 01:59:23] Production.INFO: ==26110== Releasing lock... [2025-03-07 01:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 01:59:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:00:07 [end_date_ymd] => 2025-03-07 02:00:07 [RateCDR] => 1 ) [2025-03-07 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:00:07' and `end` < '2025-03-07 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:00:19] Production.INFO: count ==538 [2025-03-07 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-06 23:00:07 - End Time 2025-03-07 02:00:07 [2025-03-07 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624614', 'tblTempUsageDetail_20' ) start [2025-03-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624614', 'tblTempUsageDetail_20' ) end [2025-03-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624614', 'tblTempVendorCDR_20' ) start [2025-03-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624614', 'tblTempVendorCDR_20' ) end [2025-03-07 02:00:19] Production.INFO: ProcessCDR(1,14624614,1,1,2) [2025-03-07 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624614', 'tblTempUsageDetail_20' ) start [2025-03-07 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624614', 'tblTempUsageDetail_20' ) end [2025-03-07 02:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:00:25] Production.INFO: ==26185== Releasing lock... [2025-03-07 02:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:00:25] Production.INFO: 33 MB #Memory Used# [2025-03-07 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:01:06 [end_date_ymd] => 2025-03-07 02:01:06 [RateCDR] => 1 ) [2025-03-07 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:01:06' and `end` < '2025-03-07 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:01:18] Production.INFO: count ==544 [2025-03-07 02:01:19] Production.ERROR: pbx CDR StartTime 2025-03-06 23:01:06 - End Time 2025-03-07 02:01:06 [2025-03-07 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624619', 'tblTempUsageDetail_20' ) start [2025-03-07 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624619', 'tblTempUsageDetail_20' ) end [2025-03-07 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624619', 'tblTempVendorCDR_20' ) start [2025-03-07 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624619', 'tblTempVendorCDR_20' ) end [2025-03-07 02:01:19] Production.INFO: ProcessCDR(1,14624619,1,1,2) [2025-03-07 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624619', 'tblTempUsageDetail_20' ) start [2025-03-07 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624619', 'tblTempUsageDetail_20' ) end [2025-03-07 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:01:22] Production.INFO: ==26361== Releasing lock... [2025-03-07 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:01:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:02:05 [end_date_ymd] => 2025-03-07 02:02:05 [RateCDR] => 1 ) [2025-03-07 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:02:05' and `end` < '2025-03-07 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:02:17] Production.INFO: count ==543 [2025-03-07 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:02:05 - End Time 2025-03-07 02:02:05 [2025-03-07 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624624', 'tblTempUsageDetail_20' ) start [2025-03-07 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624624', 'tblTempUsageDetail_20' ) end [2025-03-07 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624624', 'tblTempVendorCDR_20' ) start [2025-03-07 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624624', 'tblTempVendorCDR_20' ) end [2025-03-07 02:02:18] Production.INFO: ProcessCDR(1,14624624,1,1,2) [2025-03-07 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624624', 'tblTempUsageDetail_20' ) start [2025-03-07 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624624', 'tblTempUsageDetail_20' ) end [2025-03-07 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:02:21] Production.INFO: ==26431== Releasing lock... [2025-03-07 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:02:21] Production.INFO: 33 MB #Memory Used# [2025-03-07 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:03:06 [end_date_ymd] => 2025-03-07 02:03:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:03:06' and `end` < '2025-03-07 02:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:03:18] Production.INFO: count ==547 [2025-03-07 02:03:19] Production.ERROR: pbx CDR StartTime 2025-03-06 23:03:06 - End Time 2025-03-07 02:03:06 [2025-03-07 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624629', 'tblTempUsageDetail_20' ) start [2025-03-07 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624629', 'tblTempUsageDetail_20' ) end [2025-03-07 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624629', 'tblTempVendorCDR_20' ) start [2025-03-07 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624629', 'tblTempVendorCDR_20' ) end [2025-03-07 02:03:19] Production.INFO: ProcessCDR(1,14624629,1,1,2) [2025-03-07 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624629', 'tblTempUsageDetail_20' ) start [2025-03-07 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624629', 'tblTempUsageDetail_20' ) end [2025-03-07 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:03:22] Production.INFO: ==26541== Releasing lock... [2025-03-07 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:03:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:04:05 [end_date_ymd] => 2025-03-07 02:04:05 [RateCDR] => 1 ) [2025-03-07 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:04:05' and `end` < '2025-03-07 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:04:18] Production.INFO: count ==547 [2025-03-07 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:04:05 - End Time 2025-03-07 02:04:05 [2025-03-07 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624634', 'tblTempUsageDetail_20' ) start [2025-03-07 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624634', 'tblTempUsageDetail_20' ) end [2025-03-07 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624634', 'tblTempVendorCDR_20' ) start [2025-03-07 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624634', 'tblTempVendorCDR_20' ) end [2025-03-07 02:04:18] Production.INFO: ProcessCDR(1,14624634,1,1,2) [2025-03-07 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624634', 'tblTempUsageDetail_20' ) start [2025-03-07 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624634', 'tblTempUsageDetail_20' ) end [2025-03-07 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:04:21] Production.INFO: ==26618== Releasing lock... [2025-03-07 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:04:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:05:06 [end_date_ymd] => 2025-03-07 02:05:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:05:06' and `end` < '2025-03-07 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-03-07 02:05:18] Production.INFO: count ==551 [2025-03-07 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:05:06 - End Time 2025-03-07 02:05:06 [2025-03-07 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624639', 'tblTempUsageDetail_20' ) start [2025-03-07 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624639', 'tblTempUsageDetail_20' ) end [2025-03-07 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624639', 'tblTempVendorCDR_20' ) start [2025-03-07 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624639', 'tblTempVendorCDR_20' ) end [2025-03-07 02:05:18] Production.INFO: ProcessCDR(1,14624639,1,1,2) [2025-03-07 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624639', 'tblTempUsageDetail_20' ) start [2025-03-07 02:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624639', 'tblTempUsageDetail_20' ) end [2025-03-07 02:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:05:24] Production.INFO: ==26692== Releasing lock... [2025-03-07 02:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:05:24] Production.INFO: 33 MB #Memory Used# [2025-03-07 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:06:06 [end_date_ymd] => 2025-03-07 02:06:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:06:06' and `end` < '2025-03-07 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-03-07 02:06:18] Production.INFO: count ==551 [2025-03-07 02:06:19] Production.ERROR: pbx CDR StartTime 2025-03-06 23:06:06 - End Time 2025-03-07 02:06:06 [2025-03-07 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624644', 'tblTempUsageDetail_20' ) start [2025-03-07 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624644', 'tblTempUsageDetail_20' ) end [2025-03-07 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624644', 'tblTempVendorCDR_20' ) start [2025-03-07 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624644', 'tblTempVendorCDR_20' ) end [2025-03-07 02:06:19] Production.INFO: ProcessCDR(1,14624644,1,1,2) [2025-03-07 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624644', 'tblTempUsageDetail_20' ) start [2025-03-07 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624644', 'tblTempUsageDetail_20' ) end [2025-03-07 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:06:22] Production.INFO: ==26766== Releasing lock... [2025-03-07 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:06:22] Production.INFO: 33 MB #Memory Used# [2025-03-07 02:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:07:04 [end_date_ymd] => 2025-03-07 02:07:04 [RateCDR] => 1 ) [2025-03-07 02:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:07:04' and `end` < '2025-03-07 02:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:07:16] Production.INFO: count ==550 [2025-03-07 02:07:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:07:04 - End Time 2025-03-07 02:07:04 [2025-03-07 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624649', 'tblTempUsageDetail_20' ) start [2025-03-07 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624649', 'tblTempUsageDetail_20' ) end [2025-03-07 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624649', 'tblTempVendorCDR_20' ) start [2025-03-07 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624649', 'tblTempVendorCDR_20' ) end [2025-03-07 02:07:17] Production.INFO: ProcessCDR(1,14624649,1,1,2) [2025-03-07 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624649', 'tblTempUsageDetail_20' ) start [2025-03-07 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624649', 'tblTempUsageDetail_20' ) end [2025-03-07 02:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:07:20] Production.INFO: ==26839== Releasing lock... [2025-03-07 02:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:07:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-07 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:08:05 [end_date_ymd] => 2025-03-07 02:08:05 [RateCDR] => 1 ) [2025-03-07 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:08:05' and `end` < '2025-03-07 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:08:17] Production.INFO: count ==536 [2025-03-07 02:08:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:08:05 - End Time 2025-03-07 02:08:05 [2025-03-07 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624654', 'tblTempUsageDetail_20' ) start [2025-03-07 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624654', 'tblTempUsageDetail_20' ) end [2025-03-07 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624654', 'tblTempVendorCDR_20' ) start [2025-03-07 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624654', 'tblTempVendorCDR_20' ) end [2025-03-07 02:08:17] Production.INFO: ProcessCDR(1,14624654,1,1,2) [2025-03-07 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624654', 'tblTempUsageDetail_20' ) start [2025-03-07 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624654', 'tblTempUsageDetail_20' ) end [2025-03-07 02:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:08:20] Production.INFO: ==26913== Releasing lock... [2025-03-07 02:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:08:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:09:06 [end_date_ymd] => 2025-03-07 02:09:06 [RateCDR] => 1 ) [2025-03-07 02:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:09:06' and `end` < '2025-03-07 02:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:09:18] Production.INFO: count ==532 [2025-03-07 02:09:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:09:06 - End Time 2025-03-07 02:09:06 [2025-03-07 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624659', 'tblTempUsageDetail_20' ) start [2025-03-07 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624659', 'tblTempUsageDetail_20' ) end [2025-03-07 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624659', 'tblTempVendorCDR_20' ) start [2025-03-07 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624659', 'tblTempVendorCDR_20' ) end [2025-03-07 02:09:18] Production.INFO: ProcessCDR(1,14624659,1,1,2) [2025-03-07 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624659', 'tblTempUsageDetail_20' ) start [2025-03-07 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624659', 'tblTempUsageDetail_20' ) end [2025-03-07 02:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:09:23] Production.INFO: ==26983== Releasing lock... [2025-03-07 02:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:09:23] Production.INFO: 33 MB #Memory Used# [2025-03-07 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:10:06 [end_date_ymd] => 2025-03-07 02:10:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:10:06' and `end` < '2025-03-07 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-03-07 02:10:18] Production.INFO: count ==531 [2025-03-07 02:10:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:10:06 - End Time 2025-03-07 02:10:06 [2025-03-07 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624664', 'tblTempUsageDetail_20' ) start [2025-03-07 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624664', 'tblTempUsageDetail_20' ) end [2025-03-07 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624664', 'tblTempVendorCDR_20' ) start [2025-03-07 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624664', 'tblTempVendorCDR_20' ) end [2025-03-07 02:10:18] Production.INFO: ProcessCDR(1,14624664,1,1,2) [2025-03-07 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624664', 'tblTempUsageDetail_20' ) start [2025-03-07 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624664', 'tblTempUsageDetail_20' ) end [2025-03-07 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:10:22] Production.INFO: ==27057== Releasing lock... [2025-03-07 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:10:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:11:06 [end_date_ymd] => 2025-03-07 02:11:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:11:06' and `end` < '2025-03-07 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-03-07 02:11:18] Production.INFO: count ==531 [2025-03-07 02:11:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:11:06 - End Time 2025-03-07 02:11:06 [2025-03-07 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624670', 'tblTempUsageDetail_20' ) start [2025-03-07 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624670', 'tblTempUsageDetail_20' ) end [2025-03-07 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624670', 'tblTempVendorCDR_20' ) start [2025-03-07 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624670', 'tblTempVendorCDR_20' ) end [2025-03-07 02:11:18] Production.INFO: ProcessCDR(1,14624670,1,1,2) [2025-03-07 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624670', 'tblTempUsageDetail_20' ) start [2025-03-07 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624670', 'tblTempUsageDetail_20' ) end [2025-03-07 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:11:21] Production.INFO: ==27130== Releasing lock... [2025-03-07 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:11:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:12:05 [end_date_ymd] => 2025-03-07 02:12:05 [RateCDR] => 1 ) [2025-03-07 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:12:05' and `end` < '2025-03-07 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:12:17] Production.INFO: count ==531 [2025-03-07 02:12:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:12:05 - End Time 2025-03-07 02:12:05 [2025-03-07 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624675', 'tblTempUsageDetail_20' ) start [2025-03-07 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624675', 'tblTempUsageDetail_20' ) end [2025-03-07 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624675', 'tblTempVendorCDR_20' ) start [2025-03-07 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624675', 'tblTempVendorCDR_20' ) end [2025-03-07 02:12:17] Production.INFO: ProcessCDR(1,14624675,1,1,2) [2025-03-07 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624675', 'tblTempUsageDetail_20' ) start [2025-03-07 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624675', 'tblTempUsageDetail_20' ) end [2025-03-07 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:12:21] Production.INFO: ==27210== Releasing lock... [2025-03-07 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:12:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:13:05 [end_date_ymd] => 2025-03-07 02:13:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:13:05' and `end` < '2025-03-07 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-03-07 02:13:17] Production.INFO: count ==528 [2025-03-07 02:13:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:13:05 - End Time 2025-03-07 02:13:05 [2025-03-07 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624680', 'tblTempUsageDetail_20' ) start [2025-03-07 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624680', 'tblTempUsageDetail_20' ) end [2025-03-07 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624680', 'tblTempVendorCDR_20' ) start [2025-03-07 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624680', 'tblTempVendorCDR_20' ) end [2025-03-07 02:13:18] Production.INFO: ProcessCDR(1,14624680,1,1,2) [2025-03-07 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624680', 'tblTempUsageDetail_20' ) start [2025-03-07 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624680', 'tblTempUsageDetail_20' ) end [2025-03-07 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:13:21] Production.INFO: ==27280== Releasing lock... [2025-03-07 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:13:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:14:05 [end_date_ymd] => 2025-03-07 02:14:05 [RateCDR] => 1 ) [2025-03-07 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:14:05' and `end` < '2025-03-07 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:14:17] Production.INFO: count ==527 [2025-03-07 02:14:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:14:05 - End Time 2025-03-07 02:14:05 [2025-03-07 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624685', 'tblTempUsageDetail_20' ) start [2025-03-07 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624685', 'tblTempUsageDetail_20' ) end [2025-03-07 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624685', 'tblTempVendorCDR_20' ) start [2025-03-07 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624685', 'tblTempVendorCDR_20' ) end [2025-03-07 02:14:17] Production.INFO: ProcessCDR(1,14624685,1,1,2) [2025-03-07 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624685', 'tblTempUsageDetail_20' ) start [2025-03-07 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624685', 'tblTempUsageDetail_20' ) end [2025-03-07 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:14:21] Production.INFO: ==27350== Releasing lock... [2025-03-07 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:14:21] Production.INFO: 33 MB #Memory Used# [2025-03-07 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:15:05 [end_date_ymd] => 2025-03-07 02:15:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:15:05' and `end` < '2025-03-07 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-03-07 02:15:17] Production.INFO: count ==526 [2025-03-07 02:15:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:15:05 - End Time 2025-03-07 02:15:05 [2025-03-07 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624690', 'tblTempUsageDetail_20' ) start [2025-03-07 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624690', 'tblTempUsageDetail_20' ) end [2025-03-07 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624690', 'tblTempVendorCDR_20' ) start [2025-03-07 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624690', 'tblTempVendorCDR_20' ) end [2025-03-07 02:15:17] Production.INFO: ProcessCDR(1,14624690,1,1,2) [2025-03-07 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624690', 'tblTempUsageDetail_20' ) start [2025-03-07 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624690', 'tblTempUsageDetail_20' ) end [2025-03-07 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:15:21] Production.INFO: ==27422== Releasing lock... [2025-03-07 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:15:21] Production.INFO: 33 MB #Memory Used# [2025-03-07 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:16:05 [end_date_ymd] => 2025-03-07 02:16:05 [RateCDR] => 1 ) [2025-03-07 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:16:05' and `end` < '2025-03-07 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:16:17] Production.INFO: count ==526 [2025-03-07 02:16:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:16:05 - End Time 2025-03-07 02:16:05 [2025-03-07 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624695', 'tblTempUsageDetail_20' ) start [2025-03-07 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624695', 'tblTempUsageDetail_20' ) end [2025-03-07 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624695', 'tblTempVendorCDR_20' ) start [2025-03-07 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624695', 'tblTempVendorCDR_20' ) end [2025-03-07 02:16:17] Production.INFO: ProcessCDR(1,14624695,1,1,2) [2025-03-07 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624695', 'tblTempUsageDetail_20' ) start [2025-03-07 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624695', 'tblTempUsageDetail_20' ) end [2025-03-07 02:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:16:20] Production.INFO: ==27492== Releasing lock... [2025-03-07 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:16:20] Production.INFO: 33 MB #Memory Used# [2025-03-07 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:17:05 [end_date_ymd] => 2025-03-07 02:17:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:17:05' and `end` < '2025-03-07 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-03-07 02:17:17] Production.INFO: count ==526 [2025-03-07 02:17:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:17:05 - End Time 2025-03-07 02:17:05 [2025-03-07 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624700', 'tblTempUsageDetail_20' ) start [2025-03-07 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624700', 'tblTempUsageDetail_20' ) end [2025-03-07 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624700', 'tblTempVendorCDR_20' ) start [2025-03-07 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624700', 'tblTempVendorCDR_20' ) end [2025-03-07 02:17:17] Production.INFO: ProcessCDR(1,14624700,1,1,2) [2025-03-07 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624700', 'tblTempUsageDetail_20' ) start [2025-03-07 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624700', 'tblTempUsageDetail_20' ) end [2025-03-07 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:17:21] Production.INFO: ==27563== Releasing lock... [2025-03-07 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:17:21] Production.INFO: 33 MB #Memory Used# [2025-03-07 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:18:05 [end_date_ymd] => 2025-03-07 02:18:05 [RateCDR] => 1 ) [2025-03-07 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:18:05' and `end` < '2025-03-07 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:18:17] Production.INFO: count ==525 [2025-03-07 02:18:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:18:05 - End Time 2025-03-07 02:18:05 [2025-03-07 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624705', 'tblTempUsageDetail_20' ) start [2025-03-07 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624705', 'tblTempUsageDetail_20' ) end [2025-03-07 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624705', 'tblTempVendorCDR_20' ) start [2025-03-07 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624705', 'tblTempVendorCDR_20' ) end [2025-03-07 02:18:17] Production.INFO: ProcessCDR(1,14624705,1,1,2) [2025-03-07 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624705', 'tblTempUsageDetail_20' ) start [2025-03-07 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624705', 'tblTempUsageDetail_20' ) end [2025-03-07 02:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:18:20] Production.INFO: ==27633== Releasing lock... [2025-03-07 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:18:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:19:05 [end_date_ymd] => 2025-03-07 02:19:05 [RateCDR] => 1 ) [2025-03-07 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:19:05' and `end` < '2025-03-07 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:19:17] Production.INFO: count ==524 [2025-03-07 02:19:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:19:05 - End Time 2025-03-07 02:19:05 [2025-03-07 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624710', 'tblTempUsageDetail_20' ) start [2025-03-07 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624710', 'tblTempUsageDetail_20' ) end [2025-03-07 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624710', 'tblTempVendorCDR_20' ) start [2025-03-07 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624710', 'tblTempVendorCDR_20' ) end [2025-03-07 02:19:17] Production.INFO: ProcessCDR(1,14624710,1,1,2) [2025-03-07 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624710', 'tblTempUsageDetail_20' ) start [2025-03-07 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624710', 'tblTempUsageDetail_20' ) end [2025-03-07 02:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:19:20] Production.INFO: ==27742== Releasing lock... [2025-03-07 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:19:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:20:06 [end_date_ymd] => 2025-03-07 02:20:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:20:06' and `end` < '2025-03-07 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-03-07 02:20:18] Production.INFO: count ==527 [2025-03-07 02:20:19] Production.ERROR: pbx CDR StartTime 2025-03-06 23:20:06 - End Time 2025-03-07 02:20:06 [2025-03-07 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624716', 'tblTempUsageDetail_20' ) start [2025-03-07 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624716', 'tblTempUsageDetail_20' ) end [2025-03-07 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624716', 'tblTempVendorCDR_20' ) start [2025-03-07 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624716', 'tblTempVendorCDR_20' ) end [2025-03-07 02:20:19] Production.INFO: ProcessCDR(1,14624716,1,1,2) [2025-03-07 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624716', 'tblTempUsageDetail_20' ) start [2025-03-07 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624716', 'tblTempUsageDetail_20' ) end [2025-03-07 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:20:22] Production.INFO: ==27816== Releasing lock... [2025-03-07 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:20:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:21:05 [end_date_ymd] => 2025-03-07 02:21:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:21:05' and `end` < '2025-03-07 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-03-07 02:21:17] Production.INFO: count ==527 [2025-03-07 02:21:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:21:05 - End Time 2025-03-07 02:21:05 [2025-03-07 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624721', 'tblTempUsageDetail_20' ) start [2025-03-07 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624721', 'tblTempUsageDetail_20' ) end [2025-03-07 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624721', 'tblTempVendorCDR_20' ) start [2025-03-07 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624721', 'tblTempVendorCDR_20' ) end [2025-03-07 02:21:17] Production.INFO: ProcessCDR(1,14624721,1,1,2) [2025-03-07 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624721', 'tblTempUsageDetail_20' ) start [2025-03-07 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624721', 'tblTempUsageDetail_20' ) end [2025-03-07 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:21:20] Production.INFO: ==27892== Releasing lock... [2025-03-07 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:21:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:22:06 [end_date_ymd] => 2025-03-07 02:22:06 [RateCDR] => 1 ) [2025-03-07 02:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:22:06' and `end` < '2025-03-07 02:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:22:18] Production.INFO: count ==528 [2025-03-07 02:22:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:22:06 - End Time 2025-03-07 02:22:06 [2025-03-07 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624726', 'tblTempUsageDetail_20' ) start [2025-03-07 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624726', 'tblTempUsageDetail_20' ) end [2025-03-07 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624726', 'tblTempVendorCDR_20' ) start [2025-03-07 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624726', 'tblTempVendorCDR_20' ) end [2025-03-07 02:22:18] Production.INFO: ProcessCDR(1,14624726,1,1,2) [2025-03-07 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624726', 'tblTempUsageDetail_20' ) start [2025-03-07 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624726', 'tblTempUsageDetail_20' ) end [2025-03-07 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:22:22] Production.INFO: ==27969== Releasing lock... [2025-03-07 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:22:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:23:05 [end_date_ymd] => 2025-03-07 02:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:23:05' and `end` < '2025-03-07 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-03-07 02:23:17] Production.INFO: count ==526 [2025-03-07 02:23:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:23:05 - End Time 2025-03-07 02:23:05 [2025-03-07 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624731', 'tblTempUsageDetail_20' ) start [2025-03-07 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624731', 'tblTempUsageDetail_20' ) end [2025-03-07 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624731', 'tblTempVendorCDR_20' ) start [2025-03-07 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624731', 'tblTempVendorCDR_20' ) end [2025-03-07 02:23:17] Production.INFO: ProcessCDR(1,14624731,1,1,2) [2025-03-07 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624731', 'tblTempUsageDetail_20' ) start [2025-03-07 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624731', 'tblTempUsageDetail_20' ) end [2025-03-07 02:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:23:20] Production.INFO: ==28040== Releasing lock... [2025-03-07 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:23:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:24:06 [end_date_ymd] => 2025-03-07 02:24:06 [RateCDR] => 1 ) [2025-03-07 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:24:06' and `end` < '2025-03-07 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:24:18] Production.INFO: count ==526 [2025-03-07 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:24:06 - End Time 2025-03-07 02:24:06 [2025-03-07 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624736', 'tblTempUsageDetail_20' ) start [2025-03-07 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624736', 'tblTempUsageDetail_20' ) end [2025-03-07 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624736', 'tblTempVendorCDR_20' ) start [2025-03-07 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624736', 'tblTempVendorCDR_20' ) end [2025-03-07 02:24:18] Production.INFO: ProcessCDR(1,14624736,1,1,2) [2025-03-07 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624736', 'tblTempUsageDetail_20' ) start [2025-03-07 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624736', 'tblTempUsageDetail_20' ) end [2025-03-07 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:24:22] Production.INFO: ==28111== Releasing lock... [2025-03-07 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:24:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:25:05 [end_date_ymd] => 2025-03-07 02:25:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:25:05' and `end` < '2025-03-07 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-03-07 02:25:17] Production.INFO: count ==526 [2025-03-07 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:25:05 - End Time 2025-03-07 02:25:05 [2025-03-07 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624741', 'tblTempUsageDetail_20' ) start [2025-03-07 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624741', 'tblTempUsageDetail_20' ) end [2025-03-07 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624741', 'tblTempVendorCDR_20' ) start [2025-03-07 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624741', 'tblTempVendorCDR_20' ) end [2025-03-07 02:25:17] Production.INFO: ProcessCDR(1,14624741,1,1,2) [2025-03-07 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624741', 'tblTempUsageDetail_20' ) start [2025-03-07 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624741', 'tblTempUsageDetail_20' ) end [2025-03-07 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:25:20] Production.INFO: ==28184== Releasing lock... [2025-03-07 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:25:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:26:05 [end_date_ymd] => 2025-03-07 02:26:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:26:05' and `end` < '2025-03-07 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-03-07 02:26:17] Production.INFO: count ==525 [2025-03-07 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:26:05 - End Time 2025-03-07 02:26:05 [2025-03-07 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624746', 'tblTempUsageDetail_20' ) start [2025-03-07 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624746', 'tblTempUsageDetail_20' ) end [2025-03-07 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624746', 'tblTempVendorCDR_20' ) start [2025-03-07 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624746', 'tblTempVendorCDR_20' ) end [2025-03-07 02:26:18] Production.INFO: ProcessCDR(1,14624746,1,1,2) [2025-03-07 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624746', 'tblTempUsageDetail_20' ) start [2025-03-07 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624746', 'tblTempUsageDetail_20' ) end [2025-03-07 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:26:21] Production.INFO: ==28255== Releasing lock... [2025-03-07 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:26:21] Production.INFO: 33 MB #Memory Used# [2025-03-07 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:27:05 [end_date_ymd] => 2025-03-07 02:27:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:27:05' and `end` < '2025-03-07 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-03-07 02:27:17] Production.INFO: count ==520 [2025-03-07 02:27:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:27:05 - End Time 2025-03-07 02:27:05 [2025-03-07 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624751', 'tblTempUsageDetail_20' ) start [2025-03-07 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624751', 'tblTempUsageDetail_20' ) end [2025-03-07 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624751', 'tblTempVendorCDR_20' ) start [2025-03-07 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624751', 'tblTempVendorCDR_20' ) end [2025-03-07 02:27:17] Production.INFO: ProcessCDR(1,14624751,1,1,2) [2025-03-07 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624751', 'tblTempUsageDetail_20' ) start [2025-03-07 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624751', 'tblTempUsageDetail_20' ) end [2025-03-07 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:27:22] Production.INFO: ==28328== Releasing lock... [2025-03-07 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:27:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:28:06 [end_date_ymd] => 2025-03-07 02:28:06 [RateCDR] => 1 ) [2025-03-07 02:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:28:06' and `end` < '2025-03-07 02:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:28:18] Production.INFO: count ==520 [2025-03-07 02:28:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:28:06 - End Time 2025-03-07 02:28:06 [2025-03-07 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624756', 'tblTempUsageDetail_20' ) start [2025-03-07 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624756', 'tblTempUsageDetail_20' ) end [2025-03-07 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624756', 'tblTempVendorCDR_20' ) start [2025-03-07 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624756', 'tblTempVendorCDR_20' ) end [2025-03-07 02:28:18] Production.INFO: ProcessCDR(1,14624756,1,1,2) [2025-03-07 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624756', 'tblTempUsageDetail_20' ) start [2025-03-07 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624756', 'tblTempUsageDetail_20' ) end [2025-03-07 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:28:22] Production.INFO: ==28410== Releasing lock... [2025-03-07 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:28:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:29:05 [end_date_ymd] => 2025-03-07 02:29:05 [RateCDR] => 1 ) [2025-03-07 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:29:05' and `end` < '2025-03-07 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:29:17] Production.INFO: count ==516 [2025-03-07 02:29:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:29:05 - End Time 2025-03-07 02:29:05 [2025-03-07 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624761', 'tblTempUsageDetail_20' ) start [2025-03-07 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624761', 'tblTempUsageDetail_20' ) end [2025-03-07 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624761', 'tblTempVendorCDR_20' ) start [2025-03-07 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624761', 'tblTempVendorCDR_20' ) end [2025-03-07 02:29:17] Production.INFO: ProcessCDR(1,14624761,1,1,2) [2025-03-07 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624761', 'tblTempUsageDetail_20' ) start [2025-03-07 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624761', 'tblTempUsageDetail_20' ) end [2025-03-07 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:29:20] Production.INFO: ==28486== Releasing lock... [2025-03-07 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:29:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:30:06 [end_date_ymd] => 2025-03-07 02:30:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:30:06' and `end` < '2025-03-07 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-03-07 02:30:18] Production.INFO: count ==524 [2025-03-07 02:30:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:30:06 - End Time 2025-03-07 02:30:06 [2025-03-07 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624767', 'tblTempUsageDetail_20' ) start [2025-03-07 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624767', 'tblTempUsageDetail_20' ) end [2025-03-07 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624767', 'tblTempVendorCDR_20' ) start [2025-03-07 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624767', 'tblTempVendorCDR_20' ) end [2025-03-07 02:30:18] Production.INFO: ProcessCDR(1,14624767,1,1,2) [2025-03-07 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624767', 'tblTempUsageDetail_20' ) start [2025-03-07 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624767', 'tblTempUsageDetail_20' ) end [2025-03-07 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:30:21] Production.INFO: ==28565== Releasing lock... [2025-03-07 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:30:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:31:05 [end_date_ymd] => 2025-03-07 02:31:05 [RateCDR] => 1 ) [2025-03-07 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:31:05' and `end` < '2025-03-07 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:31:17] Production.INFO: count ==532 [2025-03-07 02:31:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:31:05 - End Time 2025-03-07 02:31:05 [2025-03-07 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624772', 'tblTempUsageDetail_20' ) start [2025-03-07 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624772', 'tblTempUsageDetail_20' ) end [2025-03-07 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624772', 'tblTempVendorCDR_20' ) start [2025-03-07 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624772', 'tblTempVendorCDR_20' ) end [2025-03-07 02:31:17] Production.INFO: ProcessCDR(1,14624772,1,1,2) [2025-03-07 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624772', 'tblTempUsageDetail_20' ) start [2025-03-07 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624772', 'tblTempUsageDetail_20' ) end [2025-03-07 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:31:20] Production.INFO: ==28649== Releasing lock... [2025-03-07 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:31:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:32:06 [end_date_ymd] => 2025-03-07 02:32:06 [RateCDR] => 1 ) [2025-03-07 02:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:32:06' and `end` < '2025-03-07 02:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:32:18] Production.INFO: count ==532 [2025-03-07 02:32:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:32:06 - End Time 2025-03-07 02:32:06 [2025-03-07 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624777', 'tblTempUsageDetail_20' ) start [2025-03-07 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624777', 'tblTempUsageDetail_20' ) end [2025-03-07 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624777', 'tblTempVendorCDR_20' ) start [2025-03-07 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624777', 'tblTempVendorCDR_20' ) end [2025-03-07 02:32:18] Production.INFO: ProcessCDR(1,14624777,1,1,2) [2025-03-07 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624777', 'tblTempUsageDetail_20' ) start [2025-03-07 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624777', 'tblTempUsageDetail_20' ) end [2025-03-07 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:32:21] Production.INFO: ==28724== Releasing lock... [2025-03-07 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:32:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:33:06 [end_date_ymd] => 2025-03-07 02:33:06 [RateCDR] => 1 ) [2025-03-07 02:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:33:06' and `end` < '2025-03-07 02:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:33:17] Production.INFO: count ==532 [2025-03-07 02:33:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:33:06 - End Time 2025-03-07 02:33:06 [2025-03-07 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624782', 'tblTempUsageDetail_20' ) start [2025-03-07 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624782', 'tblTempUsageDetail_20' ) end [2025-03-07 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624782', 'tblTempVendorCDR_20' ) start [2025-03-07 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624782', 'tblTempVendorCDR_20' ) end [2025-03-07 02:33:18] Production.INFO: ProcessCDR(1,14624782,1,1,2) [2025-03-07 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624782', 'tblTempUsageDetail_20' ) start [2025-03-07 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624782', 'tblTempUsageDetail_20' ) end [2025-03-07 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:33:21] Production.INFO: ==28807== Releasing lock... [2025-03-07 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:33:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:34:06 [end_date_ymd] => 2025-03-07 02:34:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:34:06' and `end` < '2025-03-07 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-03-07 02:34:18] Production.INFO: count ==528 [2025-03-07 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:34:06 - End Time 2025-03-07 02:34:06 [2025-03-07 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624787', 'tblTempUsageDetail_20' ) start [2025-03-07 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624787', 'tblTempUsageDetail_20' ) end [2025-03-07 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624787', 'tblTempVendorCDR_20' ) start [2025-03-07 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624787', 'tblTempVendorCDR_20' ) end [2025-03-07 02:34:18] Production.INFO: ProcessCDR(1,14624787,1,1,2) [2025-03-07 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624787', 'tblTempUsageDetail_20' ) start [2025-03-07 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624787', 'tblTempUsageDetail_20' ) end [2025-03-07 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:34:22] Production.INFO: ==28947== Releasing lock... [2025-03-07 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:35:05 [end_date_ymd] => 2025-03-07 02:35:05 [RateCDR] => 1 ) [2025-03-07 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:35:05' and `end` < '2025-03-07 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:35:17] Production.INFO: count ==531 [2025-03-07 02:35:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:35:05 - End Time 2025-03-07 02:35:05 [2025-03-07 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624792', 'tblTempUsageDetail_20' ) start [2025-03-07 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624792', 'tblTempUsageDetail_20' ) end [2025-03-07 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624792', 'tblTempVendorCDR_20' ) start [2025-03-07 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624792', 'tblTempVendorCDR_20' ) end [2025-03-07 02:35:17] Production.INFO: ProcessCDR(1,14624792,1,1,2) [2025-03-07 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624792', 'tblTempUsageDetail_20' ) start [2025-03-07 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624792', 'tblTempUsageDetail_20' ) end [2025-03-07 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:35:21] Production.INFO: ==29045== Releasing lock... [2025-03-07 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:35:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:36:05 [end_date_ymd] => 2025-03-07 02:36:05 [RateCDR] => 1 ) [2025-03-07 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:36:05' and `end` < '2025-03-07 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:36:17] Production.INFO: count ==532 [2025-03-07 02:36:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:36:05 - End Time 2025-03-07 02:36:05 [2025-03-07 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624797', 'tblTempUsageDetail_20' ) start [2025-03-07 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624797', 'tblTempUsageDetail_20' ) end [2025-03-07 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624797', 'tblTempVendorCDR_20' ) start [2025-03-07 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624797', 'tblTempVendorCDR_20' ) end [2025-03-07 02:36:17] Production.INFO: ProcessCDR(1,14624797,1,1,2) [2025-03-07 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624797', 'tblTempUsageDetail_20' ) start [2025-03-07 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624797', 'tblTempUsageDetail_20' ) end [2025-03-07 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:36:22] Production.INFO: ==29153== Releasing lock... [2025-03-07 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:36:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:37:05 [end_date_ymd] => 2025-03-07 02:37:05 [RateCDR] => 1 ) [2025-03-07 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:37:05' and `end` < '2025-03-07 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:37:17] Production.INFO: count ==532 [2025-03-07 02:37:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:37:05 - End Time 2025-03-07 02:37:05 [2025-03-07 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624802', 'tblTempUsageDetail_20' ) start [2025-03-07 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624802', 'tblTempUsageDetail_20' ) end [2025-03-07 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624802', 'tblTempVendorCDR_20' ) start [2025-03-07 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624802', 'tblTempVendorCDR_20' ) end [2025-03-07 02:37:17] Production.INFO: ProcessCDR(1,14624802,1,1,2) [2025-03-07 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624802', 'tblTempUsageDetail_20' ) start [2025-03-07 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624802', 'tblTempUsageDetail_20' ) end [2025-03-07 02:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:37:20] Production.INFO: ==29256== Releasing lock... [2025-03-07 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:37:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:38:06 [end_date_ymd] => 2025-03-07 02:38:06 [RateCDR] => 1 ) [2025-03-07 02: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-03-06 23:38:06' and `end` < '2025-03-07 02: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-03-07 02:38:18] Production.INFO: count ==531 [2025-03-07 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:38:06 - End Time 2025-03-07 02:38:06 [2025-03-07 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624807', 'tblTempUsageDetail_20' ) start [2025-03-07 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624807', 'tblTempUsageDetail_20' ) end [2025-03-07 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624807', 'tblTempVendorCDR_20' ) start [2025-03-07 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624807', 'tblTempVendorCDR_20' ) end [2025-03-07 02:38:18] Production.INFO: ProcessCDR(1,14624807,1,1,2) [2025-03-07 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624807', 'tblTempUsageDetail_20' ) start [2025-03-07 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624807', 'tblTempUsageDetail_20' ) end [2025-03-07 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:38:21] Production.INFO: ==29358== Releasing lock... [2025-03-07 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:38:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:39:05 [end_date_ymd] => 2025-03-07 02:39:05 [RateCDR] => 1 ) [2025-03-07 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:39:05' and `end` < '2025-03-07 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:39:17] Production.INFO: count ==530 [2025-03-07 02:39:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:39:05 - End Time 2025-03-07 02:39:05 [2025-03-07 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624812', 'tblTempUsageDetail_20' ) start [2025-03-07 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624812', 'tblTempUsageDetail_20' ) end [2025-03-07 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624812', 'tblTempVendorCDR_20' ) start [2025-03-07 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624812', 'tblTempVendorCDR_20' ) end [2025-03-07 02:39:17] Production.INFO: ProcessCDR(1,14624812,1,1,2) [2025-03-07 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624812', 'tblTempUsageDetail_20' ) start [2025-03-07 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624812', 'tblTempUsageDetail_20' ) end [2025-03-07 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:39:21] Production.INFO: ==29457== Releasing lock... [2025-03-07 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:39:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:40:06 [end_date_ymd] => 2025-03-07 02:40:06 [RateCDR] => 1 ) [2025-03-07 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:40:06' and `end` < '2025-03-07 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:40:18] Production.INFO: count ==537 [2025-03-07 02:40:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:40:06 - End Time 2025-03-07 02:40:06 [2025-03-07 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624817', 'tblTempUsageDetail_20' ) start [2025-03-07 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624817', 'tblTempUsageDetail_20' ) end [2025-03-07 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624817', 'tblTempVendorCDR_20' ) start [2025-03-07 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624817', 'tblTempVendorCDR_20' ) end [2025-03-07 02:40:18] Production.INFO: ProcessCDR(1,14624817,1,1,2) [2025-03-07 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624817', 'tblTempUsageDetail_20' ) start [2025-03-07 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624817', 'tblTempUsageDetail_20' ) end [2025-03-07 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:40:22] Production.INFO: ==29561== Releasing lock... [2025-03-07 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:41:05 [end_date_ymd] => 2025-03-07 02:41:05 [RateCDR] => 1 ) [2025-03-07 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:41:05' and `end` < '2025-03-07 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:41:17] Production.INFO: count ==543 [2025-03-07 02:41:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:41:05 - End Time 2025-03-07 02:41:05 [2025-03-07 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624823', 'tblTempUsageDetail_20' ) start [2025-03-07 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624823', 'tblTempUsageDetail_20' ) end [2025-03-07 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624823', 'tblTempVendorCDR_20' ) start [2025-03-07 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624823', 'tblTempVendorCDR_20' ) end [2025-03-07 02:41:17] Production.INFO: ProcessCDR(1,14624823,1,1,2) [2025-03-07 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624823', 'tblTempUsageDetail_20' ) start [2025-03-07 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624823', 'tblTempUsageDetail_20' ) end [2025-03-07 02:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:41:20] Production.INFO: ==29664== Releasing lock... [2025-03-07 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:41:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:42:06 [end_date_ymd] => 2025-03-07 02:42:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:42:06' and `end` < '2025-03-07 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-03-07 02:42:18] Production.INFO: count ==543 [2025-03-07 02:42:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:42:06 - End Time 2025-03-07 02:42:06 [2025-03-07 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624828', 'tblTempUsageDetail_20' ) start [2025-03-07 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624828', 'tblTempUsageDetail_20' ) end [2025-03-07 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624828', 'tblTempVendorCDR_20' ) start [2025-03-07 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624828', 'tblTempVendorCDR_20' ) end [2025-03-07 02:42:18] Production.INFO: ProcessCDR(1,14624828,1,1,2) [2025-03-07 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624828', 'tblTempUsageDetail_20' ) start [2025-03-07 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624828', 'tblTempUsageDetail_20' ) end [2025-03-07 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:42:21] Production.INFO: ==29751== Releasing lock... [2025-03-07 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:43:05 [end_date_ymd] => 2025-03-07 02:43:05 [RateCDR] => 1 ) [2025-03-07 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:43:05' and `end` < '2025-03-07 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:43:17] Production.INFO: count ==543 [2025-03-07 02:43:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:43:05 - End Time 2025-03-07 02:43:05 [2025-03-07 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624833', 'tblTempUsageDetail_20' ) start [2025-03-07 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624833', 'tblTempUsageDetail_20' ) end [2025-03-07 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624833', 'tblTempVendorCDR_20' ) start [2025-03-07 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624833', 'tblTempVendorCDR_20' ) end [2025-03-07 02:43:17] Production.INFO: ProcessCDR(1,14624833,1,1,2) [2025-03-07 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624833', 'tblTempUsageDetail_20' ) start [2025-03-07 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624833', 'tblTempUsageDetail_20' ) end [2025-03-07 02:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:43:20] Production.INFO: ==29829== Releasing lock... [2025-03-07 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:43:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:44:06 [end_date_ymd] => 2025-03-07 02:44:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:44:06' and `end` < '2025-03-07 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-03-07 02:44:18] Production.INFO: count ==543 [2025-03-07 02:44:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:44:06 - End Time 2025-03-07 02:44:06 [2025-03-07 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624838', 'tblTempUsageDetail_20' ) start [2025-03-07 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624838', 'tblTempUsageDetail_20' ) end [2025-03-07 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624838', 'tblTempVendorCDR_20' ) start [2025-03-07 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624838', 'tblTempVendorCDR_20' ) end [2025-03-07 02:44:18] Production.INFO: ProcessCDR(1,14624838,1,1,2) [2025-03-07 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624838', 'tblTempUsageDetail_20' ) start [2025-03-07 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624838', 'tblTempUsageDetail_20' ) end [2025-03-07 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:44:21] Production.INFO: ==29907== Releasing lock... [2025-03-07 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:44:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:45:05 [end_date_ymd] => 2025-03-07 02:45:05 [RateCDR] => 1 ) [2025-03-07 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:45:05' and `end` < '2025-03-07 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:45:17] Production.INFO: count ==543 [2025-03-07 02:45:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:45:05 - End Time 2025-03-07 02:45:05 [2025-03-07 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624843', 'tblTempUsageDetail_20' ) start [2025-03-07 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624843', 'tblTempUsageDetail_20' ) end [2025-03-07 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624843', 'tblTempVendorCDR_20' ) start [2025-03-07 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624843', 'tblTempVendorCDR_20' ) end [2025-03-07 02:45:17] Production.INFO: ProcessCDR(1,14624843,1,1,2) [2025-03-07 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624843', 'tblTempUsageDetail_20' ) start [2025-03-07 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624843', 'tblTempUsageDetail_20' ) end [2025-03-07 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:45:20] Production.INFO: ==30000== Releasing lock... [2025-03-07 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:45:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:46:05 [end_date_ymd] => 2025-03-07 02:46:05 [RateCDR] => 1 ) [2025-03-07 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:46:05' and `end` < '2025-03-07 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:46:17] Production.INFO: count ==538 [2025-03-07 02:46:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:46:05 - End Time 2025-03-07 02:46:05 [2025-03-07 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624848', 'tblTempUsageDetail_20' ) start [2025-03-07 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624848', 'tblTempUsageDetail_20' ) end [2025-03-07 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624848', 'tblTempVendorCDR_20' ) start [2025-03-07 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624848', 'tblTempVendorCDR_20' ) end [2025-03-07 02:46:17] Production.INFO: ProcessCDR(1,14624848,1,1,2) [2025-03-07 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624848', 'tblTempUsageDetail_20' ) start [2025-03-07 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624848', 'tblTempUsageDetail_20' ) end [2025-03-07 02:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:46:20] Production.INFO: ==30099== Releasing lock... [2025-03-07 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:46:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:47:05 [end_date_ymd] => 2025-03-07 02:47:05 [RateCDR] => 1 ) [2025-03-07 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:47:05' and `end` < '2025-03-07 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:47:17] Production.INFO: count ==535 [2025-03-07 02:47:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:47:05 - End Time 2025-03-07 02:47:05 [2025-03-07 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624853', 'tblTempUsageDetail_20' ) start [2025-03-07 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624853', 'tblTempUsageDetail_20' ) end [2025-03-07 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624853', 'tblTempVendorCDR_20' ) start [2025-03-07 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624853', 'tblTempVendorCDR_20' ) end [2025-03-07 02:47:17] Production.INFO: ProcessCDR(1,14624853,1,1,2) [2025-03-07 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624853', 'tblTempUsageDetail_20' ) start [2025-03-07 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624853', 'tblTempUsageDetail_20' ) end [2025-03-07 02:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:47:20] Production.INFO: ==30193== Releasing lock... [2025-03-07 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:47:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:48:05 [end_date_ymd] => 2025-03-07 02:48:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:48:05' and `end` < '2025-03-07 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-03-07 02:48:17] Production.INFO: count ==532 [2025-03-07 02:48:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:48:05 - End Time 2025-03-07 02:48:05 [2025-03-07 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624858', 'tblTempUsageDetail_20' ) start [2025-03-07 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624858', 'tblTempUsageDetail_20' ) end [2025-03-07 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624858', 'tblTempVendorCDR_20' ) start [2025-03-07 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624858', 'tblTempVendorCDR_20' ) end [2025-03-07 02:48:17] Production.INFO: ProcessCDR(1,14624858,1,1,2) [2025-03-07 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624858', 'tblTempUsageDetail_20' ) start [2025-03-07 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624858', 'tblTempUsageDetail_20' ) end [2025-03-07 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:48:21] Production.INFO: ==30264== Releasing lock... [2025-03-07 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:48:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:49:06 [end_date_ymd] => 2025-03-07 02:49:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:49:06' and `end` < '2025-03-07 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-03-07 02:49:18] Production.INFO: count ==527 [2025-03-07 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:49:06 - End Time 2025-03-07 02:49:06 [2025-03-07 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624863', 'tblTempUsageDetail_20' ) start [2025-03-07 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624863', 'tblTempUsageDetail_20' ) end [2025-03-07 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624863', 'tblTempVendorCDR_20' ) start [2025-03-07 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624863', 'tblTempVendorCDR_20' ) end [2025-03-07 02:49:18] Production.INFO: ProcessCDR(1,14624863,1,1,2) [2025-03-07 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624863', 'tblTempUsageDetail_20' ) start [2025-03-07 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624863', 'tblTempUsageDetail_20' ) end [2025-03-07 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:49:21] Production.INFO: ==30376== Releasing lock... [2025-03-07 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:50:06 [end_date_ymd] => 2025-03-07 02:50:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:50:06' and `end` < '2025-03-07 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-03-07 02:50:18] Production.INFO: count ==529 [2025-03-07 02:50:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:50:06 - End Time 2025-03-07 02:50:06 [2025-03-07 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624869', 'tblTempUsageDetail_20' ) start [2025-03-07 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624869', 'tblTempUsageDetail_20' ) end [2025-03-07 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624869', 'tblTempVendorCDR_20' ) start [2025-03-07 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624869', 'tblTempVendorCDR_20' ) end [2025-03-07 02:50:18] Production.INFO: ProcessCDR(1,14624869,1,1,2) [2025-03-07 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624869', 'tblTempUsageDetail_20' ) start [2025-03-07 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624869', 'tblTempUsageDetail_20' ) end [2025-03-07 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:50:21] Production.INFO: ==30482== Releasing lock... [2025-03-07 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:50:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:51:06 [end_date_ymd] => 2025-03-07 02:51:06 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:51:06' and `end` < '2025-03-07 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-03-07 02:51:18] Production.INFO: count ==529 [2025-03-07 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:51:06 - End Time 2025-03-07 02:51:06 [2025-03-07 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624874', 'tblTempUsageDetail_20' ) start [2025-03-07 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624874', 'tblTempUsageDetail_20' ) end [2025-03-07 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624874', 'tblTempVendorCDR_20' ) start [2025-03-07 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624874', 'tblTempVendorCDR_20' ) end [2025-03-07 02:51:18] Production.INFO: ProcessCDR(1,14624874,1,1,2) [2025-03-07 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624874', 'tblTempUsageDetail_20' ) start [2025-03-07 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624874', 'tblTempUsageDetail_20' ) end [2025-03-07 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:51:21] Production.INFO: ==30666== Releasing lock... [2025-03-07 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:51:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:52:05 [end_date_ymd] => 2025-03-07 02:52:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:52:05' and `end` < '2025-03-07 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-03-07 02:52:17] Production.INFO: count ==529 [2025-03-07 02:52:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:52:05 - End Time 2025-03-07 02:52:05 [2025-03-07 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624879', 'tblTempUsageDetail_20' ) start [2025-03-07 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624879', 'tblTempUsageDetail_20' ) end [2025-03-07 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624879', 'tblTempVendorCDR_20' ) start [2025-03-07 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624879', 'tblTempVendorCDR_20' ) end [2025-03-07 02:52:17] Production.INFO: ProcessCDR(1,14624879,1,1,2) [2025-03-07 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624879', 'tblTempUsageDetail_20' ) start [2025-03-07 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624879', 'tblTempUsageDetail_20' ) end [2025-03-07 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:52:21] Production.INFO: ==30737== Releasing lock... [2025-03-07 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:52:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:53:05 [end_date_ymd] => 2025-03-07 02:53:05 [RateCDR] => 1 ) [2025-03-07 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:53:05' and `end` < '2025-03-07 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-03-07 02:53:17] Production.INFO: count ==529 [2025-03-07 02:53:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:53:05 - End Time 2025-03-07 02:53:05 [2025-03-07 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624884', 'tblTempUsageDetail_20' ) start [2025-03-07 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624884', 'tblTempUsageDetail_20' ) end [2025-03-07 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624884', 'tblTempVendorCDR_20' ) start [2025-03-07 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624884', 'tblTempVendorCDR_20' ) end [2025-03-07 02:53:17] Production.INFO: ProcessCDR(1,14624884,1,1,2) [2025-03-07 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624884', 'tblTempUsageDetail_20' ) start [2025-03-07 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624884', 'tblTempUsageDetail_20' ) end [2025-03-07 02:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:53:21] Production.INFO: ==30808== Releasing lock... [2025-03-07 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:53:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:54:05 [end_date_ymd] => 2025-03-07 02:54:05 [RateCDR] => 1 ) [2025-03-07 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:54:05' and `end` < '2025-03-07 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:54:18] Production.INFO: count ==529 [2025-03-07 02:54:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:54:05 - End Time 2025-03-07 02:54:05 [2025-03-07 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624889', 'tblTempUsageDetail_20' ) start [2025-03-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624889', 'tblTempUsageDetail_20' ) end [2025-03-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624889', 'tblTempVendorCDR_20' ) start [2025-03-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624889', 'tblTempVendorCDR_20' ) end [2025-03-07 02:54:18] Production.INFO: ProcessCDR(1,14624889,1,1,2) [2025-03-07 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624889', 'tblTempUsageDetail_20' ) start [2025-03-07 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624889', 'tblTempUsageDetail_20' ) end [2025-03-07 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:54:21] Production.INFO: ==30881== Releasing lock... [2025-03-07 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:54:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:55:05 [end_date_ymd] => 2025-03-07 02:55:05 [RateCDR] => 1 ) [2025-03-07 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:55:05' and `end` < '2025-03-07 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:55:17] Production.INFO: count ==529 [2025-03-07 02:55:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:55:05 - End Time 2025-03-07 02:55:05 [2025-03-07 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624894', 'tblTempUsageDetail_20' ) start [2025-03-07 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624894', 'tblTempUsageDetail_20' ) end [2025-03-07 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624894', 'tblTempVendorCDR_20' ) start [2025-03-07 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624894', 'tblTempVendorCDR_20' ) end [2025-03-07 02:55:17] Production.INFO: ProcessCDR(1,14624894,1,1,2) [2025-03-07 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624894', 'tblTempUsageDetail_20' ) start [2025-03-07 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624894', 'tblTempUsageDetail_20' ) end [2025-03-07 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:55:21] Production.INFO: ==30952== Releasing lock... [2025-03-07 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:55:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:56:05 [end_date_ymd] => 2025-03-07 02:56:05 [RateCDR] => 1 ) [2025-03-07 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:56:05' and `end` < '2025-03-07 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:56:17] Production.INFO: count ==529 [2025-03-07 02:56:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:56:05 - End Time 2025-03-07 02:56:05 [2025-03-07 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624899', 'tblTempUsageDetail_20' ) start [2025-03-07 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624899', 'tblTempUsageDetail_20' ) end [2025-03-07 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624899', 'tblTempVendorCDR_20' ) start [2025-03-07 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624899', 'tblTempVendorCDR_20' ) end [2025-03-07 02:56:17] Production.INFO: ProcessCDR(1,14624899,1,1,2) [2025-03-07 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624899', 'tblTempUsageDetail_20' ) start [2025-03-07 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624899', 'tblTempUsageDetail_20' ) end [2025-03-07 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:56:21] Production.INFO: ==31023== Releasing lock... [2025-03-07 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:56:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:57:05 [end_date_ymd] => 2025-03-07 02:57:05 [RateCDR] => 1 ) [2025-03-07 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:57:05' and `end` < '2025-03-07 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:57:17] Production.INFO: count ==527 [2025-03-07 02:57:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:57:05 - End Time 2025-03-07 02:57:05 [2025-03-07 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624904', 'tblTempUsageDetail_20' ) start [2025-03-07 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624904', 'tblTempUsageDetail_20' ) end [2025-03-07 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624904', 'tblTempVendorCDR_20' ) start [2025-03-07 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624904', 'tblTempVendorCDR_20' ) end [2025-03-07 02:57:17] Production.INFO: ProcessCDR(1,14624904,1,1,2) [2025-03-07 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624904', 'tblTempUsageDetail_20' ) start [2025-03-07 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624904', 'tblTempUsageDetail_20' ) end [2025-03-07 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:57:21] Production.INFO: ==31094== Releasing lock... [2025-03-07 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:57:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:58:05 [end_date_ymd] => 2025-03-07 02:58:05 [RateCDR] => 1 ) [2025-03-07 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-03-06 23:58:05' and `end` < '2025-03-07 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-03-07 02:58:17] Production.INFO: count ==527 [2025-03-07 02:58:17] Production.ERROR: pbx CDR StartTime 2025-03-06 23:58:05 - End Time 2025-03-07 02:58:05 [2025-03-07 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624909', 'tblTempUsageDetail_20' ) start [2025-03-07 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624909', 'tblTempUsageDetail_20' ) end [2025-03-07 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624909', 'tblTempVendorCDR_20' ) start [2025-03-07 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624909', 'tblTempVendorCDR_20' ) end [2025-03-07 02:58:17] Production.INFO: ProcessCDR(1,14624909,1,1,2) [2025-03-07 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624909', 'tblTempUsageDetail_20' ) start [2025-03-07 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624909', 'tblTempUsageDetail_20' ) end [2025-03-07 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:58:21] Production.INFO: ==31163== Releasing lock... [2025-03-07 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:58:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 23:59:05 [end_date_ymd] => 2025-03-07 02:59:05 [RateCDR] => 1 ) [2025-03-07 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 23:59:05' and `end` < '2025-03-07 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 02:59:17] Production.INFO: count ==527 [2025-03-07 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-06 23:59:05 - End Time 2025-03-07 02:59:05 [2025-03-07 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624914', 'tblTempUsageDetail_20' ) start [2025-03-07 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624914', 'tblTempUsageDetail_20' ) end [2025-03-07 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624914', 'tblTempVendorCDR_20' ) start [2025-03-07 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624914', 'tblTempVendorCDR_20' ) end [2025-03-07 02:59:18] Production.INFO: ProcessCDR(1,14624914,1,1,2) [2025-03-07 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624914', 'tblTempUsageDetail_20' ) start [2025-03-07 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624914', 'tblTempUsageDetail_20' ) end [2025-03-07 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 02:59:21] Production.INFO: ==31236== Releasing lock... [2025-03-07 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 02:59:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:00:06 [end_date_ymd] => 2025-03-07 03:00:06 [RateCDR] => 1 ) [2025-03-07 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:00:06' and `end` < '2025-03-07 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:00:18] Production.INFO: count ==537 [2025-03-07 03:00:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:00:06 - End Time 2025-03-07 03:00:06 [2025-03-07 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624920', 'tblTempUsageDetail_20' ) start [2025-03-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624920', 'tblTempUsageDetail_20' ) end [2025-03-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624920', 'tblTempVendorCDR_20' ) start [2025-03-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624920', 'tblTempVendorCDR_20' ) end [2025-03-07 03:00:18] Production.INFO: ProcessCDR(1,14624920,1,1,2) [2025-03-07 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624920', 'tblTempUsageDetail_20' ) start [2025-03-07 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624920', 'tblTempUsageDetail_20' ) end [2025-03-07 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:00:22] Production.INFO: ==31310== Releasing lock... [2025-03-07 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:00:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:01:06 [end_date_ymd] => 2025-03-07 03:01:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:01:06' and `end` < '2025-03-07 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-03-07 03:01:18] Production.INFO: count ==538 [2025-03-07 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:01:06 - End Time 2025-03-07 03:01:06 [2025-03-07 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624925', 'tblTempUsageDetail_20' ) start [2025-03-07 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624925', 'tblTempUsageDetail_20' ) end [2025-03-07 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624925', 'tblTempVendorCDR_20' ) start [2025-03-07 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624925', 'tblTempVendorCDR_20' ) end [2025-03-07 03:01:18] Production.INFO: ProcessCDR(1,14624925,1,1,2) [2025-03-07 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624925', 'tblTempUsageDetail_20' ) start [2025-03-07 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624925', 'tblTempUsageDetail_20' ) end [2025-03-07 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:01:21] Production.INFO: ==31397== Releasing lock... [2025-03-07 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:01:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:02:05 [end_date_ymd] => 2025-03-07 03:02:05 [RateCDR] => 1 ) [2025-03-07 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:02:05' and `end` < '2025-03-07 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:02:17] Production.INFO: count ==538 [2025-03-07 03:02:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:02:05 - End Time 2025-03-07 03:02:05 [2025-03-07 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624930', 'tblTempUsageDetail_20' ) start [2025-03-07 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624930', 'tblTempUsageDetail_20' ) end [2025-03-07 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624930', 'tblTempVendorCDR_20' ) start [2025-03-07 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624930', 'tblTempVendorCDR_20' ) end [2025-03-07 03:02:17] Production.INFO: ProcessCDR(1,14624930,1,1,2) [2025-03-07 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624930', 'tblTempUsageDetail_20' ) start [2025-03-07 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624930', 'tblTempUsageDetail_20' ) end [2025-03-07 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:02:21] Production.INFO: ==31546== Releasing lock... [2025-03-07 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:02:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:03:05 [end_date_ymd] => 2025-03-07 03:03:05 [RateCDR] => 1 ) [2025-03-07 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:03:05' and `end` < '2025-03-07 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:03:17] Production.INFO: count ==538 [2025-03-07 03:03:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:03:05 - End Time 2025-03-07 03:03:05 [2025-03-07 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624935', 'tblTempUsageDetail_20' ) start [2025-03-07 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624935', 'tblTempUsageDetail_20' ) end [2025-03-07 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624935', 'tblTempVendorCDR_20' ) start [2025-03-07 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624935', 'tblTempVendorCDR_20' ) end [2025-03-07 03:03:17] Production.INFO: ProcessCDR(1,14624935,1,1,2) [2025-03-07 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624935', 'tblTempUsageDetail_20' ) start [2025-03-07 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624935', 'tblTempUsageDetail_20' ) end [2025-03-07 03:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:03:20] Production.INFO: ==31615== Releasing lock... [2025-03-07 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:03:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:04:05 [end_date_ymd] => 2025-03-07 03:04:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:04:05' and `end` < '2025-03-07 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-03-07 03:04:17] Production.INFO: count ==537 [2025-03-07 03:04:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:04:05 - End Time 2025-03-07 03:04:05 [2025-03-07 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624940', 'tblTempUsageDetail_20' ) start [2025-03-07 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624940', 'tblTempUsageDetail_20' ) end [2025-03-07 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624940', 'tblTempVendorCDR_20' ) start [2025-03-07 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624940', 'tblTempVendorCDR_20' ) end [2025-03-07 03:04:17] Production.INFO: ProcessCDR(1,14624940,1,1,2) [2025-03-07 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624940', 'tblTempUsageDetail_20' ) start [2025-03-07 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624940', 'tblTempUsageDetail_20' ) end [2025-03-07 03:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:04:20] Production.INFO: ==31686== Releasing lock... [2025-03-07 03:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:04:20] Production.INFO: 32 MB #Memory Used# [2025-03-07 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:05:06 [end_date_ymd] => 2025-03-07 03:05:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:05:06' and `end` < '2025-03-07 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-03-07 03:05:18] Production.INFO: count ==537 [2025-03-07 03:05:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:05:06 - End Time 2025-03-07 03:05:06 [2025-03-07 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624945', 'tblTempUsageDetail_20' ) start [2025-03-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624945', 'tblTempUsageDetail_20' ) end [2025-03-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624945', 'tblTempVendorCDR_20' ) start [2025-03-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624945', 'tblTempVendorCDR_20' ) end [2025-03-07 03:05:18] Production.INFO: ProcessCDR(1,14624945,1,1,2) [2025-03-07 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624945', 'tblTempUsageDetail_20' ) start [2025-03-07 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624945', 'tblTempUsageDetail_20' ) end [2025-03-07 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:05:21] Production.INFO: ==31797== Releasing lock... [2025-03-07 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:05:21] Production.INFO: 32 MB #Memory Used# [2025-03-07 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:06:05 [end_date_ymd] => 2025-03-07 03:06:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:06:05' and `end` < '2025-03-07 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-03-07 03:06:17] Production.INFO: count ==537 [2025-03-07 03:06:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:06:05 - End Time 2025-03-07 03:06:05 [2025-03-07 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624950', 'tblTempUsageDetail_20' ) start [2025-03-07 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624950', 'tblTempUsageDetail_20' ) end [2025-03-07 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624950', 'tblTempVendorCDR_20' ) start [2025-03-07 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624950', 'tblTempVendorCDR_20' ) end [2025-03-07 03:06:17] Production.INFO: ProcessCDR(1,14624950,1,1,2) [2025-03-07 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624950', 'tblTempUsageDetail_20' ) start [2025-03-07 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624950', 'tblTempUsageDetail_20' ) end [2025-03-07 03:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:06:20] Production.INFO: ==31943== Releasing lock... [2025-03-07 03:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:06:20] Production.INFO: 32 MB #Memory Used# [2025-03-07 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:07:06 [end_date_ymd] => 2025-03-07 03:07:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:07:06' and `end` < '2025-03-07 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-03-07 03:07:18] Production.INFO: count ==495 [2025-03-07 03:07:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:07:06 - End Time 2025-03-07 03:07:06 [2025-03-07 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624955', 'tblTempUsageDetail_20' ) start [2025-03-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624955', 'tblTempUsageDetail_20' ) end [2025-03-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624955', 'tblTempVendorCDR_20' ) start [2025-03-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624955', 'tblTempVendorCDR_20' ) end [2025-03-07 03:07:18] Production.INFO: ProcessCDR(1,14624955,1,1,2) [2025-03-07 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624955', 'tblTempUsageDetail_20' ) start [2025-03-07 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624955', 'tblTempUsageDetail_20' ) end [2025-03-07 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:07:21] Production.INFO: ==32013== Releasing lock... [2025-03-07 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:07:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-07 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:08:05 [end_date_ymd] => 2025-03-07 03:08:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:08:05' and `end` < '2025-03-07 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-03-07 03:08:17] Production.INFO: count ==436 [2025-03-07 03:08:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:08:05 - End Time 2025-03-07 03:08:05 [2025-03-07 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624960', 'tblTempUsageDetail_20' ) start [2025-03-07 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624960', 'tblTempUsageDetail_20' ) end [2025-03-07 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624960', 'tblTempVendorCDR_20' ) start [2025-03-07 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624960', 'tblTempVendorCDR_20' ) end [2025-03-07 03:08:17] Production.INFO: ProcessCDR(1,14624960,1,1,2) [2025-03-07 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624960', 'tblTempUsageDetail_20' ) start [2025-03-07 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624960', 'tblTempUsageDetail_20' ) end [2025-03-07 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:08:20] Production.INFO: ==32085== Releasing lock... [2025-03-07 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:08:20] Production.INFO: 31 MB #Memory Used# [2025-03-07 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:09:05 [end_date_ymd] => 2025-03-07 03:09:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:09:05' and `end` < '2025-03-07 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-03-07 03:09:17] Production.INFO: count ==391 [2025-03-07 03:09:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:09:05 - End Time 2025-03-07 03:09:05 [2025-03-07 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624965', 'tblTempUsageDetail_20' ) start [2025-03-07 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624965', 'tblTempUsageDetail_20' ) end [2025-03-07 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624965', 'tblTempVendorCDR_20' ) start [2025-03-07 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624965', 'tblTempVendorCDR_20' ) end [2025-03-07 03:09:17] Production.INFO: ProcessCDR(1,14624965,1,1,2) [2025-03-07 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624965', 'tblTempUsageDetail_20' ) start [2025-03-07 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624965', 'tblTempUsageDetail_20' ) end [2025-03-07 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:09:20] Production.INFO: ==32232== Releasing lock... [2025-03-07 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:09:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-07 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:10:06 [end_date_ymd] => 2025-03-07 03:10:06 [RateCDR] => 1 ) [2025-03-07 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:10:06' and `end` < '2025-03-07 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:10:18] Production.INFO: count ==386 [2025-03-07 03:10:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:10:06 - End Time 2025-03-07 03:10:06 [2025-03-07 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624971', 'tblTempUsageDetail_20' ) start [2025-03-07 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624971', 'tblTempUsageDetail_20' ) end [2025-03-07 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624971', 'tblTempVendorCDR_20' ) start [2025-03-07 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624971', 'tblTempVendorCDR_20' ) end [2025-03-07 03:10:18] Production.INFO: ProcessCDR(1,14624971,1,1,2) [2025-03-07 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624971', 'tblTempUsageDetail_20' ) start [2025-03-07 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624971', 'tblTempUsageDetail_20' ) end [2025-03-07 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:10:21] Production.INFO: ==32308== Releasing lock... [2025-03-07 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:10:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-07 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:11:05 [end_date_ymd] => 2025-03-07 03:11:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:11:05' and `end` < '2025-03-07 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-03-07 03:11:17] Production.INFO: count ==378 [2025-03-07 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:11:05 - End Time 2025-03-07 03:11:05 [2025-03-07 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624976', 'tblTempUsageDetail_20' ) start [2025-03-07 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624976', 'tblTempUsageDetail_20' ) end [2025-03-07 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624976', 'tblTempVendorCDR_20' ) start [2025-03-07 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624976', 'tblTempVendorCDR_20' ) end [2025-03-07 03:11:17] Production.INFO: ProcessCDR(1,14624976,1,1,2) [2025-03-07 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624976', 'tblTempUsageDetail_20' ) start [2025-03-07 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624976', 'tblTempUsageDetail_20' ) end [2025-03-07 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:11:21] Production.INFO: ==32383== Releasing lock... [2025-03-07 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-07 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:12:05 [end_date_ymd] => 2025-03-07 03:12:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:12:05' and `end` < '2025-03-07 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-03-07 03:12:17] Production.INFO: count ==378 [2025-03-07 03:12:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:12:05 - End Time 2025-03-07 03:12:05 [2025-03-07 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624981', 'tblTempUsageDetail_20' ) start [2025-03-07 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624981', 'tblTempUsageDetail_20' ) end [2025-03-07 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624981', 'tblTempVendorCDR_20' ) start [2025-03-07 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624981', 'tblTempVendorCDR_20' ) end [2025-03-07 03:12:17] Production.INFO: ProcessCDR(1,14624981,1,1,2) [2025-03-07 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624981', 'tblTempUsageDetail_20' ) start [2025-03-07 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624981', 'tblTempUsageDetail_20' ) end [2025-03-07 03:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:12:20] Production.INFO: ==32452== Releasing lock... [2025-03-07 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:12:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-07 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:13:05 [end_date_ymd] => 2025-03-07 03:13:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:13:05' and `end` < '2025-03-07 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-03-07 03:13:17] Production.INFO: count ==377 [2025-03-07 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:13:05 - End Time 2025-03-07 03:13:05 [2025-03-07 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624986', 'tblTempUsageDetail_20' ) start [2025-03-07 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624986', 'tblTempUsageDetail_20' ) end [2025-03-07 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624986', 'tblTempVendorCDR_20' ) start [2025-03-07 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624986', 'tblTempVendorCDR_20' ) end [2025-03-07 03:13:17] Production.INFO: ProcessCDR(1,14624986,1,1,2) [2025-03-07 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624986', 'tblTempUsageDetail_20' ) start [2025-03-07 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624986', 'tblTempUsageDetail_20' ) end [2025-03-07 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:13:21] Production.INFO: ==32598== Releasing lock... [2025-03-07 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:13:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:14:06 [end_date_ymd] => 2025-03-07 03:14:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:14:06' and `end` < '2025-03-07 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-03-07 03:14:18] Production.INFO: count ==376 [2025-03-07 03:14:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:14:06 - End Time 2025-03-07 03:14:06 [2025-03-07 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624991', 'tblTempUsageDetail_20' ) start [2025-03-07 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624991', 'tblTempUsageDetail_20' ) end [2025-03-07 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624991', 'tblTempVendorCDR_20' ) start [2025-03-07 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624991', 'tblTempVendorCDR_20' ) end [2025-03-07 03:14:18] Production.INFO: ProcessCDR(1,14624991,1,1,2) [2025-03-07 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624991', 'tblTempUsageDetail_20' ) start [2025-03-07 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624991', 'tblTempUsageDetail_20' ) end [2025-03-07 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:14:21] Production.INFO: ==32667== Releasing lock... [2025-03-07 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:14:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:15:05 [end_date_ymd] => 2025-03-07 03:15:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:15:05' and `end` < '2025-03-07 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-03-07 03:15:17] Production.INFO: count ==376 [2025-03-07 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:15:05 - End Time 2025-03-07 03:15:05 [2025-03-07 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624996', 'tblTempUsageDetail_20' ) start [2025-03-07 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14624996', 'tblTempUsageDetail_20' ) end [2025-03-07 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624996', 'tblTempVendorCDR_20' ) start [2025-03-07 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14624996', 'tblTempVendorCDR_20' ) end [2025-03-07 03:15:17] Production.INFO: ProcessCDR(1,14624996,1,1,2) [2025-03-07 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14624996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14624996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14624996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14624996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624996', 'tblTempUsageDetail_20' ) start [2025-03-07 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14624996', 'tblTempUsageDetail_20' ) end [2025-03-07 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:15:21] Production.INFO: ==32737== Releasing lock... [2025-03-07 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:15:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:16:05 [end_date_ymd] => 2025-03-07 03:16:05 [RateCDR] => 1 ) [2025-03-07 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:16:05' and `end` < '2025-03-07 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:16:17] Production.INFO: count ==375 [2025-03-07 03:16:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:16:05 - End Time 2025-03-07 03:16:05 [2025-03-07 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625001', 'tblTempUsageDetail_20' ) start [2025-03-07 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625001', 'tblTempUsageDetail_20' ) end [2025-03-07 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625001', 'tblTempVendorCDR_20' ) start [2025-03-07 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625001', 'tblTempVendorCDR_20' ) end [2025-03-07 03:16:17] Production.INFO: ProcessCDR(1,14625001,1,1,2) [2025-03-07 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625001', 'tblTempUsageDetail_20' ) start [2025-03-07 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625001', 'tblTempUsageDetail_20' ) end [2025-03-07 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:16:21] Production.INFO: ==358== Releasing lock... [2025-03-07 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:16:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:17:06 [end_date_ymd] => 2025-03-07 03:17:06 [RateCDR] => 1 ) [2025-03-07 03: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-03-07 00:17:06' and `end` < '2025-03-07 03: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-03-07 03:17:18] Production.INFO: count ==373 [2025-03-07 03:17:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:17:06 - End Time 2025-03-07 03:17:06 [2025-03-07 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625006', 'tblTempUsageDetail_20' ) start [2025-03-07 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625006', 'tblTempUsageDetail_20' ) end [2025-03-07 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625006', 'tblTempVendorCDR_20' ) start [2025-03-07 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625006', 'tblTempVendorCDR_20' ) end [2025-03-07 03:17:18] Production.INFO: ProcessCDR(1,14625006,1,1,2) [2025-03-07 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625006', 'tblTempUsageDetail_20' ) start [2025-03-07 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625006', 'tblTempUsageDetail_20' ) end [2025-03-07 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:17:21] Production.INFO: ==522== Releasing lock... [2025-03-07 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:17:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:18:06 [end_date_ymd] => 2025-03-07 03:18:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:18:06' and `end` < '2025-03-07 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-03-07 03:18:18] Production.INFO: count ==373 [2025-03-07 03:18:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:18:06 - End Time 2025-03-07 03:18:06 [2025-03-07 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625011', 'tblTempUsageDetail_20' ) start [2025-03-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625011', 'tblTempUsageDetail_20' ) end [2025-03-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625011', 'tblTempVendorCDR_20' ) start [2025-03-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625011', 'tblTempVendorCDR_20' ) end [2025-03-07 03:18:18] Production.INFO: ProcessCDR(1,14625011,1,1,2) [2025-03-07 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625011', 'tblTempUsageDetail_20' ) start [2025-03-07 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625011', 'tblTempUsageDetail_20' ) end [2025-03-07 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:18:21] Production.INFO: ==624== Releasing lock... [2025-03-07 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:18:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:19:04 [end_date_ymd] => 2025-03-07 03:19:04 [RateCDR] => 1 ) [2025-03-07 03:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:19:04' and `end` < '2025-03-07 03:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:19:17] Production.INFO: count ==373 [2025-03-07 03:19:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:19:04 - End Time 2025-03-07 03:19:04 [2025-03-07 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625016', 'tblTempUsageDetail_20' ) start [2025-03-07 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625016', 'tblTempUsageDetail_20' ) end [2025-03-07 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625016', 'tblTempVendorCDR_20' ) start [2025-03-07 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625016', 'tblTempVendorCDR_20' ) end [2025-03-07 03:19:17] Production.INFO: ProcessCDR(1,14625016,1,1,2) [2025-03-07 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625016', 'tblTempUsageDetail_20' ) start [2025-03-07 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625016', 'tblTempUsageDetail_20' ) end [2025-03-07 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:19:20] Production.INFO: ==728== Releasing lock... [2025-03-07 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:19:20] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:20:06 [end_date_ymd] => 2025-03-07 03:20:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:20:06' and `end` < '2025-03-07 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-03-07 03:20:18] Production.INFO: count ==366 [2025-03-07 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:20:06 - End Time 2025-03-07 03:20:06 [2025-03-07 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625022', 'tblTempUsageDetail_20' ) start [2025-03-07 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625022', 'tblTempUsageDetail_20' ) end [2025-03-07 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625022', 'tblTempVendorCDR_20' ) start [2025-03-07 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625022', 'tblTempVendorCDR_20' ) end [2025-03-07 03:20:18] Production.INFO: ProcessCDR(1,14625022,1,1,2) [2025-03-07 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625022', 'tblTempUsageDetail_20' ) start [2025-03-07 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625022', 'tblTempUsageDetail_20' ) end [2025-03-07 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:20:21] Production.INFO: ==804== Releasing lock... [2025-03-07 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-07 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:21:05 [end_date_ymd] => 2025-03-07 03:21:05 [RateCDR] => 1 ) [2025-03-07 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:21:05' and `end` < '2025-03-07 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:21:17] Production.INFO: count ==348 [2025-03-07 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:21:05 - End Time 2025-03-07 03:21:05 [2025-03-07 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625027', 'tblTempUsageDetail_20' ) start [2025-03-07 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625027', 'tblTempUsageDetail_20' ) end [2025-03-07 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625027', 'tblTempVendorCDR_20' ) start [2025-03-07 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625027', 'tblTempVendorCDR_20' ) end [2025-03-07 03:21:17] Production.INFO: ProcessCDR(1,14625027,1,1,2) [2025-03-07 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625027', 'tblTempUsageDetail_20' ) start [2025-03-07 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625027', 'tblTempUsageDetail_20' ) end [2025-03-07 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:21:21] Production.INFO: ==880== Releasing lock... [2025-03-07 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:21:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:22:06 [end_date_ymd] => 2025-03-07 03:22:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:22:06' and `end` < '2025-03-07 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-03-07 03:22:18] Production.INFO: count ==348 [2025-03-07 03:22:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:22:06 - End Time 2025-03-07 03:22:06 [2025-03-07 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625032', 'tblTempUsageDetail_20' ) start [2025-03-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625032', 'tblTempUsageDetail_20' ) end [2025-03-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625032', 'tblTempVendorCDR_20' ) start [2025-03-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625032', 'tblTempVendorCDR_20' ) end [2025-03-07 03:22:18] Production.INFO: ProcessCDR(1,14625032,1,1,2) [2025-03-07 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625032', 'tblTempUsageDetail_20' ) start [2025-03-07 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625032', 'tblTempUsageDetail_20' ) end [2025-03-07 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:22:21] Production.INFO: ==988== Releasing lock... [2025-03-07 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:22:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:23:05 [end_date_ymd] => 2025-03-07 03:23:05 [RateCDR] => 1 ) [2025-03-07 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:23:05' and `end` < '2025-03-07 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-03-07 03:23:17] Production.INFO: count ==348 [2025-03-07 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:23:05 - End Time 2025-03-07 03:23:05 [2025-03-07 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625037', 'tblTempUsageDetail_20' ) start [2025-03-07 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625037', 'tblTempUsageDetail_20' ) end [2025-03-07 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625037', 'tblTempVendorCDR_20' ) start [2025-03-07 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625037', 'tblTempVendorCDR_20' ) end [2025-03-07 03:23:17] Production.INFO: ProcessCDR(1,14625037,1,1,2) [2025-03-07 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625037', 'tblTempUsageDetail_20' ) start [2025-03-07 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625037', 'tblTempUsageDetail_20' ) end [2025-03-07 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:23:21] Production.INFO: ==1064== Releasing lock... [2025-03-07 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:23:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:24:05 [end_date_ymd] => 2025-03-07 03:24:05 [RateCDR] => 1 ) [2025-03-07 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:24:05' and `end` < '2025-03-07 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:24:17] Production.INFO: count ==348 [2025-03-07 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:24:05 - End Time 2025-03-07 03:24:05 [2025-03-07 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625042', 'tblTempUsageDetail_20' ) start [2025-03-07 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625042', 'tblTempUsageDetail_20' ) end [2025-03-07 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625042', 'tblTempVendorCDR_20' ) start [2025-03-07 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625042', 'tblTempVendorCDR_20' ) end [2025-03-07 03:24:17] Production.INFO: ProcessCDR(1,14625042,1,1,2) [2025-03-07 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625042', 'tblTempUsageDetail_20' ) start [2025-03-07 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625042', 'tblTempUsageDetail_20' ) end [2025-03-07 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:24:20] Production.INFO: ==1141== Releasing lock... [2025-03-07 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:24:20] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:25:05 [end_date_ymd] => 2025-03-07 03:25:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:25:05' and `end` < '2025-03-07 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-03-07 03:25:17] Production.INFO: count ==348 [2025-03-07 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:25:05 - End Time 2025-03-07 03:25:05 [2025-03-07 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625047', 'tblTempUsageDetail_20' ) start [2025-03-07 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625047', 'tblTempUsageDetail_20' ) end [2025-03-07 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625047', 'tblTempVendorCDR_20' ) start [2025-03-07 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625047', 'tblTempVendorCDR_20' ) end [2025-03-07 03:25:17] Production.INFO: ProcessCDR(1,14625047,1,1,2) [2025-03-07 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625047', 'tblTempUsageDetail_20' ) start [2025-03-07 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625047', 'tblTempUsageDetail_20' ) end [2025-03-07 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:25:21] Production.INFO: ==1218== Releasing lock... [2025-03-07 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:25:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:26:06 [end_date_ymd] => 2025-03-07 03:26:06 [RateCDR] => 1 ) [2025-03-07 03: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-03-07 00:26:06' and `end` < '2025-03-07 03: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-03-07 03:26:18] Production.INFO: count ==350 [2025-03-07 03:26:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:26:06 - End Time 2025-03-07 03:26:06 [2025-03-07 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625052', 'tblTempUsageDetail_20' ) start [2025-03-07 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625052', 'tblTempUsageDetail_20' ) end [2025-03-07 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625052', 'tblTempVendorCDR_20' ) start [2025-03-07 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625052', 'tblTempVendorCDR_20' ) end [2025-03-07 03:26:18] Production.INFO: ProcessCDR(1,14625052,1,1,2) [2025-03-07 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625052', 'tblTempUsageDetail_20' ) start [2025-03-07 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625052', 'tblTempUsageDetail_20' ) end [2025-03-07 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:26:21] Production.INFO: ==1303== Releasing lock... [2025-03-07 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-07 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:27:05 [end_date_ymd] => 2025-03-07 03:27:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:27:05' and `end` < '2025-03-07 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-03-07 03:27:17] Production.INFO: count ==350 [2025-03-07 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:27:05 - End Time 2025-03-07 03:27:05 [2025-03-07 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625057', 'tblTempUsageDetail_20' ) start [2025-03-07 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625057', 'tblTempUsageDetail_20' ) end [2025-03-07 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625057', 'tblTempVendorCDR_20' ) start [2025-03-07 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625057', 'tblTempVendorCDR_20' ) end [2025-03-07 03:27:17] Production.INFO: ProcessCDR(1,14625057,1,1,2) [2025-03-07 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625057', 'tblTempUsageDetail_20' ) start [2025-03-07 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625057', 'tblTempUsageDetail_20' ) end [2025-03-07 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:27:21] Production.INFO: ==1379== Releasing lock... [2025-03-07 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-07 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:28:06 [end_date_ymd] => 2025-03-07 03:28:06 [RateCDR] => 1 ) [2025-03-07 03:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:28:06' and `end` < '2025-03-07 03:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:28:18] Production.INFO: count ==346 [2025-03-07 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:28:06 - End Time 2025-03-07 03:28:06 [2025-03-07 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625062', 'tblTempUsageDetail_20' ) start [2025-03-07 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625062', 'tblTempUsageDetail_20' ) end [2025-03-07 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625062', 'tblTempVendorCDR_20' ) start [2025-03-07 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625062', 'tblTempVendorCDR_20' ) end [2025-03-07 03:28:18] Production.INFO: ProcessCDR(1,14625062,1,1,2) [2025-03-07 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625062', 'tblTempUsageDetail_20' ) start [2025-03-07 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625062', 'tblTempUsageDetail_20' ) end [2025-03-07 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:28:22] Production.INFO: ==1449== Releasing lock... [2025-03-07 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:28:22] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:29:05 [end_date_ymd] => 2025-03-07 03:29:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:29:05' and `end` < '2025-03-07 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-03-07 03:29:17] Production.INFO: count ==346 [2025-03-07 03:29:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:29:05 - End Time 2025-03-07 03:29:05 [2025-03-07 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625067', 'tblTempUsageDetail_20' ) start [2025-03-07 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625067', 'tblTempUsageDetail_20' ) end [2025-03-07 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625067', 'tblTempVendorCDR_20' ) start [2025-03-07 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625067', 'tblTempVendorCDR_20' ) end [2025-03-07 03:29:17] Production.INFO: ProcessCDR(1,14625067,1,1,2) [2025-03-07 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625067', 'tblTempUsageDetail_20' ) start [2025-03-07 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625067', 'tblTempUsageDetail_20' ) end [2025-03-07 03:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:29:20] Production.INFO: ==1551== Releasing lock... [2025-03-07 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:29:20] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:30:07 [end_date_ymd] => 2025-03-07 03:30:07 [RateCDR] => 1 ) [2025-03-07 03: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-03-07 00:30:07' and `end` < '2025-03-07 03: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-03-07 03:30:19] Production.INFO: count ==340 [2025-03-07 03:30:19] Production.ERROR: pbx CDR StartTime 2025-03-07 00:30:07 - End Time 2025-03-07 03:30:07 [2025-03-07 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625073', 'tblTempUsageDetail_20' ) start [2025-03-07 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625073', 'tblTempUsageDetail_20' ) end [2025-03-07 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625073', 'tblTempVendorCDR_20' ) start [2025-03-07 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625073', 'tblTempVendorCDR_20' ) end [2025-03-07 03:30:19] Production.INFO: ProcessCDR(1,14625073,1,1,2) [2025-03-07 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625073', 'tblTempUsageDetail_20' ) start [2025-03-07 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625073', 'tblTempUsageDetail_20' ) end [2025-03-07 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:30:22] Production.INFO: ==1637== Releasing lock... [2025-03-07 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:30:22] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:31:05 [end_date_ymd] => 2025-03-07 03:31:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:31:05' and `end` < '2025-03-07 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-03-07 03:31:17] Production.INFO: count ==332 [2025-03-07 03:31:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:31:05 - End Time 2025-03-07 03:31:05 [2025-03-07 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625078', 'tblTempUsageDetail_20' ) start [2025-03-07 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625078', 'tblTempUsageDetail_20' ) end [2025-03-07 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625078', 'tblTempVendorCDR_20' ) start [2025-03-07 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625078', 'tblTempVendorCDR_20' ) end [2025-03-07 03:31:17] Production.INFO: ProcessCDR(1,14625078,1,1,2) [2025-03-07 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625078', 'tblTempUsageDetail_20' ) start [2025-03-07 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625078', 'tblTempUsageDetail_20' ) end [2025-03-07 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:31:21] Production.INFO: ==1711== Releasing lock... [2025-03-07 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:31:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:32:06 [end_date_ymd] => 2025-03-07 03:32:06 [RateCDR] => 1 ) [2025-03-07 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:32:06' and `end` < '2025-03-07 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:32:18] Production.INFO: count ==329 [2025-03-07 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:32:06 - End Time 2025-03-07 03:32:06 [2025-03-07 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625083', 'tblTempUsageDetail_20' ) start [2025-03-07 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625083', 'tblTempUsageDetail_20' ) end [2025-03-07 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625083', 'tblTempVendorCDR_20' ) start [2025-03-07 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625083', 'tblTempVendorCDR_20' ) end [2025-03-07 03:32:18] Production.INFO: ProcessCDR(1,14625083,1,1,2) [2025-03-07 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625083', 'tblTempUsageDetail_20' ) start [2025-03-07 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625083', 'tblTempUsageDetail_20' ) end [2025-03-07 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:32:21] Production.INFO: ==1783== Releasing lock... [2025-03-07 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:32:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:33:05 [end_date_ymd] => 2025-03-07 03:33:05 [RateCDR] => 1 ) [2025-03-07 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:33:05' and `end` < '2025-03-07 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:33:17] Production.INFO: count ==328 [2025-03-07 03:33:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:33:05 - End Time 2025-03-07 03:33:05 [2025-03-07 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625088', 'tblTempUsageDetail_20' ) start [2025-03-07 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625088', 'tblTempUsageDetail_20' ) end [2025-03-07 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625088', 'tblTempVendorCDR_20' ) start [2025-03-07 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625088', 'tblTempVendorCDR_20' ) end [2025-03-07 03:33:17] Production.INFO: ProcessCDR(1,14625088,1,1,2) [2025-03-07 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625088', 'tblTempUsageDetail_20' ) start [2025-03-07 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625088', 'tblTempUsageDetail_20' ) end [2025-03-07 03:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:33:20] Production.INFO: ==1858== Releasing lock... [2025-03-07 03:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:33:20] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:34:06 [end_date_ymd] => 2025-03-07 03:34:06 [RateCDR] => 1 ) [2025-03-07 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:34:06' and `end` < '2025-03-07 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:34:18] Production.INFO: count ==328 [2025-03-07 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:34:06 - End Time 2025-03-07 03:34:06 [2025-03-07 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625093', 'tblTempUsageDetail_20' ) start [2025-03-07 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625093', 'tblTempUsageDetail_20' ) end [2025-03-07 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625093', 'tblTempVendorCDR_20' ) start [2025-03-07 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625093', 'tblTempVendorCDR_20' ) end [2025-03-07 03:34:18] Production.INFO: ProcessCDR(1,14625093,1,1,2) [2025-03-07 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625093', 'tblTempUsageDetail_20' ) start [2025-03-07 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625093', 'tblTempUsageDetail_20' ) end [2025-03-07 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:34:22] Production.INFO: ==1932== Releasing lock... [2025-03-07 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:34:22] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:35:06 [end_date_ymd] => 2025-03-07 03:35:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:35:06' and `end` < '2025-03-07 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-03-07 03:35:18] Production.INFO: count ==327 [2025-03-07 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:35:06 - End Time 2025-03-07 03:35:06 [2025-03-07 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625098', 'tblTempUsageDetail_20' ) start [2025-03-07 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625098', 'tblTempUsageDetail_20' ) end [2025-03-07 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625098', 'tblTempVendorCDR_20' ) start [2025-03-07 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625098', 'tblTempVendorCDR_20' ) end [2025-03-07 03:35:18] Production.INFO: ProcessCDR(1,14625098,1,1,2) [2025-03-07 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625098', 'tblTempUsageDetail_20' ) start [2025-03-07 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625098', 'tblTempUsageDetail_20' ) end [2025-03-07 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:35:21] Production.INFO: ==2011== Releasing lock... [2025-03-07 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:35:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:36:06 [end_date_ymd] => 2025-03-07 03:36:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:36:06' and `end` < '2025-03-07 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-03-07 03:36:18] Production.INFO: count ==320 [2025-03-07 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:36:06 - End Time 2025-03-07 03:36:06 [2025-03-07 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625103', 'tblTempUsageDetail_20' ) start [2025-03-07 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625103', 'tblTempUsageDetail_20' ) end [2025-03-07 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625103', 'tblTempVendorCDR_20' ) start [2025-03-07 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625103', 'tblTempVendorCDR_20' ) end [2025-03-07 03:36:18] Production.INFO: ProcessCDR(1,14625103,1,1,2) [2025-03-07 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625103', 'tblTempUsageDetail_20' ) start [2025-03-07 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625103', 'tblTempUsageDetail_20' ) end [2025-03-07 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:36:22] Production.INFO: ==2081== Releasing lock... [2025-03-07 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:36:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:37:05 [end_date_ymd] => 2025-03-07 03:37:05 [RateCDR] => 1 ) [2025-03-07 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:37:05' and `end` < '2025-03-07 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:37:17] Production.INFO: count ==318 [2025-03-07 03:37:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:37:05 - End Time 2025-03-07 03:37:05 [2025-03-07 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625108', 'tblTempUsageDetail_20' ) start [2025-03-07 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625108', 'tblTempUsageDetail_20' ) end [2025-03-07 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625108', 'tblTempVendorCDR_20' ) start [2025-03-07 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625108', 'tblTempVendorCDR_20' ) end [2025-03-07 03:37:18] Production.INFO: ProcessCDR(1,14625108,1,1,2) [2025-03-07 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625108', 'tblTempUsageDetail_20' ) start [2025-03-07 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625108', 'tblTempUsageDetail_20' ) end [2025-03-07 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:37:21] Production.INFO: ==2191== Releasing lock... [2025-03-07 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:37:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:38:06 [end_date_ymd] => 2025-03-07 03:38:06 [RateCDR] => 1 ) [2025-03-07 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:38:06' and `end` < '2025-03-07 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:38:18] Production.INFO: count ==314 [2025-03-07 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:38:06 - End Time 2025-03-07 03:38:06 [2025-03-07 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625113', 'tblTempUsageDetail_20' ) start [2025-03-07 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625113', 'tblTempUsageDetail_20' ) end [2025-03-07 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625113', 'tblTempVendorCDR_20' ) start [2025-03-07 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625113', 'tblTempVendorCDR_20' ) end [2025-03-07 03:38:18] Production.INFO: ProcessCDR(1,14625113,1,1,2) [2025-03-07 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625113', 'tblTempUsageDetail_20' ) start [2025-03-07 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625113', 'tblTempUsageDetail_20' ) end [2025-03-07 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:38:22] Production.INFO: ==2266== Releasing lock... [2025-03-07 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:38:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:39:05 [end_date_ymd] => 2025-03-07 03:39:05 [RateCDR] => 1 ) [2025-03-07 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:39:05' and `end` < '2025-03-07 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:39:17] Production.INFO: count ==314 [2025-03-07 03:39:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:39:05 - End Time 2025-03-07 03:39:05 [2025-03-07 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625118', 'tblTempUsageDetail_20' ) start [2025-03-07 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625118', 'tblTempUsageDetail_20' ) end [2025-03-07 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625118', 'tblTempVendorCDR_20' ) start [2025-03-07 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625118', 'tblTempVendorCDR_20' ) end [2025-03-07 03:39:17] Production.INFO: ProcessCDR(1,14625118,1,1,2) [2025-03-07 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625118', 'tblTempUsageDetail_20' ) start [2025-03-07 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625118', 'tblTempUsageDetail_20' ) end [2025-03-07 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:39:21] Production.INFO: ==2337== Releasing lock... [2025-03-07 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:40:06 [end_date_ymd] => 2025-03-07 03:40:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:40:06' and `end` < '2025-03-07 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-03-07 03:40:18] Production.INFO: count ==313 [2025-03-07 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-07 00:40:06 - End Time 2025-03-07 03:40:06 [2025-03-07 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625124', 'tblTempUsageDetail_20' ) start [2025-03-07 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625124', 'tblTempUsageDetail_20' ) end [2025-03-07 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625124', 'tblTempVendorCDR_20' ) start [2025-03-07 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625124', 'tblTempVendorCDR_20' ) end [2025-03-07 03:40:19] Production.INFO: ProcessCDR(1,14625124,1,1,2) [2025-03-07 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625124', 'tblTempUsageDetail_20' ) start [2025-03-07 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625124', 'tblTempUsageDetail_20' ) end [2025-03-07 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:40:22] Production.INFO: ==2413== Releasing lock... [2025-03-07 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:40:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:41:05 [end_date_ymd] => 2025-03-07 03:41:05 [RateCDR] => 1 ) [2025-03-07 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:41:05' and `end` < '2025-03-07 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:41:17] Production.INFO: count ==310 [2025-03-07 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:41:05 - End Time 2025-03-07 03:41:05 [2025-03-07 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625129', 'tblTempUsageDetail_20' ) start [2025-03-07 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625129', 'tblTempUsageDetail_20' ) end [2025-03-07 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625129', 'tblTempVendorCDR_20' ) start [2025-03-07 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625129', 'tblTempVendorCDR_20' ) end [2025-03-07 03:41:18] Production.INFO: ProcessCDR(1,14625129,1,1,2) [2025-03-07 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625129', 'tblTempUsageDetail_20' ) start [2025-03-07 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625129', 'tblTempUsageDetail_20' ) end [2025-03-07 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:41:21] Production.INFO: ==2488== Releasing lock... [2025-03-07 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:42:06 [end_date_ymd] => 2025-03-07 03:42:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:42:06' and `end` < '2025-03-07 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-03-07 03:42:18] Production.INFO: count ==308 [2025-03-07 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:42:06 - End Time 2025-03-07 03:42:06 [2025-03-07 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625134', 'tblTempUsageDetail_20' ) start [2025-03-07 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625134', 'tblTempUsageDetail_20' ) end [2025-03-07 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625134', 'tblTempVendorCDR_20' ) start [2025-03-07 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625134', 'tblTempVendorCDR_20' ) end [2025-03-07 03:42:18] Production.INFO: ProcessCDR(1,14625134,1,1,2) [2025-03-07 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625134', 'tblTempUsageDetail_20' ) start [2025-03-07 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625134', 'tblTempUsageDetail_20' ) end [2025-03-07 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:42:22] Production.INFO: ==2558== Releasing lock... [2025-03-07 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:42:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:43:06 [end_date_ymd] => 2025-03-07 03:43:06 [RateCDR] => 1 ) [2025-03-07 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:43:06' and `end` < '2025-03-07 03: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-03-07 03:43:18] Production.INFO: count ==303 [2025-03-07 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:43:06 - End Time 2025-03-07 03:43:06 [2025-03-07 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625139', 'tblTempUsageDetail_20' ) start [2025-03-07 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625139', 'tblTempUsageDetail_20' ) end [2025-03-07 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625139', 'tblTempVendorCDR_20' ) start [2025-03-07 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625139', 'tblTempVendorCDR_20' ) end [2025-03-07 03:43:18] Production.INFO: ProcessCDR(1,14625139,1,1,2) [2025-03-07 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625139', 'tblTempUsageDetail_20' ) start [2025-03-07 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625139', 'tblTempUsageDetail_20' ) end [2025-03-07 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:43:21] Production.INFO: ==2630== Releasing lock... [2025-03-07 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:44:05 [end_date_ymd] => 2025-03-07 03:44:05 [RateCDR] => 1 ) [2025-03-07 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:44:05' and `end` < '2025-03-07 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:44:17] Production.INFO: count ==301 [2025-03-07 03:44:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:44:05 - End Time 2025-03-07 03:44:05 [2025-03-07 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625144', 'tblTempUsageDetail_20' ) start [2025-03-07 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625144', 'tblTempUsageDetail_20' ) end [2025-03-07 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625144', 'tblTempVendorCDR_20' ) start [2025-03-07 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625144', 'tblTempVendorCDR_20' ) end [2025-03-07 03:44:17] Production.INFO: ProcessCDR(1,14625144,1,1,2) [2025-03-07 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625144', 'tblTempUsageDetail_20' ) start [2025-03-07 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625144', 'tblTempUsageDetail_20' ) end [2025-03-07 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:44:21] Production.INFO: ==2703== Releasing lock... [2025-03-07 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:45:06 [end_date_ymd] => 2025-03-07 03:45:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:45:06' and `end` < '2025-03-07 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-03-07 03:45:18] Production.INFO: count ==299 [2025-03-07 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:45:06 - End Time 2025-03-07 03:45:06 [2025-03-07 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625149', 'tblTempUsageDetail_20' ) start [2025-03-07 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625149', 'tblTempUsageDetail_20' ) end [2025-03-07 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625149', 'tblTempVendorCDR_20' ) start [2025-03-07 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625149', 'tblTempVendorCDR_20' ) end [2025-03-07 03:45:18] Production.INFO: ProcessCDR(1,14625149,1,1,2) [2025-03-07 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625149', 'tblTempUsageDetail_20' ) start [2025-03-07 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625149', 'tblTempUsageDetail_20' ) end [2025-03-07 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:45:22] Production.INFO: ==2774== Releasing lock... [2025-03-07 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:45:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:46:05 [end_date_ymd] => 2025-03-07 03:46:05 [RateCDR] => 1 ) [2025-03-07 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:46:05' and `end` < '2025-03-07 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:46:17] Production.INFO: count ==296 [2025-03-07 03:46:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:46:05 - End Time 2025-03-07 03:46:05 [2025-03-07 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625154', 'tblTempUsageDetail_20' ) start [2025-03-07 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625154', 'tblTempUsageDetail_20' ) end [2025-03-07 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625154', 'tblTempVendorCDR_20' ) start [2025-03-07 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625154', 'tblTempVendorCDR_20' ) end [2025-03-07 03:46:17] Production.INFO: ProcessCDR(1,14625154,1,1,2) [2025-03-07 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625154', 'tblTempUsageDetail_20' ) start [2025-03-07 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625154', 'tblTempUsageDetail_20' ) end [2025-03-07 03:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:46:20] Production.INFO: ==2847== Releasing lock... [2025-03-07 03:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:46:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:47:06 [end_date_ymd] => 2025-03-07 03:47:06 [RateCDR] => 1 ) [2025-03-07 03: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-03-07 00:47:06' and `end` < '2025-03-07 03: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-03-07 03:47:18] Production.INFO: count ==295 [2025-03-07 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:47:06 - End Time 2025-03-07 03:47:06 [2025-03-07 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625159', 'tblTempUsageDetail_20' ) start [2025-03-07 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625159', 'tblTempUsageDetail_20' ) end [2025-03-07 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625159', 'tblTempVendorCDR_20' ) start [2025-03-07 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625159', 'tblTempVendorCDR_20' ) end [2025-03-07 03:47:18] Production.INFO: ProcessCDR(1,14625159,1,1,2) [2025-03-07 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625159', 'tblTempUsageDetail_20' ) start [2025-03-07 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625159', 'tblTempUsageDetail_20' ) end [2025-03-07 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:47:21] Production.INFO: ==2920== Releasing lock... [2025-03-07 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:48:05 [end_date_ymd] => 2025-03-07 03:48:05 [RateCDR] => 1 ) [2025-03-07 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:48:05' and `end` < '2025-03-07 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:48:17] Production.INFO: count ==295 [2025-03-07 03:48:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:48:05 - End Time 2025-03-07 03:48:05 [2025-03-07 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625164', 'tblTempUsageDetail_20' ) start [2025-03-07 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625164', 'tblTempUsageDetail_20' ) end [2025-03-07 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625164', 'tblTempVendorCDR_20' ) start [2025-03-07 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625164', 'tblTempVendorCDR_20' ) end [2025-03-07 03:48:17] Production.INFO: ProcessCDR(1,14625164,1,1,2) [2025-03-07 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625164', 'tblTempUsageDetail_20' ) start [2025-03-07 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625164', 'tblTempUsageDetail_20' ) end [2025-03-07 03:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:48:20] Production.INFO: ==2997== Releasing lock... [2025-03-07 03:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:48:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:49:06 [end_date_ymd] => 2025-03-07 03:49:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:49:06' and `end` < '2025-03-07 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-03-07 03:49:18] Production.INFO: count ==295 [2025-03-07 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:49:06 - End Time 2025-03-07 03:49:06 [2025-03-07 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625169', 'tblTempUsageDetail_20' ) start [2025-03-07 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625169', 'tblTempUsageDetail_20' ) end [2025-03-07 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625169', 'tblTempVendorCDR_20' ) start [2025-03-07 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625169', 'tblTempVendorCDR_20' ) end [2025-03-07 03:49:18] Production.INFO: ProcessCDR(1,14625169,1,1,2) [2025-03-07 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625169', 'tblTempUsageDetail_20' ) start [2025-03-07 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625169', 'tblTempUsageDetail_20' ) end [2025-03-07 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:49:21] Production.INFO: ==3076== Releasing lock... [2025-03-07 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:50:06 [end_date_ymd] => 2025-03-07 03:50:06 [RateCDR] => 1 ) [2025-03-07 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:50:06' and `end` < '2025-03-07 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:50:18] Production.INFO: count ==291 [2025-03-07 03:50:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:50:06 - End Time 2025-03-07 03:50:06 [2025-03-07 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625174', 'tblTempUsageDetail_20' ) start [2025-03-07 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625174', 'tblTempUsageDetail_20' ) end [2025-03-07 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625174', 'tblTempVendorCDR_20' ) start [2025-03-07 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625174', 'tblTempVendorCDR_20' ) end [2025-03-07 03:50:18] Production.INFO: ProcessCDR(1,14625174,1,1,2) [2025-03-07 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625174', 'tblTempUsageDetail_20' ) start [2025-03-07 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625174', 'tblTempUsageDetail_20' ) end [2025-03-07 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:50:21] Production.INFO: ==3154== Releasing lock... [2025-03-07 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:50:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:51:05 [end_date_ymd] => 2025-03-07 03:51:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:51:05' and `end` < '2025-03-07 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-03-07 03:51:17] Production.INFO: count ==277 [2025-03-07 03:51:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:51:05 - End Time 2025-03-07 03:51:05 [2025-03-07 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625180', 'tblTempUsageDetail_20' ) start [2025-03-07 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625180', 'tblTempUsageDetail_20' ) end [2025-03-07 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625180', 'tblTempVendorCDR_20' ) start [2025-03-07 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625180', 'tblTempVendorCDR_20' ) end [2025-03-07 03:51:17] Production.INFO: ProcessCDR(1,14625180,1,1,2) [2025-03-07 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625180', 'tblTempUsageDetail_20' ) start [2025-03-07 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625180', 'tblTempUsageDetail_20' ) end [2025-03-07 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:51:21] Production.INFO: ==3228== Releasing lock... [2025-03-07 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:52:06 [end_date_ymd] => 2025-03-07 03:52:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:52:06' and `end` < '2025-03-07 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-03-07 03:52:18] Production.INFO: count ==280 [2025-03-07 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:52:06 - End Time 2025-03-07 03:52:06 [2025-03-07 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625185', 'tblTempUsageDetail_20' ) start [2025-03-07 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625185', 'tblTempUsageDetail_20' ) end [2025-03-07 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625185', 'tblTempVendorCDR_20' ) start [2025-03-07 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625185', 'tblTempVendorCDR_20' ) end [2025-03-07 03:52:18] Production.INFO: ProcessCDR(1,14625185,1,1,2) [2025-03-07 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625185', 'tblTempUsageDetail_20' ) start [2025-03-07 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625185', 'tblTempUsageDetail_20' ) end [2025-03-07 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:52:22] Production.INFO: ==3302== Releasing lock... [2025-03-07 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:53:05 [end_date_ymd] => 2025-03-07 03:53:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:53:05' and `end` < '2025-03-07 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-03-07 03:53:17] Production.INFO: count ==280 [2025-03-07 03:53:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:53:05 - End Time 2025-03-07 03:53:05 [2025-03-07 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625190', 'tblTempUsageDetail_20' ) start [2025-03-07 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625190', 'tblTempUsageDetail_20' ) end [2025-03-07 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625190', 'tblTempVendorCDR_20' ) start [2025-03-07 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625190', 'tblTempVendorCDR_20' ) end [2025-03-07 03:53:17] Production.INFO: ProcessCDR(1,14625190,1,1,2) [2025-03-07 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625190', 'tblTempUsageDetail_20' ) start [2025-03-07 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625190', 'tblTempUsageDetail_20' ) end [2025-03-07 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:53:21] Production.INFO: ==3413== Releasing lock... [2025-03-07 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:54:05 [end_date_ymd] => 2025-03-07 03:54:05 [RateCDR] => 1 ) [2025-03-07 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:54:05' and `end` < '2025-03-07 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:54:17] Production.INFO: count ==280 [2025-03-07 03:54:17] Production.ERROR: pbx CDR StartTime 2025-03-07 00:54:05 - End Time 2025-03-07 03:54:05 [2025-03-07 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625195', 'tblTempUsageDetail_20' ) start [2025-03-07 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625195', 'tblTempUsageDetail_20' ) end [2025-03-07 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625195', 'tblTempVendorCDR_20' ) start [2025-03-07 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625195', 'tblTempVendorCDR_20' ) end [2025-03-07 03:54:17] Production.INFO: ProcessCDR(1,14625195,1,1,2) [2025-03-07 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625195', 'tblTempUsageDetail_20' ) start [2025-03-07 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625195', 'tblTempUsageDetail_20' ) end [2025-03-07 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:54:22] Production.INFO: ==3483== Releasing lock... [2025-03-07 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:54:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:55:05 [end_date_ymd] => 2025-03-07 03:55:05 [RateCDR] => 1 ) [2025-03-07 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:55:05' and `end` < '2025-03-07 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:55:18] Production.INFO: count ==280 [2025-03-07 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:55:05 - End Time 2025-03-07 03:55:05 [2025-03-07 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625200', 'tblTempUsageDetail_20' ) start [2025-03-07 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625200', 'tblTempUsageDetail_20' ) end [2025-03-07 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625200', 'tblTempVendorCDR_20' ) start [2025-03-07 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625200', 'tblTempVendorCDR_20' ) end [2025-03-07 03:55:18] Production.INFO: ProcessCDR(1,14625200,1,1,2) [2025-03-07 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625200', 'tblTempUsageDetail_20' ) start [2025-03-07 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625200', 'tblTempUsageDetail_20' ) end [2025-03-07 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:55:21] Production.INFO: ==3557== Releasing lock... [2025-03-07 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 03:56:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:56:07 [end_date_ymd] => 2025-03-07 03:56:07 [RateCDR] => 1 ) [2025-03-07 03:56: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-03-07 00:56:07' and `end` < '2025-03-07 03:56: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-03-07 03:56:19] Production.INFO: count ==280 [2025-03-07 03:56:19] Production.ERROR: pbx CDR StartTime 2025-03-07 00:56:07 - End Time 2025-03-07 03:56:07 [2025-03-07 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625205', 'tblTempUsageDetail_20' ) start [2025-03-07 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625205', 'tblTempUsageDetail_20' ) end [2025-03-07 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625205', 'tblTempVendorCDR_20' ) start [2025-03-07 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625205', 'tblTempVendorCDR_20' ) end [2025-03-07 03:56:19] Production.INFO: ProcessCDR(1,14625205,1,1,2) [2025-03-07 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625205', 'tblTempUsageDetail_20' ) start [2025-03-07 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625205', 'tblTempUsageDetail_20' ) end [2025-03-07 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:56:22] Production.INFO: ==3631== Releasing lock... [2025-03-07 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:57:05 [end_date_ymd] => 2025-03-07 03:57:05 [RateCDR] => 1 ) [2025-03-07 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:57:05' and `end` < '2025-03-07 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:57:17] Production.INFO: count ==280 [2025-03-07 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:57:05 - End Time 2025-03-07 03:57:05 [2025-03-07 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625210', 'tblTempUsageDetail_20' ) start [2025-03-07 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625210', 'tblTempUsageDetail_20' ) end [2025-03-07 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625210', 'tblTempVendorCDR_20' ) start [2025-03-07 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625210', 'tblTempVendorCDR_20' ) end [2025-03-07 03:57:18] Production.INFO: ProcessCDR(1,14625210,1,1,2) [2025-03-07 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625210', 'tblTempUsageDetail_20' ) start [2025-03-07 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625210', 'tblTempUsageDetail_20' ) end [2025-03-07 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:57:21] Production.INFO: ==3704== Releasing lock... [2025-03-07 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:58:06 [end_date_ymd] => 2025-03-07 03:58:06 [RateCDR] => 1 ) [2025-03-07 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 00:58:06' and `end` < '2025-03-07 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 03:58:18] Production.INFO: count ==280 [2025-03-07 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:58:06 - End Time 2025-03-07 03:58:06 [2025-03-07 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625215', 'tblTempUsageDetail_20' ) start [2025-03-07 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625215', 'tblTempUsageDetail_20' ) end [2025-03-07 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625215', 'tblTempVendorCDR_20' ) start [2025-03-07 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625215', 'tblTempVendorCDR_20' ) end [2025-03-07 03:58:18] Production.INFO: ProcessCDR(1,14625215,1,1,2) [2025-03-07 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625215', 'tblTempUsageDetail_20' ) start [2025-03-07 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625215', 'tblTempUsageDetail_20' ) end [2025-03-07 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:58:22] Production.INFO: ==3775== Releasing lock... [2025-03-07 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 00:59:06 [end_date_ymd] => 2025-03-07 03:59:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 00:59:06' and `end` < '2025-03-07 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-03-07 03:59:18] Production.INFO: count ==283 [2025-03-07 03:59:18] Production.ERROR: pbx CDR StartTime 2025-03-07 00:59:06 - End Time 2025-03-07 03:59:06 [2025-03-07 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625220', 'tblTempUsageDetail_20' ) start [2025-03-07 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625220', 'tblTempUsageDetail_20' ) end [2025-03-07 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625220', 'tblTempVendorCDR_20' ) start [2025-03-07 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625220', 'tblTempVendorCDR_20' ) end [2025-03-07 03:59:18] Production.INFO: ProcessCDR(1,14625220,1,1,2) [2025-03-07 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625220', 'tblTempUsageDetail_20' ) start [2025-03-07 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625220', 'tblTempUsageDetail_20' ) end [2025-03-07 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 03:59:21] Production.INFO: ==3848== Releasing lock... [2025-03-07 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 03:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 04:00:08] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:00:08 [end_date_ymd] => 2025-03-07 04:00:08 [RateCDR] => 1 ) [2025-03-07 04:00:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:00:08' and `end` < '2025-03-07 04:00:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:00:20] Production.INFO: count ==278 [2025-03-07 04:00:20] Production.ERROR: pbx CDR StartTime 2025-03-07 01:00:08 - End Time 2025-03-07 04:00:08 [2025-03-07 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625227', 'tblTempUsageDetail_20' ) start [2025-03-07 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625227', 'tblTempUsageDetail_20' ) end [2025-03-07 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625227', 'tblTempVendorCDR_20' ) start [2025-03-07 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625227', 'tblTempVendorCDR_20' ) end [2025-03-07 04:00:20] Production.INFO: ProcessCDR(1,14625227,1,1,2) [2025-03-07 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625227', 'tblTempUsageDetail_20' ) start [2025-03-07 04:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625227', 'tblTempUsageDetail_20' ) end [2025-03-07 04:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:00:26] Production.INFO: ==3933== Releasing lock... [2025-03-07 04:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:00:26] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:01:06 [end_date_ymd] => 2025-03-07 04:01:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:01:06' and `end` < '2025-03-07 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-03-07 04:01:18] Production.INFO: count ==276 [2025-03-07 04:01:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:01:06 - End Time 2025-03-07 04:01:06 [2025-03-07 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625232', 'tblTempUsageDetail_20' ) start [2025-03-07 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625232', 'tblTempUsageDetail_20' ) end [2025-03-07 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625232', 'tblTempVendorCDR_20' ) start [2025-03-07 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625232', 'tblTempVendorCDR_20' ) end [2025-03-07 04:01:18] Production.INFO: ProcessCDR(1,14625232,1,1,2) [2025-03-07 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625232', 'tblTempUsageDetail_20' ) start [2025-03-07 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625232', 'tblTempUsageDetail_20' ) end [2025-03-07 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:01:21] Production.INFO: ==4025== Releasing lock... [2025-03-07 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 04:02:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:02:07 [end_date_ymd] => 2025-03-07 04:02:07 [RateCDR] => 1 ) [2025-03-07 04:02: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-03-07 01:02:07' and `end` < '2025-03-07 04:02: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-03-07 04:02:19] Production.INFO: count ==272 [2025-03-07 04:02:19] Production.ERROR: pbx CDR StartTime 2025-03-07 01:02:07 - End Time 2025-03-07 04:02:07 [2025-03-07 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625237', 'tblTempUsageDetail_20' ) start [2025-03-07 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625237', 'tblTempUsageDetail_20' ) end [2025-03-07 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625237', 'tblTempVendorCDR_20' ) start [2025-03-07 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625237', 'tblTempVendorCDR_20' ) end [2025-03-07 04:02:19] Production.INFO: ProcessCDR(1,14625237,1,1,2) [2025-03-07 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625237', 'tblTempUsageDetail_20' ) start [2025-03-07 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625237', 'tblTempUsageDetail_20' ) end [2025-03-07 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:02:22] Production.INFO: ==4098== Releasing lock... [2025-03-07 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:03:06 [end_date_ymd] => 2025-03-07 04:03:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:03:06' and `end` < '2025-03-07 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-03-07 04:03:18] Production.INFO: count ==271 [2025-03-07 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:03:06 - End Time 2025-03-07 04:03:06 [2025-03-07 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625242', 'tblTempUsageDetail_20' ) start [2025-03-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625242', 'tblTempUsageDetail_20' ) end [2025-03-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625242', 'tblTempVendorCDR_20' ) start [2025-03-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625242', 'tblTempVendorCDR_20' ) end [2025-03-07 04:03:18] Production.INFO: ProcessCDR(1,14625242,1,1,2) [2025-03-07 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625242', 'tblTempUsageDetail_20' ) start [2025-03-07 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625242', 'tblTempUsageDetail_20' ) end [2025-03-07 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:03:21] Production.INFO: ==4170== Releasing lock... [2025-03-07 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:04:05 [end_date_ymd] => 2025-03-07 04:04:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:04:05' and `end` < '2025-03-07 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-03-07 04:04:17] Production.INFO: count ==268 [2025-03-07 04:04:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:04:05 - End Time 2025-03-07 04:04:05 [2025-03-07 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625247', 'tblTempUsageDetail_20' ) start [2025-03-07 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625247', 'tblTempUsageDetail_20' ) end [2025-03-07 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625247', 'tblTempVendorCDR_20' ) start [2025-03-07 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625247', 'tblTempVendorCDR_20' ) end [2025-03-07 04:04:17] Production.INFO: ProcessCDR(1,14625247,1,1,2) [2025-03-07 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625247', 'tblTempUsageDetail_20' ) start [2025-03-07 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625247', 'tblTempUsageDetail_20' ) end [2025-03-07 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:04:21] Production.INFO: ==4243== Releasing lock... [2025-03-07 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:05:05 [end_date_ymd] => 2025-03-07 04:05:05 [RateCDR] => 1 ) [2025-03-07 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:05:05' and `end` < '2025-03-07 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:05:17] Production.INFO: count ==268 [2025-03-07 04:05:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:05:05 - End Time 2025-03-07 04:05:05 [2025-03-07 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625252', 'tblTempUsageDetail_20' ) start [2025-03-07 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625252', 'tblTempUsageDetail_20' ) end [2025-03-07 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625252', 'tblTempVendorCDR_20' ) start [2025-03-07 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625252', 'tblTempVendorCDR_20' ) end [2025-03-07 04:05:17] Production.INFO: ProcessCDR(1,14625252,1,1,2) [2025-03-07 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625252', 'tblTempUsageDetail_20' ) start [2025-03-07 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625252', 'tblTempUsageDetail_20' ) end [2025-03-07 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:05:21] Production.INFO: ==4318== Releasing lock... [2025-03-07 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:06:05 [end_date_ymd] => 2025-03-07 04:06:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:06:05' and `end` < '2025-03-07 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-03-07 04:06:17] Production.INFO: count ==268 [2025-03-07 04:06:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:06:05 - End Time 2025-03-07 04:06:05 [2025-03-07 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625257', 'tblTempUsageDetail_20' ) start [2025-03-07 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625257', 'tblTempUsageDetail_20' ) end [2025-03-07 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625257', 'tblTempVendorCDR_20' ) start [2025-03-07 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625257', 'tblTempVendorCDR_20' ) end [2025-03-07 04:06:17] Production.INFO: ProcessCDR(1,14625257,1,1,2) [2025-03-07 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625257', 'tblTempUsageDetail_20' ) start [2025-03-07 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625257', 'tblTempUsageDetail_20' ) end [2025-03-07 04:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:06:20] Production.INFO: ==4387== Releasing lock... [2025-03-07 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:06:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:07:05 [end_date_ymd] => 2025-03-07 04:07:05 [RateCDR] => 1 ) [2025-03-07 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:07:05' and `end` < '2025-03-07 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:07:17] Production.INFO: count ==267 [2025-03-07 04:07:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:07:05 - End Time 2025-03-07 04:07:05 [2025-03-07 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625262', 'tblTempUsageDetail_20' ) start [2025-03-07 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625262', 'tblTempUsageDetail_20' ) end [2025-03-07 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625262', 'tblTempVendorCDR_20' ) start [2025-03-07 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625262', 'tblTempVendorCDR_20' ) end [2025-03-07 04:07:17] Production.INFO: ProcessCDR(1,14625262,1,1,2) [2025-03-07 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625262', 'tblTempUsageDetail_20' ) start [2025-03-07 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625262', 'tblTempUsageDetail_20' ) end [2025-03-07 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:07:21] Production.INFO: ==4460== Releasing lock... [2025-03-07 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:08:06 [end_date_ymd] => 2025-03-07 04:08:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:08:06' and `end` < '2025-03-07 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-03-07 04:08:18] Production.INFO: count ==268 [2025-03-07 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:08:06 - End Time 2025-03-07 04:08:06 [2025-03-07 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625267', 'tblTempUsageDetail_20' ) start [2025-03-07 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625267', 'tblTempUsageDetail_20' ) end [2025-03-07 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625267', 'tblTempVendorCDR_20' ) start [2025-03-07 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625267', 'tblTempVendorCDR_20' ) end [2025-03-07 04:08:18] Production.INFO: ProcessCDR(1,14625267,1,1,2) [2025-03-07 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625267', 'tblTempUsageDetail_20' ) start [2025-03-07 04:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625267', 'tblTempUsageDetail_20' ) end [2025-03-07 04:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:08:23] Production.INFO: ==4588== Releasing lock... [2025-03-07 04:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:08:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:09:05 [end_date_ymd] => 2025-03-07 04:09:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:09:05' and `end` < '2025-03-07 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-03-07 04:09:17] Production.INFO: count ==265 [2025-03-07 04:09:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:09:05 - End Time 2025-03-07 04:09:05 [2025-03-07 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625272', 'tblTempUsageDetail_20' ) start [2025-03-07 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625272', 'tblTempUsageDetail_20' ) end [2025-03-07 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625272', 'tblTempVendorCDR_20' ) start [2025-03-07 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625272', 'tblTempVendorCDR_20' ) end [2025-03-07 04:09:18] Production.INFO: ProcessCDR(1,14625272,1,1,2) [2025-03-07 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625272', 'tblTempUsageDetail_20' ) start [2025-03-07 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625272', 'tblTempUsageDetail_20' ) end [2025-03-07 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:09:21] Production.INFO: ==4662== Releasing lock... [2025-03-07 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:10:07 [end_date_ymd] => 2025-03-07 04:10:07 [RateCDR] => 1 ) [2025-03-07 04:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:10:07' and `end` < '2025-03-07 04:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:10:19] Production.INFO: count ==259 [2025-03-07 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-07 01:10:07 - End Time 2025-03-07 04:10:07 [2025-03-07 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625277', 'tblTempUsageDetail_20' ) start [2025-03-07 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625277', 'tblTempUsageDetail_20' ) end [2025-03-07 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625277', 'tblTempVendorCDR_20' ) start [2025-03-07 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625277', 'tblTempVendorCDR_20' ) end [2025-03-07 04:10:19] Production.INFO: ProcessCDR(1,14625277,1,1,2) [2025-03-07 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625277', 'tblTempUsageDetail_20' ) start [2025-03-07 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625277', 'tblTempUsageDetail_20' ) end [2025-03-07 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:10:23] Production.INFO: ==4736== Releasing lock... [2025-03-07 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:10:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:11:05 [end_date_ymd] => 2025-03-07 04:11:05 [RateCDR] => 1 ) [2025-03-07 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:11:05' and `end` < '2025-03-07 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:11:17] Production.INFO: count ==249 [2025-03-07 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:11:05 - End Time 2025-03-07 04:11:05 [2025-03-07 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625283', 'tblTempUsageDetail_20' ) start [2025-03-07 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625283', 'tblTempUsageDetail_20' ) end [2025-03-07 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625283', 'tblTempVendorCDR_20' ) start [2025-03-07 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625283', 'tblTempVendorCDR_20' ) end [2025-03-07 04:11:17] Production.INFO: ProcessCDR(1,14625283,1,1,2) [2025-03-07 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625283', 'tblTempUsageDetail_20' ) start [2025-03-07 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625283', 'tblTempUsageDetail_20' ) end [2025-03-07 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:11:21] Production.INFO: ==4811== Releasing lock... [2025-03-07 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:12:06 [end_date_ymd] => 2025-03-07 04:12:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:12:06' and `end` < '2025-03-07 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-03-07 04:12:18] Production.INFO: count ==249 [2025-03-07 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:12:06 - End Time 2025-03-07 04:12:06 [2025-03-07 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625288', 'tblTempUsageDetail_20' ) start [2025-03-07 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625288', 'tblTempUsageDetail_20' ) end [2025-03-07 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625288', 'tblTempVendorCDR_20' ) start [2025-03-07 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625288', 'tblTempVendorCDR_20' ) end [2025-03-07 04:12:18] Production.INFO: ProcessCDR(1,14625288,1,1,2) [2025-03-07 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625288', 'tblTempUsageDetail_20' ) start [2025-03-07 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625288', 'tblTempUsageDetail_20' ) end [2025-03-07 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:12:21] Production.INFO: ==4885== Releasing lock... [2025-03-07 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:13:05 [end_date_ymd] => 2025-03-07 04:13:05 [RateCDR] => 1 ) [2025-03-07 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:13:05' and `end` < '2025-03-07 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:13:17] Production.INFO: count ==249 [2025-03-07 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:13:05 - End Time 2025-03-07 04:13:05 [2025-03-07 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625293', 'tblTempUsageDetail_20' ) start [2025-03-07 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625293', 'tblTempUsageDetail_20' ) end [2025-03-07 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625293', 'tblTempVendorCDR_20' ) start [2025-03-07 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625293', 'tblTempVendorCDR_20' ) end [2025-03-07 04:13:17] Production.INFO: ProcessCDR(1,14625293,1,1,2) [2025-03-07 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625293', 'tblTempUsageDetail_20' ) start [2025-03-07 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625293', 'tblTempUsageDetail_20' ) end [2025-03-07 04:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:13:20] Production.INFO: ==4955== Releasing lock... [2025-03-07 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:13:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:14:05 [end_date_ymd] => 2025-03-07 04:14:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:14:05' and `end` < '2025-03-07 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-03-07 04:14:17] Production.INFO: count ==249 [2025-03-07 04:14:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:14:05 - End Time 2025-03-07 04:14:05 [2025-03-07 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625298', 'tblTempUsageDetail_20' ) start [2025-03-07 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625298', 'tblTempUsageDetail_20' ) end [2025-03-07 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625298', 'tblTempVendorCDR_20' ) start [2025-03-07 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625298', 'tblTempVendorCDR_20' ) end [2025-03-07 04:14:17] Production.INFO: ProcessCDR(1,14625298,1,1,2) [2025-03-07 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625298', 'tblTempUsageDetail_20' ) start [2025-03-07 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625298', 'tblTempUsageDetail_20' ) end [2025-03-07 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:14:21] Production.INFO: ==5028== Releasing lock... [2025-03-07 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:15:05 [end_date_ymd] => 2025-03-07 04:15:05 [RateCDR] => 1 ) [2025-03-07 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:15:05' and `end` < '2025-03-07 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:15:17] Production.INFO: count ==249 [2025-03-07 04:15:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:15:05 - End Time 2025-03-07 04:15:05 [2025-03-07 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625303', 'tblTempUsageDetail_20' ) start [2025-03-07 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625303', 'tblTempUsageDetail_20' ) end [2025-03-07 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625303', 'tblTempVendorCDR_20' ) start [2025-03-07 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625303', 'tblTempVendorCDR_20' ) end [2025-03-07 04:15:17] Production.INFO: ProcessCDR(1,14625303,1,1,2) [2025-03-07 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625303', 'tblTempUsageDetail_20' ) start [2025-03-07 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625303', 'tblTempUsageDetail_20' ) end [2025-03-07 04:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:15:21] Production.INFO: ==5102== Releasing lock... [2025-03-07 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:16:05 [end_date_ymd] => 2025-03-07 04:16:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:16:05' and `end` < '2025-03-07 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-03-07 04:16:17] Production.INFO: count ==249 [2025-03-07 04:16:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:16:05 - End Time 2025-03-07 04:16:05 [2025-03-07 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625308', 'tblTempUsageDetail_20' ) start [2025-03-07 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625308', 'tblTempUsageDetail_20' ) end [2025-03-07 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625308', 'tblTempVendorCDR_20' ) start [2025-03-07 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625308', 'tblTempVendorCDR_20' ) end [2025-03-07 04:16:17] Production.INFO: ProcessCDR(1,14625308,1,1,2) [2025-03-07 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625308', 'tblTempUsageDetail_20' ) start [2025-03-07 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625308', 'tblTempUsageDetail_20' ) end [2025-03-07 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:16:21] Production.INFO: ==5178== Releasing lock... [2025-03-07 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:17:05 [end_date_ymd] => 2025-03-07 04:17:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:17:05' and `end` < '2025-03-07 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-03-07 04:17:17] Production.INFO: count ==249 [2025-03-07 04:17:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:17:05 - End Time 2025-03-07 04:17:05 [2025-03-07 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625313', 'tblTempUsageDetail_20' ) start [2025-03-07 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625313', 'tblTempUsageDetail_20' ) end [2025-03-07 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625313', 'tblTempVendorCDR_20' ) start [2025-03-07 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625313', 'tblTempVendorCDR_20' ) end [2025-03-07 04:17:17] Production.INFO: ProcessCDR(1,14625313,1,1,2) [2025-03-07 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625313', 'tblTempUsageDetail_20' ) start [2025-03-07 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625313', 'tblTempUsageDetail_20' ) end [2025-03-07 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:17:20] Production.INFO: ==5251== Releasing lock... [2025-03-07 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:17:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:18:06 [end_date_ymd] => 2025-03-07 04:18:06 [RateCDR] => 1 ) [2025-03-07 04:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:18:06' and `end` < '2025-03-07 04:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:18:18] Production.INFO: count ==249 [2025-03-07 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:18:06 - End Time 2025-03-07 04:18:06 [2025-03-07 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625318', 'tblTempUsageDetail_20' ) start [2025-03-07 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625318', 'tblTempUsageDetail_20' ) end [2025-03-07 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625318', 'tblTempVendorCDR_20' ) start [2025-03-07 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625318', 'tblTempVendorCDR_20' ) end [2025-03-07 04:18:18] Production.INFO: ProcessCDR(1,14625318,1,1,2) [2025-03-07 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625318', 'tblTempUsageDetail_20' ) start [2025-03-07 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625318', 'tblTempUsageDetail_20' ) end [2025-03-07 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:18:21] Production.INFO: ==5333== Releasing lock... [2025-03-07 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:19:05 [end_date_ymd] => 2025-03-07 04:19:05 [RateCDR] => 1 ) [2025-03-07 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:19:05' and `end` < '2025-03-07 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:19:17] Production.INFO: count ==249 [2025-03-07 04:19:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:19:05 - End Time 2025-03-07 04:19:05 [2025-03-07 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625323', 'tblTempUsageDetail_20' ) start [2025-03-07 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625323', 'tblTempUsageDetail_20' ) end [2025-03-07 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625323', 'tblTempVendorCDR_20' ) start [2025-03-07 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625323', 'tblTempVendorCDR_20' ) end [2025-03-07 04:19:17] Production.INFO: ProcessCDR(1,14625323,1,1,2) [2025-03-07 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625323', 'tblTempUsageDetail_20' ) start [2025-03-07 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625323', 'tblTempUsageDetail_20' ) end [2025-03-07 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:19:21] Production.INFO: ==5404== Releasing lock... [2025-03-07 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:20:06 [end_date_ymd] => 2025-03-07 04:20:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:20:06' and `end` < '2025-03-07 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-03-07 04:20:18] Production.INFO: count ==243 [2025-03-07 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:20:06 - End Time 2025-03-07 04:20:06 [2025-03-07 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625329', 'tblTempUsageDetail_20' ) start [2025-03-07 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625329', 'tblTempUsageDetail_20' ) end [2025-03-07 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625329', 'tblTempVendorCDR_20' ) start [2025-03-07 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625329', 'tblTempVendorCDR_20' ) end [2025-03-07 04:20:18] Production.INFO: ProcessCDR(1,14625329,1,1,2) [2025-03-07 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625329', 'tblTempUsageDetail_20' ) start [2025-03-07 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625329', 'tblTempUsageDetail_20' ) end [2025-03-07 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:20:21] Production.INFO: ==5482== Releasing lock... [2025-03-07 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:20:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:21:05 [end_date_ymd] => 2025-03-07 04:21:05 [RateCDR] => 1 ) [2025-03-07 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:21:05' and `end` < '2025-03-07 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:21:17] Production.INFO: count ==235 [2025-03-07 04:21:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:21:05 - End Time 2025-03-07 04:21:05 [2025-03-07 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625334', 'tblTempUsageDetail_20' ) start [2025-03-07 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625334', 'tblTempUsageDetail_20' ) end [2025-03-07 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625334', 'tblTempVendorCDR_20' ) start [2025-03-07 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625334', 'tblTempVendorCDR_20' ) end [2025-03-07 04:21:17] Production.INFO: ProcessCDR(1,14625334,1,1,2) [2025-03-07 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625334', 'tblTempUsageDetail_20' ) start [2025-03-07 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625334', 'tblTempUsageDetail_20' ) end [2025-03-07 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:21:20] Production.INFO: ==5554== Releasing lock... [2025-03-07 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:21:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:22:05 [end_date_ymd] => 2025-03-07 04:22:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:22:05' and `end` < '2025-03-07 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-03-07 04:22:17] Production.INFO: count ==235 [2025-03-07 04:22:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:22:05 - End Time 2025-03-07 04:22:05 [2025-03-07 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625339', 'tblTempUsageDetail_20' ) start [2025-03-07 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625339', 'tblTempUsageDetail_20' ) end [2025-03-07 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625339', 'tblTempVendorCDR_20' ) start [2025-03-07 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625339', 'tblTempVendorCDR_20' ) end [2025-03-07 04:22:17] Production.INFO: ProcessCDR(1,14625339,1,1,2) [2025-03-07 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625339', 'tblTempUsageDetail_20' ) start [2025-03-07 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625339', 'tblTempUsageDetail_20' ) end [2025-03-07 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:22:21] Production.INFO: ==5624== Releasing lock... [2025-03-07 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:23:05 [end_date_ymd] => 2025-03-07 04:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:23:05' and `end` < '2025-03-07 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-03-07 04:23:17] Production.INFO: count ==235 [2025-03-07 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:23:05 - End Time 2025-03-07 04:23:05 [2025-03-07 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625344', 'tblTempUsageDetail_20' ) start [2025-03-07 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625344', 'tblTempUsageDetail_20' ) end [2025-03-07 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625344', 'tblTempVendorCDR_20' ) start [2025-03-07 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625344', 'tblTempVendorCDR_20' ) end [2025-03-07 04:23:17] Production.INFO: ProcessCDR(1,14625344,1,1,2) [2025-03-07 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625344', 'tblTempUsageDetail_20' ) start [2025-03-07 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625344', 'tblTempUsageDetail_20' ) end [2025-03-07 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:23:20] Production.INFO: ==5697== Releasing lock... [2025-03-07 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:23:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:24:06 [end_date_ymd] => 2025-03-07 04:24:06 [RateCDR] => 1 ) [2025-03-07 04:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:24:06' and `end` < '2025-03-07 04: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-03-07 04:24:18] Production.INFO: count ==235 [2025-03-07 04:24:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:24:06 - End Time 2025-03-07 04:24:06 [2025-03-07 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625349', 'tblTempUsageDetail_20' ) start [2025-03-07 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625349', 'tblTempUsageDetail_20' ) end [2025-03-07 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625349', 'tblTempVendorCDR_20' ) start [2025-03-07 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625349', 'tblTempVendorCDR_20' ) end [2025-03-07 04:24:18] Production.INFO: ProcessCDR(1,14625349,1,1,2) [2025-03-07 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625349', 'tblTempUsageDetail_20' ) start [2025-03-07 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625349', 'tblTempUsageDetail_20' ) end [2025-03-07 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:24:21] Production.INFO: ==5807== Releasing lock... [2025-03-07 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:25:05 [end_date_ymd] => 2025-03-07 04:25:05 [RateCDR] => 1 ) [2025-03-07 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:25:05' and `end` < '2025-03-07 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:25:16] Production.INFO: count ==234 [2025-03-07 04:25:16] Production.ERROR: pbx CDR StartTime 2025-03-07 01:25:05 - End Time 2025-03-07 04:25:05 [2025-03-07 04:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625354', 'tblTempUsageDetail_20' ) start [2025-03-07 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625354', 'tblTempUsageDetail_20' ) end [2025-03-07 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625354', 'tblTempVendorCDR_20' ) start [2025-03-07 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625354', 'tblTempVendorCDR_20' ) end [2025-03-07 04:25:16] Production.INFO: ProcessCDR(1,14625354,1,1,2) [2025-03-07 04:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625354', 'tblTempUsageDetail_20' ) start [2025-03-07 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625354', 'tblTempUsageDetail_20' ) end [2025-03-07 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:25:20] Production.INFO: ==5878== Releasing lock... [2025-03-07 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:25:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:26:06 [end_date_ymd] => 2025-03-07 04:26:06 [RateCDR] => 1 ) [2025-03-07 04:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:26:06' and `end` < '2025-03-07 04:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:26:18] Production.INFO: count ==234 [2025-03-07 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:26:06 - End Time 2025-03-07 04:26:06 [2025-03-07 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625359', 'tblTempUsageDetail_20' ) start [2025-03-07 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625359', 'tblTempUsageDetail_20' ) end [2025-03-07 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625359', 'tblTempVendorCDR_20' ) start [2025-03-07 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625359', 'tblTempVendorCDR_20' ) end [2025-03-07 04:26:18] Production.INFO: ProcessCDR(1,14625359,1,1,2) [2025-03-07 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625359', 'tblTempUsageDetail_20' ) start [2025-03-07 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625359', 'tblTempUsageDetail_20' ) end [2025-03-07 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:26:21] Production.INFO: ==5952== Releasing lock... [2025-03-07 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:27:04 [end_date_ymd] => 2025-03-07 04:27:04 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:27:04' and `end` < '2025-03-07 04: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-03-07 04:27:17] Production.INFO: count ==234 [2025-03-07 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:27:04 - End Time 2025-03-07 04:27:04 [2025-03-07 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625364', 'tblTempUsageDetail_20' ) start [2025-03-07 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625364', 'tblTempUsageDetail_20' ) end [2025-03-07 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625364', 'tblTempVendorCDR_20' ) start [2025-03-07 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625364', 'tblTempVendorCDR_20' ) end [2025-03-07 04:27:17] Production.INFO: ProcessCDR(1,14625364,1,1,2) [2025-03-07 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625364', 'tblTempUsageDetail_20' ) start [2025-03-07 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625364', 'tblTempUsageDetail_20' ) end [2025-03-07 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:27:20] Production.INFO: ==6023== Releasing lock... [2025-03-07 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:27:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:28:05 [end_date_ymd] => 2025-03-07 04:28:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:28:05' and `end` < '2025-03-07 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-03-07 04:28:17] Production.INFO: count ==231 [2025-03-07 04:28:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:28:05 - End Time 2025-03-07 04:28:05 [2025-03-07 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625369', 'tblTempUsageDetail_20' ) start [2025-03-07 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625369', 'tblTempUsageDetail_20' ) end [2025-03-07 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625369', 'tblTempVendorCDR_20' ) start [2025-03-07 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625369', 'tblTempVendorCDR_20' ) end [2025-03-07 04:28:17] Production.INFO: ProcessCDR(1,14625369,1,1,2) [2025-03-07 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625369', 'tblTempUsageDetail_20' ) start [2025-03-07 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625369', 'tblTempUsageDetail_20' ) end [2025-03-07 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:28:21] Production.INFO: ==6099== Releasing lock... [2025-03-07 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:28:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:29:06 [end_date_ymd] => 2025-03-07 04:29:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:29:06' and `end` < '2025-03-07 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-03-07 04:29:18] Production.INFO: count ==231 [2025-03-07 04:29:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:29:06 - End Time 2025-03-07 04:29:06 [2025-03-07 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625374', 'tblTempUsageDetail_20' ) start [2025-03-07 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625374', 'tblTempUsageDetail_20' ) end [2025-03-07 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625374', 'tblTempVendorCDR_20' ) start [2025-03-07 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625374', 'tblTempVendorCDR_20' ) end [2025-03-07 04:29:18] Production.INFO: ProcessCDR(1,14625374,1,1,2) [2025-03-07 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625374', 'tblTempUsageDetail_20' ) start [2025-03-07 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625374', 'tblTempUsageDetail_20' ) end [2025-03-07 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:29:21] Production.INFO: ==6170== Releasing lock... [2025-03-07 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:29:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:30:06 [end_date_ymd] => 2025-03-07 04:30:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:30:06' and `end` < '2025-03-07 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-03-07 04:30:18] Production.INFO: count ==227 [2025-03-07 04:30:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:30:06 - End Time 2025-03-07 04:30:06 [2025-03-07 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625379', 'tblTempUsageDetail_20' ) start [2025-03-07 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625379', 'tblTempUsageDetail_20' ) end [2025-03-07 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625379', 'tblTempVendorCDR_20' ) start [2025-03-07 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625379', 'tblTempVendorCDR_20' ) end [2025-03-07 04:30:18] Production.INFO: ProcessCDR(1,14625379,1,1,2) [2025-03-07 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625379', 'tblTempUsageDetail_20' ) start [2025-03-07 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625379', 'tblTempUsageDetail_20' ) end [2025-03-07 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:30:22] Production.INFO: ==6247== Releasing lock... [2025-03-07 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:30:22] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:31:06 [end_date_ymd] => 2025-03-07 04:31:06 [RateCDR] => 1 ) [2025-03-07 04:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:31:06' and `end` < '2025-03-07 04:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:31:18] Production.INFO: count ==202 [2025-03-07 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:31:06 - End Time 2025-03-07 04:31:06 [2025-03-07 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625386', 'tblTempUsageDetail_20' ) start [2025-03-07 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625386', 'tblTempUsageDetail_20' ) end [2025-03-07 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625386', 'tblTempVendorCDR_20' ) start [2025-03-07 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625386', 'tblTempVendorCDR_20' ) end [2025-03-07 04:31:18] Production.INFO: ProcessCDR(1,14625386,1,1,2) [2025-03-07 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625386', 'tblTempUsageDetail_20' ) start [2025-03-07 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625386', 'tblTempUsageDetail_20' ) end [2025-03-07 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:31:22] Production.INFO: ==6325== Releasing lock... [2025-03-07 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:31:22] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:32:06 [end_date_ymd] => 2025-03-07 04:32:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:32:06' and `end` < '2025-03-07 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-03-07 04:32:18] Production.INFO: count ==202 [2025-03-07 04:32:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:32:06 - End Time 2025-03-07 04:32:06 [2025-03-07 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625391', 'tblTempUsageDetail_20' ) start [2025-03-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625391', 'tblTempUsageDetail_20' ) end [2025-03-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625391', 'tblTempVendorCDR_20' ) start [2025-03-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625391', 'tblTempVendorCDR_20' ) end [2025-03-07 04:32:18] Production.INFO: ProcessCDR(1,14625391,1,1,2) [2025-03-07 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625391', 'tblTempUsageDetail_20' ) start [2025-03-07 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625391', 'tblTempUsageDetail_20' ) end [2025-03-07 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:32:21] Production.INFO: ==6459== Releasing lock... [2025-03-07 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:32:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:33:06 [end_date_ymd] => 2025-03-07 04:33:06 [RateCDR] => 1 ) [2025-03-07 04:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:33:06' and `end` < '2025-03-07 04:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:33:18] Production.INFO: count ==202 [2025-03-07 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:33:06 - End Time 2025-03-07 04:33:06 [2025-03-07 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625396', 'tblTempUsageDetail_20' ) start [2025-03-07 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625396', 'tblTempUsageDetail_20' ) end [2025-03-07 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625396', 'tblTempVendorCDR_20' ) start [2025-03-07 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625396', 'tblTempVendorCDR_20' ) end [2025-03-07 04:33:18] Production.INFO: ProcessCDR(1,14625396,1,1,2) [2025-03-07 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625396', 'tblTempUsageDetail_20' ) start [2025-03-07 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625396', 'tblTempUsageDetail_20' ) end [2025-03-07 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:33:21] Production.INFO: ==6531== Releasing lock... [2025-03-07 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:33:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:34:05 [end_date_ymd] => 2025-03-07 04:34:05 [RateCDR] => 1 ) [2025-03-07 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:34:05' and `end` < '2025-03-07 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:34:17] Production.INFO: count ==199 [2025-03-07 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:34:05 - End Time 2025-03-07 04:34:05 [2025-03-07 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625401', 'tblTempUsageDetail_20' ) start [2025-03-07 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625401', 'tblTempUsageDetail_20' ) end [2025-03-07 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625401', 'tblTempVendorCDR_20' ) start [2025-03-07 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625401', 'tblTempVendorCDR_20' ) end [2025-03-07 04:34:17] Production.INFO: ProcessCDR(1,14625401,1,1,2) [2025-03-07 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625401', 'tblTempUsageDetail_20' ) start [2025-03-07 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625401', 'tblTempUsageDetail_20' ) end [2025-03-07 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:34:20] Production.INFO: ==6601== Releasing lock... [2025-03-07 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:34:20] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:35:06 [end_date_ymd] => 2025-03-07 04:35:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:35:06' and `end` < '2025-03-07 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-03-07 04:35:18] Production.INFO: count ==198 [2025-03-07 04:35:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:35:06 - End Time 2025-03-07 04:35:06 [2025-03-07 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625406', 'tblTempUsageDetail_20' ) start [2025-03-07 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625406', 'tblTempUsageDetail_20' ) end [2025-03-07 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625406', 'tblTempVendorCDR_20' ) start [2025-03-07 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625406', 'tblTempVendorCDR_20' ) end [2025-03-07 04:35:18] Production.INFO: ProcessCDR(1,14625406,1,1,2) [2025-03-07 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625406', 'tblTempUsageDetail_20' ) start [2025-03-07 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625406', 'tblTempUsageDetail_20' ) end [2025-03-07 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:35:21] Production.INFO: ==6674== Releasing lock... [2025-03-07 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:36:05 [end_date_ymd] => 2025-03-07 04:36:05 [RateCDR] => 1 ) [2025-03-07 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:36:05' and `end` < '2025-03-07 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:36:17] Production.INFO: count ==198 [2025-03-07 04:36:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:36:05 - End Time 2025-03-07 04:36:05 [2025-03-07 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625411', 'tblTempUsageDetail_20' ) start [2025-03-07 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625411', 'tblTempUsageDetail_20' ) end [2025-03-07 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625411', 'tblTempVendorCDR_20' ) start [2025-03-07 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625411', 'tblTempVendorCDR_20' ) end [2025-03-07 04:36:17] Production.INFO: ProcessCDR(1,14625411,1,1,2) [2025-03-07 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625411', 'tblTempUsageDetail_20' ) start [2025-03-07 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625411', 'tblTempUsageDetail_20' ) end [2025-03-07 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:36:20] Production.INFO: ==6744== Releasing lock... [2025-03-07 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:36:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 04:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:37:06 [end_date_ymd] => 2025-03-07 04:37:06 [RateCDR] => 1 ) [2025-03-07 04:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:37:06' and `end` < '2025-03-07 04:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:37:18] Production.INFO: count ==198 [2025-03-07 04:37:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:37:06 - End Time 2025-03-07 04:37:06 [2025-03-07 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625416', 'tblTempUsageDetail_20' ) start [2025-03-07 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625416', 'tblTempUsageDetail_20' ) end [2025-03-07 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625416', 'tblTempVendorCDR_20' ) start [2025-03-07 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625416', 'tblTempVendorCDR_20' ) end [2025-03-07 04:37:18] Production.INFO: ProcessCDR(1,14625416,1,1,2) [2025-03-07 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625416', 'tblTempUsageDetail_20' ) start [2025-03-07 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625416', 'tblTempUsageDetail_20' ) end [2025-03-07 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:37:21] Production.INFO: ==6814== Releasing lock... [2025-03-07 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:38:05 [end_date_ymd] => 2025-03-07 04:38:05 [RateCDR] => 1 ) [2025-03-07 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:38:05' and `end` < '2025-03-07 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:38:17] Production.INFO: count ==199 [2025-03-07 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:38:05 - End Time 2025-03-07 04:38:05 [2025-03-07 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625421', 'tblTempUsageDetail_20' ) start [2025-03-07 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625421', 'tblTempUsageDetail_20' ) end [2025-03-07 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625421', 'tblTempVendorCDR_20' ) start [2025-03-07 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625421', 'tblTempVendorCDR_20' ) end [2025-03-07 04:38:17] Production.INFO: ProcessCDR(1,14625421,1,1,2) [2025-03-07 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625421', 'tblTempUsageDetail_20' ) start [2025-03-07 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625421', 'tblTempUsageDetail_20' ) end [2025-03-07 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:38:22] Production.INFO: ==6883== Releasing lock... [2025-03-07 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:38:22] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:39:06 [end_date_ymd] => 2025-03-07 04:39:06 [RateCDR] => 1 ) [2025-03-07 04: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-03-07 01:39:06' and `end` < '2025-03-07 04: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-03-07 04:39:18] Production.INFO: count ==199 [2025-03-07 04:39:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:39:06 - End Time 2025-03-07 04:39:06 [2025-03-07 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625426', 'tblTempUsageDetail_20' ) start [2025-03-07 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625426', 'tblTempUsageDetail_20' ) end [2025-03-07 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625426', 'tblTempVendorCDR_20' ) start [2025-03-07 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625426', 'tblTempVendorCDR_20' ) end [2025-03-07 04:39:18] Production.INFO: ProcessCDR(1,14625426,1,1,2) [2025-03-07 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625426', 'tblTempUsageDetail_20' ) start [2025-03-07 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625426', 'tblTempUsageDetail_20' ) end [2025-03-07 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:39:21] Production.INFO: ==6993== Releasing lock... [2025-03-07 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:39:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:40:06 [end_date_ymd] => 2025-03-07 04:40:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:40:06' and `end` < '2025-03-07 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-03-07 04:40:17] Production.INFO: count ==195 [2025-03-07 04:40:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:40:06 - End Time 2025-03-07 04:40:06 [2025-03-07 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625431', 'tblTempUsageDetail_20' ) start [2025-03-07 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625431', 'tblTempUsageDetail_20' ) end [2025-03-07 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625431', 'tblTempVendorCDR_20' ) start [2025-03-07 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625431', 'tblTempVendorCDR_20' ) end [2025-03-07 04:40:18] Production.INFO: ProcessCDR(1,14625431,1,1,2) [2025-03-07 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625431', 'tblTempUsageDetail_20' ) start [2025-03-07 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625431', 'tblTempUsageDetail_20' ) end [2025-03-07 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:40:21] Production.INFO: ==7067== Releasing lock... [2025-03-07 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:40:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:41:05 [end_date_ymd] => 2025-03-07 04:41:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:41:05' and `end` < '2025-03-07 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-03-07 04:41:17] Production.INFO: count ==181 [2025-03-07 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:41:05 - End Time 2025-03-07 04:41:05 [2025-03-07 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625437', 'tblTempUsageDetail_20' ) start [2025-03-07 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625437', 'tblTempUsageDetail_20' ) end [2025-03-07 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625437', 'tblTempVendorCDR_20' ) start [2025-03-07 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625437', 'tblTempVendorCDR_20' ) end [2025-03-07 04:41:17] Production.INFO: ProcessCDR(1,14625437,1,1,2) [2025-03-07 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625437', 'tblTempUsageDetail_20' ) start [2025-03-07 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625437', 'tblTempUsageDetail_20' ) end [2025-03-07 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:41:21] Production.INFO: ==7142== Releasing lock... [2025-03-07 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:42:05 [end_date_ymd] => 2025-03-07 04:42:05 [RateCDR] => 1 ) [2025-03-07 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:42:05' and `end` < '2025-03-07 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:42:17] Production.INFO: count ==181 [2025-03-07 04:42:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:42:05 - End Time 2025-03-07 04:42:05 [2025-03-07 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625442', 'tblTempUsageDetail_20' ) start [2025-03-07 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625442', 'tblTempUsageDetail_20' ) end [2025-03-07 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625442', 'tblTempVendorCDR_20' ) start [2025-03-07 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625442', 'tblTempVendorCDR_20' ) end [2025-03-07 04:42:17] Production.INFO: ProcessCDR(1,14625442,1,1,2) [2025-03-07 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625442', 'tblTempUsageDetail_20' ) start [2025-03-07 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625442', 'tblTempUsageDetail_20' ) end [2025-03-07 04:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:42:20] Production.INFO: ==7212== Releasing lock... [2025-03-07 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:42:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:43:05 [end_date_ymd] => 2025-03-07 04:43:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:43:05' and `end` < '2025-03-07 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-03-07 04:43:17] Production.INFO: count ==181 [2025-03-07 04:43:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:43:05 - End Time 2025-03-07 04:43:05 [2025-03-07 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625447', 'tblTempUsageDetail_20' ) start [2025-03-07 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625447', 'tblTempUsageDetail_20' ) end [2025-03-07 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625447', 'tblTempVendorCDR_20' ) start [2025-03-07 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625447', 'tblTempVendorCDR_20' ) end [2025-03-07 04:43:17] Production.INFO: ProcessCDR(1,14625447,1,1,2) [2025-03-07 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625447', 'tblTempUsageDetail_20' ) start [2025-03-07 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625447', 'tblTempUsageDetail_20' ) end [2025-03-07 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:43:20] Production.INFO: ==7282== Releasing lock... [2025-03-07 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:43:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:44:05 [end_date_ymd] => 2025-03-07 04:44:05 [RateCDR] => 1 ) [2025-03-07 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:44:05' and `end` < '2025-03-07 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:44:17] Production.INFO: count ==181 [2025-03-07 04:44:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:44:05 - End Time 2025-03-07 04:44:05 [2025-03-07 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625452', 'tblTempUsageDetail_20' ) start [2025-03-07 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625452', 'tblTempUsageDetail_20' ) end [2025-03-07 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625452', 'tblTempVendorCDR_20' ) start [2025-03-07 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625452', 'tblTempVendorCDR_20' ) end [2025-03-07 04:44:17] Production.INFO: ProcessCDR(1,14625452,1,1,2) [2025-03-07 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625452', 'tblTempUsageDetail_20' ) start [2025-03-07 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625452', 'tblTempUsageDetail_20' ) end [2025-03-07 04:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:44:20] Production.INFO: ==7354== Releasing lock... [2025-03-07 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:44:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:45:05 [end_date_ymd] => 2025-03-07 04:45:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:45:05' and `end` < '2025-03-07 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-03-07 04:45:17] Production.INFO: count ==181 [2025-03-07 04:45:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:45:05 - End Time 2025-03-07 04:45:05 [2025-03-07 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625457', 'tblTempUsageDetail_20' ) start [2025-03-07 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625457', 'tblTempUsageDetail_20' ) end [2025-03-07 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625457', 'tblTempVendorCDR_20' ) start [2025-03-07 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625457', 'tblTempVendorCDR_20' ) end [2025-03-07 04:45:17] Production.INFO: ProcessCDR(1,14625457,1,1,2) [2025-03-07 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625457', 'tblTempUsageDetail_20' ) start [2025-03-07 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625457', 'tblTempUsageDetail_20' ) end [2025-03-07 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:45:20] Production.INFO: ==7426== Releasing lock... [2025-03-07 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:45:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:46:06 [end_date_ymd] => 2025-03-07 04:46:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:46:06' and `end` < '2025-03-07 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-03-07 04:46:20] Production.INFO: count ==181 [2025-03-07 04:46:20] Production.ERROR: pbx CDR StartTime 2025-03-07 01:46:06 - End Time 2025-03-07 04:46:06 [2025-03-07 04:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625462', 'tblTempUsageDetail_20' ) start [2025-03-07 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625462', 'tblTempUsageDetail_20' ) end [2025-03-07 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625462', 'tblTempVendorCDR_20' ) start [2025-03-07 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625462', 'tblTempVendorCDR_20' ) end [2025-03-07 04:46:20] Production.INFO: ProcessCDR(1,14625462,1,1,2) [2025-03-07 04:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625462', 'tblTempUsageDetail_20' ) start [2025-03-07 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625462', 'tblTempUsageDetail_20' ) end [2025-03-07 04:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:46:23] Production.INFO: ==7497== Releasing lock... [2025-03-07 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:46:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:47:05 [end_date_ymd] => 2025-03-07 04:47:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:47:05' and `end` < '2025-03-07 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-03-07 04:47:17] Production.INFO: count ==181 [2025-03-07 04:47:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:47:05 - End Time 2025-03-07 04:47:05 [2025-03-07 04:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625467', 'tblTempUsageDetail_20' ) start [2025-03-07 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625467', 'tblTempUsageDetail_20' ) end [2025-03-07 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625467', 'tblTempVendorCDR_20' ) start [2025-03-07 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625467', 'tblTempVendorCDR_20' ) end [2025-03-07 04:47:17] Production.INFO: ProcessCDR(1,14625467,1,1,2) [2025-03-07 04:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625467', 'tblTempUsageDetail_20' ) start [2025-03-07 04:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625467', 'tblTempUsageDetail_20' ) end [2025-03-07 04:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:47:20] Production.INFO: ==7571== Releasing lock... [2025-03-07 04:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:47:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:48:06 [end_date_ymd] => 2025-03-07 04:48:06 [RateCDR] => 1 ) [2025-03-07 04: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-03-07 01:48:06' and `end` < '2025-03-07 04: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-03-07 04:48:18] Production.INFO: count ==181 [2025-03-07 04:48:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:48:06 - End Time 2025-03-07 04:48:06 [2025-03-07 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625472', 'tblTempUsageDetail_20' ) start [2025-03-07 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625472', 'tblTempUsageDetail_20' ) end [2025-03-07 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625472', 'tblTempVendorCDR_20' ) start [2025-03-07 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625472', 'tblTempVendorCDR_20' ) end [2025-03-07 04:48:18] Production.INFO: ProcessCDR(1,14625472,1,1,2) [2025-03-07 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625472', 'tblTempUsageDetail_20' ) start [2025-03-07 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625472', 'tblTempUsageDetail_20' ) end [2025-03-07 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:48:21] Production.INFO: ==7643== Releasing lock... [2025-03-07 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:49:04 [end_date_ymd] => 2025-03-07 04:49:04 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:49:04' and `end` < '2025-03-07 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-03-07 04:49:18] Production.INFO: count ==181 [2025-03-07 04:49:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:49:04 - End Time 2025-03-07 04:49:04 [2025-03-07 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625477', 'tblTempUsageDetail_20' ) start [2025-03-07 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625477', 'tblTempUsageDetail_20' ) end [2025-03-07 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625477', 'tblTempVendorCDR_20' ) start [2025-03-07 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625477', 'tblTempVendorCDR_20' ) end [2025-03-07 04:49:18] Production.INFO: ProcessCDR(1,14625477,1,1,2) [2025-03-07 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625477', 'tblTempUsageDetail_20' ) start [2025-03-07 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625477', 'tblTempUsageDetail_20' ) end [2025-03-07 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:49:21] Production.INFO: ==7714== Releasing lock... [2025-03-07 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 04:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:50:07 [end_date_ymd] => 2025-03-07 04:50:07 [RateCDR] => 1 ) [2025-03-07 04: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-03-07 01:50:07' and `end` < '2025-03-07 04: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-03-07 04:50:19] Production.INFO: count ==177 [2025-03-07 04:50:19] Production.ERROR: pbx CDR StartTime 2025-03-07 01:50:07 - End Time 2025-03-07 04:50:07 [2025-03-07 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625483', 'tblTempUsageDetail_20' ) start [2025-03-07 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625483', 'tblTempUsageDetail_20' ) end [2025-03-07 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625483', 'tblTempVendorCDR_20' ) start [2025-03-07 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625483', 'tblTempVendorCDR_20' ) end [2025-03-07 04:50:19] Production.INFO: ProcessCDR(1,14625483,1,1,2) [2025-03-07 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625483', 'tblTempUsageDetail_20' ) start [2025-03-07 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625483', 'tblTempUsageDetail_20' ) end [2025-03-07 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:50:23] Production.INFO: ==7789== Releasing lock... [2025-03-07 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:50:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:51:05 [end_date_ymd] => 2025-03-07 04:51:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:51:05' and `end` < '2025-03-07 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-03-07 04:51:18] Production.INFO: count ==180 [2025-03-07 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:51:05 - End Time 2025-03-07 04:51:05 [2025-03-07 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625488', 'tblTempUsageDetail_20' ) start [2025-03-07 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625488', 'tblTempUsageDetail_20' ) end [2025-03-07 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625488', 'tblTempVendorCDR_20' ) start [2025-03-07 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625488', 'tblTempVendorCDR_20' ) end [2025-03-07 04:51:18] Production.INFO: ProcessCDR(1,14625488,1,1,2) [2025-03-07 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625488', 'tblTempUsageDetail_20' ) start [2025-03-07 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625488', 'tblTempUsageDetail_20' ) end [2025-03-07 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:51:21] Production.INFO: ==7861== Releasing lock... [2025-03-07 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:51:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:52:06 [end_date_ymd] => 2025-03-07 04:52:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:52:06' and `end` < '2025-03-07 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-03-07 04:52:19] Production.INFO: count ==180 [2025-03-07 04:52:19] Production.ERROR: pbx CDR StartTime 2025-03-07 01:52:06 - End Time 2025-03-07 04:52:06 [2025-03-07 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625493', 'tblTempUsageDetail_20' ) start [2025-03-07 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625493', 'tblTempUsageDetail_20' ) end [2025-03-07 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625493', 'tblTempVendorCDR_20' ) start [2025-03-07 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625493', 'tblTempVendorCDR_20' ) end [2025-03-07 04:52:19] Production.INFO: ProcessCDR(1,14625493,1,1,2) [2025-03-07 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625493', 'tblTempUsageDetail_20' ) start [2025-03-07 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625493', 'tblTempUsageDetail_20' ) end [2025-03-07 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:52:22] Production.INFO: ==7933== Releasing lock... [2025-03-07 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:52:22] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:53:05 [end_date_ymd] => 2025-03-07 04:53:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:53:05' and `end` < '2025-03-07 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-03-07 04:53:17] Production.INFO: count ==180 [2025-03-07 04:53:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:53:05 - End Time 2025-03-07 04:53:05 [2025-03-07 04:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625498', 'tblTempUsageDetail_20' ) start [2025-03-07 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625498', 'tblTempUsageDetail_20' ) end [2025-03-07 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625498', 'tblTempVendorCDR_20' ) start [2025-03-07 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625498', 'tblTempVendorCDR_20' ) end [2025-03-07 04:53:17] Production.INFO: ProcessCDR(1,14625498,1,1,2) [2025-03-07 04:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625498', 'tblTempUsageDetail_20' ) start [2025-03-07 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625498', 'tblTempUsageDetail_20' ) end [2025-03-07 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:53:21] Production.INFO: ==8005== Releasing lock... [2025-03-07 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:53:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:54:06 [end_date_ymd] => 2025-03-07 04:54:06 [RateCDR] => 1 ) [2025-03-07 04: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-03-07 01:54:06' and `end` < '2025-03-07 04: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-03-07 04:54:18] Production.INFO: count ==180 [2025-03-07 04:54:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:54:06 - End Time 2025-03-07 04:54:06 [2025-03-07 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625503', 'tblTempUsageDetail_20' ) start [2025-03-07 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625503', 'tblTempUsageDetail_20' ) end [2025-03-07 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625503', 'tblTempVendorCDR_20' ) start [2025-03-07 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625503', 'tblTempVendorCDR_20' ) end [2025-03-07 04:54:18] Production.INFO: ProcessCDR(1,14625503,1,1,2) [2025-03-07 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625503', 'tblTempUsageDetail_20' ) start [2025-03-07 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625503', 'tblTempUsageDetail_20' ) end [2025-03-07 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:54:22] Production.INFO: ==8075== Releasing lock... [2025-03-07 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:54:22] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:55:05 [end_date_ymd] => 2025-03-07 04:55:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:55:05' and `end` < '2025-03-07 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-03-07 04:55:17] Production.INFO: count ==180 [2025-03-07 04:55:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:55:05 - End Time 2025-03-07 04:55:05 [2025-03-07 04:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625508', 'tblTempUsageDetail_20' ) start [2025-03-07 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625508', 'tblTempUsageDetail_20' ) end [2025-03-07 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625508', 'tblTempVendorCDR_20' ) start [2025-03-07 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625508', 'tblTempVendorCDR_20' ) end [2025-03-07 04:55:17] Production.INFO: ProcessCDR(1,14625508,1,1,2) [2025-03-07 04:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625508', 'tblTempUsageDetail_20' ) start [2025-03-07 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625508', 'tblTempUsageDetail_20' ) end [2025-03-07 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:55:21] Production.INFO: ==8185== Releasing lock... [2025-03-07 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:55:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:56:06 [end_date_ymd] => 2025-03-07 04:56:06 [RateCDR] => 1 ) [2025-03-07 04:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:56:06' and `end` < '2025-03-07 04:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:56:19] Production.INFO: count ==180 [2025-03-07 04:56:19] Production.ERROR: pbx CDR StartTime 2025-03-07 01:56:06 - End Time 2025-03-07 04:56:06 [2025-03-07 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625513', 'tblTempUsageDetail_20' ) start [2025-03-07 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625513', 'tblTempUsageDetail_20' ) end [2025-03-07 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625513', 'tblTempVendorCDR_20' ) start [2025-03-07 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625513', 'tblTempVendorCDR_20' ) end [2025-03-07 04:56:19] Production.INFO: ProcessCDR(1,14625513,1,1,2) [2025-03-07 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625513', 'tblTempUsageDetail_20' ) start [2025-03-07 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625513', 'tblTempUsageDetail_20' ) end [2025-03-07 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:56:22] Production.INFO: ==8258== Releasing lock... [2025-03-07 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:56:22] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:57:05 [end_date_ymd] => 2025-03-07 04:57:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:57:05' and `end` < '2025-03-07 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-03-07 04:57:19] Production.INFO: count ==181 [2025-03-07 04:57:19] Production.ERROR: pbx CDR StartTime 2025-03-07 01:57:05 - End Time 2025-03-07 04:57:05 [2025-03-07 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625518', 'tblTempUsageDetail_20' ) start [2025-03-07 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625518', 'tblTempUsageDetail_20' ) end [2025-03-07 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625518', 'tblTempVendorCDR_20' ) start [2025-03-07 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625518', 'tblTempVendorCDR_20' ) end [2025-03-07 04:57:19] Production.INFO: ProcessCDR(1,14625518,1,1,2) [2025-03-07 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625518', 'tblTempUsageDetail_20' ) start [2025-03-07 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625518', 'tblTempUsageDetail_20' ) end [2025-03-07 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:57:22] Production.INFO: ==8329== Releasing lock... [2025-03-07 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:57:22] Production.INFO: 29 MB #Memory Used# [2025-03-07 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:58:05 [end_date_ymd] => 2025-03-07 04:58:05 [RateCDR] => 1 ) [2025-03-07 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 01:58:05' and `end` < '2025-03-07 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 04:58:17] Production.INFO: count ==179 [2025-03-07 04:58:17] Production.ERROR: pbx CDR StartTime 2025-03-07 01:58:05 - End Time 2025-03-07 04:58:05 [2025-03-07 04:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625523', 'tblTempUsageDetail_20' ) start [2025-03-07 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625523', 'tblTempUsageDetail_20' ) end [2025-03-07 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625523', 'tblTempVendorCDR_20' ) start [2025-03-07 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625523', 'tblTempVendorCDR_20' ) end [2025-03-07 04:58:17] Production.INFO: ProcessCDR(1,14625523,1,1,2) [2025-03-07 04:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625523', 'tblTempUsageDetail_20' ) start [2025-03-07 04:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625523', 'tblTempUsageDetail_20' ) end [2025-03-07 04:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:58:20] Production.INFO: ==8407== Releasing lock... [2025-03-07 04:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:58:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 01:59:05 [end_date_ymd] => 2025-03-07 04:59:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 01:59:05' and `end` < '2025-03-07 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-03-07 04:59:18] Production.INFO: count ==175 [2025-03-07 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-07 01:59:05 - End Time 2025-03-07 04:59:05 [2025-03-07 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625528', 'tblTempUsageDetail_20' ) start [2025-03-07 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625528', 'tblTempUsageDetail_20' ) end [2025-03-07 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625528', 'tblTempVendorCDR_20' ) start [2025-03-07 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625528', 'tblTempVendorCDR_20' ) end [2025-03-07 04:59:18] Production.INFO: ProcessCDR(1,14625528,1,1,2) [2025-03-07 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625528', 'tblTempUsageDetail_20' ) start [2025-03-07 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625528', 'tblTempUsageDetail_20' ) end [2025-03-07 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 04:59:21] Production.INFO: ==8482== Releasing lock... [2025-03-07 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 04:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:00:06 [end_date_ymd] => 2025-03-07 05:00:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:00:06' and `end` < '2025-03-07 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-03-07 05:00:19] Production.INFO: count ==174 [2025-03-07 05:00:19] Production.ERROR: pbx CDR StartTime 2025-03-07 02:00:06 - End Time 2025-03-07 05:00:06 [2025-03-07 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625534', 'tblTempUsageDetail_20' ) start [2025-03-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625534', 'tblTempUsageDetail_20' ) end [2025-03-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625534', 'tblTempVendorCDR_20' ) start [2025-03-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625534', 'tblTempVendorCDR_20' ) end [2025-03-07 05:00:19] Production.INFO: ProcessCDR(1,14625534,1,1,2) [2025-03-07 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625534', 'tblTempUsageDetail_20' ) start [2025-03-07 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625534', 'tblTempUsageDetail_20' ) end [2025-03-07 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:00:22] Production.INFO: ==8556== Releasing lock... [2025-03-07 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:01:05 [end_date_ymd] => 2025-03-07 05:01:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:01:05' and `end` < '2025-03-07 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-03-07 05:01:17] Production.INFO: count ==170 [2025-03-07 05:01:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:01:05 - End Time 2025-03-07 05:01:05 [2025-03-07 05:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625539', 'tblTempUsageDetail_20' ) start [2025-03-07 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625539', 'tblTempUsageDetail_20' ) end [2025-03-07 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625539', 'tblTempVendorCDR_20' ) start [2025-03-07 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625539', 'tblTempVendorCDR_20' ) end [2025-03-07 05:01:17] Production.INFO: ProcessCDR(1,14625539,1,1,2) [2025-03-07 05:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625539', 'tblTempUsageDetail_20' ) start [2025-03-07 05:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625539', 'tblTempUsageDetail_20' ) end [2025-03-07 05:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:01:20] Production.INFO: ==8642== Releasing lock... [2025-03-07 05:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:01:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:02:06 [end_date_ymd] => 2025-03-07 05:02:06 [RateCDR] => 1 ) [2025-03-07 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:02:06' and `end` < '2025-03-07 05:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:02:18] Production.INFO: count ==169 [2025-03-07 05:02:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:02:06 - End Time 2025-03-07 05:02:06 [2025-03-07 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625544', 'tblTempUsageDetail_20' ) start [2025-03-07 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625544', 'tblTempUsageDetail_20' ) end [2025-03-07 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625544', 'tblTempVendorCDR_20' ) start [2025-03-07 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625544', 'tblTempVendorCDR_20' ) end [2025-03-07 05:02:18] Production.INFO: ProcessCDR(1,14625544,1,1,2) [2025-03-07 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625544', 'tblTempUsageDetail_20' ) start [2025-03-07 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625544', 'tblTempUsageDetail_20' ) end [2025-03-07 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:02:21] Production.INFO: ==8713== Releasing lock... [2025-03-07 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:03:05 [end_date_ymd] => 2025-03-07 05:03:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:03:05' and `end` < '2025-03-07 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-03-07 05:03:18] Production.INFO: count ==168 [2025-03-07 05:03:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:03:05 - End Time 2025-03-07 05:03:05 [2025-03-07 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625549', 'tblTempUsageDetail_20' ) start [2025-03-07 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625549', 'tblTempUsageDetail_20' ) end [2025-03-07 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625549', 'tblTempVendorCDR_20' ) start [2025-03-07 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625549', 'tblTempVendorCDR_20' ) end [2025-03-07 05:03:18] Production.INFO: ProcessCDR(1,14625549,1,1,2) [2025-03-07 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625549', 'tblTempUsageDetail_20' ) start [2025-03-07 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625549', 'tblTempUsageDetail_20' ) end [2025-03-07 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:03:21] Production.INFO: ==8782== Releasing lock... [2025-03-07 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:04:05 [end_date_ymd] => 2025-03-07 05:04:05 [RateCDR] => 1 ) [2025-03-07 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:04:05' and `end` < '2025-03-07 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:04:17] Production.INFO: count ==168 [2025-03-07 05:04:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:04:05 - End Time 2025-03-07 05:04:05 [2025-03-07 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625554', 'tblTempUsageDetail_20' ) start [2025-03-07 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625554', 'tblTempUsageDetail_20' ) end [2025-03-07 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625554', 'tblTempVendorCDR_20' ) start [2025-03-07 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625554', 'tblTempVendorCDR_20' ) end [2025-03-07 05:04:17] Production.INFO: ProcessCDR(1,14625554,1,1,2) [2025-03-07 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625554', 'tblTempUsageDetail_20' ) start [2025-03-07 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625554', 'tblTempUsageDetail_20' ) end [2025-03-07 05:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:04:20] Production.INFO: ==8854== Releasing lock... [2025-03-07 05:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:04:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 05:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:05:04 [end_date_ymd] => 2025-03-07 05:05:04 [RateCDR] => 1 ) [2025-03-07 05:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:05:04' and `end` < '2025-03-07 05:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:05:16] Production.INFO: count ==164 [2025-03-07 05:05:16] Production.ERROR: pbx CDR StartTime 2025-03-07 02:05:04 - End Time 2025-03-07 05:05:04 [2025-03-07 05:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625559', 'tblTempUsageDetail_20' ) start [2025-03-07 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625559', 'tblTempUsageDetail_20' ) end [2025-03-07 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625559', 'tblTempVendorCDR_20' ) start [2025-03-07 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625559', 'tblTempVendorCDR_20' ) end [2025-03-07 05:05:16] Production.INFO: ProcessCDR(1,14625559,1,1,2) [2025-03-07 05:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625559', 'tblTempUsageDetail_20' ) start [2025-03-07 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625559', 'tblTempUsageDetail_20' ) end [2025-03-07 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:05:20] Production.INFO: ==8924== Releasing lock... [2025-03-07 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:05:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:06:05 [end_date_ymd] => 2025-03-07 05:06:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:06:05' and `end` < '2025-03-07 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-03-07 05:06:18] Production.INFO: count ==168 [2025-03-07 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:06:05 - End Time 2025-03-07 05:06:05 [2025-03-07 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625564', 'tblTempUsageDetail_20' ) start [2025-03-07 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625564', 'tblTempUsageDetail_20' ) end [2025-03-07 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625564', 'tblTempVendorCDR_20' ) start [2025-03-07 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625564', 'tblTempVendorCDR_20' ) end [2025-03-07 05:06:18] Production.INFO: ProcessCDR(1,14625564,1,1,2) [2025-03-07 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625564', 'tblTempUsageDetail_20' ) start [2025-03-07 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625564', 'tblTempUsageDetail_20' ) end [2025-03-07 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:06:21] Production.INFO: ==9002== Releasing lock... [2025-03-07 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 05:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:07:05 [end_date_ymd] => 2025-03-07 05:07:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:07:05' and `end` < '2025-03-07 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:07:34] Production.INFO: count ==168 [2025-03-07 05:07:34] Production.ERROR: pbx CDR StartTime 2025-03-07 02:07:05 - End Time 2025-03-07 05:07:05 [2025-03-07 05:07:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:07:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625569', 'tblTempUsageDetail_20' ) start [2025-03-07 05:07:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625569', 'tblTempUsageDetail_20' ) end [2025-03-07 05:07:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625569', 'tblTempVendorCDR_20' ) start [2025-03-07 05:07:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625569', 'tblTempVendorCDR_20' ) end [2025-03-07 05:07:34] Production.INFO: ProcessCDR(1,14625569,1,1,2) [2025-03-07 05:07:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:07:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:07:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:07:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625569', 'tblTempUsageDetail_20' ) start [2025-03-07 05:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625569', 'tblTempUsageDetail_20' ) end [2025-03-07 05:07:37] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:07:37] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:07:37] Production.INFO: ==9079== Releasing lock... [2025-03-07 05:07:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:07:37] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:08:06 [end_date_ymd] => 2025-03-07 05:08:06 [RateCDR] => 1 ) [2025-03-07 05:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:08:06' and `end` < '2025-03-07 05:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:10:09] Production.INFO: count ==165 [2025-03-07 05:10:09] Production.ERROR: pbx CDR StartTime 2025-03-07 02:08:06 - End Time 2025-03-07 05:08:06 [2025-03-07 05:10:09] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:10:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625574', 'tblTempUsageDetail_20' ) start [2025-03-07 05:10:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625574', 'tblTempUsageDetail_20' ) end [2025-03-07 05:10:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625574', 'tblTempVendorCDR_20' ) start [2025-03-07 05:10:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625574', 'tblTempVendorCDR_20' ) end [2025-03-07 05:10:09] Production.INFO: ProcessCDR(1,14625574,1,1,2) [2025-03-07 05:10:09] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:10:11] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:10:11] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:10:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:10:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625574', 'tblTempUsageDetail_20' ) start [2025-03-07 05:10:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625574', 'tblTempUsageDetail_20' ) end [2025-03-07 05:10:14] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:10:14] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:10:14] Production.INFO: ==9165== Releasing lock... [2025-03-07 05:10:14] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:10:14] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:11:05 [end_date_ymd] => 2025-03-07 05:11:05 [RateCDR] => 1 ) [2025-03-07 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:11:05' and `end` < '2025-03-07 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:11:24] Production.INFO: count ==162 [2025-03-07 05:11:24] Production.ERROR: pbx CDR StartTime 2025-03-07 02:11:05 - End Time 2025-03-07 05:11:05 [2025-03-07 05:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625588', 'tblTempUsageDetail_20' ) start [2025-03-07 05:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625588', 'tblTempUsageDetail_20' ) end [2025-03-07 05:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625588', 'tblTempVendorCDR_20' ) start [2025-03-07 05:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625588', 'tblTempVendorCDR_20' ) end [2025-03-07 05:11:24] Production.INFO: ProcessCDR(1,14625588,1,1,2) [2025-03-07 05:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625588', 'tblTempUsageDetail_20' ) start [2025-03-07 05:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625588', 'tblTempUsageDetail_20' ) end [2025-03-07 05:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:11:28] Production.INFO: ==9445== Releasing lock... [2025-03-07 05:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:11:28] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:12:05 [end_date_ymd] => 2025-03-07 05:12:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:12:05' and `end` < '2025-03-07 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-03-07 05:12:23] Production.INFO: count ==162 [2025-03-07 05:12:23] Production.ERROR: pbx CDR StartTime 2025-03-07 02:12:05 - End Time 2025-03-07 05:12:05 [2025-03-07 05:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625593', 'tblTempUsageDetail_20' ) start [2025-03-07 05:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625593', 'tblTempUsageDetail_20' ) end [2025-03-07 05:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625593', 'tblTempVendorCDR_20' ) start [2025-03-07 05:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625593', 'tblTempVendorCDR_20' ) end [2025-03-07 05:12:23] Production.INFO: ProcessCDR(1,14625593,1,1,2) [2025-03-07 05:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625593', 'tblTempUsageDetail_20' ) start [2025-03-07 05:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625593', 'tblTempUsageDetail_20' ) end [2025-03-07 05:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:12:26] Production.INFO: ==9530== Releasing lock... [2025-03-07 05:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:12:26] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:13:06 [end_date_ymd] => 2025-03-07 05:13:06 [RateCDR] => 1 ) [2025-03-07 05:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:13:06' and `end` < '2025-03-07 05:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:13:23] Production.INFO: count ==162 [2025-03-07 05:13:23] Production.ERROR: pbx CDR StartTime 2025-03-07 02:13:06 - End Time 2025-03-07 05:13:06 [2025-03-07 05:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625598', 'tblTempUsageDetail_20' ) start [2025-03-07 05:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625598', 'tblTempUsageDetail_20' ) end [2025-03-07 05:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625598', 'tblTempVendorCDR_20' ) start [2025-03-07 05:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625598', 'tblTempVendorCDR_20' ) end [2025-03-07 05:13:23] Production.INFO: ProcessCDR(1,14625598,1,1,2) [2025-03-07 05:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625598', 'tblTempUsageDetail_20' ) start [2025-03-07 05:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625598', 'tblTempUsageDetail_20' ) end [2025-03-07 05:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:13:26] Production.INFO: ==9614== Releasing lock... [2025-03-07 05:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:13:26] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:14:05 [end_date_ymd] => 2025-03-07 05:14:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:14:05' and `end` < '2025-03-07 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-03-07 05:14:21] Production.INFO: count ==162 [2025-03-07 05:14:21] Production.ERROR: pbx CDR StartTime 2025-03-07 02:14:05 - End Time 2025-03-07 05:14:05 [2025-03-07 05:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625603', 'tblTempUsageDetail_20' ) start [2025-03-07 05:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625603', 'tblTempUsageDetail_20' ) end [2025-03-07 05:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625603', 'tblTempVendorCDR_20' ) start [2025-03-07 05:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625603', 'tblTempVendorCDR_20' ) end [2025-03-07 05:14:21] Production.INFO: ProcessCDR(1,14625603,1,1,2) [2025-03-07 05:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625603', 'tblTempUsageDetail_20' ) start [2025-03-07 05:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625603', 'tblTempUsageDetail_20' ) end [2025-03-07 05:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:14:24] Production.INFO: ==9686== Releasing lock... [2025-03-07 05:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:14:24] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:15:05 [end_date_ymd] => 2025-03-07 05:15:05 [RateCDR] => 1 ) [2025-03-07 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:15:05' and `end` < '2025-03-07 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:15:21] Production.INFO: count ==162 [2025-03-07 05:15:21] Production.ERROR: pbx CDR StartTime 2025-03-07 02:15:05 - End Time 2025-03-07 05:15:05 [2025-03-07 05:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625608', 'tblTempUsageDetail_20' ) start [2025-03-07 05:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625608', 'tblTempUsageDetail_20' ) end [2025-03-07 05:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625608', 'tblTempVendorCDR_20' ) start [2025-03-07 05:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625608', 'tblTempVendorCDR_20' ) end [2025-03-07 05:15:21] Production.INFO: ProcessCDR(1,14625608,1,1,2) [2025-03-07 05:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625608', 'tblTempUsageDetail_20' ) start [2025-03-07 05:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625608', 'tblTempUsageDetail_20' ) end [2025-03-07 05:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:15:24] Production.INFO: ==9757== Releasing lock... [2025-03-07 05:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:15:24] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:16:05 [end_date_ymd] => 2025-03-07 05:16:05 [RateCDR] => 1 ) [2025-03-07 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:16:05' and `end` < '2025-03-07 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:16:22] Production.INFO: count ==162 [2025-03-07 05:16:22] Production.ERROR: pbx CDR StartTime 2025-03-07 02:16:05 - End Time 2025-03-07 05:16:05 [2025-03-07 05:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625613', 'tblTempUsageDetail_20' ) start [2025-03-07 05:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625613', 'tblTempUsageDetail_20' ) end [2025-03-07 05:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625613', 'tblTempVendorCDR_20' ) start [2025-03-07 05:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625613', 'tblTempVendorCDR_20' ) end [2025-03-07 05:16:22] Production.INFO: ProcessCDR(1,14625613,1,1,2) [2025-03-07 05:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625613', 'tblTempUsageDetail_20' ) start [2025-03-07 05:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625613', 'tblTempUsageDetail_20' ) end [2025-03-07 05:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:16:26] Production.INFO: ==9827== Releasing lock... [2025-03-07 05:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:16:26] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:17:05 [end_date_ymd] => 2025-03-07 05:17:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:17:05' and `end` < '2025-03-07 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-03-07 05:17:24] Production.INFO: count ==162 [2025-03-07 05:17:24] Production.ERROR: pbx CDR StartTime 2025-03-07 02:17:05 - End Time 2025-03-07 05:17:05 [2025-03-07 05:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625618', 'tblTempUsageDetail_20' ) start [2025-03-07 05:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625618', 'tblTempUsageDetail_20' ) end [2025-03-07 05:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625618', 'tblTempVendorCDR_20' ) start [2025-03-07 05:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625618', 'tblTempVendorCDR_20' ) end [2025-03-07 05:17:24] Production.INFO: ProcessCDR(1,14625618,1,1,2) [2025-03-07 05:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625618', 'tblTempUsageDetail_20' ) start [2025-03-07 05:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625618', 'tblTempUsageDetail_20' ) end [2025-03-07 05:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:17:27] Production.INFO: ==9898== Releasing lock... [2025-03-07 05:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:17:27] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:18:05 [end_date_ymd] => 2025-03-07 05:18:05 [RateCDR] => 1 ) [2025-03-07 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:18:05' and `end` < '2025-03-07 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-03-07 05:18:25] Production.INFO: count ==162 [2025-03-07 05:18:25] Production.ERROR: pbx CDR StartTime 2025-03-07 02:18:05 - End Time 2025-03-07 05:18:05 [2025-03-07 05:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625623', 'tblTempUsageDetail_20' ) start [2025-03-07 05:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625623', 'tblTempUsageDetail_20' ) end [2025-03-07 05:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625623', 'tblTempVendorCDR_20' ) start [2025-03-07 05:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625623', 'tblTempVendorCDR_20' ) end [2025-03-07 05:18:25] Production.INFO: ProcessCDR(1,14625623,1,1,2) [2025-03-07 05:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625623', 'tblTempUsageDetail_20' ) start [2025-03-07 05:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625623', 'tblTempUsageDetail_20' ) end [2025-03-07 05:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:18:28] Production.INFO: ==9970== Releasing lock... [2025-03-07 05:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:18:28] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:19:05 [end_date_ymd] => 2025-03-07 05:19:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:19:05' and `end` < '2025-03-07 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-03-07 05:19:22] Production.INFO: count ==162 [2025-03-07 05:19:22] Production.ERROR: pbx CDR StartTime 2025-03-07 02:19:05 - End Time 2025-03-07 05:19:05 [2025-03-07 05:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625628', 'tblTempUsageDetail_20' ) start [2025-03-07 05:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625628', 'tblTempUsageDetail_20' ) end [2025-03-07 05:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625628', 'tblTempVendorCDR_20' ) start [2025-03-07 05:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625628', 'tblTempVendorCDR_20' ) end [2025-03-07 05:19:22] Production.INFO: ProcessCDR(1,14625628,1,1,2) [2025-03-07 05:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625628', 'tblTempUsageDetail_20' ) start [2025-03-07 05:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625628', 'tblTempUsageDetail_20' ) end [2025-03-07 05:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:19:26] Production.INFO: ==10042== Releasing lock... [2025-03-07 05:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:19:26] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:20:06 [end_date_ymd] => 2025-03-07 05:20:06 [RateCDR] => 1 ) [2025-03-07 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:20:06' and `end` < '2025-03-07 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:20:24] Production.INFO: count ==162 [2025-03-07 05:20:25] Production.ERROR: pbx CDR StartTime 2025-03-07 02:20:06 - End Time 2025-03-07 05:20:06 [2025-03-07 05:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625633', 'tblTempUsageDetail_20' ) start [2025-03-07 05:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625633', 'tblTempUsageDetail_20' ) end [2025-03-07 05:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625633', 'tblTempVendorCDR_20' ) start [2025-03-07 05:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625633', 'tblTempVendorCDR_20' ) end [2025-03-07 05:20:25] Production.INFO: ProcessCDR(1,14625633,1,1,2) [2025-03-07 05:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625633', 'tblTempUsageDetail_20' ) start [2025-03-07 05:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625633', 'tblTempUsageDetail_20' ) end [2025-03-07 05:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:20:28] Production.INFO: ==10116== Releasing lock... [2025-03-07 05:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:20:28] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:21:05 [end_date_ymd] => 2025-03-07 05:21:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:21:05' and `end` < '2025-03-07 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-03-07 05:21:23] Production.INFO: count ==162 [2025-03-07 05:21:23] Production.ERROR: pbx CDR StartTime 2025-03-07 02:21:05 - End Time 2025-03-07 05:21:05 [2025-03-07 05:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625639', 'tblTempUsageDetail_20' ) start [2025-03-07 05:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625639', 'tblTempUsageDetail_20' ) end [2025-03-07 05:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625639', 'tblTempVendorCDR_20' ) start [2025-03-07 05:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625639', 'tblTempVendorCDR_20' ) end [2025-03-07 05:21:23] Production.INFO: ProcessCDR(1,14625639,1,1,2) [2025-03-07 05:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625639', 'tblTempUsageDetail_20' ) start [2025-03-07 05:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625639', 'tblTempUsageDetail_20' ) end [2025-03-07 05:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:21:26] Production.INFO: ==10188== Releasing lock... [2025-03-07 05:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:21:26] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:22:06 [end_date_ymd] => 2025-03-07 05:22:06 [RateCDR] => 1 ) [2025-03-07 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:22:06' and `end` < '2025-03-07 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:22:21] Production.INFO: count ==161 [2025-03-07 05:22:21] Production.ERROR: pbx CDR StartTime 2025-03-07 02:22:06 - End Time 2025-03-07 05:22:06 [2025-03-07 05:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625644', 'tblTempUsageDetail_20' ) start [2025-03-07 05:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625644', 'tblTempUsageDetail_20' ) end [2025-03-07 05:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625644', 'tblTempVendorCDR_20' ) start [2025-03-07 05:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625644', 'tblTempVendorCDR_20' ) end [2025-03-07 05:22:21] Production.INFO: ProcessCDR(1,14625644,1,1,2) [2025-03-07 05:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625644', 'tblTempUsageDetail_20' ) start [2025-03-07 05:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625644', 'tblTempUsageDetail_20' ) end [2025-03-07 05:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:22:24] Production.INFO: ==10259== Releasing lock... [2025-03-07 05:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:22:24] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:23:05 [end_date_ymd] => 2025-03-07 05:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:23:05' and `end` < '2025-03-07 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-03-07 05:23:20] Production.INFO: count ==161 [2025-03-07 05:23:21] Production.ERROR: pbx CDR StartTime 2025-03-07 02:23:05 - End Time 2025-03-07 05:23:05 [2025-03-07 05:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625649', 'tblTempUsageDetail_20' ) start [2025-03-07 05:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625649', 'tblTempUsageDetail_20' ) end [2025-03-07 05:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625649', 'tblTempVendorCDR_20' ) start [2025-03-07 05:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625649', 'tblTempVendorCDR_20' ) end [2025-03-07 05:23:21] Production.INFO: ProcessCDR(1,14625649,1,1,2) [2025-03-07 05:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625649', 'tblTempUsageDetail_20' ) start [2025-03-07 05:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625649', 'tblTempUsageDetail_20' ) end [2025-03-07 05:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:23:24] Production.INFO: ==10331== Releasing lock... [2025-03-07 05:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:23:24] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:24:06 [end_date_ymd] => 2025-03-07 05:24:06 [RateCDR] => 1 ) [2025-03-07 05:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:24:06' and `end` < '2025-03-07 05:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:24:23] Production.INFO: count ==161 [2025-03-07 05:24:23] Production.ERROR: pbx CDR StartTime 2025-03-07 02:24:06 - End Time 2025-03-07 05:24:06 [2025-03-07 05:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625654', 'tblTempUsageDetail_20' ) start [2025-03-07 05:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625654', 'tblTempUsageDetail_20' ) end [2025-03-07 05:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625654', 'tblTempVendorCDR_20' ) start [2025-03-07 05:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625654', 'tblTempVendorCDR_20' ) end [2025-03-07 05:24:23] Production.INFO: ProcessCDR(1,14625654,1,1,2) [2025-03-07 05:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625654', 'tblTempUsageDetail_20' ) start [2025-03-07 05:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625654', 'tblTempUsageDetail_20' ) end [2025-03-07 05:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:24:26] Production.INFO: ==10401== Releasing lock... [2025-03-07 05:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:24:26] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:25:05 [end_date_ymd] => 2025-03-07 05:25:05 [RateCDR] => 1 ) [2025-03-07 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:25:05' and `end` < '2025-03-07 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:25:22] Production.INFO: count ==161 [2025-03-07 05:25:22] Production.ERROR: pbx CDR StartTime 2025-03-07 02:25:05 - End Time 2025-03-07 05:25:05 [2025-03-07 05:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625659', 'tblTempUsageDetail_20' ) start [2025-03-07 05:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625659', 'tblTempUsageDetail_20' ) end [2025-03-07 05:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625659', 'tblTempVendorCDR_20' ) start [2025-03-07 05:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625659', 'tblTempVendorCDR_20' ) end [2025-03-07 05:25:22] Production.INFO: ProcessCDR(1,14625659,1,1,2) [2025-03-07 05:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625659', 'tblTempUsageDetail_20' ) start [2025-03-07 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625659', 'tblTempUsageDetail_20' ) end [2025-03-07 05:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:25:26] Production.INFO: ==10471== Releasing lock... [2025-03-07 05:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:25:26] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:26:05 [end_date_ymd] => 2025-03-07 05:26:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:26:05' and `end` < '2025-03-07 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-03-07 05:26:23] Production.INFO: count ==161 [2025-03-07 05:26:23] Production.ERROR: pbx CDR StartTime 2025-03-07 02:26:05 - End Time 2025-03-07 05:26:05 [2025-03-07 05:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625664', 'tblTempUsageDetail_20' ) start [2025-03-07 05:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625664', 'tblTempUsageDetail_20' ) end [2025-03-07 05:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625664', 'tblTempVendorCDR_20' ) start [2025-03-07 05:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625664', 'tblTempVendorCDR_20' ) end [2025-03-07 05:26:23] Production.INFO: ProcessCDR(1,14625664,1,1,2) [2025-03-07 05:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625664', 'tblTempUsageDetail_20' ) start [2025-03-07 05:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625664', 'tblTempUsageDetail_20' ) end [2025-03-07 05:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:26:26] Production.INFO: ==10592== Releasing lock... [2025-03-07 05:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:26:26] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:27:05 [end_date_ymd] => 2025-03-07 05:27:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:27:05' and `end` < '2025-03-07 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-03-07 05:27:23] Production.INFO: count ==160 [2025-03-07 05:27:23] Production.ERROR: pbx CDR StartTime 2025-03-07 02:27:05 - End Time 2025-03-07 05:27:05 [2025-03-07 05:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625669', 'tblTempUsageDetail_20' ) start [2025-03-07 05:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625669', 'tblTempUsageDetail_20' ) end [2025-03-07 05:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625669', 'tblTempVendorCDR_20' ) start [2025-03-07 05:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625669', 'tblTempVendorCDR_20' ) end [2025-03-07 05:27:23] Production.INFO: ProcessCDR(1,14625669,1,1,2) [2025-03-07 05:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625669', 'tblTempUsageDetail_20' ) start [2025-03-07 05:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625669', 'tblTempUsageDetail_20' ) end [2025-03-07 05:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:27:27] Production.INFO: ==10664== Releasing lock... [2025-03-07 05:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:27:27] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:28:06 [end_date_ymd] => 2025-03-07 05:28:06 [RateCDR] => 1 ) [2025-03-07 05:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:28:06' and `end` < '2025-03-07 05:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:28:21] Production.INFO: count ==160 [2025-03-07 05:28:21] Production.ERROR: pbx CDR StartTime 2025-03-07 02:28:06 - End Time 2025-03-07 05:28:06 [2025-03-07 05:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625674', 'tblTempUsageDetail_20' ) start [2025-03-07 05:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625674', 'tblTempUsageDetail_20' ) end [2025-03-07 05:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625674', 'tblTempVendorCDR_20' ) start [2025-03-07 05:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625674', 'tblTempVendorCDR_20' ) end [2025-03-07 05:28:21] Production.INFO: ProcessCDR(1,14625674,1,1,2) [2025-03-07 05:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625674', 'tblTempUsageDetail_20' ) start [2025-03-07 05:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625674', 'tblTempUsageDetail_20' ) end [2025-03-07 05:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:28:25] Production.INFO: ==10738== Releasing lock... [2025-03-07 05:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:28:25] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:29:05 [end_date_ymd] => 2025-03-07 05:29:05 [RateCDR] => 1 ) [2025-03-07 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:29:05' and `end` < '2025-03-07 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:29:23] Production.INFO: count ==160 [2025-03-07 05:29:23] Production.ERROR: pbx CDR StartTime 2025-03-07 02:29:05 - End Time 2025-03-07 05:29:05 [2025-03-07 05:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625679', 'tblTempUsageDetail_20' ) start [2025-03-07 05:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625679', 'tblTempUsageDetail_20' ) end [2025-03-07 05:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625679', 'tblTempVendorCDR_20' ) start [2025-03-07 05:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625679', 'tblTempVendorCDR_20' ) end [2025-03-07 05:29:23] Production.INFO: ProcessCDR(1,14625679,1,1,2) [2025-03-07 05:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625679', 'tblTempUsageDetail_20' ) start [2025-03-07 05:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625679', 'tblTempUsageDetail_20' ) end [2025-03-07 05:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:29:26] Production.INFO: ==10810== Releasing lock... [2025-03-07 05:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:29:26] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:30:06 [end_date_ymd] => 2025-03-07 05:30:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:30:06' and `end` < '2025-03-07 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-03-07 05:30:21] Production.INFO: count ==156 [2025-03-07 05:30:21] Production.ERROR: pbx CDR StartTime 2025-03-07 02:30:06 - End Time 2025-03-07 05:30:06 [2025-03-07 05:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625685', 'tblTempUsageDetail_20' ) start [2025-03-07 05:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625685', 'tblTempUsageDetail_20' ) end [2025-03-07 05:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625685', 'tblTempVendorCDR_20' ) start [2025-03-07 05:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625685', 'tblTempVendorCDR_20' ) end [2025-03-07 05:30:21] Production.INFO: ProcessCDR(1,14625685,1,1,2) [2025-03-07 05:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625685', 'tblTempUsageDetail_20' ) start [2025-03-07 05:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625685', 'tblTempUsageDetail_20' ) end [2025-03-07 05:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:30:25] Production.INFO: ==10883== Releasing lock... [2025-03-07 05:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:30:25] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:31:05 [end_date_ymd] => 2025-03-07 05:31:05 [RateCDR] => 1 ) [2025-03-07 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:31:05' and `end` < '2025-03-07 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:31:18] Production.INFO: count ==148 [2025-03-07 05:31:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:31:05 - End Time 2025-03-07 05:31:05 [2025-03-07 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625690', 'tblTempUsageDetail_20' ) start [2025-03-07 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625690', 'tblTempUsageDetail_20' ) end [2025-03-07 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625690', 'tblTempVendorCDR_20' ) start [2025-03-07 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625690', 'tblTempVendorCDR_20' ) end [2025-03-07 05:31:18] Production.INFO: ProcessCDR(1,14625690,1,1,2) [2025-03-07 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625690', 'tblTempUsageDetail_20' ) start [2025-03-07 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625690', 'tblTempUsageDetail_20' ) end [2025-03-07 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:31:21] Production.INFO: ==10958== Releasing lock... [2025-03-07 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:32:06 [end_date_ymd] => 2025-03-07 05:32:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:32:06' and `end` < '2025-03-07 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-03-07 05:32:18] Production.INFO: count ==148 [2025-03-07 05:32:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:32:06 - End Time 2025-03-07 05:32:06 [2025-03-07 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625695', 'tblTempUsageDetail_20' ) start [2025-03-07 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625695', 'tblTempUsageDetail_20' ) end [2025-03-07 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625695', 'tblTempVendorCDR_20' ) start [2025-03-07 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625695', 'tblTempVendorCDR_20' ) end [2025-03-07 05:32:18] Production.INFO: ProcessCDR(1,14625695,1,1,2) [2025-03-07 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625695', 'tblTempUsageDetail_20' ) start [2025-03-07 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625695', 'tblTempUsageDetail_20' ) end [2025-03-07 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:32:21] Production.INFO: ==11031== Releasing lock... [2025-03-07 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:33:05 [end_date_ymd] => 2025-03-07 05:33:05 [RateCDR] => 1 ) [2025-03-07 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:33:05' and `end` < '2025-03-07 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:33:17] Production.INFO: count ==151 [2025-03-07 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:33:05 - End Time 2025-03-07 05:33:05 [2025-03-07 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625700', 'tblTempUsageDetail_20' ) start [2025-03-07 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625700', 'tblTempUsageDetail_20' ) end [2025-03-07 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625700', 'tblTempVendorCDR_20' ) start [2025-03-07 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625700', 'tblTempVendorCDR_20' ) end [2025-03-07 05:33:17] Production.INFO: ProcessCDR(1,14625700,1,1,2) [2025-03-07 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625700', 'tblTempUsageDetail_20' ) start [2025-03-07 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625700', 'tblTempUsageDetail_20' ) end [2025-03-07 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:33:21] Production.INFO: ==11101== Releasing lock... [2025-03-07 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:34:05 [end_date_ymd] => 2025-03-07 05:34:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:34:05' and `end` < '2025-03-07 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-03-07 05:34:17] Production.INFO: count ==151 [2025-03-07 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:34:05 - End Time 2025-03-07 05:34:05 [2025-03-07 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625705', 'tblTempUsageDetail_20' ) start [2025-03-07 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625705', 'tblTempUsageDetail_20' ) end [2025-03-07 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625705', 'tblTempVendorCDR_20' ) start [2025-03-07 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625705', 'tblTempVendorCDR_20' ) end [2025-03-07 05:34:17] Production.INFO: ProcessCDR(1,14625705,1,1,2) [2025-03-07 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625705', 'tblTempUsageDetail_20' ) start [2025-03-07 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625705', 'tblTempUsageDetail_20' ) end [2025-03-07 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:34:20] Production.INFO: ==11174== Releasing lock... [2025-03-07 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:35:05 [end_date_ymd] => 2025-03-07 05:35:05 [RateCDR] => 1 ) [2025-03-07 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:35:05' and `end` < '2025-03-07 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:35:17] Production.INFO: count ==148 [2025-03-07 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:35:05 - End Time 2025-03-07 05:35:05 [2025-03-07 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625710', 'tblTempUsageDetail_20' ) start [2025-03-07 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625710', 'tblTempUsageDetail_20' ) end [2025-03-07 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625710', 'tblTempVendorCDR_20' ) start [2025-03-07 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625710', 'tblTempVendorCDR_20' ) end [2025-03-07 05:35:17] Production.INFO: ProcessCDR(1,14625710,1,1,2) [2025-03-07 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625710', 'tblTempUsageDetail_20' ) start [2025-03-07 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625710', 'tblTempUsageDetail_20' ) end [2025-03-07 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:35:20] Production.INFO: ==11243== Releasing lock... [2025-03-07 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:36:05 [end_date_ymd] => 2025-03-07 05:36:05 [RateCDR] => 1 ) [2025-03-07 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:36:05' and `end` < '2025-03-07 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:36:17] Production.INFO: count ==147 [2025-03-07 05:36:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:36:05 - End Time 2025-03-07 05:36:05 [2025-03-07 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625715', 'tblTempUsageDetail_20' ) start [2025-03-07 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625715', 'tblTempUsageDetail_20' ) end [2025-03-07 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625715', 'tblTempVendorCDR_20' ) start [2025-03-07 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625715', 'tblTempVendorCDR_20' ) end [2025-03-07 05:36:17] Production.INFO: ProcessCDR(1,14625715,1,1,2) [2025-03-07 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625715', 'tblTempUsageDetail_20' ) start [2025-03-07 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625715', 'tblTempUsageDetail_20' ) end [2025-03-07 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:36:20] Production.INFO: ==11315== Releasing lock... [2025-03-07 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:36:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:37:06 [end_date_ymd] => 2025-03-07 05:37:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:37:06' and `end` < '2025-03-07 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-03-07 05:37:18] Production.INFO: count ==147 [2025-03-07 05:37:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:37:06 - End Time 2025-03-07 05:37:06 [2025-03-07 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625720', 'tblTempUsageDetail_20' ) start [2025-03-07 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625720', 'tblTempUsageDetail_20' ) end [2025-03-07 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625720', 'tblTempVendorCDR_20' ) start [2025-03-07 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625720', 'tblTempVendorCDR_20' ) end [2025-03-07 05:37:18] Production.INFO: ProcessCDR(1,14625720,1,1,2) [2025-03-07 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625720', 'tblTempUsageDetail_20' ) start [2025-03-07 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625720', 'tblTempUsageDetail_20' ) end [2025-03-07 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:37:21] Production.INFO: ==11385== Releasing lock... [2025-03-07 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:38:05 [end_date_ymd] => 2025-03-07 05:38:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:38:05' and `end` < '2025-03-07 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-03-07 05:38:17] Production.INFO: count ==147 [2025-03-07 05:38:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:38:05 - End Time 2025-03-07 05:38:05 [2025-03-07 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625725', 'tblTempUsageDetail_20' ) start [2025-03-07 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625725', 'tblTempUsageDetail_20' ) end [2025-03-07 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625725', 'tblTempVendorCDR_20' ) start [2025-03-07 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625725', 'tblTempVendorCDR_20' ) end [2025-03-07 05:38:17] Production.INFO: ProcessCDR(1,14625725,1,1,2) [2025-03-07 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625725', 'tblTempUsageDetail_20' ) start [2025-03-07 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625725', 'tblTempUsageDetail_20' ) end [2025-03-07 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:38:20] Production.INFO: ==11460== Releasing lock... [2025-03-07 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:38:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:39:05 [end_date_ymd] => 2025-03-07 05:39:05 [RateCDR] => 1 ) [2025-03-07 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:39:05' and `end` < '2025-03-07 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:39:17] Production.INFO: count ==147 [2025-03-07 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:39:05 - End Time 2025-03-07 05:39:05 [2025-03-07 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625730', 'tblTempUsageDetail_20' ) start [2025-03-07 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625730', 'tblTempUsageDetail_20' ) end [2025-03-07 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625730', 'tblTempVendorCDR_20' ) start [2025-03-07 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625730', 'tblTempVendorCDR_20' ) end [2025-03-07 05:39:17] Production.INFO: ProcessCDR(1,14625730,1,1,2) [2025-03-07 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625730', 'tblTempUsageDetail_20' ) start [2025-03-07 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625730', 'tblTempUsageDetail_20' ) end [2025-03-07 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:39:21] Production.INFO: ==11534== Releasing lock... [2025-03-07 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:40:06 [end_date_ymd] => 2025-03-07 05:40:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:40:06' and `end` < '2025-03-07 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-03-07 05:40:18] Production.INFO: count ==143 [2025-03-07 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:40:06 - End Time 2025-03-07 05:40:06 [2025-03-07 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625736', 'tblTempUsageDetail_20' ) start [2025-03-07 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625736', 'tblTempUsageDetail_20' ) end [2025-03-07 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625736', 'tblTempVendorCDR_20' ) start [2025-03-07 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625736', 'tblTempVendorCDR_20' ) end [2025-03-07 05:40:18] Production.INFO: ProcessCDR(1,14625736,1,1,2) [2025-03-07 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625736', 'tblTempUsageDetail_20' ) start [2025-03-07 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625736', 'tblTempUsageDetail_20' ) end [2025-03-07 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:40:21] Production.INFO: ==11608== Releasing lock... [2025-03-07 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:41:05 [end_date_ymd] => 2025-03-07 05:41:05 [RateCDR] => 1 ) [2025-03-07 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:41:05' and `end` < '2025-03-07 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:41:17] Production.INFO: count ==137 [2025-03-07 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:41:05 - End Time 2025-03-07 05:41:05 [2025-03-07 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625741', 'tblTempUsageDetail_20' ) start [2025-03-07 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625741', 'tblTempUsageDetail_20' ) end [2025-03-07 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625741', 'tblTempVendorCDR_20' ) start [2025-03-07 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625741', 'tblTempVendorCDR_20' ) end [2025-03-07 05:41:17] Production.INFO: ProcessCDR(1,14625741,1,1,2) [2025-03-07 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625741', 'tblTempUsageDetail_20' ) start [2025-03-07 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625741', 'tblTempUsageDetail_20' ) end [2025-03-07 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:41:20] Production.INFO: ==11721== Releasing lock... [2025-03-07 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:41:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:42:05 [end_date_ymd] => 2025-03-07 05:42:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:42:05' and `end` < '2025-03-07 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-03-07 05:42:17] Production.INFO: count ==137 [2025-03-07 05:42:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:42:05 - End Time 2025-03-07 05:42:05 [2025-03-07 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625746', 'tblTempUsageDetail_20' ) start [2025-03-07 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625746', 'tblTempUsageDetail_20' ) end [2025-03-07 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625746', 'tblTempVendorCDR_20' ) start [2025-03-07 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625746', 'tblTempVendorCDR_20' ) end [2025-03-07 05:42:17] Production.INFO: ProcessCDR(1,14625746,1,1,2) [2025-03-07 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625746', 'tblTempUsageDetail_20' ) start [2025-03-07 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625746', 'tblTempUsageDetail_20' ) end [2025-03-07 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:42:21] Production.INFO: ==11790== Releasing lock... [2025-03-07 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:43:06 [end_date_ymd] => 2025-03-07 05:43:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:43:06' and `end` < '2025-03-07 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-03-07 05:43:18] Production.INFO: count ==137 [2025-03-07 05:43:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:43:06 - End Time 2025-03-07 05:43:06 [2025-03-07 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625751', 'tblTempUsageDetail_20' ) start [2025-03-07 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625751', 'tblTempUsageDetail_20' ) end [2025-03-07 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625751', 'tblTempVendorCDR_20' ) start [2025-03-07 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625751', 'tblTempVendorCDR_20' ) end [2025-03-07 05:43:18] Production.INFO: ProcessCDR(1,14625751,1,1,2) [2025-03-07 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625751', 'tblTempUsageDetail_20' ) start [2025-03-07 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625751', 'tblTempUsageDetail_20' ) end [2025-03-07 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:43:21] Production.INFO: ==11862== Releasing lock... [2025-03-07 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:44:05 [end_date_ymd] => 2025-03-07 05:44:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:44:05' and `end` < '2025-03-07 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-03-07 05:44:17] Production.INFO: count ==137 [2025-03-07 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:44:05 - End Time 2025-03-07 05:44:05 [2025-03-07 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625756', 'tblTempUsageDetail_20' ) start [2025-03-07 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625756', 'tblTempUsageDetail_20' ) end [2025-03-07 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625756', 'tblTempVendorCDR_20' ) start [2025-03-07 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625756', 'tblTempVendorCDR_20' ) end [2025-03-07 05:44:17] Production.INFO: ProcessCDR(1,14625756,1,1,2) [2025-03-07 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625756', 'tblTempUsageDetail_20' ) start [2025-03-07 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625756', 'tblTempUsageDetail_20' ) end [2025-03-07 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:44:20] Production.INFO: ==11933== Releasing lock... [2025-03-07 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:44:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:45:06 [end_date_ymd] => 2025-03-07 05:45:06 [RateCDR] => 1 ) [2025-03-07 05: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-03-07 02:45:06' and `end` < '2025-03-07 05: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-03-07 05:45:18] Production.INFO: count ==137 [2025-03-07 05:45:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:45:06 - End Time 2025-03-07 05:45:06 [2025-03-07 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625761', 'tblTempUsageDetail_20' ) start [2025-03-07 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625761', 'tblTempUsageDetail_20' ) end [2025-03-07 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625761', 'tblTempVendorCDR_20' ) start [2025-03-07 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625761', 'tblTempVendorCDR_20' ) end [2025-03-07 05:45:18] Production.INFO: ProcessCDR(1,14625761,1,1,2) [2025-03-07 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625761', 'tblTempUsageDetail_20' ) start [2025-03-07 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625761', 'tblTempUsageDetail_20' ) end [2025-03-07 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:45:21] Production.INFO: ==12010== Releasing lock... [2025-03-07 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:46:05 [end_date_ymd] => 2025-03-07 05:46:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:46:05' and `end` < '2025-03-07 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-03-07 05:46:17] Production.INFO: count ==137 [2025-03-07 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:46:05 - End Time 2025-03-07 05:46:05 [2025-03-07 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625766', 'tblTempUsageDetail_20' ) start [2025-03-07 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625766', 'tblTempUsageDetail_20' ) end [2025-03-07 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625766', 'tblTempVendorCDR_20' ) start [2025-03-07 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625766', 'tblTempVendorCDR_20' ) end [2025-03-07 05:46:17] Production.INFO: ProcessCDR(1,14625766,1,1,2) [2025-03-07 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625766', 'tblTempUsageDetail_20' ) start [2025-03-07 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625766', 'tblTempUsageDetail_20' ) end [2025-03-07 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:46:20] Production.INFO: ==12079== Releasing lock... [2025-03-07 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:46:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:47:06 [end_date_ymd] => 2025-03-07 05:47:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:47:06' and `end` < '2025-03-07 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-03-07 05:47:18] Production.INFO: count ==137 [2025-03-07 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:47:06 - End Time 2025-03-07 05:47:06 [2025-03-07 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625771', 'tblTempUsageDetail_20' ) start [2025-03-07 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625771', 'tblTempUsageDetail_20' ) end [2025-03-07 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625771', 'tblTempVendorCDR_20' ) start [2025-03-07 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625771', 'tblTempVendorCDR_20' ) end [2025-03-07 05:47:18] Production.INFO: ProcessCDR(1,14625771,1,1,2) [2025-03-07 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625771', 'tblTempUsageDetail_20' ) start [2025-03-07 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625771', 'tblTempUsageDetail_20' ) end [2025-03-07 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:47:21] Production.INFO: ==12151== Releasing lock... [2025-03-07 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:48:05 [end_date_ymd] => 2025-03-07 05:48:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:48:05' and `end` < '2025-03-07 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-03-07 05:48:17] Production.INFO: count ==137 [2025-03-07 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:48:05 - End Time 2025-03-07 05:48:05 [2025-03-07 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625776', 'tblTempUsageDetail_20' ) start [2025-03-07 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625776', 'tblTempUsageDetail_20' ) end [2025-03-07 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625776', 'tblTempVendorCDR_20' ) start [2025-03-07 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625776', 'tblTempVendorCDR_20' ) end [2025-03-07 05:48:17] Production.INFO: ProcessCDR(1,14625776,1,1,2) [2025-03-07 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625776', 'tblTempUsageDetail_20' ) start [2025-03-07 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625776', 'tblTempUsageDetail_20' ) end [2025-03-07 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:48:20] Production.INFO: ==12227== Releasing lock... [2025-03-07 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:48:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:49:05 [end_date_ymd] => 2025-03-07 05:49:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:49:05' and `end` < '2025-03-07 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-03-07 05:49:17] Production.INFO: count ==141 [2025-03-07 05:49:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:49:05 - End Time 2025-03-07 05:49:05 [2025-03-07 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625781', 'tblTempUsageDetail_20' ) start [2025-03-07 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625781', 'tblTempUsageDetail_20' ) end [2025-03-07 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625781', 'tblTempVendorCDR_20' ) start [2025-03-07 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625781', 'tblTempVendorCDR_20' ) end [2025-03-07 05:49:17] Production.INFO: ProcessCDR(1,14625781,1,1,2) [2025-03-07 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625781', 'tblTempUsageDetail_20' ) start [2025-03-07 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625781', 'tblTempUsageDetail_20' ) end [2025-03-07 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:49:21] Production.INFO: ==12299== Releasing lock... [2025-03-07 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:50:05 [end_date_ymd] => 2025-03-07 05:50:05 [RateCDR] => 1 ) [2025-03-07 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:50:05' and `end` < '2025-03-07 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:50:18] Production.INFO: count ==139 [2025-03-07 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:50:05 - End Time 2025-03-07 05:50:05 [2025-03-07 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625787', 'tblTempUsageDetail_20' ) start [2025-03-07 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625787', 'tblTempUsageDetail_20' ) end [2025-03-07 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625787', 'tblTempVendorCDR_20' ) start [2025-03-07 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625787', 'tblTempVendorCDR_20' ) end [2025-03-07 05:50:18] Production.INFO: ProcessCDR(1,14625787,1,1,2) [2025-03-07 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625787', 'tblTempUsageDetail_20' ) start [2025-03-07 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625787', 'tblTempUsageDetail_20' ) end [2025-03-07 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:50:21] Production.INFO: ==12372== Releasing lock... [2025-03-07 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:50:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:51:05 [end_date_ymd] => 2025-03-07 05:51:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:51:05' and `end` < '2025-03-07 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-03-07 05:51:17] Production.INFO: count ==139 [2025-03-07 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:51:05 - End Time 2025-03-07 05:51:05 [2025-03-07 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625792', 'tblTempUsageDetail_20' ) start [2025-03-07 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625792', 'tblTempUsageDetail_20' ) end [2025-03-07 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625792', 'tblTempVendorCDR_20' ) start [2025-03-07 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625792', 'tblTempVendorCDR_20' ) end [2025-03-07 05:51:17] Production.INFO: ProcessCDR(1,14625792,1,1,2) [2025-03-07 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625792', 'tblTempUsageDetail_20' ) start [2025-03-07 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625792', 'tblTempUsageDetail_20' ) end [2025-03-07 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:51:21] Production.INFO: ==12444== Releasing lock... [2025-03-07 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:52:06 [end_date_ymd] => 2025-03-07 05:52:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:52:06' and `end` < '2025-03-07 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-03-07 05:52:18] Production.INFO: count ==139 [2025-03-07 05:52:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:52:06 - End Time 2025-03-07 05:52:06 [2025-03-07 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625797', 'tblTempUsageDetail_20' ) start [2025-03-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625797', 'tblTempUsageDetail_20' ) end [2025-03-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625797', 'tblTempVendorCDR_20' ) start [2025-03-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625797', 'tblTempVendorCDR_20' ) end [2025-03-07 05:52:18] Production.INFO: ProcessCDR(1,14625797,1,1,2) [2025-03-07 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625797', 'tblTempUsageDetail_20' ) start [2025-03-07 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625797', 'tblTempUsageDetail_20' ) end [2025-03-07 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:52:21] Production.INFO: ==12514== Releasing lock... [2025-03-07 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:53:05 [end_date_ymd] => 2025-03-07 05:53:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:53:05' and `end` < '2025-03-07 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-03-07 05:53:17] Production.INFO: count ==139 [2025-03-07 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:53:05 - End Time 2025-03-07 05:53:05 [2025-03-07 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625802', 'tblTempUsageDetail_20' ) start [2025-03-07 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625802', 'tblTempUsageDetail_20' ) end [2025-03-07 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625802', 'tblTempVendorCDR_20' ) start [2025-03-07 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625802', 'tblTempVendorCDR_20' ) end [2025-03-07 05:53:17] Production.INFO: ProcessCDR(1,14625802,1,1,2) [2025-03-07 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625802', 'tblTempUsageDetail_20' ) start [2025-03-07 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625802', 'tblTempUsageDetail_20' ) end [2025-03-07 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:53:21] Production.INFO: ==12585== Releasing lock... [2025-03-07 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:54:06 [end_date_ymd] => 2025-03-07 05:54:06 [RateCDR] => 1 ) [2025-03-07 05: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-03-07 02:54:06' and `end` < '2025-03-07 05: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-03-07 05:54:18] Production.INFO: count ==139 [2025-03-07 05:54:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:54:06 - End Time 2025-03-07 05:54:06 [2025-03-07 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625807', 'tblTempUsageDetail_20' ) start [2025-03-07 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625807', 'tblTempUsageDetail_20' ) end [2025-03-07 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625807', 'tblTempVendorCDR_20' ) start [2025-03-07 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625807', 'tblTempVendorCDR_20' ) end [2025-03-07 05:54:18] Production.INFO: ProcessCDR(1,14625807,1,1,2) [2025-03-07 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625807', 'tblTempUsageDetail_20' ) start [2025-03-07 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625807', 'tblTempUsageDetail_20' ) end [2025-03-07 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:54:21] Production.INFO: ==12660== Releasing lock... [2025-03-07 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:55:06 [end_date_ymd] => 2025-03-07 05:55:06 [RateCDR] => 1 ) [2025-03-07 05: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-03-07 02:55:06' and `end` < '2025-03-07 05: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-03-07 05:55:18] Production.INFO: count ==140 [2025-03-07 05:55:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:55:06 - End Time 2025-03-07 05:55:06 [2025-03-07 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625812', 'tblTempUsageDetail_20' ) start [2025-03-07 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625812', 'tblTempUsageDetail_20' ) end [2025-03-07 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625812', 'tblTempVendorCDR_20' ) start [2025-03-07 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625812', 'tblTempVendorCDR_20' ) end [2025-03-07 05:55:18] Production.INFO: ProcessCDR(1,14625812,1,1,2) [2025-03-07 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625812', 'tblTempUsageDetail_20' ) start [2025-03-07 05:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625812', 'tblTempUsageDetail_20' ) end [2025-03-07 05:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:55:23] Production.INFO: ==12731== Releasing lock... [2025-03-07 05:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:55:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:56:05 [end_date_ymd] => 2025-03-07 05:56:05 [RateCDR] => 1 ) [2025-03-07 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:56:05' and `end` < '2025-03-07 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:56:17] Production.INFO: count ==140 [2025-03-07 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:56:05 - End Time 2025-03-07 05:56:05 [2025-03-07 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625817', 'tblTempUsageDetail_20' ) start [2025-03-07 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625817', 'tblTempUsageDetail_20' ) end [2025-03-07 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625817', 'tblTempVendorCDR_20' ) start [2025-03-07 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625817', 'tblTempVendorCDR_20' ) end [2025-03-07 05:56:17] Production.INFO: ProcessCDR(1,14625817,1,1,2) [2025-03-07 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625817', 'tblTempUsageDetail_20' ) start [2025-03-07 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625817', 'tblTempUsageDetail_20' ) end [2025-03-07 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:56:20] Production.INFO: ==12844== Releasing lock... [2025-03-07 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:56:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:57:05 [end_date_ymd] => 2025-03-07 05:57:05 [RateCDR] => 1 ) [2025-03-07 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:57:05' and `end` < '2025-03-07 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:57:17] Production.INFO: count ==140 [2025-03-07 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:57:05 - End Time 2025-03-07 05:57:05 [2025-03-07 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625822', 'tblTempUsageDetail_20' ) start [2025-03-07 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625822', 'tblTempUsageDetail_20' ) end [2025-03-07 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625822', 'tblTempVendorCDR_20' ) start [2025-03-07 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625822', 'tblTempVendorCDR_20' ) end [2025-03-07 05:57:17] Production.INFO: ProcessCDR(1,14625822,1,1,2) [2025-03-07 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625822', 'tblTempUsageDetail_20' ) start [2025-03-07 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625822', 'tblTempUsageDetail_20' ) end [2025-03-07 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:57:20] Production.INFO: ==12914== Releasing lock... [2025-03-07 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:57:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:58:05 [end_date_ymd] => 2025-03-07 05:58:05 [RateCDR] => 1 ) [2025-03-07 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 02:58:05' and `end` < '2025-03-07 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 05:58:18] Production.INFO: count ==140 [2025-03-07 05:58:18] Production.ERROR: pbx CDR StartTime 2025-03-07 02:58:05 - End Time 2025-03-07 05:58:05 [2025-03-07 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625827', 'tblTempUsageDetail_20' ) start [2025-03-07 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625827', 'tblTempUsageDetail_20' ) end [2025-03-07 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625827', 'tblTempVendorCDR_20' ) start [2025-03-07 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625827', 'tblTempVendorCDR_20' ) end [2025-03-07 05:58:18] Production.INFO: ProcessCDR(1,14625827,1,1,2) [2025-03-07 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625827', 'tblTempUsageDetail_20' ) start [2025-03-07 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625827', 'tblTempUsageDetail_20' ) end [2025-03-07 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:58:21] Production.INFO: ==12989== Releasing lock... [2025-03-07 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 02:59:05 [end_date_ymd] => 2025-03-07 05:59:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 02:59:05' and `end` < '2025-03-07 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-03-07 05:59:17] Production.INFO: count ==140 [2025-03-07 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-07 02:59:05 - End Time 2025-03-07 05:59:05 [2025-03-07 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625832', 'tblTempUsageDetail_20' ) start [2025-03-07 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625832', 'tblTempUsageDetail_20' ) end [2025-03-07 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625832', 'tblTempVendorCDR_20' ) start [2025-03-07 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625832', 'tblTempVendorCDR_20' ) end [2025-03-07 05:59:17] Production.INFO: ProcessCDR(1,14625832,1,1,2) [2025-03-07 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625832', 'tblTempUsageDetail_20' ) start [2025-03-07 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625832', 'tblTempUsageDetail_20' ) end [2025-03-07 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 05:59:20] Production.INFO: ==13059== Releasing lock... [2025-03-07 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 05:59:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:00:06 [end_date_ymd] => 2025-03-07 06:00:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:00:06' and `end` < '2025-03-07 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-03-07 06:00:19] Production.INFO: count ==134 [2025-03-07 06:00:19] Production.ERROR: pbx CDR StartTime 2025-03-07 03:00:06 - End Time 2025-03-07 06:00:06 [2025-03-07 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625838', 'tblTempUsageDetail_20' ) start [2025-03-07 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625838', 'tblTempUsageDetail_20' ) end [2025-03-07 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625838', 'tblTempVendorCDR_20' ) start [2025-03-07 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625838', 'tblTempVendorCDR_20' ) end [2025-03-07 06:00:19] Production.INFO: ProcessCDR(1,14625838,1,1,2) [2025-03-07 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625838', 'tblTempUsageDetail_20' ) start [2025-03-07 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625838', 'tblTempUsageDetail_20' ) end [2025-03-07 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:00:22] Production.INFO: ==13134== Releasing lock... [2025-03-07 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:01:05 [end_date_ymd] => 2025-03-07 06:01:05 [RateCDR] => 1 ) [2025-03-07 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:01:05' and `end` < '2025-03-07 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:01:17] Production.INFO: count ==132 [2025-03-07 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:01:05 - End Time 2025-03-07 06:01:05 [2025-03-07 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625843', 'tblTempUsageDetail_20' ) start [2025-03-07 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625843', 'tblTempUsageDetail_20' ) end [2025-03-07 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625843', 'tblTempVendorCDR_20' ) start [2025-03-07 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625843', 'tblTempVendorCDR_20' ) end [2025-03-07 06:01:17] Production.INFO: ProcessCDR(1,14625843,1,1,2) [2025-03-07 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625843', 'tblTempUsageDetail_20' ) start [2025-03-07 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625843', 'tblTempUsageDetail_20' ) end [2025-03-07 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:01:20] Production.INFO: ==13218== Releasing lock... [2025-03-07 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:01:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:02:06 [end_date_ymd] => 2025-03-07 06:02:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:02:06' and `end` < '2025-03-07 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-03-07 06:02:18] Production.INFO: count ==129 [2025-03-07 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:02:06 - End Time 2025-03-07 06:02:06 [2025-03-07 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625848', 'tblTempUsageDetail_20' ) start [2025-03-07 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625848', 'tblTempUsageDetail_20' ) end [2025-03-07 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625848', 'tblTempVendorCDR_20' ) start [2025-03-07 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625848', 'tblTempVendorCDR_20' ) end [2025-03-07 06:02:18] Production.INFO: ProcessCDR(1,14625848,1,1,2) [2025-03-07 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625848', 'tblTempUsageDetail_20' ) start [2025-03-07 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625848', 'tblTempUsageDetail_20' ) end [2025-03-07 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:02:21] Production.INFO: ==13288== Releasing lock... [2025-03-07 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:03:05 [end_date_ymd] => 2025-03-07 06:03:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:03:05' and `end` < '2025-03-07 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-03-07 06:03:17] Production.INFO: count ==129 [2025-03-07 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:03:05 - End Time 2025-03-07 06:03:05 [2025-03-07 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625853', 'tblTempUsageDetail_20' ) start [2025-03-07 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625853', 'tblTempUsageDetail_20' ) end [2025-03-07 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625853', 'tblTempVendorCDR_20' ) start [2025-03-07 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625853', 'tblTempVendorCDR_20' ) end [2025-03-07 06:03:17] Production.INFO: ProcessCDR(1,14625853,1,1,2) [2025-03-07 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625853', 'tblTempUsageDetail_20' ) start [2025-03-07 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625853', 'tblTempUsageDetail_20' ) end [2025-03-07 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:03:21] Production.INFO: ==13358== Releasing lock... [2025-03-07 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:04:06 [end_date_ymd] => 2025-03-07 06:04:06 [RateCDR] => 1 ) [2025-03-07 06: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-03-07 03:04:06' and `end` < '2025-03-07 06: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-03-07 06:04:18] Production.INFO: count ==129 [2025-03-07 06:04:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:04:06 - End Time 2025-03-07 06:04:06 [2025-03-07 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625858', 'tblTempUsageDetail_20' ) start [2025-03-07 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625858', 'tblTempUsageDetail_20' ) end [2025-03-07 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625858', 'tblTempVendorCDR_20' ) start [2025-03-07 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625858', 'tblTempVendorCDR_20' ) end [2025-03-07 06:04:18] Production.INFO: ProcessCDR(1,14625858,1,1,2) [2025-03-07 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625858', 'tblTempUsageDetail_20' ) start [2025-03-07 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625858', 'tblTempUsageDetail_20' ) end [2025-03-07 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:04:21] Production.INFO: ==13437== Releasing lock... [2025-03-07 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:05:06 [end_date_ymd] => 2025-03-07 06:05:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:05:06' and `end` < '2025-03-07 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-03-07 06:05:18] Production.INFO: count ==129 [2025-03-07 06:05:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:05:06 - End Time 2025-03-07 06:05:06 [2025-03-07 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625863', 'tblTempUsageDetail_20' ) start [2025-03-07 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625863', 'tblTempUsageDetail_20' ) end [2025-03-07 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625863', 'tblTempVendorCDR_20' ) start [2025-03-07 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625863', 'tblTempVendorCDR_20' ) end [2025-03-07 06:05:18] Production.INFO: ProcessCDR(1,14625863,1,1,2) [2025-03-07 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625863', 'tblTempUsageDetail_20' ) start [2025-03-07 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625863', 'tblTempUsageDetail_20' ) end [2025-03-07 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:05:21] Production.INFO: ==13509== Releasing lock... [2025-03-07 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:06:06 [end_date_ymd] => 2025-03-07 06:06:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:06:06' and `end` < '2025-03-07 06: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-03-07 06:06:18] Production.INFO: count ==133 [2025-03-07 06:06:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:06:06 - End Time 2025-03-07 06:06:06 [2025-03-07 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625868', 'tblTempUsageDetail_20' ) start [2025-03-07 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625868', 'tblTempUsageDetail_20' ) end [2025-03-07 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625868', 'tblTempVendorCDR_20' ) start [2025-03-07 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625868', 'tblTempVendorCDR_20' ) end [2025-03-07 06:06:18] Production.INFO: ProcessCDR(1,14625868,1,1,2) [2025-03-07 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625868', 'tblTempUsageDetail_20' ) start [2025-03-07 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625868', 'tblTempUsageDetail_20' ) end [2025-03-07 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:06:21] Production.INFO: ==13581== Releasing lock... [2025-03-07 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:07:06 [end_date_ymd] => 2025-03-07 06:07:06 [RateCDR] => 1 ) [2025-03-07 06:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:07:06' and `end` < '2025-03-07 06:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:07:18] Production.INFO: count ==133 [2025-03-07 06:07:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:07:06 - End Time 2025-03-07 06:07:06 [2025-03-07 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625873', 'tblTempUsageDetail_20' ) start [2025-03-07 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625873', 'tblTempUsageDetail_20' ) end [2025-03-07 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625873', 'tblTempVendorCDR_20' ) start [2025-03-07 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625873', 'tblTempVendorCDR_20' ) end [2025-03-07 06:07:18] Production.INFO: ProcessCDR(1,14625873,1,1,2) [2025-03-07 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625873', 'tblTempUsageDetail_20' ) start [2025-03-07 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625873', 'tblTempUsageDetail_20' ) end [2025-03-07 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:07:21] Production.INFO: ==13651== Releasing lock... [2025-03-07 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:08:05 [end_date_ymd] => 2025-03-07 06:08:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:08:05' and `end` < '2025-03-07 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-03-07 06:08:17] Production.INFO: count ==133 [2025-03-07 06:08:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:08:05 - End Time 2025-03-07 06:08:05 [2025-03-07 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625878', 'tblTempUsageDetail_20' ) start [2025-03-07 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625878', 'tblTempUsageDetail_20' ) end [2025-03-07 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625878', 'tblTempVendorCDR_20' ) start [2025-03-07 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625878', 'tblTempVendorCDR_20' ) end [2025-03-07 06:08:17] Production.INFO: ProcessCDR(1,14625878,1,1,2) [2025-03-07 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625878', 'tblTempUsageDetail_20' ) start [2025-03-07 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625878', 'tblTempUsageDetail_20' ) end [2025-03-07 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:08:20] Production.INFO: ==13731== Releasing lock... [2025-03-07 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:08:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:09:05 [end_date_ymd] => 2025-03-07 06:09:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:09:05' and `end` < '2025-03-07 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-03-07 06:09:18] Production.INFO: count ==133 [2025-03-07 06:09:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:09:05 - End Time 2025-03-07 06:09:05 [2025-03-07 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625883', 'tblTempUsageDetail_20' ) start [2025-03-07 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625883', 'tblTempUsageDetail_20' ) end [2025-03-07 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625883', 'tblTempVendorCDR_20' ) start [2025-03-07 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625883', 'tblTempVendorCDR_20' ) end [2025-03-07 06:09:18] Production.INFO: ProcessCDR(1,14625883,1,1,2) [2025-03-07 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625883', 'tblTempUsageDetail_20' ) start [2025-03-07 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625883', 'tblTempUsageDetail_20' ) end [2025-03-07 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:09:21] Production.INFO: ==13805== Releasing lock... [2025-03-07 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:10:06 [end_date_ymd] => 2025-03-07 06:10:06 [RateCDR] => 1 ) [2025-03-07 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:10:06' and `end` < '2025-03-07 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:10:18] Production.INFO: count ==129 [2025-03-07 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:10:06 - End Time 2025-03-07 06:10:06 [2025-03-07 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625886', 'tblTempUsageDetail_20' ) start [2025-03-07 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625886', 'tblTempUsageDetail_20' ) end [2025-03-07 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625886', 'tblTempVendorCDR_20' ) start [2025-03-07 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625886', 'tblTempVendorCDR_20' ) end [2025-03-07 06:10:18] Production.INFO: ProcessCDR(1,14625886,1,1,2) [2025-03-07 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625886', 'tblTempUsageDetail_20' ) start [2025-03-07 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625886', 'tblTempUsageDetail_20' ) end [2025-03-07 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:10:21] Production.INFO: ==13878== Releasing lock... [2025-03-07 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:11:05 [end_date_ymd] => 2025-03-07 06:11:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:11:05' and `end` < '2025-03-07 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-03-07 06:11:17] Production.INFO: count ==129 [2025-03-07 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:11:05 - End Time 2025-03-07 06:11:05 [2025-03-07 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625894', 'tblTempUsageDetail_20' ) start [2025-03-07 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625894', 'tblTempUsageDetail_20' ) end [2025-03-07 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625894', 'tblTempVendorCDR_20' ) start [2025-03-07 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625894', 'tblTempVendorCDR_20' ) end [2025-03-07 06:11:17] Production.INFO: ProcessCDR(1,14625894,1,1,2) [2025-03-07 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625894', 'tblTempUsageDetail_20' ) start [2025-03-07 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625894', 'tblTempUsageDetail_20' ) end [2025-03-07 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:11:20] Production.INFO: ==13951== Releasing lock... [2025-03-07 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:11:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:12:05 [end_date_ymd] => 2025-03-07 06:12:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:12:05' and `end` < '2025-03-07 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-03-07 06:12:17] Production.INFO: count ==129 [2025-03-07 06:12:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:12:05 - End Time 2025-03-07 06:12:05 [2025-03-07 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625899', 'tblTempUsageDetail_20' ) start [2025-03-07 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625899', 'tblTempUsageDetail_20' ) end [2025-03-07 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625899', 'tblTempVendorCDR_20' ) start [2025-03-07 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625899', 'tblTempVendorCDR_20' ) end [2025-03-07 06:12:17] Production.INFO: ProcessCDR(1,14625899,1,1,2) [2025-03-07 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625899', 'tblTempUsageDetail_20' ) start [2025-03-07 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625899', 'tblTempUsageDetail_20' ) end [2025-03-07 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:12:20] Production.INFO: ==14062== Releasing lock... [2025-03-07 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:12:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:13:05 [end_date_ymd] => 2025-03-07 06:13:05 [RateCDR] => 1 ) [2025-03-07 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:13:05' and `end` < '2025-03-07 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:13:17] Production.INFO: count ==129 [2025-03-07 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:13:05 - End Time 2025-03-07 06:13:05 [2025-03-07 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625904', 'tblTempUsageDetail_20' ) start [2025-03-07 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625904', 'tblTempUsageDetail_20' ) end [2025-03-07 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625904', 'tblTempVendorCDR_20' ) start [2025-03-07 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625904', 'tblTempVendorCDR_20' ) end [2025-03-07 06:13:17] Production.INFO: ProcessCDR(1,14625904,1,1,2) [2025-03-07 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625904', 'tblTempUsageDetail_20' ) start [2025-03-07 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625904', 'tblTempUsageDetail_20' ) end [2025-03-07 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:13:21] Production.INFO: ==14133== Releasing lock... [2025-03-07 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:14:06 [end_date_ymd] => 2025-03-07 06:14:06 [RateCDR] => 1 ) [2025-03-07 06:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:14:06' and `end` < '2025-03-07 06:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:14:18] Production.INFO: count ==129 [2025-03-07 06:14:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:14:06 - End Time 2025-03-07 06:14:06 [2025-03-07 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625909', 'tblTempUsageDetail_20' ) start [2025-03-07 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625909', 'tblTempUsageDetail_20' ) end [2025-03-07 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625909', 'tblTempVendorCDR_20' ) start [2025-03-07 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625909', 'tblTempVendorCDR_20' ) end [2025-03-07 06:14:18] Production.INFO: ProcessCDR(1,14625909,1,1,2) [2025-03-07 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625909', 'tblTempUsageDetail_20' ) start [2025-03-07 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625909', 'tblTempUsageDetail_20' ) end [2025-03-07 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:14:21] Production.INFO: ==14208== Releasing lock... [2025-03-07 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:15:05 [end_date_ymd] => 2025-03-07 06:15:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:15:05' and `end` < '2025-03-07 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-03-07 06:15:17] Production.INFO: count ==129 [2025-03-07 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:15:05 - End Time 2025-03-07 06:15:05 [2025-03-07 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625914', 'tblTempUsageDetail_20' ) start [2025-03-07 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625914', 'tblTempUsageDetail_20' ) end [2025-03-07 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625914', 'tblTempVendorCDR_20' ) start [2025-03-07 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625914', 'tblTempVendorCDR_20' ) end [2025-03-07 06:15:17] Production.INFO: ProcessCDR(1,14625914,1,1,2) [2025-03-07 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625914', 'tblTempUsageDetail_20' ) start [2025-03-07 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625914', 'tblTempUsageDetail_20' ) end [2025-03-07 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:15:20] Production.INFO: ==14280== Releasing lock... [2025-03-07 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:15:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:16:05 [end_date_ymd] => 2025-03-07 06:16:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:16:05' and `end` < '2025-03-07 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-03-07 06:16:17] Production.INFO: count ==129 [2025-03-07 06:16:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:16:05 - End Time 2025-03-07 06:16:05 [2025-03-07 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625919', 'tblTempUsageDetail_20' ) start [2025-03-07 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625919', 'tblTempUsageDetail_20' ) end [2025-03-07 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625919', 'tblTempVendorCDR_20' ) start [2025-03-07 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625919', 'tblTempVendorCDR_20' ) end [2025-03-07 06:16:17] Production.INFO: ProcessCDR(1,14625919,1,1,2) [2025-03-07 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625919', 'tblTempUsageDetail_20' ) start [2025-03-07 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625919', 'tblTempUsageDetail_20' ) end [2025-03-07 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:16:21] Production.INFO: ==14349== Releasing lock... [2025-03-07 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:17:05 [end_date_ymd] => 2025-03-07 06:17:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:17:05' and `end` < '2025-03-07 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-03-07 06:17:18] Production.INFO: count ==133 [2025-03-07 06:17:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:17:05 - End Time 2025-03-07 06:17:05 [2025-03-07 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625924', 'tblTempUsageDetail_20' ) start [2025-03-07 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625924', 'tblTempUsageDetail_20' ) end [2025-03-07 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625924', 'tblTempVendorCDR_20' ) start [2025-03-07 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625924', 'tblTempVendorCDR_20' ) end [2025-03-07 06:17:18] Production.INFO: ProcessCDR(1,14625924,1,1,2) [2025-03-07 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625924', 'tblTempUsageDetail_20' ) start [2025-03-07 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625924', 'tblTempUsageDetail_20' ) end [2025-03-07 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:17:21] Production.INFO: ==14422== Releasing lock... [2025-03-07 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-07 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:18:06 [end_date_ymd] => 2025-03-07 06:18:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:18:06' and `end` < '2025-03-07 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-03-07 06:18:18] Production.INFO: count ==137 [2025-03-07 06:18:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:18:06 - End Time 2025-03-07 06:18:06 [2025-03-07 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625929', 'tblTempUsageDetail_20' ) start [2025-03-07 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625929', 'tblTempUsageDetail_20' ) end [2025-03-07 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625929', 'tblTempVendorCDR_20' ) start [2025-03-07 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625929', 'tblTempVendorCDR_20' ) end [2025-03-07 06:18:18] Production.INFO: ProcessCDR(1,14625929,1,1,2) [2025-03-07 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625929', 'tblTempUsageDetail_20' ) start [2025-03-07 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625929', 'tblTempUsageDetail_20' ) end [2025-03-07 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:18:22] Production.INFO: ==14496== Releasing lock... [2025-03-07 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:19:05 [end_date_ymd] => 2025-03-07 06:19:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:19:05' and `end` < '2025-03-07 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-03-07 06:19:17] Production.INFO: count ==141 [2025-03-07 06:19:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:19:05 - End Time 2025-03-07 06:19:05 [2025-03-07 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625934', 'tblTempUsageDetail_20' ) start [2025-03-07 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625934', 'tblTempUsageDetail_20' ) end [2025-03-07 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625934', 'tblTempVendorCDR_20' ) start [2025-03-07 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625934', 'tblTempVendorCDR_20' ) end [2025-03-07 06:19:18] Production.INFO: ProcessCDR(1,14625934,1,1,2) [2025-03-07 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625934', 'tblTempUsageDetail_20' ) start [2025-03-07 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625934', 'tblTempUsageDetail_20' ) end [2025-03-07 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:19:21] Production.INFO: ==14567== Releasing lock... [2025-03-07 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:20:06 [end_date_ymd] => 2025-03-07 06:20:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:20:06' and `end` < '2025-03-07 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-03-07 06:20:18] Production.INFO: count ==141 [2025-03-07 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:20:06 - End Time 2025-03-07 06:20:06 [2025-03-07 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625940', 'tblTempUsageDetail_20' ) start [2025-03-07 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625940', 'tblTempUsageDetail_20' ) end [2025-03-07 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625940', 'tblTempVendorCDR_20' ) start [2025-03-07 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625940', 'tblTempVendorCDR_20' ) end [2025-03-07 06:20:18] Production.INFO: ProcessCDR(1,14625940,1,1,2) [2025-03-07 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625940', 'tblTempUsageDetail_20' ) start [2025-03-07 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625940', 'tblTempUsageDetail_20' ) end [2025-03-07 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:20:21] Production.INFO: ==14642== Releasing lock... [2025-03-07 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:21:05 [end_date_ymd] => 2025-03-07 06:21:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:21:05' and `end` < '2025-03-07 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-03-07 06:21:17] Production.INFO: count ==141 [2025-03-07 06:21:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:21:05 - End Time 2025-03-07 06:21:05 [2025-03-07 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625945', 'tblTempUsageDetail_20' ) start [2025-03-07 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625945', 'tblTempUsageDetail_20' ) end [2025-03-07 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625945', 'tblTempVendorCDR_20' ) start [2025-03-07 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625945', 'tblTempVendorCDR_20' ) end [2025-03-07 06:21:17] Production.INFO: ProcessCDR(1,14625945,1,1,2) [2025-03-07 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625945', 'tblTempUsageDetail_20' ) start [2025-03-07 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625945', 'tblTempUsageDetail_20' ) end [2025-03-07 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:21:20] Production.INFO: ==14715== Releasing lock... [2025-03-07 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:22:05 [end_date_ymd] => 2025-03-07 06:22:05 [RateCDR] => 1 ) [2025-03-07 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:22:05' and `end` < '2025-03-07 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:22:17] Production.INFO: count ==141 [2025-03-07 06:22:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:22:05 - End Time 2025-03-07 06:22:05 [2025-03-07 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625950', 'tblTempUsageDetail_20' ) start [2025-03-07 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625950', 'tblTempUsageDetail_20' ) end [2025-03-07 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625950', 'tblTempVendorCDR_20' ) start [2025-03-07 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625950', 'tblTempVendorCDR_20' ) end [2025-03-07 06:22:17] Production.INFO: ProcessCDR(1,14625950,1,1,2) [2025-03-07 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625950', 'tblTempUsageDetail_20' ) start [2025-03-07 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625950', 'tblTempUsageDetail_20' ) end [2025-03-07 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:22:21] Production.INFO: ==14788== Releasing lock... [2025-03-07 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:23:05 [end_date_ymd] => 2025-03-07 06:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:23:05' and `end` < '2025-03-07 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-03-07 06:23:17] Production.INFO: count ==141 [2025-03-07 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:23:05 - End Time 2025-03-07 06:23:05 [2025-03-07 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625955', 'tblTempUsageDetail_20' ) start [2025-03-07 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625955', 'tblTempUsageDetail_20' ) end [2025-03-07 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625955', 'tblTempVendorCDR_20' ) start [2025-03-07 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625955', 'tblTempVendorCDR_20' ) end [2025-03-07 06:23:17] Production.INFO: ProcessCDR(1,14625955,1,1,2) [2025-03-07 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625955', 'tblTempUsageDetail_20' ) start [2025-03-07 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625955', 'tblTempUsageDetail_20' ) end [2025-03-07 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:23:20] Production.INFO: ==14859== Releasing lock... [2025-03-07 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:23:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:24:05 [end_date_ymd] => 2025-03-07 06:24:05 [RateCDR] => 1 ) [2025-03-07 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:24:05' and `end` < '2025-03-07 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:24:17] Production.INFO: count ==141 [2025-03-07 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:24:05 - End Time 2025-03-07 06:24:05 [2025-03-07 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625960', 'tblTempUsageDetail_20' ) start [2025-03-07 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625960', 'tblTempUsageDetail_20' ) end [2025-03-07 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625960', 'tblTempVendorCDR_20' ) start [2025-03-07 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625960', 'tblTempVendorCDR_20' ) end [2025-03-07 06:24:17] Production.INFO: ProcessCDR(1,14625960,1,1,2) [2025-03-07 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625960', 'tblTempUsageDetail_20' ) start [2025-03-07 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625960', 'tblTempUsageDetail_20' ) end [2025-03-07 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:24:20] Production.INFO: ==14934== Releasing lock... [2025-03-07 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:24:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:25:05 [end_date_ymd] => 2025-03-07 06:25:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:25:05' and `end` < '2025-03-07 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-03-07 06:25:17] Production.INFO: count ==141 [2025-03-07 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:25:05 - End Time 2025-03-07 06:25:05 [2025-03-07 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625965', 'tblTempUsageDetail_20' ) start [2025-03-07 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625965', 'tblTempUsageDetail_20' ) end [2025-03-07 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625965', 'tblTempVendorCDR_20' ) start [2025-03-07 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625965', 'tblTempVendorCDR_20' ) end [2025-03-07 06:25:17] Production.INFO: ProcessCDR(1,14625965,1,1,2) [2025-03-07 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625965', 'tblTempUsageDetail_20' ) start [2025-03-07 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625965', 'tblTempUsageDetail_20' ) end [2025-03-07 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:25:21] Production.INFO: ==15003== Releasing lock... [2025-03-07 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:26:05 [end_date_ymd] => 2025-03-07 06:26:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:26:05' and `end` < '2025-03-07 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-03-07 06:26:17] Production.INFO: count ==138 [2025-03-07 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:26:05 - End Time 2025-03-07 06:26:05 [2025-03-07 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625970', 'tblTempUsageDetail_20' ) start [2025-03-07 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625970', 'tblTempUsageDetail_20' ) end [2025-03-07 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625970', 'tblTempVendorCDR_20' ) start [2025-03-07 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625970', 'tblTempVendorCDR_20' ) end [2025-03-07 06:26:17] Production.INFO: ProcessCDR(1,14625970,1,1,2) [2025-03-07 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625970', 'tblTempUsageDetail_20' ) start [2025-03-07 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625970', 'tblTempUsageDetail_20' ) end [2025-03-07 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:26:20] Production.INFO: ==15076== Releasing lock... [2025-03-07 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:26:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:27:05 [end_date_ymd] => 2025-03-07 06:27:05 [RateCDR] => 1 ) [2025-03-07 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:27:05' and `end` < '2025-03-07 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:27:17] Production.INFO: count ==138 [2025-03-07 06:27:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:27:05 - End Time 2025-03-07 06:27:05 [2025-03-07 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625975', 'tblTempUsageDetail_20' ) start [2025-03-07 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625975', 'tblTempUsageDetail_20' ) end [2025-03-07 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625975', 'tblTempVendorCDR_20' ) start [2025-03-07 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625975', 'tblTempVendorCDR_20' ) end [2025-03-07 06:27:17] Production.INFO: ProcessCDR(1,14625975,1,1,2) [2025-03-07 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625975', 'tblTempUsageDetail_20' ) start [2025-03-07 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625975', 'tblTempUsageDetail_20' ) end [2025-03-07 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:27:21] Production.INFO: ==15189== Releasing lock... [2025-03-07 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:28:06 [end_date_ymd] => 2025-03-07 06:28:06 [RateCDR] => 1 ) [2025-03-07 06: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-03-07 03:28:06' and `end` < '2025-03-07 06: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-03-07 06:28:18] Production.INFO: count ==142 [2025-03-07 06:28:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:28:06 - End Time 2025-03-07 06:28:06 [2025-03-07 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625980', 'tblTempUsageDetail_20' ) start [2025-03-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625980', 'tblTempUsageDetail_20' ) end [2025-03-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625980', 'tblTempVendorCDR_20' ) start [2025-03-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625980', 'tblTempVendorCDR_20' ) end [2025-03-07 06:28:18] Production.INFO: ProcessCDR(1,14625980,1,1,2) [2025-03-07 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625980', 'tblTempUsageDetail_20' ) start [2025-03-07 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625980', 'tblTempUsageDetail_20' ) end [2025-03-07 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:28:21] Production.INFO: ==15260== Releasing lock... [2025-03-07 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:29:05 [end_date_ymd] => 2025-03-07 06:29:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:29:05' and `end` < '2025-03-07 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-03-07 06:29:18] Production.INFO: count ==142 [2025-03-07 06:29:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:29:05 - End Time 2025-03-07 06:29:05 [2025-03-07 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625985', 'tblTempUsageDetail_20' ) start [2025-03-07 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625985', 'tblTempUsageDetail_20' ) end [2025-03-07 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625985', 'tblTempVendorCDR_20' ) start [2025-03-07 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625985', 'tblTempVendorCDR_20' ) end [2025-03-07 06:29:18] Production.INFO: ProcessCDR(1,14625985,1,1,2) [2025-03-07 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625985', 'tblTempUsageDetail_20' ) start [2025-03-07 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625985', 'tblTempUsageDetail_20' ) end [2025-03-07 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:29:21] Production.INFO: ==15331== Releasing lock... [2025-03-07 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:30:06 [end_date_ymd] => 2025-03-07 06:30:06 [RateCDR] => 1 ) [2025-03-07 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:30:06' and `end` < '2025-03-07 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:30:18] Production.INFO: count ==144 [2025-03-07 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:30:06 - End Time 2025-03-07 06:30:06 [2025-03-07 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625991', 'tblTempUsageDetail_20' ) start [2025-03-07 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625991', 'tblTempUsageDetail_20' ) end [2025-03-07 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625991', 'tblTempVendorCDR_20' ) start [2025-03-07 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625991', 'tblTempVendorCDR_20' ) end [2025-03-07 06:30:18] Production.INFO: ProcessCDR(1,14625991,1,1,2) [2025-03-07 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625991', 'tblTempUsageDetail_20' ) start [2025-03-07 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625991', 'tblTempUsageDetail_20' ) end [2025-03-07 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:30:21] Production.INFO: ==15407== Releasing lock... [2025-03-07 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:31:05 [end_date_ymd] => 2025-03-07 06:31:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:31:05' and `end` < '2025-03-07 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-03-07 06:31:17] Production.INFO: count ==144 [2025-03-07 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:31:05 - End Time 2025-03-07 06:31:05 [2025-03-07 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625996', 'tblTempUsageDetail_20' ) start [2025-03-07 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14625996', 'tblTempUsageDetail_20' ) end [2025-03-07 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625996', 'tblTempVendorCDR_20' ) start [2025-03-07 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14625996', 'tblTempVendorCDR_20' ) end [2025-03-07 06:31:17] Production.INFO: ProcessCDR(1,14625996,1,1,2) [2025-03-07 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14625996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14625996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14625996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14625996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625996', 'tblTempUsageDetail_20' ) start [2025-03-07 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14625996', 'tblTempUsageDetail_20' ) end [2025-03-07 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:31:20] Production.INFO: ==15479== Releasing lock... [2025-03-07 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:31:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:32:06 [end_date_ymd] => 2025-03-07 06:32:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:32:06' and `end` < '2025-03-07 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-03-07 06:32:18] Production.INFO: count ==148 [2025-03-07 06:32:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:32:06 - End Time 2025-03-07 06:32:06 [2025-03-07 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626001', 'tblTempUsageDetail_20' ) start [2025-03-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626001', 'tblTempUsageDetail_20' ) end [2025-03-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626001', 'tblTempVendorCDR_20' ) start [2025-03-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626001', 'tblTempVendorCDR_20' ) end [2025-03-07 06:32:18] Production.INFO: ProcessCDR(1,14626001,1,1,2) [2025-03-07 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626001', 'tblTempUsageDetail_20' ) start [2025-03-07 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626001', 'tblTempUsageDetail_20' ) end [2025-03-07 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:32:21] Production.INFO: ==15554== Releasing lock... [2025-03-07 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:32:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:33:05 [end_date_ymd] => 2025-03-07 06:33:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:33:05' and `end` < '2025-03-07 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-03-07 06:33:18] Production.INFO: count ==152 [2025-03-07 06:33:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:33:05 - End Time 2025-03-07 06:33:05 [2025-03-07 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626006', 'tblTempUsageDetail_20' ) start [2025-03-07 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626006', 'tblTempUsageDetail_20' ) end [2025-03-07 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626006', 'tblTempVendorCDR_20' ) start [2025-03-07 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626006', 'tblTempVendorCDR_20' ) end [2025-03-07 06:33:18] Production.INFO: ProcessCDR(1,14626006,1,1,2) [2025-03-07 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626006', 'tblTempUsageDetail_20' ) start [2025-03-07 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626006', 'tblTempUsageDetail_20' ) end [2025-03-07 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:33:21] Production.INFO: ==15642== Releasing lock... [2025-03-07 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:33:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:34:05 [end_date_ymd] => 2025-03-07 06:34:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:34:05' and `end` < '2025-03-07 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-03-07 06:34:17] Production.INFO: count ==152 [2025-03-07 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:34:05 - End Time 2025-03-07 06:34:05 [2025-03-07 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626011', 'tblTempUsageDetail_20' ) start [2025-03-07 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626011', 'tblTempUsageDetail_20' ) end [2025-03-07 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626011', 'tblTempVendorCDR_20' ) start [2025-03-07 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626011', 'tblTempVendorCDR_20' ) end [2025-03-07 06:34:17] Production.INFO: ProcessCDR(1,14626011,1,1,2) [2025-03-07 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626011', 'tblTempUsageDetail_20' ) start [2025-03-07 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626011', 'tblTempUsageDetail_20' ) end [2025-03-07 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:34:21] Production.INFO: ==15730== Releasing lock... [2025-03-07 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:34:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:35:05 [end_date_ymd] => 2025-03-07 06:35:05 [RateCDR] => 1 ) [2025-03-07 06:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:35:05' and `end` < '2025-03-07 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-03-07 06:35:18] Production.INFO: count ==152 [2025-03-07 06:35:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:35:05 - End Time 2025-03-07 06:35:05 [2025-03-07 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626016', 'tblTempUsageDetail_20' ) start [2025-03-07 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626016', 'tblTempUsageDetail_20' ) end [2025-03-07 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626016', 'tblTempVendorCDR_20' ) start [2025-03-07 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626016', 'tblTempVendorCDR_20' ) end [2025-03-07 06:35:18] Production.INFO: ProcessCDR(1,14626016,1,1,2) [2025-03-07 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626016', 'tblTempUsageDetail_20' ) start [2025-03-07 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626016', 'tblTempUsageDetail_20' ) end [2025-03-07 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:35:21] Production.INFO: ==15800== Releasing lock... [2025-03-07 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:35:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:36:05 [end_date_ymd] => 2025-03-07 06:36:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:36:05' and `end` < '2025-03-07 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-03-07 06:36:17] Production.INFO: count ==152 [2025-03-07 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:36:05 - End Time 2025-03-07 06:36:05 [2025-03-07 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626021', 'tblTempUsageDetail_20' ) start [2025-03-07 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626021', 'tblTempUsageDetail_20' ) end [2025-03-07 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626021', 'tblTempVendorCDR_20' ) start [2025-03-07 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626021', 'tblTempVendorCDR_20' ) end [2025-03-07 06:36:17] Production.INFO: ProcessCDR(1,14626021,1,1,2) [2025-03-07 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626021', 'tblTempUsageDetail_20' ) start [2025-03-07 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626021', 'tblTempUsageDetail_20' ) end [2025-03-07 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:36:20] Production.INFO: ==15877== Releasing lock... [2025-03-07 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:36:20] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:37:05 [end_date_ymd] => 2025-03-07 06:37:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:37:05' and `end` < '2025-03-07 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-03-07 06:37:17] Production.INFO: count ==152 [2025-03-07 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:37:05 - End Time 2025-03-07 06:37:05 [2025-03-07 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626026', 'tblTempUsageDetail_20' ) start [2025-03-07 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626026', 'tblTempUsageDetail_20' ) end [2025-03-07 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626026', 'tblTempVendorCDR_20' ) start [2025-03-07 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626026', 'tblTempVendorCDR_20' ) end [2025-03-07 06:37:17] Production.INFO: ProcessCDR(1,14626026,1,1,2) [2025-03-07 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626026', 'tblTempUsageDetail_20' ) start [2025-03-07 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626026', 'tblTempUsageDetail_20' ) end [2025-03-07 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:37:20] Production.INFO: ==15954== Releasing lock... [2025-03-07 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:37:20] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:38:05 [end_date_ymd] => 2025-03-07 06:38:05 [RateCDR] => 1 ) [2025-03-07 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:38:05' and `end` < '2025-03-07 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:38:17] Production.INFO: count ==152 [2025-03-07 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:38:05 - End Time 2025-03-07 06:38:05 [2025-03-07 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626031', 'tblTempUsageDetail_20' ) start [2025-03-07 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626031', 'tblTempUsageDetail_20' ) end [2025-03-07 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626031', 'tblTempVendorCDR_20' ) start [2025-03-07 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626031', 'tblTempVendorCDR_20' ) end [2025-03-07 06:38:17] Production.INFO: ProcessCDR(1,14626031,1,1,2) [2025-03-07 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626031', 'tblTempUsageDetail_20' ) start [2025-03-07 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626031', 'tblTempUsageDetail_20' ) end [2025-03-07 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:38:20] Production.INFO: ==16026== Releasing lock... [2025-03-07 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:38:20] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:39:05 [end_date_ymd] => 2025-03-07 06:39:05 [RateCDR] => 1 ) [2025-03-07 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:39:05' and `end` < '2025-03-07 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:39:17] Production.INFO: count ==152 [2025-03-07 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:39:05 - End Time 2025-03-07 06:39:05 [2025-03-07 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626036', 'tblTempUsageDetail_20' ) start [2025-03-07 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626036', 'tblTempUsageDetail_20' ) end [2025-03-07 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626036', 'tblTempVendorCDR_20' ) start [2025-03-07 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626036', 'tblTempVendorCDR_20' ) end [2025-03-07 06:39:17] Production.INFO: ProcessCDR(1,14626036,1,1,2) [2025-03-07 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626036', 'tblTempUsageDetail_20' ) start [2025-03-07 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626036', 'tblTempUsageDetail_20' ) end [2025-03-07 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:39:20] Production.INFO: ==16099== Releasing lock... [2025-03-07 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:39:20] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:40:05 [end_date_ymd] => 2025-03-07 06:40:05 [RateCDR] => 1 ) [2025-03-07 06: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-03-07 03:40:05' and `end` < '2025-03-07 06: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-03-07 06:40:18] Production.INFO: count ==152 [2025-03-07 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:40:05 - End Time 2025-03-07 06:40:05 [2025-03-07 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626042', 'tblTempUsageDetail_20' ) start [2025-03-07 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626042', 'tblTempUsageDetail_20' ) end [2025-03-07 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626042', 'tblTempVendorCDR_20' ) start [2025-03-07 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626042', 'tblTempVendorCDR_20' ) end [2025-03-07 06:40:18] Production.INFO: ProcessCDR(1,14626042,1,1,2) [2025-03-07 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626042', 'tblTempUsageDetail_20' ) start [2025-03-07 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626042', 'tblTempUsageDetail_20' ) end [2025-03-07 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:40:21] Production.INFO: ==16171== Releasing lock... [2025-03-07 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:40:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:41:05 [end_date_ymd] => 2025-03-07 06:41:05 [RateCDR] => 1 ) [2025-03-07 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:41:05' and `end` < '2025-03-07 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:41:17] Production.INFO: count ==150 [2025-03-07 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:41:05 - End Time 2025-03-07 06:41:05 [2025-03-07 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626047', 'tblTempUsageDetail_20' ) start [2025-03-07 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626047', 'tblTempUsageDetail_20' ) end [2025-03-07 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626047', 'tblTempVendorCDR_20' ) start [2025-03-07 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626047', 'tblTempVendorCDR_20' ) end [2025-03-07 06:41:17] Production.INFO: ProcessCDR(1,14626047,1,1,2) [2025-03-07 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626047', 'tblTempUsageDetail_20' ) start [2025-03-07 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626047', 'tblTempUsageDetail_20' ) end [2025-03-07 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:41:20] Production.INFO: ==16245== Releasing lock... [2025-03-07 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:41:20] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:42:06 [end_date_ymd] => 2025-03-07 06:42:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:42:06' and `end` < '2025-03-07 06: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-03-07 06:42:18] Production.INFO: count ==150 [2025-03-07 06:42:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:42:06 - End Time 2025-03-07 06:42:06 [2025-03-07 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626052', 'tblTempUsageDetail_20' ) start [2025-03-07 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626052', 'tblTempUsageDetail_20' ) end [2025-03-07 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626052', 'tblTempVendorCDR_20' ) start [2025-03-07 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626052', 'tblTempVendorCDR_20' ) end [2025-03-07 06:42:18] Production.INFO: ProcessCDR(1,14626052,1,1,2) [2025-03-07 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626052', 'tblTempUsageDetail_20' ) start [2025-03-07 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626052', 'tblTempUsageDetail_20' ) end [2025-03-07 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:42:21] Production.INFO: ==16316== Releasing lock... [2025-03-07 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:42:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:43:05 [end_date_ymd] => 2025-03-07 06:43:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:43:05' and `end` < '2025-03-07 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-03-07 06:43:17] Production.INFO: count ==150 [2025-03-07 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:43:05 - End Time 2025-03-07 06:43:05 [2025-03-07 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626057', 'tblTempUsageDetail_20' ) start [2025-03-07 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626057', 'tblTempUsageDetail_20' ) end [2025-03-07 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626057', 'tblTempVendorCDR_20' ) start [2025-03-07 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626057', 'tblTempVendorCDR_20' ) end [2025-03-07 06:43:17] Production.INFO: ProcessCDR(1,14626057,1,1,2) [2025-03-07 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626057', 'tblTempUsageDetail_20' ) start [2025-03-07 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626057', 'tblTempUsageDetail_20' ) end [2025-03-07 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:43:20] Production.INFO: ==16432== Releasing lock... [2025-03-07 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:43:20] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:44:06 [end_date_ymd] => 2025-03-07 06:44:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:44:06' and `end` < '2025-03-07 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-03-07 06:44:18] Production.INFO: count ==150 [2025-03-07 06:44:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:44:06 - End Time 2025-03-07 06:44:06 [2025-03-07 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626062', 'tblTempUsageDetail_20' ) start [2025-03-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626062', 'tblTempUsageDetail_20' ) end [2025-03-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626062', 'tblTempVendorCDR_20' ) start [2025-03-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626062', 'tblTempVendorCDR_20' ) end [2025-03-07 06:44:18] Production.INFO: ProcessCDR(1,14626062,1,1,2) [2025-03-07 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626062', 'tblTempUsageDetail_20' ) start [2025-03-07 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626062', 'tblTempUsageDetail_20' ) end [2025-03-07 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:44:21] Production.INFO: ==16503== Releasing lock... [2025-03-07 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:44:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:45:05 [end_date_ymd] => 2025-03-07 06:45:05 [RateCDR] => 1 ) [2025-03-07 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:45:05' and `end` < '2025-03-07 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:45:17] Production.INFO: count ==153 [2025-03-07 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:45:05 - End Time 2025-03-07 06:45:05 [2025-03-07 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626067', 'tblTempUsageDetail_20' ) start [2025-03-07 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626067', 'tblTempUsageDetail_20' ) end [2025-03-07 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626067', 'tblTempVendorCDR_20' ) start [2025-03-07 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626067', 'tblTempVendorCDR_20' ) end [2025-03-07 06:45:17] Production.INFO: ProcessCDR(1,14626067,1,1,2) [2025-03-07 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626067', 'tblTempUsageDetail_20' ) start [2025-03-07 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626067', 'tblTempUsageDetail_20' ) end [2025-03-07 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:45:20] Production.INFO: ==16576== Releasing lock... [2025-03-07 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:45:20] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:46:06 [end_date_ymd] => 2025-03-07 06:46:06 [RateCDR] => 1 ) [2025-03-07 06: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-03-07 03:46:06' and `end` < '2025-03-07 06: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-03-07 06:46:18] Production.INFO: count ==153 [2025-03-07 06:46:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:46:06 - End Time 2025-03-07 06:46:06 [2025-03-07 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626072', 'tblTempUsageDetail_20' ) start [2025-03-07 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626072', 'tblTempUsageDetail_20' ) end [2025-03-07 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626072', 'tblTempVendorCDR_20' ) start [2025-03-07 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626072', 'tblTempVendorCDR_20' ) end [2025-03-07 06:46:18] Production.INFO: ProcessCDR(1,14626072,1,1,2) [2025-03-07 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626072', 'tblTempUsageDetail_20' ) start [2025-03-07 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626072', 'tblTempUsageDetail_20' ) end [2025-03-07 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:46:21] Production.INFO: ==16647== Releasing lock... [2025-03-07 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:46:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:47:05 [end_date_ymd] => 2025-03-07 06:47:05 [RateCDR] => 1 ) [2025-03-07 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:47:05' and `end` < '2025-03-07 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:47:17] Production.INFO: count ==153 [2025-03-07 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:47:05 - End Time 2025-03-07 06:47:05 [2025-03-07 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626077', 'tblTempUsageDetail_20' ) start [2025-03-07 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626077', 'tblTempUsageDetail_20' ) end [2025-03-07 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626077', 'tblTempVendorCDR_20' ) start [2025-03-07 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626077', 'tblTempVendorCDR_20' ) end [2025-03-07 06:47:17] Production.INFO: ProcessCDR(1,14626077,1,1,2) [2025-03-07 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626077', 'tblTempUsageDetail_20' ) start [2025-03-07 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626077', 'tblTempUsageDetail_20' ) end [2025-03-07 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:47:21] Production.INFO: ==16721== Releasing lock... [2025-03-07 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:47:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:48:06 [end_date_ymd] => 2025-03-07 06:48:06 [RateCDR] => 1 ) [2025-03-07 06:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:48:06' and `end` < '2025-03-07 06:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:48:18] Production.INFO: count ==153 [2025-03-07 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:48:06 - End Time 2025-03-07 06:48:06 [2025-03-07 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626082', 'tblTempUsageDetail_20' ) start [2025-03-07 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626082', 'tblTempUsageDetail_20' ) end [2025-03-07 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626082', 'tblTempVendorCDR_20' ) start [2025-03-07 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626082', 'tblTempVendorCDR_20' ) end [2025-03-07 06:48:18] Production.INFO: ProcessCDR(1,14626082,1,1,2) [2025-03-07 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626082', 'tblTempUsageDetail_20' ) start [2025-03-07 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626082', 'tblTempUsageDetail_20' ) end [2025-03-07 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:48:21] Production.INFO: ==16790== Releasing lock... [2025-03-07 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:48:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:49:05 [end_date_ymd] => 2025-03-07 06:49:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:49:05' and `end` < '2025-03-07 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-03-07 06:49:17] Production.INFO: count ==153 [2025-03-07 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:49:05 - End Time 2025-03-07 06:49:05 [2025-03-07 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626087', 'tblTempUsageDetail_20' ) start [2025-03-07 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626087', 'tblTempUsageDetail_20' ) end [2025-03-07 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626087', 'tblTempVendorCDR_20' ) start [2025-03-07 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626087', 'tblTempVendorCDR_20' ) end [2025-03-07 06:49:17] Production.INFO: ProcessCDR(1,14626087,1,1,2) [2025-03-07 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626087', 'tblTempUsageDetail_20' ) start [2025-03-07 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626087', 'tblTempUsageDetail_20' ) end [2025-03-07 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:49:20] Production.INFO: ==16864== Releasing lock... [2025-03-07 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:49:20] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:50:06 [end_date_ymd] => 2025-03-07 06:50:06 [RateCDR] => 1 ) [2025-03-07 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:50:06' and `end` < '2025-03-07 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:50:18] Production.INFO: count ==153 [2025-03-07 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:50:06 - End Time 2025-03-07 06:50:06 [2025-03-07 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626093', 'tblTempUsageDetail_20' ) start [2025-03-07 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626093', 'tblTempUsageDetail_20' ) end [2025-03-07 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626093', 'tblTempVendorCDR_20' ) start [2025-03-07 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626093', 'tblTempVendorCDR_20' ) end [2025-03-07 06:50:18] Production.INFO: ProcessCDR(1,14626093,1,1,2) [2025-03-07 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626093', 'tblTempUsageDetail_20' ) start [2025-03-07 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626093', 'tblTempUsageDetail_20' ) end [2025-03-07 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:50:22] Production.INFO: ==16939== Releasing lock... [2025-03-07 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:50:22] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:51:05 [end_date_ymd] => 2025-03-07 06:51:05 [RateCDR] => 1 ) [2025-03-07 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:51:05' and `end` < '2025-03-07 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-03-07 06:51:17] Production.INFO: count ==153 [2025-03-07 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:51:05 - End Time 2025-03-07 06:51:05 [2025-03-07 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626098', 'tblTempUsageDetail_20' ) start [2025-03-07 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626098', 'tblTempUsageDetail_20' ) end [2025-03-07 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626098', 'tblTempVendorCDR_20' ) start [2025-03-07 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626098', 'tblTempVendorCDR_20' ) end [2025-03-07 06:51:17] Production.INFO: ProcessCDR(1,14626098,1,1,2) [2025-03-07 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626098', 'tblTempUsageDetail_20' ) start [2025-03-07 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626098', 'tblTempUsageDetail_20' ) end [2025-03-07 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:51:21] Production.INFO: ==17011== Releasing lock... [2025-03-07 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:51:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:52:05 [end_date_ymd] => 2025-03-07 06:52:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:52:05' and `end` < '2025-03-07 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-03-07 06:52:17] Production.INFO: count ==150 [2025-03-07 06:52:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:52:05 - End Time 2025-03-07 06:52:05 [2025-03-07 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626103', 'tblTempUsageDetail_20' ) start [2025-03-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626103', 'tblTempUsageDetail_20' ) end [2025-03-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626103', 'tblTempVendorCDR_20' ) start [2025-03-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626103', 'tblTempVendorCDR_20' ) end [2025-03-07 06:52:18] Production.INFO: ProcessCDR(1,14626103,1,1,2) [2025-03-07 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626103', 'tblTempUsageDetail_20' ) start [2025-03-07 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626103', 'tblTempUsageDetail_20' ) end [2025-03-07 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:52:21] Production.INFO: ==17081== Releasing lock... [2025-03-07 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:52:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:53:05 [end_date_ymd] => 2025-03-07 06:53:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:53:05' and `end` < '2025-03-07 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-03-07 06:53:17] Production.INFO: count ==150 [2025-03-07 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:53:05 - End Time 2025-03-07 06:53:05 [2025-03-07 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626108', 'tblTempUsageDetail_20' ) start [2025-03-07 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626108', 'tblTempUsageDetail_20' ) end [2025-03-07 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626108', 'tblTempVendorCDR_20' ) start [2025-03-07 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626108', 'tblTempVendorCDR_20' ) end [2025-03-07 06:53:17] Production.INFO: ProcessCDR(1,14626108,1,1,2) [2025-03-07 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626108', 'tblTempUsageDetail_20' ) start [2025-03-07 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626108', 'tblTempUsageDetail_20' ) end [2025-03-07 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:53:20] Production.INFO: ==17152== Releasing lock... [2025-03-07 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:53:20] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:54:05 [end_date_ymd] => 2025-03-07 06:54:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:54:05' and `end` < '2025-03-07 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-03-07 06:54:17] Production.INFO: count ==149 [2025-03-07 06:54:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:54:05 - End Time 2025-03-07 06:54:05 [2025-03-07 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626113', 'tblTempUsageDetail_20' ) start [2025-03-07 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626113', 'tblTempUsageDetail_20' ) end [2025-03-07 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626113', 'tblTempVendorCDR_20' ) start [2025-03-07 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626113', 'tblTempVendorCDR_20' ) end [2025-03-07 06:54:17] Production.INFO: ProcessCDR(1,14626113,1,1,2) [2025-03-07 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626113', 'tblTempUsageDetail_20' ) start [2025-03-07 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626113', 'tblTempUsageDetail_20' ) end [2025-03-07 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:54:20] Production.INFO: ==17226== Releasing lock... [2025-03-07 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:54:20] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:55:05 [end_date_ymd] => 2025-03-07 06:55:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:55:05' and `end` < '2025-03-07 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-03-07 06:55:17] Production.INFO: count ==149 [2025-03-07 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:55:05 - End Time 2025-03-07 06:55:05 [2025-03-07 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626118', 'tblTempUsageDetail_20' ) start [2025-03-07 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626118', 'tblTempUsageDetail_20' ) end [2025-03-07 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626118', 'tblTempVendorCDR_20' ) start [2025-03-07 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626118', 'tblTempVendorCDR_20' ) end [2025-03-07 06:55:17] Production.INFO: ProcessCDR(1,14626118,1,1,2) [2025-03-07 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626118', 'tblTempUsageDetail_20' ) start [2025-03-07 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626118', 'tblTempUsageDetail_20' ) end [2025-03-07 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:55:21] Production.INFO: ==17295== Releasing lock... [2025-03-07 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:55:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:56:05 [end_date_ymd] => 2025-03-07 06:56:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:56:05' and `end` < '2025-03-07 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-03-07 06:56:17] Production.INFO: count ==149 [2025-03-07 06:56:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:56:05 - End Time 2025-03-07 06:56:05 [2025-03-07 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626123', 'tblTempUsageDetail_20' ) start [2025-03-07 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626123', 'tblTempUsageDetail_20' ) end [2025-03-07 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626123', 'tblTempVendorCDR_20' ) start [2025-03-07 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626123', 'tblTempVendorCDR_20' ) end [2025-03-07 06:56:17] Production.INFO: ProcessCDR(1,14626123,1,1,2) [2025-03-07 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626123', 'tblTempUsageDetail_20' ) start [2025-03-07 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626123', 'tblTempUsageDetail_20' ) end [2025-03-07 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:56:21] Production.INFO: ==17373== Releasing lock... [2025-03-07 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:56:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:57:05 [end_date_ymd] => 2025-03-07 06:57:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:57:05' and `end` < '2025-03-07 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-03-07 06:57:18] Production.INFO: count ==149 [2025-03-07 06:57:18] Production.ERROR: pbx CDR StartTime 2025-03-07 03:57:05 - End Time 2025-03-07 06:57:05 [2025-03-07 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626128', 'tblTempUsageDetail_20' ) start [2025-03-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626128', 'tblTempUsageDetail_20' ) end [2025-03-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626128', 'tblTempVendorCDR_20' ) start [2025-03-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626128', 'tblTempVendorCDR_20' ) end [2025-03-07 06:57:18] Production.INFO: ProcessCDR(1,14626128,1,1,2) [2025-03-07 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626128', 'tblTempUsageDetail_20' ) start [2025-03-07 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626128', 'tblTempUsageDetail_20' ) end [2025-03-07 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:57:21] Production.INFO: ==17446== Releasing lock... [2025-03-07 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:57:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:58:05 [end_date_ymd] => 2025-03-07 06:58:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 03:58:05' and `end` < '2025-03-07 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-03-07 06:58:17] Production.INFO: count ==149 [2025-03-07 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:58:05 - End Time 2025-03-07 06:58:05 [2025-03-07 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626133', 'tblTempUsageDetail_20' ) start [2025-03-07 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626133', 'tblTempUsageDetail_20' ) end [2025-03-07 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626133', 'tblTempVendorCDR_20' ) start [2025-03-07 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626133', 'tblTempVendorCDR_20' ) end [2025-03-07 06:58:17] Production.INFO: ProcessCDR(1,14626133,1,1,2) [2025-03-07 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626133', 'tblTempUsageDetail_20' ) start [2025-03-07 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626133', 'tblTempUsageDetail_20' ) end [2025-03-07 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:58:20] Production.INFO: ==17555== Releasing lock... [2025-03-07 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:58:20] Production.INFO: 29 MB #Memory Used# [2025-03-07 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 03:59:04 [end_date_ymd] => 2025-03-07 06:59:04 [RateCDR] => 1 ) [2025-03-07 06:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 03:59:04' and `end` < '2025-03-07 06:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 06:59:16] Production.INFO: count ==146 [2025-03-07 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-07 03:59:04 - End Time 2025-03-07 06:59:04 [2025-03-07 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626138', 'tblTempUsageDetail_20' ) start [2025-03-07 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626138', 'tblTempUsageDetail_20' ) end [2025-03-07 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626138', 'tblTempVendorCDR_20' ) start [2025-03-07 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626138', 'tblTempVendorCDR_20' ) end [2025-03-07 06:59:17] Production.INFO: ProcessCDR(1,14626138,1,1,2) [2025-03-07 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626138', 'tblTempUsageDetail_20' ) start [2025-03-07 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626138', 'tblTempUsageDetail_20' ) end [2025-03-07 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-07 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-07 06:59:20] Production.INFO: ==17629== Releasing lock... [2025-03-07 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 06:59:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:00:06 [end_date_ymd] => 2025-03-07 07:00:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:00:06' and `end` < '2025-03-07 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-03-07 07:00:18] Production.INFO: count ==143 [2025-03-07 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:00:06 - End Time 2025-03-07 07:00:06 [2025-03-07 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626144', 'tblTempUsageDetail_20' ) start [2025-03-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626144', 'tblTempUsageDetail_20' ) end [2025-03-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626144', 'tblTempVendorCDR_20' ) start [2025-03-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626144', 'tblTempVendorCDR_20' ) end [2025-03-07 07:00:18] Production.INFO: ProcessCDR(1,14626144,1,1,2) [2025-03-07 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626144', 'tblTempUsageDetail_20' ) start [2025-03-07 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626144', 'tblTempUsageDetail_20' ) end [2025-03-07 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:00:21] Production.INFO: ==17705== Releasing lock... [2025-03-07 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:01:06 [end_date_ymd] => 2025-03-07 07:01:06 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:01:06' and `end` < '2025-03-07 07: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-03-07 07:01:18] Production.INFO: count ==143 [2025-03-07 07:01:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:01:06 - End Time 2025-03-07 07:01:06 [2025-03-07 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626149', 'tblTempUsageDetail_20' ) start [2025-03-07 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626149', 'tblTempUsageDetail_20' ) end [2025-03-07 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626149', 'tblTempVendorCDR_20' ) start [2025-03-07 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626149', 'tblTempVendorCDR_20' ) end [2025-03-07 07:01:18] Production.INFO: ProcessCDR(1,14626149,1,1,2) [2025-03-07 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626149', 'tblTempUsageDetail_20' ) start [2025-03-07 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626149', 'tblTempUsageDetail_20' ) end [2025-03-07 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:01:21] Production.INFO: ==17830== Releasing lock... [2025-03-07 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:02:06 [end_date_ymd] => 2025-03-07 07:02:06 [RateCDR] => 1 ) [2025-03-07 07:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:02:06' and `end` < '2025-03-07 07:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:02:18] Production.INFO: count ==143 [2025-03-07 07:02:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:02:06 - End Time 2025-03-07 07:02:06 [2025-03-07 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626154', 'tblTempUsageDetail_20' ) start [2025-03-07 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626154', 'tblTempUsageDetail_20' ) end [2025-03-07 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626154', 'tblTempVendorCDR_20' ) start [2025-03-07 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626154', 'tblTempVendorCDR_20' ) end [2025-03-07 07:02:18] Production.INFO: ProcessCDR(1,14626154,1,1,2) [2025-03-07 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626154', 'tblTempUsageDetail_20' ) start [2025-03-07 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626154', 'tblTempUsageDetail_20' ) end [2025-03-07 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:02:21] Production.INFO: ==17946== Releasing lock... [2025-03-07 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:03:06 [end_date_ymd] => 2025-03-07 07:03:06 [RateCDR] => 1 ) [2025-03-07 07:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:03:06' and `end` < '2025-03-07 07:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:03:19] Production.INFO: count ==143 [2025-03-07 07:03:19] Production.ERROR: pbx CDR StartTime 2025-03-07 04:03:06 - End Time 2025-03-07 07:03:06 [2025-03-07 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626159', 'tblTempUsageDetail_20' ) start [2025-03-07 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626159', 'tblTempUsageDetail_20' ) end [2025-03-07 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626159', 'tblTempVendorCDR_20' ) start [2025-03-07 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626159', 'tblTempVendorCDR_20' ) end [2025-03-07 07:03:19] Production.INFO: ProcessCDR(1,14626159,1,1,2) [2025-03-07 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626159', 'tblTempUsageDetail_20' ) start [2025-03-07 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626159', 'tblTempUsageDetail_20' ) end [2025-03-07 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:03:22] Production.INFO: ==18024== Releasing lock... [2025-03-07 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:04:06 [end_date_ymd] => 2025-03-07 07:04:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:04:06' and `end` < '2025-03-07 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-03-07 07:04:18] Production.INFO: count ==146 [2025-03-07 07:04:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:04:06 - End Time 2025-03-07 07:04:06 [2025-03-07 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626164', 'tblTempUsageDetail_20' ) start [2025-03-07 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626164', 'tblTempUsageDetail_20' ) end [2025-03-07 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626164', 'tblTempVendorCDR_20' ) start [2025-03-07 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626164', 'tblTempVendorCDR_20' ) end [2025-03-07 07:04:18] Production.INFO: ProcessCDR(1,14626164,1,1,2) [2025-03-07 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626164', 'tblTempUsageDetail_20' ) start [2025-03-07 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626164', 'tblTempUsageDetail_20' ) end [2025-03-07 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:04:22] Production.INFO: ==18102== Releasing lock... [2025-03-07 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:05:06 [end_date_ymd] => 2025-03-07 07:05:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:05:06' and `end` < '2025-03-07 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-03-07 07:05:18] Production.INFO: count ==146 [2025-03-07 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:05:06 - End Time 2025-03-07 07:05:06 [2025-03-07 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626169', 'tblTempUsageDetail_20' ) start [2025-03-07 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626169', 'tblTempUsageDetail_20' ) end [2025-03-07 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626169', 'tblTempVendorCDR_20' ) start [2025-03-07 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626169', 'tblTempVendorCDR_20' ) end [2025-03-07 07:05:18] Production.INFO: ProcessCDR(1,14626169,1,1,2) [2025-03-07 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626169', 'tblTempUsageDetail_20' ) start [2025-03-07 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626169', 'tblTempUsageDetail_20' ) end [2025-03-07 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:05:22] Production.INFO: ==18255== Releasing lock... [2025-03-07 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:06:05 [end_date_ymd] => 2025-03-07 07:06:05 [RateCDR] => 1 ) [2025-03-07 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:06:05' and `end` < '2025-03-07 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:06:18] Production.INFO: count ==146 [2025-03-07 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:06:05 - End Time 2025-03-07 07:06:05 [2025-03-07 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626174', 'tblTempUsageDetail_20' ) start [2025-03-07 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626174', 'tblTempUsageDetail_20' ) end [2025-03-07 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626174', 'tblTempVendorCDR_20' ) start [2025-03-07 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626174', 'tblTempVendorCDR_20' ) end [2025-03-07 07:06:18] Production.INFO: ProcessCDR(1,14626174,1,1,2) [2025-03-07 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626174', 'tblTempUsageDetail_20' ) start [2025-03-07 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626174', 'tblTempUsageDetail_20' ) end [2025-03-07 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:06:21] Production.INFO: ==18330== Releasing lock... [2025-03-07 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:07:05 [end_date_ymd] => 2025-03-07 07:07:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:07:05' and `end` < '2025-03-07 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-03-07 07:07:18] Production.INFO: count ==143 [2025-03-07 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:07:05 - End Time 2025-03-07 07:07:05 [2025-03-07 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626179', 'tblTempUsageDetail_20' ) start [2025-03-07 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626179', 'tblTempUsageDetail_20' ) end [2025-03-07 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626179', 'tblTempVendorCDR_20' ) start [2025-03-07 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626179', 'tblTempVendorCDR_20' ) end [2025-03-07 07:07:18] Production.INFO: ProcessCDR(1,14626179,1,1,2) [2025-03-07 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626179', 'tblTempUsageDetail_20' ) start [2025-03-07 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626179', 'tblTempUsageDetail_20' ) end [2025-03-07 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:07:22] Production.INFO: ==18412== Releasing lock... [2025-03-07 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:07:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:08:06 [end_date_ymd] => 2025-03-07 07:08:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:08:06' and `end` < '2025-03-07 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-03-07 07:08:20] Production.INFO: count ==142 [2025-03-07 07:08:20] Production.ERROR: pbx CDR StartTime 2025-03-07 04:08:06 - End Time 2025-03-07 07:08:06 [2025-03-07 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626184', 'tblTempUsageDetail_20' ) start [2025-03-07 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626184', 'tblTempUsageDetail_20' ) end [2025-03-07 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626184', 'tblTempVendorCDR_20' ) start [2025-03-07 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626184', 'tblTempVendorCDR_20' ) end [2025-03-07 07:08:20] Production.INFO: ProcessCDR(1,14626184,1,1,2) [2025-03-07 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626184', 'tblTempUsageDetail_20' ) start [2025-03-07 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626184', 'tblTempUsageDetail_20' ) end [2025-03-07 07:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:08:24] Production.INFO: ==18572== Releasing lock... [2025-03-07 07:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:08:24] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:09:05 [end_date_ymd] => 2025-03-07 07:09:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:09:05' and `end` < '2025-03-07 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-03-07 07:09:17] Production.INFO: count ==142 [2025-03-07 07:09:17] Production.ERROR: pbx CDR StartTime 2025-03-07 04:09:05 - End Time 2025-03-07 07:09:05 [2025-03-07 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626189', 'tblTempUsageDetail_20' ) start [2025-03-07 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626189', 'tblTempUsageDetail_20' ) end [2025-03-07 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626189', 'tblTempVendorCDR_20' ) start [2025-03-07 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626189', 'tblTempVendorCDR_20' ) end [2025-03-07 07:09:17] Production.INFO: ProcessCDR(1,14626189,1,1,2) [2025-03-07 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626189', 'tblTempUsageDetail_20' ) start [2025-03-07 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626189', 'tblTempUsageDetail_20' ) end [2025-03-07 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:09:21] Production.INFO: ==18648== Releasing lock... [2025-03-07 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:10:06 [end_date_ymd] => 2025-03-07 07:10:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:10:06' and `end` < '2025-03-07 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-03-07 07:10:19] Production.INFO: count ==142 [2025-03-07 07:10:19] Production.ERROR: pbx CDR StartTime 2025-03-07 04:10:06 - End Time 2025-03-07 07:10:06 [2025-03-07 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626195', 'tblTempUsageDetail_20' ) start [2025-03-07 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626195', 'tblTempUsageDetail_20' ) end [2025-03-07 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626195', 'tblTempVendorCDR_20' ) start [2025-03-07 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626195', 'tblTempVendorCDR_20' ) end [2025-03-07 07:10:19] Production.INFO: ProcessCDR(1,14626195,1,1,2) [2025-03-07 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626195', 'tblTempUsageDetail_20' ) start [2025-03-07 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626195', 'tblTempUsageDetail_20' ) end [2025-03-07 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:10:22] Production.INFO: ==18731== Releasing lock... [2025-03-07 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:11:06 [end_date_ymd] => 2025-03-07 07:11:06 [RateCDR] => 1 ) [2025-03-07 07:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:11:06' and `end` < '2025-03-07 07:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:11:18] Production.INFO: count ==142 [2025-03-07 07:11:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:11:06 - End Time 2025-03-07 07:11:06 [2025-03-07 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626200', 'tblTempUsageDetail_20' ) start [2025-03-07 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626200', 'tblTempUsageDetail_20' ) end [2025-03-07 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626200', 'tblTempVendorCDR_20' ) start [2025-03-07 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626200', 'tblTempVendorCDR_20' ) end [2025-03-07 07:11:18] Production.INFO: ProcessCDR(1,14626200,1,1,2) [2025-03-07 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626200', 'tblTempUsageDetail_20' ) start [2025-03-07 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626200', 'tblTempUsageDetail_20' ) end [2025-03-07 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:11:21] Production.INFO: ==18815== Releasing lock... [2025-03-07 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:12:06 [end_date_ymd] => 2025-03-07 07:12:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:12:06' and `end` < '2025-03-07 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-03-07 07:12:18] Production.INFO: count ==142 [2025-03-07 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:12:06 - End Time 2025-03-07 07:12:06 [2025-03-07 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626205', 'tblTempUsageDetail_20' ) start [2025-03-07 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626205', 'tblTempUsageDetail_20' ) end [2025-03-07 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626205', 'tblTempVendorCDR_20' ) start [2025-03-07 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626205', 'tblTempVendorCDR_20' ) end [2025-03-07 07:12:18] Production.INFO: ProcessCDR(1,14626205,1,1,2) [2025-03-07 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626205', 'tblTempUsageDetail_20' ) start [2025-03-07 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626205', 'tblTempUsageDetail_20' ) end [2025-03-07 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:12:22] Production.INFO: ==18969== Releasing lock... [2025-03-07 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:13:05 [end_date_ymd] => 2025-03-07 07:13:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:13:05' and `end` < '2025-03-07 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-03-07 07:13:18] Production.INFO: count ==142 [2025-03-07 07:13:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:13:05 - End Time 2025-03-07 07:13:05 [2025-03-07 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626210', 'tblTempUsageDetail_20' ) start [2025-03-07 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626210', 'tblTempUsageDetail_20' ) end [2025-03-07 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626210', 'tblTempVendorCDR_20' ) start [2025-03-07 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626210', 'tblTempVendorCDR_20' ) end [2025-03-07 07:13:18] Production.INFO: ProcessCDR(1,14626210,1,1,2) [2025-03-07 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626210', 'tblTempUsageDetail_20' ) start [2025-03-07 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626210', 'tblTempUsageDetail_20' ) end [2025-03-07 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:13:21] Production.INFO: ==19049== Releasing lock... [2025-03-07 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:14:06 [end_date_ymd] => 2025-03-07 07:14:06 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:14:06' and `end` < '2025-03-07 07: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-03-07 07:14:20] Production.INFO: count ==142 [2025-03-07 07:14:20] Production.ERROR: pbx CDR StartTime 2025-03-07 04:14:06 - End Time 2025-03-07 07:14:06 [2025-03-07 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626215', 'tblTempUsageDetail_20' ) start [2025-03-07 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626215', 'tblTempUsageDetail_20' ) end [2025-03-07 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626215', 'tblTempVendorCDR_20' ) start [2025-03-07 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626215', 'tblTempVendorCDR_20' ) end [2025-03-07 07:14:20] Production.INFO: ProcessCDR(1,14626215,1,1,2) [2025-03-07 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626215', 'tblTempUsageDetail_20' ) start [2025-03-07 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626215', 'tblTempUsageDetail_20' ) end [2025-03-07 07:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:14:24] Production.INFO: ==19174== Releasing lock... [2025-03-07 07:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:14:24] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:15:06 [end_date_ymd] => 2025-03-07 07:15:06 [RateCDR] => 1 ) [2025-03-07 07:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:15:06' and `end` < '2025-03-07 07:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:15:20] Production.INFO: count ==142 [2025-03-07 07:15:20] Production.ERROR: pbx CDR StartTime 2025-03-07 04:15:06 - End Time 2025-03-07 07:15:06 [2025-03-07 07:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626220', 'tblTempUsageDetail_20' ) start [2025-03-07 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626220', 'tblTempUsageDetail_20' ) end [2025-03-07 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626220', 'tblTempVendorCDR_20' ) start [2025-03-07 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626220', 'tblTempVendorCDR_20' ) end [2025-03-07 07:15:20] Production.INFO: ProcessCDR(1,14626220,1,1,2) [2025-03-07 07:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626220', 'tblTempUsageDetail_20' ) start [2025-03-07 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626220', 'tblTempUsageDetail_20' ) end [2025-03-07 07:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:15:24] Production.INFO: ==19334== Releasing lock... [2025-03-07 07:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:15:24] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:16:06 [end_date_ymd] => 2025-03-07 07:16:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:16:06' and `end` < '2025-03-07 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-03-07 07:16:19] Production.INFO: count ==142 [2025-03-07 07:16:19] Production.ERROR: pbx CDR StartTime 2025-03-07 04:16:06 - End Time 2025-03-07 07:16:06 [2025-03-07 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626225', 'tblTempUsageDetail_20' ) start [2025-03-07 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626225', 'tblTempUsageDetail_20' ) end [2025-03-07 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626225', 'tblTempVendorCDR_20' ) start [2025-03-07 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626225', 'tblTempVendorCDR_20' ) end [2025-03-07 07:16:19] Production.INFO: ProcessCDR(1,14626225,1,1,2) [2025-03-07 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626225', 'tblTempUsageDetail_20' ) start [2025-03-07 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626225', 'tblTempUsageDetail_20' ) end [2025-03-07 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:16:22] Production.INFO: ==19418== Releasing lock... [2025-03-07 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:17:06 [end_date_ymd] => 2025-03-07 07:17:06 [RateCDR] => 1 ) [2025-03-07 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:17:06' and `end` < '2025-03-07 07:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:17:18] Production.INFO: count ==142 [2025-03-07 07:17:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:17:06 - End Time 2025-03-07 07:17:06 [2025-03-07 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626230', 'tblTempUsageDetail_20' ) start [2025-03-07 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626230', 'tblTempUsageDetail_20' ) end [2025-03-07 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626230', 'tblTempVendorCDR_20' ) start [2025-03-07 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626230', 'tblTempVendorCDR_20' ) end [2025-03-07 07:17:18] Production.INFO: ProcessCDR(1,14626230,1,1,2) [2025-03-07 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626230', 'tblTempUsageDetail_20' ) start [2025-03-07 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626230', 'tblTempUsageDetail_20' ) end [2025-03-07 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:17:22] Production.INFO: ==19500== Releasing lock... [2025-03-07 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:17:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:18:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:18:07 [end_date_ymd] => 2025-03-07 07:18:07 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:18:07' and `end` < '2025-03-07 07: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-03-07 07:18:19] Production.INFO: count ==142 [2025-03-07 07:18:19] Production.ERROR: pbx CDR StartTime 2025-03-07 04:18:07 - End Time 2025-03-07 07:18:07 [2025-03-07 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626235', 'tblTempUsageDetail_20' ) start [2025-03-07 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626235', 'tblTempUsageDetail_20' ) end [2025-03-07 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626235', 'tblTempVendorCDR_20' ) start [2025-03-07 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626235', 'tblTempVendorCDR_20' ) end [2025-03-07 07:18:19] Production.INFO: ProcessCDR(1,14626235,1,1,2) [2025-03-07 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626235', 'tblTempUsageDetail_20' ) start [2025-03-07 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626235', 'tblTempUsageDetail_20' ) end [2025-03-07 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:18:23] Production.INFO: ==19592== Releasing lock... [2025-03-07 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:18:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:19:05 [end_date_ymd] => 2025-03-07 07:19:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:19:05' and `end` < '2025-03-07 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-03-07 07:19:18] Production.INFO: count ==144 [2025-03-07 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:19:05 - End Time 2025-03-07 07:19:05 [2025-03-07 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626240', 'tblTempUsageDetail_20' ) start [2025-03-07 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626240', 'tblTempUsageDetail_20' ) end [2025-03-07 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626240', 'tblTempVendorCDR_20' ) start [2025-03-07 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626240', 'tblTempVendorCDR_20' ) end [2025-03-07 07:19:18] Production.INFO: ProcessCDR(1,14626240,1,1,2) [2025-03-07 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626240', 'tblTempUsageDetail_20' ) start [2025-03-07 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626240', 'tblTempUsageDetail_20' ) end [2025-03-07 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:19:21] Production.INFO: ==19674== Releasing lock... [2025-03-07 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:20:07 [end_date_ymd] => 2025-03-07 07:20:07 [RateCDR] => 1 ) [2025-03-07 07:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:20:07' and `end` < '2025-03-07 07:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:20:19] Production.INFO: count ==148 [2025-03-07 07:20:19] Production.ERROR: pbx CDR StartTime 2025-03-07 04:20:07 - End Time 2025-03-07 07:20:07 [2025-03-07 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626246', 'tblTempUsageDetail_20' ) start [2025-03-07 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626246', 'tblTempUsageDetail_20' ) end [2025-03-07 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626246', 'tblTempVendorCDR_20' ) start [2025-03-07 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626246', 'tblTempVendorCDR_20' ) end [2025-03-07 07:20:19] Production.INFO: ProcessCDR(1,14626246,1,1,2) [2025-03-07 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626246', 'tblTempUsageDetail_20' ) start [2025-03-07 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626246', 'tblTempUsageDetail_20' ) end [2025-03-07 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:20:23] Production.INFO: ==19755== Releasing lock... [2025-03-07 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:20:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-07 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:21:05 [end_date_ymd] => 2025-03-07 07:21:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:21:05' and `end` < '2025-03-07 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:21:18] Production.INFO: count ==161 [2025-03-07 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:21:05 - End Time 2025-03-07 07:21:05 [2025-03-07 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626251', 'tblTempUsageDetail_20' ) start [2025-03-07 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626251', 'tblTempUsageDetail_20' ) end [2025-03-07 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626251', 'tblTempVendorCDR_20' ) start [2025-03-07 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626251', 'tblTempVendorCDR_20' ) end [2025-03-07 07:21:18] Production.INFO: ProcessCDR(1,14626251,1,1,2) [2025-03-07 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626251', 'tblTempUsageDetail_20' ) start [2025-03-07 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626251', 'tblTempUsageDetail_20' ) end [2025-03-07 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:21:23] Production.INFO: ==19837== Releasing lock... [2025-03-07 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:21:23] Production.INFO: 29 MB #Memory Used# [2025-03-07 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:22:05 [end_date_ymd] => 2025-03-07 07:22:05 [RateCDR] => 1 ) [2025-03-07 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:22:05' and `end` < '2025-03-07 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:22:18] Production.INFO: count ==164 [2025-03-07 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:22:05 - End Time 2025-03-07 07:22:05 [2025-03-07 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626256', 'tblTempUsageDetail_20' ) start [2025-03-07 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626256', 'tblTempUsageDetail_20' ) end [2025-03-07 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626256', 'tblTempVendorCDR_20' ) start [2025-03-07 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626256', 'tblTempVendorCDR_20' ) end [2025-03-07 07:22:18] Production.INFO: ProcessCDR(1,14626256,1,1,2) [2025-03-07 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626256', 'tblTempUsageDetail_20' ) start [2025-03-07 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626256', 'tblTempUsageDetail_20' ) end [2025-03-07 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:22:22] Production.INFO: ==19921== Releasing lock... [2025-03-07 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:22:22] Production.INFO: 29 MB #Memory Used# [2025-03-07 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:23:05 [end_date_ymd] => 2025-03-07 07:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:23:05' and `end` < '2025-03-07 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-03-07 07:23:17] Production.INFO: count ==164 [2025-03-07 07:23:17] Production.ERROR: pbx CDR StartTime 2025-03-07 04:23:05 - End Time 2025-03-07 07:23:05 [2025-03-07 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626261', 'tblTempUsageDetail_20' ) start [2025-03-07 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626261', 'tblTempUsageDetail_20' ) end [2025-03-07 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626261', 'tblTempVendorCDR_20' ) start [2025-03-07 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626261', 'tblTempVendorCDR_20' ) end [2025-03-07 07:23:18] Production.INFO: ProcessCDR(1,14626261,1,1,2) [2025-03-07 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626261', 'tblTempUsageDetail_20' ) start [2025-03-07 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626261', 'tblTempUsageDetail_20' ) end [2025-03-07 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:23:21] Production.INFO: ==20004== Releasing lock... [2025-03-07 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:23:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:24:05 [end_date_ymd] => 2025-03-07 07:24:05 [RateCDR] => 1 ) [2025-03-07 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:24:05' and `end` < '2025-03-07 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:24:17] Production.INFO: count ==164 [2025-03-07 07:24:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:24:05 - End Time 2025-03-07 07:24:05 [2025-03-07 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626266', 'tblTempUsageDetail_20' ) start [2025-03-07 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626266', 'tblTempUsageDetail_20' ) end [2025-03-07 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626266', 'tblTempVendorCDR_20' ) start [2025-03-07 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626266', 'tblTempVendorCDR_20' ) end [2025-03-07 07:24:18] Production.INFO: ProcessCDR(1,14626266,1,1,2) [2025-03-07 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626266', 'tblTempUsageDetail_20' ) start [2025-03-07 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626266', 'tblTempUsageDetail_20' ) end [2025-03-07 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:24:21] Production.INFO: ==20079== Releasing lock... [2025-03-07 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:24:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:25:05 [end_date_ymd] => 2025-03-07 07:25:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:25:05' and `end` < '2025-03-07 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-03-07 07:25:17] Production.INFO: count ==165 [2025-03-07 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-07 04:25:05 - End Time 2025-03-07 07:25:05 [2025-03-07 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626271', 'tblTempUsageDetail_20' ) start [2025-03-07 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626271', 'tblTempUsageDetail_20' ) end [2025-03-07 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626271', 'tblTempVendorCDR_20' ) start [2025-03-07 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626271', 'tblTempVendorCDR_20' ) end [2025-03-07 07:25:17] Production.INFO: ProcessCDR(1,14626271,1,1,2) [2025-03-07 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626271', 'tblTempUsageDetail_20' ) start [2025-03-07 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626271', 'tblTempUsageDetail_20' ) end [2025-03-07 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:25:21] Production.INFO: ==20159== Releasing lock... [2025-03-07 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:25:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:26:05 [end_date_ymd] => 2025-03-07 07:26:05 [RateCDR] => 1 ) [2025-03-07 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:26:05' and `end` < '2025-03-07 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:26:17] Production.INFO: count ==170 [2025-03-07 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:26:05 - End Time 2025-03-07 07:26:05 [2025-03-07 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626276', 'tblTempUsageDetail_20' ) start [2025-03-07 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626276', 'tblTempUsageDetail_20' ) end [2025-03-07 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626276', 'tblTempVendorCDR_20' ) start [2025-03-07 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626276', 'tblTempVendorCDR_20' ) end [2025-03-07 07:26:18] Production.INFO: ProcessCDR(1,14626276,1,1,2) [2025-03-07 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626276', 'tblTempUsageDetail_20' ) start [2025-03-07 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626276', 'tblTempUsageDetail_20' ) end [2025-03-07 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:26:21] Production.INFO: ==20244== Releasing lock... [2025-03-07 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:26:21] Production.INFO: 29 MB #Memory Used# [2025-03-07 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:27:06 [end_date_ymd] => 2025-03-07 07:27:06 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:27:06' and `end` < '2025-03-07 07: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-03-07 07:27:18] Production.INFO: count ==170 [2025-03-07 07:27:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:27:06 - End Time 2025-03-07 07:27:06 [2025-03-07 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626281', 'tblTempUsageDetail_20' ) start [2025-03-07 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626281', 'tblTempUsageDetail_20' ) end [2025-03-07 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626281', 'tblTempVendorCDR_20' ) start [2025-03-07 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626281', 'tblTempVendorCDR_20' ) end [2025-03-07 07:27:18] Production.INFO: ProcessCDR(1,14626281,1,1,2) [2025-03-07 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626281', 'tblTempUsageDetail_20' ) start [2025-03-07 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626281', 'tblTempUsageDetail_20' ) end [2025-03-07 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:27:22] Production.INFO: ==20333== Releasing lock... [2025-03-07 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:27:22] Production.INFO: 29 MB #Memory Used# [2025-03-07 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:28:05 [end_date_ymd] => 2025-03-07 07:28:05 [RateCDR] => 1 ) [2025-03-07 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:28:05' and `end` < '2025-03-07 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:28:17] Production.INFO: count ==176 [2025-03-07 07:28:17] Production.ERROR: pbx CDR StartTime 2025-03-07 04:28:05 - End Time 2025-03-07 07:28:05 [2025-03-07 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626286', 'tblTempUsageDetail_20' ) start [2025-03-07 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626286', 'tblTempUsageDetail_20' ) end [2025-03-07 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626286', 'tblTempVendorCDR_20' ) start [2025-03-07 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626286', 'tblTempVendorCDR_20' ) end [2025-03-07 07:28:17] Production.INFO: ProcessCDR(1,14626286,1,1,2) [2025-03-07 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626286', 'tblTempUsageDetail_20' ) start [2025-03-07 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626286', 'tblTempUsageDetail_20' ) end [2025-03-07 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:28:21] Production.INFO: ==20415== Releasing lock... [2025-03-07 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:29:06 [end_date_ymd] => 2025-03-07 07:29:06 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:29:06' and `end` < '2025-03-07 07: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-03-07 07:29:18] Production.INFO: count ==177 [2025-03-07 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:29:06 - End Time 2025-03-07 07:29:06 [2025-03-07 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626291', 'tblTempUsageDetail_20' ) start [2025-03-07 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626291', 'tblTempUsageDetail_20' ) end [2025-03-07 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626291', 'tblTempVendorCDR_20' ) start [2025-03-07 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626291', 'tblTempVendorCDR_20' ) end [2025-03-07 07:29:18] Production.INFO: ProcessCDR(1,14626291,1,1,2) [2025-03-07 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626291', 'tblTempUsageDetail_20' ) start [2025-03-07 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626291', 'tblTempUsageDetail_20' ) end [2025-03-07 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:29:21] Production.INFO: ==20538== Releasing lock... [2025-03-07 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:30:06 [end_date_ymd] => 2025-03-07 07:30:06 [RateCDR] => 1 ) [2025-03-07 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:30:06' and `end` < '2025-03-07 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-03-07 07:30:18] Production.INFO: count ==183 [2025-03-07 07:30:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:30:06 - End Time 2025-03-07 07:30:06 [2025-03-07 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626296', 'tblTempUsageDetail_20' ) start [2025-03-07 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626296', 'tblTempUsageDetail_20' ) end [2025-03-07 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626296', 'tblTempVendorCDR_20' ) start [2025-03-07 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626296', 'tblTempVendorCDR_20' ) end [2025-03-07 07:30:18] Production.INFO: ProcessCDR(1,14626296,1,1,2) [2025-03-07 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626296', 'tblTempUsageDetail_20' ) start [2025-03-07 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626296', 'tblTempUsageDetail_20' ) end [2025-03-07 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:30:21] Production.INFO: ==20624== Releasing lock... [2025-03-07 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:30:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:31:06 [end_date_ymd] => 2025-03-07 07:31:06 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:31:06' and `end` < '2025-03-07 07: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-03-07 07:31:18] Production.INFO: count ==186 [2025-03-07 07:31:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:31:06 - End Time 2025-03-07 07:31:06 [2025-03-07 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626302', 'tblTempUsageDetail_20' ) start [2025-03-07 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626302', 'tblTempUsageDetail_20' ) end [2025-03-07 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626302', 'tblTempVendorCDR_20' ) start [2025-03-07 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626302', 'tblTempVendorCDR_20' ) end [2025-03-07 07:31:18] Production.INFO: ProcessCDR(1,14626302,1,1,2) [2025-03-07 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626302', 'tblTempUsageDetail_20' ) start [2025-03-07 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626302', 'tblTempUsageDetail_20' ) end [2025-03-07 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:31:22] Production.INFO: ==20711== Releasing lock... [2025-03-07 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:31:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:32:05 [end_date_ymd] => 2025-03-07 07:32:05 [RateCDR] => 1 ) [2025-03-07 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:32:05' and `end` < '2025-03-07 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:32:17] Production.INFO: count ==186 [2025-03-07 07:32:17] Production.ERROR: pbx CDR StartTime 2025-03-07 04:32:05 - End Time 2025-03-07 07:32:05 [2025-03-07 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626307', 'tblTempUsageDetail_20' ) start [2025-03-07 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626307', 'tblTempUsageDetail_20' ) end [2025-03-07 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626307', 'tblTempVendorCDR_20' ) start [2025-03-07 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626307', 'tblTempVendorCDR_20' ) end [2025-03-07 07:32:17] Production.INFO: ProcessCDR(1,14626307,1,1,2) [2025-03-07 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626307', 'tblTempUsageDetail_20' ) start [2025-03-07 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626307', 'tblTempUsageDetail_20' ) end [2025-03-07 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:32:21] Production.INFO: ==20801== Releasing lock... [2025-03-07 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:33:06 [end_date_ymd] => 2025-03-07 07:33:06 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:33:06' and `end` < '2025-03-07 07: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-03-07 07:33:18] Production.INFO: count ==186 [2025-03-07 07:33:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:33:06 - End Time 2025-03-07 07:33:06 [2025-03-07 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626312', 'tblTempUsageDetail_20' ) start [2025-03-07 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626312', 'tblTempUsageDetail_20' ) end [2025-03-07 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626312', 'tblTempVendorCDR_20' ) start [2025-03-07 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626312', 'tblTempVendorCDR_20' ) end [2025-03-07 07:33:18] Production.INFO: ProcessCDR(1,14626312,1,1,2) [2025-03-07 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626312', 'tblTempUsageDetail_20' ) start [2025-03-07 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626312', 'tblTempUsageDetail_20' ) end [2025-03-07 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:33:22] Production.INFO: ==20907== Releasing lock... [2025-03-07 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:33:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:34:05 [end_date_ymd] => 2025-03-07 07:34:05 [RateCDR] => 1 ) [2025-03-07 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:34:05' and `end` < '2025-03-07 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:34:17] Production.INFO: count ==186 [2025-03-07 07:34:17] Production.ERROR: pbx CDR StartTime 2025-03-07 04:34:05 - End Time 2025-03-07 07:34:05 [2025-03-07 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626317', 'tblTempUsageDetail_20' ) start [2025-03-07 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626317', 'tblTempUsageDetail_20' ) end [2025-03-07 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626317', 'tblTempVendorCDR_20' ) start [2025-03-07 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626317', 'tblTempVendorCDR_20' ) end [2025-03-07 07:34:17] Production.INFO: ProcessCDR(1,14626317,1,1,2) [2025-03-07 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626317', 'tblTempUsageDetail_20' ) start [2025-03-07 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626317', 'tblTempUsageDetail_20' ) end [2025-03-07 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:34:21] Production.INFO: ==20994== Releasing lock... [2025-03-07 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:35:06 [end_date_ymd] => 2025-03-07 07:35:06 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:35:06' and `end` < '2025-03-07 07: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-03-07 07:35:18] Production.INFO: count ==187 [2025-03-07 07:35:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:35:06 - End Time 2025-03-07 07:35:06 [2025-03-07 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626322', 'tblTempUsageDetail_20' ) start [2025-03-07 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626322', 'tblTempUsageDetail_20' ) end [2025-03-07 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626322', 'tblTempVendorCDR_20' ) start [2025-03-07 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626322', 'tblTempVendorCDR_20' ) end [2025-03-07 07:35:18] Production.INFO: ProcessCDR(1,14626322,1,1,2) [2025-03-07 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626322', 'tblTempUsageDetail_20' ) start [2025-03-07 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626322', 'tblTempUsageDetail_20' ) end [2025-03-07 07:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:35:23] Production.INFO: ==21082== Releasing lock... [2025-03-07 07:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:35:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:36:05 [end_date_ymd] => 2025-03-07 07:36:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:36:05' and `end` < '2025-03-07 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-03-07 07:36:18] Production.INFO: count ==187 [2025-03-07 07:36:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:36:05 - End Time 2025-03-07 07:36:05 [2025-03-07 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626327', 'tblTempUsageDetail_20' ) start [2025-03-07 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626327', 'tblTempUsageDetail_20' ) end [2025-03-07 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626327', 'tblTempVendorCDR_20' ) start [2025-03-07 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626327', 'tblTempVendorCDR_20' ) end [2025-03-07 07:36:18] Production.INFO: ProcessCDR(1,14626327,1,1,2) [2025-03-07 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626327', 'tblTempUsageDetail_20' ) start [2025-03-07 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626327', 'tblTempUsageDetail_20' ) end [2025-03-07 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:36:21] Production.INFO: ==21166== Releasing lock... [2025-03-07 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:37:06 [end_date_ymd] => 2025-03-07 07:37:06 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:37:06' and `end` < '2025-03-07 07: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-03-07 07:37:18] Production.INFO: count ==187 [2025-03-07 07:37:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:37:06 - End Time 2025-03-07 07:37:06 [2025-03-07 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626332', 'tblTempUsageDetail_20' ) start [2025-03-07 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626332', 'tblTempUsageDetail_20' ) end [2025-03-07 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626332', 'tblTempVendorCDR_20' ) start [2025-03-07 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626332', 'tblTempVendorCDR_20' ) end [2025-03-07 07:37:18] Production.INFO: ProcessCDR(1,14626332,1,1,2) [2025-03-07 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626332', 'tblTempUsageDetail_20' ) start [2025-03-07 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626332', 'tblTempUsageDetail_20' ) end [2025-03-07 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:37:22] Production.INFO: ==21252== Releasing lock... [2025-03-07 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:37:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:38:05 [end_date_ymd] => 2025-03-07 07:38:05 [RateCDR] => 1 ) [2025-03-07 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:38:05' and `end` < '2025-03-07 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:38:17] Production.INFO: count ==203 [2025-03-07 07:38:17] Production.ERROR: pbx CDR StartTime 2025-03-07 04:38:05 - End Time 2025-03-07 07:38:05 [2025-03-07 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626337', 'tblTempUsageDetail_20' ) start [2025-03-07 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626337', 'tblTempUsageDetail_20' ) end [2025-03-07 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626337', 'tblTempVendorCDR_20' ) start [2025-03-07 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626337', 'tblTempVendorCDR_20' ) end [2025-03-07 07:38:17] Production.INFO: ProcessCDR(1,14626337,1,1,2) [2025-03-07 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626337', 'tblTempUsageDetail_20' ) start [2025-03-07 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626337', 'tblTempUsageDetail_20' ) end [2025-03-07 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:38:21] Production.INFO: ==21338== Releasing lock... [2025-03-07 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:39:06 [end_date_ymd] => 2025-03-07 07:39:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:39:06' and `end` < '2025-03-07 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-03-07 07:39:18] Production.INFO: count ==209 [2025-03-07 07:39:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:39:06 - End Time 2025-03-07 07:39:06 [2025-03-07 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626342', 'tblTempUsageDetail_20' ) start [2025-03-07 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626342', 'tblTempUsageDetail_20' ) end [2025-03-07 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626342', 'tblTempVendorCDR_20' ) start [2025-03-07 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626342', 'tblTempVendorCDR_20' ) end [2025-03-07 07:39:18] Production.INFO: ProcessCDR(1,14626342,1,1,2) [2025-03-07 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626342', 'tblTempUsageDetail_20' ) start [2025-03-07 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626342', 'tblTempUsageDetail_20' ) end [2025-03-07 07:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:39:23] Production.INFO: ==21425== Releasing lock... [2025-03-07 07:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:39:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:40:06 [end_date_ymd] => 2025-03-07 07:40:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:40:06' and `end` < '2025-03-07 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-03-07 07:40:18] Production.INFO: count ==209 [2025-03-07 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:40:06 - End Time 2025-03-07 07:40:06 [2025-03-07 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626348', 'tblTempUsageDetail_20' ) start [2025-03-07 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626348', 'tblTempUsageDetail_20' ) end [2025-03-07 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626348', 'tblTempVendorCDR_20' ) start [2025-03-07 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626348', 'tblTempVendorCDR_20' ) end [2025-03-07 07:40:18] Production.INFO: ProcessCDR(1,14626348,1,1,2) [2025-03-07 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626348', 'tblTempUsageDetail_20' ) start [2025-03-07 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626348', 'tblTempUsageDetail_20' ) end [2025-03-07 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:40:22] Production.INFO: ==21511== Releasing lock... [2025-03-07 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:41:05 [end_date_ymd] => 2025-03-07 07:41:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:41:05' and `end` < '2025-03-07 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-03-07 07:41:17] Production.INFO: count ==209 [2025-03-07 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-07 04:41:05 - End Time 2025-03-07 07:41:05 [2025-03-07 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626353', 'tblTempUsageDetail_20' ) start [2025-03-07 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626353', 'tblTempUsageDetail_20' ) end [2025-03-07 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626353', 'tblTempVendorCDR_20' ) start [2025-03-07 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626353', 'tblTempVendorCDR_20' ) end [2025-03-07 07:41:17] Production.INFO: ProcessCDR(1,14626353,1,1,2) [2025-03-07 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626353', 'tblTempUsageDetail_20' ) start [2025-03-07 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626353', 'tblTempUsageDetail_20' ) end [2025-03-07 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:41:21] Production.INFO: ==21610== Releasing lock... [2025-03-07 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:42:05 [end_date_ymd] => 2025-03-07 07:42:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:42:05' and `end` < '2025-03-07 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-03-07 07:42:17] Production.INFO: count ==209 [2025-03-07 07:42:17] Production.ERROR: pbx CDR StartTime 2025-03-07 04:42:05 - End Time 2025-03-07 07:42:05 [2025-03-07 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626358', 'tblTempUsageDetail_20' ) start [2025-03-07 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626358', 'tblTempUsageDetail_20' ) end [2025-03-07 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626358', 'tblTempVendorCDR_20' ) start [2025-03-07 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626358', 'tblTempVendorCDR_20' ) end [2025-03-07 07:42:17] Production.INFO: ProcessCDR(1,14626358,1,1,2) [2025-03-07 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626358', 'tblTempUsageDetail_20' ) start [2025-03-07 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626358', 'tblTempUsageDetail_20' ) end [2025-03-07 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:42:21] Production.INFO: ==21701== Releasing lock... [2025-03-07 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:43:05 [end_date_ymd] => 2025-03-07 07:43:05 [RateCDR] => 1 ) [2025-03-07 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:43:05' and `end` < '2025-03-07 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:43:18] Production.INFO: count ==216 [2025-03-07 07:43:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:43:05 - End Time 2025-03-07 07:43:05 [2025-03-07 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626363', 'tblTempUsageDetail_20' ) start [2025-03-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626363', 'tblTempUsageDetail_20' ) end [2025-03-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626363', 'tblTempVendorCDR_20' ) start [2025-03-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626363', 'tblTempVendorCDR_20' ) end [2025-03-07 07:43:18] Production.INFO: ProcessCDR(1,14626363,1,1,2) [2025-03-07 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626363', 'tblTempUsageDetail_20' ) start [2025-03-07 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626363', 'tblTempUsageDetail_20' ) end [2025-03-07 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:43:21] Production.INFO: ==21788== Releasing lock... [2025-03-07 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:44:06 [end_date_ymd] => 2025-03-07 07:44:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:44:06' and `end` < '2025-03-07 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-03-07 07:44:18] Production.INFO: count ==217 [2025-03-07 07:44:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:44:06 - End Time 2025-03-07 07:44:06 [2025-03-07 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626368', 'tblTempUsageDetail_20' ) start [2025-03-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626368', 'tblTempUsageDetail_20' ) end [2025-03-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626368', 'tblTempVendorCDR_20' ) start [2025-03-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626368', 'tblTempVendorCDR_20' ) end [2025-03-07 07:44:18] Production.INFO: ProcessCDR(1,14626368,1,1,2) [2025-03-07 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626368', 'tblTempUsageDetail_20' ) start [2025-03-07 07:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626368', 'tblTempUsageDetail_20' ) end [2025-03-07 07:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:44:24] Production.INFO: ==21872== Releasing lock... [2025-03-07 07:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:44:24] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:45:05 [end_date_ymd] => 2025-03-07 07:45:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:45:05' and `end` < '2025-03-07 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-03-07 07:45:17] Production.INFO: count ==217 [2025-03-07 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-07 04:45:05 - End Time 2025-03-07 07:45:05 [2025-03-07 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626373', 'tblTempUsageDetail_20' ) start [2025-03-07 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626373', 'tblTempUsageDetail_20' ) end [2025-03-07 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626373', 'tblTempVendorCDR_20' ) start [2025-03-07 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626373', 'tblTempVendorCDR_20' ) end [2025-03-07 07:45:17] Production.INFO: ProcessCDR(1,14626373,1,1,2) [2025-03-07 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626373', 'tblTempUsageDetail_20' ) start [2025-03-07 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626373', 'tblTempUsageDetail_20' ) end [2025-03-07 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:45:21] Production.INFO: ==21999== Releasing lock... [2025-03-07 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:45:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:46:06 [end_date_ymd] => 2025-03-07 07:46:06 [RateCDR] => 1 ) [2025-03-07 07:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:46:06' and `end` < '2025-03-07 07:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:46:18] Production.INFO: count ==217 [2025-03-07 07:46:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:46:06 - End Time 2025-03-07 07:46:06 [2025-03-07 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626378', 'tblTempUsageDetail_20' ) start [2025-03-07 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626378', 'tblTempUsageDetail_20' ) end [2025-03-07 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626378', 'tblTempVendorCDR_20' ) start [2025-03-07 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626378', 'tblTempVendorCDR_20' ) end [2025-03-07 07:46:18] Production.INFO: ProcessCDR(1,14626378,1,1,2) [2025-03-07 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626378', 'tblTempUsageDetail_20' ) start [2025-03-07 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626378', 'tblTempUsageDetail_20' ) end [2025-03-07 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:46:22] Production.INFO: ==22085== Releasing lock... [2025-03-07 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:46:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:47:06 [end_date_ymd] => 2025-03-07 07:47:06 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:47:06' and `end` < '2025-03-07 07: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-03-07 07:47:18] Production.INFO: count ==217 [2025-03-07 07:47:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:47:06 - End Time 2025-03-07 07:47:06 [2025-03-07 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626383', 'tblTempUsageDetail_20' ) start [2025-03-07 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626383', 'tblTempUsageDetail_20' ) end [2025-03-07 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626383', 'tblTempVendorCDR_20' ) start [2025-03-07 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626383', 'tblTempVendorCDR_20' ) end [2025-03-07 07:47:18] Production.INFO: ProcessCDR(1,14626383,1,1,2) [2025-03-07 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626383', 'tblTempUsageDetail_20' ) start [2025-03-07 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626383', 'tblTempUsageDetail_20' ) end [2025-03-07 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:47:21] Production.INFO: ==22167== Releasing lock... [2025-03-07 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:48:06 [end_date_ymd] => 2025-03-07 07:48:06 [RateCDR] => 1 ) [2025-03-07 07:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:48:06' and `end` < '2025-03-07 07:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:48:19] Production.INFO: count ==218 [2025-03-07 07:48:19] Production.ERROR: pbx CDR StartTime 2025-03-07 04:48:06 - End Time 2025-03-07 07:48:06 [2025-03-07 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626388', 'tblTempUsageDetail_20' ) start [2025-03-07 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626388', 'tblTempUsageDetail_20' ) end [2025-03-07 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626388', 'tblTempVendorCDR_20' ) start [2025-03-07 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626388', 'tblTempVendorCDR_20' ) end [2025-03-07 07:48:19] Production.INFO: ProcessCDR(1,14626388,1,1,2) [2025-03-07 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626388', 'tblTempUsageDetail_20' ) start [2025-03-07 07:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626388', 'tblTempUsageDetail_20' ) end [2025-03-07 07:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:48:24] Production.INFO: ==22249== Releasing lock... [2025-03-07 07:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:48:24] Production.INFO: 29.25 MB #Memory Used# [2025-03-07 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:49:05 [end_date_ymd] => 2025-03-07 07:49:05 [RateCDR] => 1 ) [2025-03-07 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:49:05' and `end` < '2025-03-07 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:49:17] Production.INFO: count ==221 [2025-03-07 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-07 04:49:05 - End Time 2025-03-07 07:49:05 [2025-03-07 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626393', 'tblTempUsageDetail_20' ) start [2025-03-07 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626393', 'tblTempUsageDetail_20' ) end [2025-03-07 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626393', 'tblTempVendorCDR_20' ) start [2025-03-07 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626393', 'tblTempVendorCDR_20' ) end [2025-03-07 07:49:17] Production.INFO: ProcessCDR(1,14626393,1,1,2) [2025-03-07 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626393', 'tblTempUsageDetail_20' ) start [2025-03-07 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626393', 'tblTempUsageDetail_20' ) end [2025-03-07 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:49:21] Production.INFO: ==22330== Releasing lock... [2025-03-07 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:49:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 07:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:50:07 [end_date_ymd] => 2025-03-07 07:50:07 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:50:07' and `end` < '2025-03-07 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-03-07 07:50:19] Production.INFO: count ==232 [2025-03-07 07:50:19] Production.ERROR: pbx CDR StartTime 2025-03-07 04:50:07 - End Time 2025-03-07 07:50:07 [2025-03-07 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626398', 'tblTempUsageDetail_20' ) start [2025-03-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626398', 'tblTempUsageDetail_20' ) end [2025-03-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626398', 'tblTempVendorCDR_20' ) start [2025-03-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626398', 'tblTempVendorCDR_20' ) end [2025-03-07 07:50:19] Production.INFO: ProcessCDR(1,14626398,1,1,2) [2025-03-07 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626398', 'tblTempUsageDetail_20' ) start [2025-03-07 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626398', 'tblTempUsageDetail_20' ) end [2025-03-07 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:50:23] Production.INFO: ==22417== Releasing lock... [2025-03-07 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:50:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:51:05 [end_date_ymd] => 2025-03-07 07:51:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:51:05' and `end` < '2025-03-07 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:51:18] Production.INFO: count ==229 [2025-03-07 07:51:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:51:05 - End Time 2025-03-07 07:51:05 [2025-03-07 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626404', 'tblTempUsageDetail_20' ) start [2025-03-07 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626404', 'tblTempUsageDetail_20' ) end [2025-03-07 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626404', 'tblTempVendorCDR_20' ) start [2025-03-07 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626404', 'tblTempVendorCDR_20' ) end [2025-03-07 07:51:18] Production.INFO: ProcessCDR(1,14626404,1,1,2) [2025-03-07 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626404', 'tblTempUsageDetail_20' ) start [2025-03-07 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626404', 'tblTempUsageDetail_20' ) end [2025-03-07 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:51:21] Production.INFO: ==22500== Releasing lock... [2025-03-07 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:51:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:52:06 [end_date_ymd] => 2025-03-07 07:52:06 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:52:06' and `end` < '2025-03-07 07: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-03-07 07:52:18] Production.INFO: count ==229 [2025-03-07 07:52:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:52:06 - End Time 2025-03-07 07:52:06 [2025-03-07 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626409', 'tblTempUsageDetail_20' ) start [2025-03-07 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626409', 'tblTempUsageDetail_20' ) end [2025-03-07 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626409', 'tblTempVendorCDR_20' ) start [2025-03-07 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626409', 'tblTempVendorCDR_20' ) end [2025-03-07 07:52:18] Production.INFO: ProcessCDR(1,14626409,1,1,2) [2025-03-07 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626409', 'tblTempUsageDetail_20' ) start [2025-03-07 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626409', 'tblTempUsageDetail_20' ) end [2025-03-07 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:52:22] Production.INFO: ==22594== Releasing lock... [2025-03-07 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:52:22] Production.INFO: 30 MB #Memory Used# [2025-03-07 07:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:53:06 [end_date_ymd] => 2025-03-07 07:53:06 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:53:06' and `end` < '2025-03-07 07: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-03-07 07:53:18] Production.INFO: count ==229 [2025-03-07 07:53:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:53:06 - End Time 2025-03-07 07:53:06 [2025-03-07 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626414', 'tblTempUsageDetail_20' ) start [2025-03-07 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626414', 'tblTempUsageDetail_20' ) end [2025-03-07 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626414', 'tblTempVendorCDR_20' ) start [2025-03-07 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626414', 'tblTempVendorCDR_20' ) end [2025-03-07 07:53:18] Production.INFO: ProcessCDR(1,14626414,1,1,2) [2025-03-07 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626414', 'tblTempUsageDetail_20' ) start [2025-03-07 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626414', 'tblTempUsageDetail_20' ) end [2025-03-07 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:53:21] Production.INFO: ==22678== Releasing lock... [2025-03-07 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:53:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:54:06 [end_date_ymd] => 2025-03-07 07:54:06 [RateCDR] => 1 ) [2025-03-07 07:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:54:06' and `end` < '2025-03-07 07:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:54:19] Production.INFO: count ==232 [2025-03-07 07:54:19] Production.ERROR: pbx CDR StartTime 2025-03-07 04:54:06 - End Time 2025-03-07 07:54:06 [2025-03-07 07:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626419', 'tblTempUsageDetail_20' ) start [2025-03-07 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626419', 'tblTempUsageDetail_20' ) end [2025-03-07 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626419', 'tblTempVendorCDR_20' ) start [2025-03-07 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626419', 'tblTempVendorCDR_20' ) end [2025-03-07 07:54:19] Production.INFO: ProcessCDR(1,14626419,1,1,2) [2025-03-07 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626419', 'tblTempUsageDetail_20' ) start [2025-03-07 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626419', 'tblTempUsageDetail_20' ) end [2025-03-07 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:54:22] Production.INFO: ==22757== Releasing lock... [2025-03-07 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:54:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:55:06 [end_date_ymd] => 2025-03-07 07:55:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 04:55:06' and `end` < '2025-03-07 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-03-07 07:55:18] Production.INFO: count ==236 [2025-03-07 07:55:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:55:06 - End Time 2025-03-07 07:55:06 [2025-03-07 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626424', 'tblTempUsageDetail_20' ) start [2025-03-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626424', 'tblTempUsageDetail_20' ) end [2025-03-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626424', 'tblTempVendorCDR_20' ) start [2025-03-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626424', 'tblTempVendorCDR_20' ) end [2025-03-07 07:55:18] Production.INFO: ProcessCDR(1,14626424,1,1,2) [2025-03-07 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626424', 'tblTempUsageDetail_20' ) start [2025-03-07 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626424', 'tblTempUsageDetail_20' ) end [2025-03-07 07:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:55:23] Production.INFO: ==22834== Releasing lock... [2025-03-07 07:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:55:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:56:06 [end_date_ymd] => 2025-03-07 07:56:06 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:56:06' and `end` < '2025-03-07 07: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-03-07 07:56:19] Production.INFO: count ==236 [2025-03-07 07:56:19] Production.ERROR: pbx CDR StartTime 2025-03-07 04:56:06 - End Time 2025-03-07 07:56:06 [2025-03-07 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626429', 'tblTempUsageDetail_20' ) start [2025-03-07 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626429', 'tblTempUsageDetail_20' ) end [2025-03-07 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626429', 'tblTempVendorCDR_20' ) start [2025-03-07 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626429', 'tblTempVendorCDR_20' ) end [2025-03-07 07:56:19] Production.INFO: ProcessCDR(1,14626429,1,1,2) [2025-03-07 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626429', 'tblTempUsageDetail_20' ) start [2025-03-07 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626429', 'tblTempUsageDetail_20' ) end [2025-03-07 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:56:22] Production.INFO: ==22914== Releasing lock... [2025-03-07 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:56:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-07 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:57:05 [end_date_ymd] => 2025-03-07 07:57:05 [RateCDR] => 1 ) [2025-03-07 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 04:57:05' and `end` < '2025-03-07 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 07:57:17] Production.INFO: count ==233 [2025-03-07 07:57:17] Production.ERROR: pbx CDR StartTime 2025-03-07 04:57:05 - End Time 2025-03-07 07:57:05 [2025-03-07 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626434', 'tblTempUsageDetail_20' ) start [2025-03-07 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626434', 'tblTempUsageDetail_20' ) end [2025-03-07 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626434', 'tblTempVendorCDR_20' ) start [2025-03-07 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626434', 'tblTempVendorCDR_20' ) end [2025-03-07 07:57:17] Production.INFO: ProcessCDR(1,14626434,1,1,2) [2025-03-07 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626434', 'tblTempUsageDetail_20' ) start [2025-03-07 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626434', 'tblTempUsageDetail_20' ) end [2025-03-07 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:57:21] Production.INFO: ==22991== Releasing lock... [2025-03-07 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:57:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:58:06 [end_date_ymd] => 2025-03-07 07:58:06 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:58:06' and `end` < '2025-03-07 07: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-03-07 07:58:18] Production.INFO: count ==233 [2025-03-07 07:58:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:58:06 - End Time 2025-03-07 07:58:06 [2025-03-07 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626439', 'tblTempUsageDetail_20' ) start [2025-03-07 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626439', 'tblTempUsageDetail_20' ) end [2025-03-07 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626439', 'tblTempVendorCDR_20' ) start [2025-03-07 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626439', 'tblTempVendorCDR_20' ) end [2025-03-07 07:58:18] Production.INFO: ProcessCDR(1,14626439,1,1,2) [2025-03-07 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626439', 'tblTempUsageDetail_20' ) start [2025-03-07 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626439', 'tblTempUsageDetail_20' ) end [2025-03-07 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:58:21] Production.INFO: ==23071== Releasing lock... [2025-03-07 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:58:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 04:59:06 [end_date_ymd] => 2025-03-07 07:59:06 [RateCDR] => 1 ) [2025-03-07 07: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-03-07 04:59:06' and `end` < '2025-03-07 07: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-03-07 07:59:18] Production.INFO: count ==233 [2025-03-07 07:59:18] Production.ERROR: pbx CDR StartTime 2025-03-07 04:59:06 - End Time 2025-03-07 07:59:06 [2025-03-07 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626444', 'tblTempUsageDetail_20' ) start [2025-03-07 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626444', 'tblTempUsageDetail_20' ) end [2025-03-07 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626444', 'tblTempVendorCDR_20' ) start [2025-03-07 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626444', 'tblTempVendorCDR_20' ) end [2025-03-07 07:59:18] Production.INFO: ProcessCDR(1,14626444,1,1,2) [2025-03-07 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626444', 'tblTempUsageDetail_20' ) start [2025-03-07 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626444', 'tblTempUsageDetail_20' ) end [2025-03-07 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 07:59:21] Production.INFO: ==23147== Releasing lock... [2025-03-07 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 07:59:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:00:07 [end_date_ymd] => 2025-03-07 08:00:07 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:00:07' and `end` < '2025-03-07 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-03-07 08:00:20] Production.INFO: count ==224 [2025-03-07 08:00:20] Production.ERROR: pbx CDR StartTime 2025-03-07 05:00:07 - End Time 2025-03-07 08:00:07 [2025-03-07 08:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626450', 'tblTempUsageDetail_20' ) start [2025-03-07 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626450', 'tblTempUsageDetail_20' ) end [2025-03-07 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626450', 'tblTempVendorCDR_20' ) start [2025-03-07 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626450', 'tblTempVendorCDR_20' ) end [2025-03-07 08:00:20] Production.INFO: ProcessCDR(1,14626450,1,1,2) [2025-03-07 08:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626450', 'tblTempUsageDetail_20' ) start [2025-03-07 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626450', 'tblTempUsageDetail_20' ) end [2025-03-07 08:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:00:24] Production.INFO: ==23272== Releasing lock... [2025-03-07 08:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:00:24] Production.INFO: 30 MB #Memory Used# [2025-03-07 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:01:06 [end_date_ymd] => 2025-03-07 08:01:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:01:06' and `end` < '2025-03-07 08: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-03-07 08:01:18] Production.INFO: count ==222 [2025-03-07 08:01:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:01:06 - End Time 2025-03-07 08:01:06 [2025-03-07 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626455', 'tblTempUsageDetail_20' ) start [2025-03-07 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626455', 'tblTempUsageDetail_20' ) end [2025-03-07 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626455', 'tblTempVendorCDR_20' ) start [2025-03-07 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626455', 'tblTempVendorCDR_20' ) end [2025-03-07 08:01:18] Production.INFO: ProcessCDR(1,14626455,1,1,2) [2025-03-07 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626455', 'tblTempUsageDetail_20' ) start [2025-03-07 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626455', 'tblTempUsageDetail_20' ) end [2025-03-07 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:01:21] Production.INFO: ==23371== Releasing lock... [2025-03-07 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:01:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:02:06 [end_date_ymd] => 2025-03-07 08:02:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:02:06' and `end` < '2025-03-07 08: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-03-07 08:02:18] Production.INFO: count ==223 [2025-03-07 08:02:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:02:06 - End Time 2025-03-07 08:02:06 [2025-03-07 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626460', 'tblTempUsageDetail_20' ) start [2025-03-07 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626460', 'tblTempUsageDetail_20' ) end [2025-03-07 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626460', 'tblTempVendorCDR_20' ) start [2025-03-07 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626460', 'tblTempVendorCDR_20' ) end [2025-03-07 08:02:18] Production.INFO: ProcessCDR(1,14626460,1,1,2) [2025-03-07 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626460', 'tblTempUsageDetail_20' ) start [2025-03-07 08:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626460', 'tblTempUsageDetail_20' ) end [2025-03-07 08:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:02:24] Production.INFO: ==23451== Releasing lock... [2025-03-07 08:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:02:24] Production.INFO: 30 MB #Memory Used# [2025-03-07 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:03:05 [end_date_ymd] => 2025-03-07 08:03:05 [RateCDR] => 1 ) [2025-03-07 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:03:05' and `end` < '2025-03-07 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:03:17] Production.INFO: count ==237 [2025-03-07 08:03:17] Production.ERROR: pbx CDR StartTime 2025-03-07 05:03:05 - End Time 2025-03-07 08:03:05 [2025-03-07 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626465', 'tblTempUsageDetail_20' ) start [2025-03-07 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626465', 'tblTempUsageDetail_20' ) end [2025-03-07 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626465', 'tblTempVendorCDR_20' ) start [2025-03-07 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626465', 'tblTempVendorCDR_20' ) end [2025-03-07 08:03:17] Production.INFO: ProcessCDR(1,14626465,1,1,2) [2025-03-07 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626465', 'tblTempUsageDetail_20' ) start [2025-03-07 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626465', 'tblTempUsageDetail_20' ) end [2025-03-07 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:03:21] Production.INFO: ==23526== Releasing lock... [2025-03-07 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:03:21] Production.INFO: 30 MB #Memory Used# [2025-03-07 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:04:06 [end_date_ymd] => 2025-03-07 08:04:06 [RateCDR] => 1 ) [2025-03-07 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:04:06' and `end` < '2025-03-07 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:04:18] Production.INFO: count ==246 [2025-03-07 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:04:06 - End Time 2025-03-07 08:04:06 [2025-03-07 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626470', 'tblTempUsageDetail_20' ) start [2025-03-07 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626470', 'tblTempUsageDetail_20' ) end [2025-03-07 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626470', 'tblTempVendorCDR_20' ) start [2025-03-07 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626470', 'tblTempVendorCDR_20' ) end [2025-03-07 08:04:18] Production.INFO: ProcessCDR(1,14626470,1,1,2) [2025-03-07 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626470', 'tblTempUsageDetail_20' ) start [2025-03-07 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626470', 'tblTempUsageDetail_20' ) end [2025-03-07 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:04:23] Production.INFO: ==23602== Releasing lock... [2025-03-07 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:04:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-07 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:05:05 [end_date_ymd] => 2025-03-07 08:05:05 [RateCDR] => 1 ) [2025-03-07 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:05:05' and `end` < '2025-03-07 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:05:17] Production.INFO: count ==251 [2025-03-07 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-07 05:05:05 - End Time 2025-03-07 08:05:05 [2025-03-07 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626475', 'tblTempUsageDetail_20' ) start [2025-03-07 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626475', 'tblTempUsageDetail_20' ) end [2025-03-07 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626475', 'tblTempVendorCDR_20' ) start [2025-03-07 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626475', 'tblTempVendorCDR_20' ) end [2025-03-07 08:05:17] Production.INFO: ProcessCDR(1,14626475,1,1,2) [2025-03-07 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626475', 'tblTempUsageDetail_20' ) start [2025-03-07 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626475', 'tblTempUsageDetail_20' ) end [2025-03-07 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:05:21] Production.INFO: ==23682== Releasing lock... [2025-03-07 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-07 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:06:06 [end_date_ymd] => 2025-03-07 08:06:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:06:06' and `end` < '2025-03-07 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-03-07 08:06:18] Production.INFO: count ==247 [2025-03-07 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:06:06 - End Time 2025-03-07 08:06:06 [2025-03-07 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626480', 'tblTempUsageDetail_20' ) start [2025-03-07 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626480', 'tblTempUsageDetail_20' ) end [2025-03-07 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626480', 'tblTempVendorCDR_20' ) start [2025-03-07 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626480', 'tblTempVendorCDR_20' ) end [2025-03-07 08:06:18] Production.INFO: ProcessCDR(1,14626480,1,1,2) [2025-03-07 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626480', 'tblTempUsageDetail_20' ) start [2025-03-07 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626480', 'tblTempUsageDetail_20' ) end [2025-03-07 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:06:22] Production.INFO: ==23758== Releasing lock... [2025-03-07 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-07 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:07:06 [end_date_ymd] => 2025-03-07 08:07:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:07:06' and `end` < '2025-03-07 08:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:07:18] Production.INFO: count ==252 [2025-03-07 08:07:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:07:06 - End Time 2025-03-07 08:07:06 [2025-03-07 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626485', 'tblTempUsageDetail_20' ) start [2025-03-07 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626485', 'tblTempUsageDetail_20' ) end [2025-03-07 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626485', 'tblTempVendorCDR_20' ) start [2025-03-07 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626485', 'tblTempVendorCDR_20' ) end [2025-03-07 08:07:18] Production.INFO: ProcessCDR(1,14626485,1,1,2) [2025-03-07 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626485', 'tblTempUsageDetail_20' ) start [2025-03-07 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626485', 'tblTempUsageDetail_20' ) end [2025-03-07 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:07:22] Production.INFO: ==23832== Releasing lock... [2025-03-07 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:07:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-07 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:08:06 [end_date_ymd] => 2025-03-07 08:08:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:08:06' and `end` < '2025-03-07 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-03-07 08:08:18] Production.INFO: count ==260 [2025-03-07 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:08:06 - End Time 2025-03-07 08:08:06 [2025-03-07 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626490', 'tblTempUsageDetail_20' ) start [2025-03-07 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626490', 'tblTempUsageDetail_20' ) end [2025-03-07 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626490', 'tblTempVendorCDR_20' ) start [2025-03-07 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626490', 'tblTempVendorCDR_20' ) end [2025-03-07 08:08:18] Production.INFO: ProcessCDR(1,14626490,1,1,2) [2025-03-07 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626490', 'tblTempUsageDetail_20' ) start [2025-03-07 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626490', 'tblTempUsageDetail_20' ) end [2025-03-07 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:08:22] Production.INFO: ==23910== Releasing lock... [2025-03-07 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-07 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:09:05 [end_date_ymd] => 2025-03-07 08:09:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:09:05' and `end` < '2025-03-07 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-03-07 08:09:17] Production.INFO: count ==260 [2025-03-07 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-07 05:09:05 - End Time 2025-03-07 08:09:05 [2025-03-07 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626495', 'tblTempUsageDetail_20' ) start [2025-03-07 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626495', 'tblTempUsageDetail_20' ) end [2025-03-07 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626495', 'tblTempVendorCDR_20' ) start [2025-03-07 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626495', 'tblTempVendorCDR_20' ) end [2025-03-07 08:09:17] Production.INFO: ProcessCDR(1,14626495,1,1,2) [2025-03-07 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626495', 'tblTempUsageDetail_20' ) start [2025-03-07 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626495', 'tblTempUsageDetail_20' ) end [2025-03-07 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:09:21] Production.INFO: ==23987== Releasing lock... [2025-03-07 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-07 08:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:10:07 [end_date_ymd] => 2025-03-07 08:10:07 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:10:07' and `end` < '2025-03-07 08: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-03-07 08:10:19] Production.INFO: count ==268 [2025-03-07 08:10:19] Production.ERROR: pbx CDR StartTime 2025-03-07 05:10:07 - End Time 2025-03-07 08:10:07 [2025-03-07 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626501', 'tblTempUsageDetail_20' ) start [2025-03-07 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626501', 'tblTempUsageDetail_20' ) end [2025-03-07 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626501', 'tblTempVendorCDR_20' ) start [2025-03-07 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626501', 'tblTempVendorCDR_20' ) end [2025-03-07 08:10:19] Production.INFO: ProcessCDR(1,14626501,1,1,2) [2025-03-07 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626501', 'tblTempUsageDetail_20' ) start [2025-03-07 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626501', 'tblTempUsageDetail_20' ) end [2025-03-07 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:10:22] Production.INFO: ==24066== Releasing lock... [2025-03-07 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-07 08:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:11:06 [end_date_ymd] => 2025-03-07 08:11:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:11:06' and `end` < '2025-03-07 08: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-03-07 08:11:18] Production.INFO: count ==287 [2025-03-07 08:11:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:11:06 - End Time 2025-03-07 08:11:06 [2025-03-07 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626506', 'tblTempUsageDetail_20' ) start [2025-03-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626506', 'tblTempUsageDetail_20' ) end [2025-03-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626506', 'tblTempVendorCDR_20' ) start [2025-03-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626506', 'tblTempVendorCDR_20' ) end [2025-03-07 08:11:18] Production.INFO: ProcessCDR(1,14626506,1,1,2) [2025-03-07 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626506', 'tblTempUsageDetail_20' ) start [2025-03-07 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626506', 'tblTempUsageDetail_20' ) end [2025-03-07 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:11:22] Production.INFO: ==24145== Releasing lock... [2025-03-07 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:11:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-07 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:12:05 [end_date_ymd] => 2025-03-07 08:12:05 [RateCDR] => 1 ) [2025-03-07 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:12:05' and `end` < '2025-03-07 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:12:17] Production.INFO: count ==307 [2025-03-07 08:12:17] Production.ERROR: pbx CDR StartTime 2025-03-07 05:12:05 - End Time 2025-03-07 08:12:05 [2025-03-07 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626511', 'tblTempUsageDetail_20' ) start [2025-03-07 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626511', 'tblTempUsageDetail_20' ) end [2025-03-07 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626511', 'tblTempVendorCDR_20' ) start [2025-03-07 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626511', 'tblTempVendorCDR_20' ) end [2025-03-07 08:12:17] Production.INFO: ProcessCDR(1,14626511,1,1,2) [2025-03-07 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626511', 'tblTempUsageDetail_20' ) start [2025-03-07 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626511', 'tblTempUsageDetail_20' ) end [2025-03-07 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:12:21] Production.INFO: ==24221== Releasing lock... [2025-03-07 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-07 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:13:06 [end_date_ymd] => 2025-03-07 08:13:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:13:06' and `end` < '2025-03-07 08: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-03-07 08:13:18] Production.INFO: count ==320 [2025-03-07 08:13:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:13:06 - End Time 2025-03-07 08:13:06 [2025-03-07 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626516', 'tblTempUsageDetail_20' ) start [2025-03-07 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626516', 'tblTempUsageDetail_20' ) end [2025-03-07 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626516', 'tblTempVendorCDR_20' ) start [2025-03-07 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626516', 'tblTempVendorCDR_20' ) end [2025-03-07 08:13:18] Production.INFO: ProcessCDR(1,14626516,1,1,2) [2025-03-07 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626516', 'tblTempUsageDetail_20' ) start [2025-03-07 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626516', 'tblTempUsageDetail_20' ) end [2025-03-07 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:13:22] Production.INFO: ==24297== Releasing lock... [2025-03-07 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:13:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-07 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:14:06 [end_date_ymd] => 2025-03-07 08:14:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:14:06' and `end` < '2025-03-07 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-03-07 08:14:18] Production.INFO: count ==320 [2025-03-07 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:14:06 - End Time 2025-03-07 08:14:06 [2025-03-07 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626521', 'tblTempUsageDetail_20' ) start [2025-03-07 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626521', 'tblTempUsageDetail_20' ) end [2025-03-07 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626521', 'tblTempVendorCDR_20' ) start [2025-03-07 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626521', 'tblTempVendorCDR_20' ) end [2025-03-07 08:14:18] Production.INFO: ProcessCDR(1,14626521,1,1,2) [2025-03-07 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626521', 'tblTempUsageDetail_20' ) start [2025-03-07 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626521', 'tblTempUsageDetail_20' ) end [2025-03-07 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:14:21] Production.INFO: ==24373== Releasing lock... [2025-03-07 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-07 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:15:06 [end_date_ymd] => 2025-03-07 08:15:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:15:06' and `end` < '2025-03-07 08: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-03-07 08:15:18] Production.INFO: count ==326 [2025-03-07 08:15:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:15:06 - End Time 2025-03-07 08:15:06 [2025-03-07 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626526', 'tblTempUsageDetail_20' ) start [2025-03-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626526', 'tblTempUsageDetail_20' ) end [2025-03-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626526', 'tblTempVendorCDR_20' ) start [2025-03-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626526', 'tblTempVendorCDR_20' ) end [2025-03-07 08:15:18] Production.INFO: ProcessCDR(1,14626526,1,1,2) [2025-03-07 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626526', 'tblTempUsageDetail_20' ) start [2025-03-07 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626526', 'tblTempUsageDetail_20' ) end [2025-03-07 08:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:15:23] Production.INFO: ==24490== Releasing lock... [2025-03-07 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:15:23] Production.INFO: 31 MB #Memory Used# [2025-03-07 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:16:05 [end_date_ymd] => 2025-03-07 08:16:05 [RateCDR] => 1 ) [2025-03-07 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:16:05' and `end` < '2025-03-07 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:16:18] Production.INFO: count ==337 [2025-03-07 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:16:05 - End Time 2025-03-07 08:16:05 [2025-03-07 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626531', 'tblTempUsageDetail_20' ) start [2025-03-07 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626531', 'tblTempUsageDetail_20' ) end [2025-03-07 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626531', 'tblTempVendorCDR_20' ) start [2025-03-07 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626531', 'tblTempVendorCDR_20' ) end [2025-03-07 08:16:18] Production.INFO: ProcessCDR(1,14626531,1,1,2) [2025-03-07 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626531', 'tblTempUsageDetail_20' ) start [2025-03-07 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626531', 'tblTempUsageDetail_20' ) end [2025-03-07 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:16:21] Production.INFO: ==24567== Releasing lock... [2025-03-07 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:16:21] Production.INFO: 31 MB #Memory Used# [2025-03-07 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:17:05 [end_date_ymd] => 2025-03-07 08:17:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:17:05' and `end` < '2025-03-07 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-03-07 08:17:18] Production.INFO: count ==349 [2025-03-07 08:17:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:17:05 - End Time 2025-03-07 08:17:05 [2025-03-07 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626536', 'tblTempUsageDetail_20' ) start [2025-03-07 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626536', 'tblTempUsageDetail_20' ) end [2025-03-07 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626536', 'tblTempVendorCDR_20' ) start [2025-03-07 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626536', 'tblTempVendorCDR_20' ) end [2025-03-07 08:17:18] Production.INFO: ProcessCDR(1,14626536,1,1,2) [2025-03-07 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626536', 'tblTempUsageDetail_20' ) start [2025-03-07 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626536', 'tblTempUsageDetail_20' ) end [2025-03-07 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:17:21] Production.INFO: ==24642== Releasing lock... [2025-03-07 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-07 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:18:05 [end_date_ymd] => 2025-03-07 08:18:05 [RateCDR] => 1 ) [2025-03-07 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:18:05' and `end` < '2025-03-07 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:18:18] Production.INFO: count ==354 [2025-03-07 08:18:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:18:05 - End Time 2025-03-07 08:18:05 [2025-03-07 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626541', 'tblTempUsageDetail_20' ) start [2025-03-07 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626541', 'tblTempUsageDetail_20' ) end [2025-03-07 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626541', 'tblTempVendorCDR_20' ) start [2025-03-07 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626541', 'tblTempVendorCDR_20' ) end [2025-03-07 08:18:18] Production.INFO: ProcessCDR(1,14626541,1,1,2) [2025-03-07 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626541', 'tblTempUsageDetail_20' ) start [2025-03-07 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626541', 'tblTempUsageDetail_20' ) end [2025-03-07 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:18:21] Production.INFO: ==24728== Releasing lock... [2025-03-07 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-07 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:19:06 [end_date_ymd] => 2025-03-07 08:19:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:19:06' and `end` < '2025-03-07 08: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-03-07 08:19:18] Production.INFO: count ==356 [2025-03-07 08:19:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:19:06 - End Time 2025-03-07 08:19:06 [2025-03-07 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626546', 'tblTempUsageDetail_20' ) start [2025-03-07 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626546', 'tblTempUsageDetail_20' ) end [2025-03-07 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626546', 'tblTempVendorCDR_20' ) start [2025-03-07 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626546', 'tblTempVendorCDR_20' ) end [2025-03-07 08:19:18] Production.INFO: ProcessCDR(1,14626546,1,1,2) [2025-03-07 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626546', 'tblTempUsageDetail_20' ) start [2025-03-07 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626546', 'tblTempUsageDetail_20' ) end [2025-03-07 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:19:23] Production.INFO: ==24803== Releasing lock... [2025-03-07 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:19:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-07 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:20:06 [end_date_ymd] => 2025-03-07 08:20:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:20:06' and `end` < '2025-03-07 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-03-07 08:20:18] Production.INFO: count ==367 [2025-03-07 08:20:19] Production.ERROR: pbx CDR StartTime 2025-03-07 05:20:06 - End Time 2025-03-07 08:20:06 [2025-03-07 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626551', 'tblTempUsageDetail_20' ) start [2025-03-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626551', 'tblTempUsageDetail_20' ) end [2025-03-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626551', 'tblTempVendorCDR_20' ) start [2025-03-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626551', 'tblTempVendorCDR_20' ) end [2025-03-07 08:20:19] Production.INFO: ProcessCDR(1,14626551,1,1,2) [2025-03-07 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626551', 'tblTempUsageDetail_20' ) start [2025-03-07 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626551', 'tblTempUsageDetail_20' ) end [2025-03-07 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:20:23] Production.INFO: ==24887== Releasing lock... [2025-03-07 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:20:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-07 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:21:05 [end_date_ymd] => 2025-03-07 08:21:05 [RateCDR] => 1 ) [2025-03-07 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:21:05' and `end` < '2025-03-07 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:21:17] Production.INFO: count ==399 [2025-03-07 08:21:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:21:05 - End Time 2025-03-07 08:21:05 [2025-03-07 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626557', 'tblTempUsageDetail_20' ) start [2025-03-07 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626557', 'tblTempUsageDetail_20' ) end [2025-03-07 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626557', 'tblTempVendorCDR_20' ) start [2025-03-07 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626557', 'tblTempVendorCDR_20' ) end [2025-03-07 08:21:18] Production.INFO: ProcessCDR(1,14626557,1,1,2) [2025-03-07 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626557', 'tblTempUsageDetail_20' ) start [2025-03-07 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626557', 'tblTempUsageDetail_20' ) end [2025-03-07 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:21:21] Production.INFO: ==24964== Releasing lock... [2025-03-07 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-07 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:22:05 [end_date_ymd] => 2025-03-07 08:22:05 [RateCDR] => 1 ) [2025-03-07 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:22:05' and `end` < '2025-03-07 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:22:18] Production.INFO: count ==399 [2025-03-07 08:22:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:22:05 - End Time 2025-03-07 08:22:05 [2025-03-07 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626562', 'tblTempUsageDetail_20' ) start [2025-03-07 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626562', 'tblTempUsageDetail_20' ) end [2025-03-07 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626562', 'tblTempVendorCDR_20' ) start [2025-03-07 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626562', 'tblTempVendorCDR_20' ) end [2025-03-07 08:22:18] Production.INFO: ProcessCDR(1,14626562,1,1,2) [2025-03-07 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626562', 'tblTempUsageDetail_20' ) start [2025-03-07 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626562', 'tblTempUsageDetail_20' ) end [2025-03-07 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:22:21] Production.INFO: ==25036== Releasing lock... [2025-03-07 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:22:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-07 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:23:06 [end_date_ymd] => 2025-03-07 08:23:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:23:06' and `end` < '2025-03-07 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-03-07 08:23:18] Production.INFO: count ==399 [2025-03-07 08:23:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:23:06 - End Time 2025-03-07 08:23:06 [2025-03-07 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626567', 'tblTempUsageDetail_20' ) start [2025-03-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626567', 'tblTempUsageDetail_20' ) end [2025-03-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626567', 'tblTempVendorCDR_20' ) start [2025-03-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626567', 'tblTempVendorCDR_20' ) end [2025-03-07 08:23:18] Production.INFO: ProcessCDR(1,14626567,1,1,2) [2025-03-07 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626567', 'tblTempUsageDetail_20' ) start [2025-03-07 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626567', 'tblTempUsageDetail_20' ) end [2025-03-07 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:23:22] Production.INFO: ==25111== Releasing lock... [2025-03-07 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:23:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-07 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:24:06 [end_date_ymd] => 2025-03-07 08:24:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:24:06' and `end` < '2025-03-07 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-03-07 08:24:18] Production.INFO: count ==399 [2025-03-07 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:24:06 - End Time 2025-03-07 08:24:06 [2025-03-07 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626572', 'tblTempUsageDetail_20' ) start [2025-03-07 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626572', 'tblTempUsageDetail_20' ) end [2025-03-07 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626572', 'tblTempVendorCDR_20' ) start [2025-03-07 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626572', 'tblTempVendorCDR_20' ) end [2025-03-07 08:24:18] Production.INFO: ProcessCDR(1,14626572,1,1,2) [2025-03-07 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626572', 'tblTempUsageDetail_20' ) start [2025-03-07 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626572', 'tblTempUsageDetail_20' ) end [2025-03-07 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:24:21] Production.INFO: ==25184== Releasing lock... [2025-03-07 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:24:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-07 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:25:06 [end_date_ymd] => 2025-03-07 08:25:06 [RateCDR] => 1 ) [2025-03-07 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:25:06' and `end` < '2025-03-07 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:25:18] Production.INFO: count ==405 [2025-03-07 08:25:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:25:06 - End Time 2025-03-07 08:25:06 [2025-03-07 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626577', 'tblTempUsageDetail_20' ) start [2025-03-07 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626577', 'tblTempUsageDetail_20' ) end [2025-03-07 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626577', 'tblTempVendorCDR_20' ) start [2025-03-07 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626577', 'tblTempVendorCDR_20' ) end [2025-03-07 08:25:18] Production.INFO: ProcessCDR(1,14626577,1,1,2) [2025-03-07 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626577', 'tblTempUsageDetail_20' ) start [2025-03-07 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626577', 'tblTempUsageDetail_20' ) end [2025-03-07 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:25:22] Production.INFO: ==25264== Releasing lock... [2025-03-07 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:25:22] Production.INFO: 31 MB #Memory Used# [2025-03-07 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:26:06 [end_date_ymd] => 2025-03-07 08:26:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:26:06' and `end` < '2025-03-07 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-03-07 08:26:18] Production.INFO: count ==405 [2025-03-07 08:26:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:26:06 - End Time 2025-03-07 08:26:06 [2025-03-07 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626582', 'tblTempUsageDetail_20' ) start [2025-03-07 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626582', 'tblTempUsageDetail_20' ) end [2025-03-07 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626582', 'tblTempVendorCDR_20' ) start [2025-03-07 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626582', 'tblTempVendorCDR_20' ) end [2025-03-07 08:26:18] Production.INFO: ProcessCDR(1,14626582,1,1,2) [2025-03-07 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626582', 'tblTempUsageDetail_20' ) start [2025-03-07 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626582', 'tblTempUsageDetail_20' ) end [2025-03-07 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:26:21] Production.INFO: ==25338== Releasing lock... [2025-03-07 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:26:21] Production.INFO: 31 MB #Memory Used# [2025-03-07 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:27:06 [end_date_ymd] => 2025-03-07 08:27:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:27:06' and `end` < '2025-03-07 08: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-03-07 08:27:18] Production.INFO: count ==405 [2025-03-07 08:27:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:27:06 - End Time 2025-03-07 08:27:06 [2025-03-07 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626587', 'tblTempUsageDetail_20' ) start [2025-03-07 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626587', 'tblTempUsageDetail_20' ) end [2025-03-07 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626587', 'tblTempVendorCDR_20' ) start [2025-03-07 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626587', 'tblTempVendorCDR_20' ) end [2025-03-07 08:27:18] Production.INFO: ProcessCDR(1,14626587,1,1,2) [2025-03-07 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626587', 'tblTempUsageDetail_20' ) start [2025-03-07 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626587', 'tblTempUsageDetail_20' ) end [2025-03-07 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:27:22] Production.INFO: ==25414== Releasing lock... [2025-03-07 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:27:22] Production.INFO: 31 MB #Memory Used# [2025-03-07 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:28:05 [end_date_ymd] => 2025-03-07 08:28:05 [RateCDR] => 1 ) [2025-03-07 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:28:05' and `end` < '2025-03-07 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:28:17] Production.INFO: count ==408 [2025-03-07 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-07 05:28:05 - End Time 2025-03-07 08:28:05 [2025-03-07 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626592', 'tblTempUsageDetail_20' ) start [2025-03-07 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626592', 'tblTempUsageDetail_20' ) end [2025-03-07 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626592', 'tblTempVendorCDR_20' ) start [2025-03-07 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626592', 'tblTempVendorCDR_20' ) end [2025-03-07 08:28:17] Production.INFO: ProcessCDR(1,14626592,1,1,2) [2025-03-07 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626592', 'tblTempUsageDetail_20' ) start [2025-03-07 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626592', 'tblTempUsageDetail_20' ) end [2025-03-07 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:28:23] Production.INFO: ==25493== Releasing lock... [2025-03-07 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:28:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-07 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:29:06 [end_date_ymd] => 2025-03-07 08:29:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:29:06' and `end` < '2025-03-07 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-03-07 08:29:18] Production.INFO: count ==408 [2025-03-07 08:29:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:29:06 - End Time 2025-03-07 08:29:06 [2025-03-07 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626597', 'tblTempUsageDetail_20' ) start [2025-03-07 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626597', 'tblTempUsageDetail_20' ) end [2025-03-07 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626597', 'tblTempVendorCDR_20' ) start [2025-03-07 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626597', 'tblTempVendorCDR_20' ) end [2025-03-07 08:29:18] Production.INFO: ProcessCDR(1,14626597,1,1,2) [2025-03-07 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626597', 'tblTempUsageDetail_20' ) start [2025-03-07 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626597', 'tblTempUsageDetail_20' ) end [2025-03-07 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:29:22] Production.INFO: ==25570== Releasing lock... [2025-03-07 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-07 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:30:06 [end_date_ymd] => 2025-03-07 08:30:06 [RateCDR] => 1 ) [2025-03-07 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:30:06' and `end` < '2025-03-07 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:30:18] Production.INFO: count ==418 [2025-03-07 08:30:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:30:06 - End Time 2025-03-07 08:30:06 [2025-03-07 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626603', 'tblTempUsageDetail_20' ) start [2025-03-07 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626603', 'tblTempUsageDetail_20' ) end [2025-03-07 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626603', 'tblTempVendorCDR_20' ) start [2025-03-07 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626603', 'tblTempVendorCDR_20' ) end [2025-03-07 08:30:18] Production.INFO: ProcessCDR(1,14626603,1,1,2) [2025-03-07 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626603', 'tblTempUsageDetail_20' ) start [2025-03-07 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626603', 'tblTempUsageDetail_20' ) end [2025-03-07 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:30:22] Production.INFO: ==25648== Releasing lock... [2025-03-07 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-07 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:31:06 [end_date_ymd] => 2025-03-07 08:31:06 [RateCDR] => 1 ) [2025-03-07 08:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:31:06' and `end` < '2025-03-07 08:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:31:19] Production.INFO: count ==449 [2025-03-07 08:31:19] Production.ERROR: pbx CDR StartTime 2025-03-07 05:31:06 - End Time 2025-03-07 08:31:06 [2025-03-07 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626608', 'tblTempUsageDetail_20' ) start [2025-03-07 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626608', 'tblTempUsageDetail_20' ) end [2025-03-07 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626608', 'tblTempVendorCDR_20' ) start [2025-03-07 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626608', 'tblTempVendorCDR_20' ) end [2025-03-07 08:31:19] Production.INFO: ProcessCDR(1,14626608,1,1,2) [2025-03-07 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626608', 'tblTempUsageDetail_20' ) start [2025-03-07 08:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626608', 'tblTempUsageDetail_20' ) end [2025-03-07 08:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:31:24] Production.INFO: ==25761== Releasing lock... [2025-03-07 08:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:31:24] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:32:06 [end_date_ymd] => 2025-03-07 08:32:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:32:06' and `end` < '2025-03-07 08: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-03-07 08:32:18] Production.INFO: count ==449 [2025-03-07 08:32:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:32:06 - End Time 2025-03-07 08:32:06 [2025-03-07 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626613', 'tblTempUsageDetail_20' ) start [2025-03-07 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626613', 'tblTempUsageDetail_20' ) end [2025-03-07 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626613', 'tblTempVendorCDR_20' ) start [2025-03-07 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626613', 'tblTempVendorCDR_20' ) end [2025-03-07 08:32:18] Production.INFO: ProcessCDR(1,14626613,1,1,2) [2025-03-07 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626613', 'tblTempUsageDetail_20' ) start [2025-03-07 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626613', 'tblTempUsageDetail_20' ) end [2025-03-07 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:32:21] Production.INFO: ==25836== Releasing lock... [2025-03-07 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:33:06 [end_date_ymd] => 2025-03-07 08:33:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:33:06' and `end` < '2025-03-07 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-03-07 08:33:18] Production.INFO: count ==463 [2025-03-07 08:33:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:33:06 - End Time 2025-03-07 08:33:06 [2025-03-07 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626618', 'tblTempUsageDetail_20' ) start [2025-03-07 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626618', 'tblTempUsageDetail_20' ) end [2025-03-07 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626618', 'tblTempVendorCDR_20' ) start [2025-03-07 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626618', 'tblTempVendorCDR_20' ) end [2025-03-07 08:33:18] Production.INFO: ProcessCDR(1,14626618,1,1,2) [2025-03-07 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626618', 'tblTempUsageDetail_20' ) start [2025-03-07 08:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626618', 'tblTempUsageDetail_20' ) end [2025-03-07 08:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:33:24] Production.INFO: ==25916== Releasing lock... [2025-03-07 08:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:33:24] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:34:05 [end_date_ymd] => 2025-03-07 08:34:05 [RateCDR] => 1 ) [2025-03-07 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:34:05' and `end` < '2025-03-07 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:34:18] Production.INFO: count ==468 [2025-03-07 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:34:05 - End Time 2025-03-07 08:34:05 [2025-03-07 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626623', 'tblTempUsageDetail_20' ) start [2025-03-07 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626623', 'tblTempUsageDetail_20' ) end [2025-03-07 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626623', 'tblTempVendorCDR_20' ) start [2025-03-07 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626623', 'tblTempVendorCDR_20' ) end [2025-03-07 08:34:18] Production.INFO: ProcessCDR(1,14626623,1,1,2) [2025-03-07 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626623', 'tblTempUsageDetail_20' ) start [2025-03-07 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626623', 'tblTempUsageDetail_20' ) end [2025-03-07 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:34:21] Production.INFO: ==25991== Releasing lock... [2025-03-07 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:34:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:35:06 [end_date_ymd] => 2025-03-07 08:35:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:35:06' and `end` < '2025-03-07 08: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-03-07 08:35:18] Production.INFO: count ==473 [2025-03-07 08:35:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:35:06 - End Time 2025-03-07 08:35:06 [2025-03-07 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626628', 'tblTempUsageDetail_20' ) start [2025-03-07 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626628', 'tblTempUsageDetail_20' ) end [2025-03-07 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626628', 'tblTempVendorCDR_20' ) start [2025-03-07 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626628', 'tblTempVendorCDR_20' ) end [2025-03-07 08:35:18] Production.INFO: ProcessCDR(1,14626628,1,1,2) [2025-03-07 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626628', 'tblTempUsageDetail_20' ) start [2025-03-07 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626628', 'tblTempUsageDetail_20' ) end [2025-03-07 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:35:22] Production.INFO: ==26068== Releasing lock... [2025-03-07 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:35:22] Production.INFO: 32 MB #Memory Used# [2025-03-07 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:36:05 [end_date_ymd] => 2025-03-07 08:36:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:36:05' and `end` < '2025-03-07 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-03-07 08:36:17] Production.INFO: count ==474 [2025-03-07 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:36:05 - End Time 2025-03-07 08:36:05 [2025-03-07 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626633', 'tblTempUsageDetail_20' ) start [2025-03-07 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626633', 'tblTempUsageDetail_20' ) end [2025-03-07 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626633', 'tblTempVendorCDR_20' ) start [2025-03-07 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626633', 'tblTempVendorCDR_20' ) end [2025-03-07 08:36:18] Production.INFO: ProcessCDR(1,14626633,1,1,2) [2025-03-07 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626633', 'tblTempUsageDetail_20' ) start [2025-03-07 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626633', 'tblTempUsageDetail_20' ) end [2025-03-07 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:36:23] Production.INFO: ==26144== Releasing lock... [2025-03-07 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:36:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 08:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:37:06 [end_date_ymd] => 2025-03-07 08:37:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:37:06' and `end` < '2025-03-07 08: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-03-07 08:37:18] Production.INFO: count ==476 [2025-03-07 08:37:19] Production.ERROR: pbx CDR StartTime 2025-03-07 05:37:06 - End Time 2025-03-07 08:37:06 [2025-03-07 08:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626638', 'tblTempUsageDetail_20' ) start [2025-03-07 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626638', 'tblTempUsageDetail_20' ) end [2025-03-07 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626638', 'tblTempVendorCDR_20' ) start [2025-03-07 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626638', 'tblTempVendorCDR_20' ) end [2025-03-07 08:37:19] Production.INFO: ProcessCDR(1,14626638,1,1,2) [2025-03-07 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626638', 'tblTempUsageDetail_20' ) start [2025-03-07 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626638', 'tblTempUsageDetail_20' ) end [2025-03-07 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:37:23] Production.INFO: ==26221== Releasing lock... [2025-03-07 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:37:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:38:06 [end_date_ymd] => 2025-03-07 08:38:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:38:06' and `end` < '2025-03-07 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-03-07 08:38:18] Production.INFO: count ==478 [2025-03-07 08:38:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:38:06 - End Time 2025-03-07 08:38:06 [2025-03-07 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626643', 'tblTempUsageDetail_20' ) start [2025-03-07 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626643', 'tblTempUsageDetail_20' ) end [2025-03-07 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626643', 'tblTempVendorCDR_20' ) start [2025-03-07 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626643', 'tblTempVendorCDR_20' ) end [2025-03-07 08:38:18] Production.INFO: ProcessCDR(1,14626643,1,1,2) [2025-03-07 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626643', 'tblTempUsageDetail_20' ) start [2025-03-07 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626643', 'tblTempUsageDetail_20' ) end [2025-03-07 08:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:38:24] Production.INFO: ==26296== Releasing lock... [2025-03-07 08:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:38:24] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:39:06 [end_date_ymd] => 2025-03-07 08:39:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:39:06' and `end` < '2025-03-07 08: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-03-07 08:39:18] Production.INFO: count ==479 [2025-03-07 08:39:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:39:06 - End Time 2025-03-07 08:39:06 [2025-03-07 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626648', 'tblTempUsageDetail_20' ) start [2025-03-07 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626648', 'tblTempUsageDetail_20' ) end [2025-03-07 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626648', 'tblTempVendorCDR_20' ) start [2025-03-07 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626648', 'tblTempVendorCDR_20' ) end [2025-03-07 08:39:18] Production.INFO: ProcessCDR(1,14626648,1,1,2) [2025-03-07 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626648', 'tblTempUsageDetail_20' ) start [2025-03-07 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626648', 'tblTempUsageDetail_20' ) end [2025-03-07 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:39:22] Production.INFO: ==26376== Releasing lock... [2025-03-07 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:39:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 08:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:40:07 [end_date_ymd] => 2025-03-07 08:40:07 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:40:07' and `end` < '2025-03-07 08: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-03-07 08:40:19] Production.INFO: count ==485 [2025-03-07 08:40:19] Production.ERROR: pbx CDR StartTime 2025-03-07 05:40:07 - End Time 2025-03-07 08:40:07 [2025-03-07 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626654', 'tblTempUsageDetail_20' ) start [2025-03-07 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626654', 'tblTempUsageDetail_20' ) end [2025-03-07 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626654', 'tblTempVendorCDR_20' ) start [2025-03-07 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626654', 'tblTempVendorCDR_20' ) end [2025-03-07 08:40:19] Production.INFO: ProcessCDR(1,14626654,1,1,2) [2025-03-07 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626654', 'tblTempUsageDetail_20' ) start [2025-03-07 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626654', 'tblTempUsageDetail_20' ) end [2025-03-07 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:40:23] Production.INFO: ==26450== Releasing lock... [2025-03-07 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:40:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:41:06 [end_date_ymd] => 2025-03-07 08:41:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:41:06' and `end` < '2025-03-07 08: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-03-07 08:41:18] Production.INFO: count ==503 [2025-03-07 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:41:06 - End Time 2025-03-07 08:41:06 [2025-03-07 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626659', 'tblTempUsageDetail_20' ) start [2025-03-07 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626659', 'tblTempUsageDetail_20' ) end [2025-03-07 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626659', 'tblTempVendorCDR_20' ) start [2025-03-07 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626659', 'tblTempVendorCDR_20' ) end [2025-03-07 08:41:18] Production.INFO: ProcessCDR(1,14626659,1,1,2) [2025-03-07 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626659', 'tblTempUsageDetail_20' ) start [2025-03-07 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626659', 'tblTempUsageDetail_20' ) end [2025-03-07 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:41:22] Production.INFO: ==26534== Releasing lock... [2025-03-07 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:42:06 [end_date_ymd] => 2025-03-07 08:42:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:42:06' and `end` < '2025-03-07 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-03-07 08:42:18] Production.INFO: count ==506 [2025-03-07 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:42:06 - End Time 2025-03-07 08:42:06 [2025-03-07 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626664', 'tblTempUsageDetail_20' ) start [2025-03-07 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626664', 'tblTempUsageDetail_20' ) end [2025-03-07 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626664', 'tblTempVendorCDR_20' ) start [2025-03-07 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626664', 'tblTempVendorCDR_20' ) end [2025-03-07 08:42:18] Production.INFO: ProcessCDR(1,14626664,1,1,2) [2025-03-07 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626664', 'tblTempUsageDetail_20' ) start [2025-03-07 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626664', 'tblTempUsageDetail_20' ) end [2025-03-07 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:42:22] Production.INFO: ==26612== Releasing lock... [2025-03-07 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:42:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:43:05 [end_date_ymd] => 2025-03-07 08:43:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:43:05' and `end` < '2025-03-07 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-03-07 08:43:17] Production.INFO: count ==508 [2025-03-07 08:43:17] Production.ERROR: pbx CDR StartTime 2025-03-07 05:43:05 - End Time 2025-03-07 08:43:05 [2025-03-07 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626669', 'tblTempUsageDetail_20' ) start [2025-03-07 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626669', 'tblTempUsageDetail_20' ) end [2025-03-07 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626669', 'tblTempVendorCDR_20' ) start [2025-03-07 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626669', 'tblTempVendorCDR_20' ) end [2025-03-07 08:43:17] Production.INFO: ProcessCDR(1,14626669,1,1,2) [2025-03-07 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626669', 'tblTempUsageDetail_20' ) start [2025-03-07 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626669', 'tblTempUsageDetail_20' ) end [2025-03-07 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:43:23] Production.INFO: ==26687== Releasing lock... [2025-03-07 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:43:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:44:06 [end_date_ymd] => 2025-03-07 08:44:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:44:06' and `end` < '2025-03-07 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-03-07 08:44:18] Production.INFO: count ==517 [2025-03-07 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:44:06 - End Time 2025-03-07 08:44:06 [2025-03-07 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626674', 'tblTempUsageDetail_20' ) start [2025-03-07 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626674', 'tblTempUsageDetail_20' ) end [2025-03-07 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626674', 'tblTempVendorCDR_20' ) start [2025-03-07 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626674', 'tblTempVendorCDR_20' ) end [2025-03-07 08:44:18] Production.INFO: ProcessCDR(1,14626674,1,1,2) [2025-03-07 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626674', 'tblTempUsageDetail_20' ) start [2025-03-07 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626674', 'tblTempUsageDetail_20' ) end [2025-03-07 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:44:22] Production.INFO: ==26762== Releasing lock... [2025-03-07 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:44:22] Production.INFO: 33 MB #Memory Used# [2025-03-07 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:45:05 [end_date_ymd] => 2025-03-07 08:45:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:45:05' and `end` < '2025-03-07 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-03-07 08:45:17] Production.INFO: count ==521 [2025-03-07 08:45:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:45:05 - End Time 2025-03-07 08:45:05 [2025-03-07 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626679', 'tblTempUsageDetail_20' ) start [2025-03-07 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626679', 'tblTempUsageDetail_20' ) end [2025-03-07 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626679', 'tblTempVendorCDR_20' ) start [2025-03-07 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626679', 'tblTempVendorCDR_20' ) end [2025-03-07 08:45:18] Production.INFO: ProcessCDR(1,14626679,1,1,2) [2025-03-07 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626679', 'tblTempUsageDetail_20' ) start [2025-03-07 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626679', 'tblTempUsageDetail_20' ) end [2025-03-07 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:45:21] Production.INFO: ==26840== Releasing lock... [2025-03-07 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:45:21] Production.INFO: 33 MB #Memory Used# [2025-03-07 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:46:06 [end_date_ymd] => 2025-03-07 08:46:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:46:06' and `end` < '2025-03-07 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-03-07 08:46:18] Production.INFO: count ==523 [2025-03-07 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:46:06 - End Time 2025-03-07 08:46:06 [2025-03-07 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626683', 'tblTempUsageDetail_20' ) start [2025-03-07 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626683', 'tblTempUsageDetail_20' ) end [2025-03-07 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626683', 'tblTempVendorCDR_20' ) start [2025-03-07 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626683', 'tblTempVendorCDR_20' ) end [2025-03-07 08:46:18] Production.INFO: ProcessCDR(1,14626683,1,1,2) [2025-03-07 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626683', 'tblTempUsageDetail_20' ) start [2025-03-07 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626683', 'tblTempUsageDetail_20' ) end [2025-03-07 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:46:22] Production.INFO: ==26954== Releasing lock... [2025-03-07 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:46:22] Production.INFO: 33 MB #Memory Used# [2025-03-07 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:47:05 [end_date_ymd] => 2025-03-07 08:47:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:47:05' and `end` < '2025-03-07 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-03-07 08:47:17] Production.INFO: count ==527 [2025-03-07 08:47:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:47:05 - End Time 2025-03-07 08:47:05 [2025-03-07 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626689', 'tblTempUsageDetail_20' ) start [2025-03-07 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626689', 'tblTempUsageDetail_20' ) end [2025-03-07 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626689', 'tblTempVendorCDR_20' ) start [2025-03-07 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626689', 'tblTempVendorCDR_20' ) end [2025-03-07 08:47:18] Production.INFO: ProcessCDR(1,14626689,1,1,2) [2025-03-07 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626689', 'tblTempUsageDetail_20' ) start [2025-03-07 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626689', 'tblTempUsageDetail_20' ) end [2025-03-07 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:47:21] Production.INFO: ==27027== Releasing lock... [2025-03-07 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:47:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-07 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:48:06 [end_date_ymd] => 2025-03-07 08:48:06 [RateCDR] => 1 ) [2025-03-07 08:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:48:06' and `end` < '2025-03-07 08:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:48:18] Production.INFO: count ==534 [2025-03-07 08:48:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:48:06 - End Time 2025-03-07 08:48:06 [2025-03-07 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626694', 'tblTempUsageDetail_20' ) start [2025-03-07 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626694', 'tblTempUsageDetail_20' ) end [2025-03-07 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626694', 'tblTempVendorCDR_20' ) start [2025-03-07 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626694', 'tblTempVendorCDR_20' ) end [2025-03-07 08:48:18] Production.INFO: ProcessCDR(1,14626694,1,1,2) [2025-03-07 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626694', 'tblTempUsageDetail_20' ) start [2025-03-07 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626694', 'tblTempUsageDetail_20' ) end [2025-03-07 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:48:22] Production.INFO: ==27104== Releasing lock... [2025-03-07 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:48:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-07 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:49:06 [end_date_ymd] => 2025-03-07 08:49:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:49:06' and `end` < '2025-03-07 08: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-03-07 08:49:18] Production.INFO: count ==530 [2025-03-07 08:49:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:49:06 - End Time 2025-03-07 08:49:06 [2025-03-07 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626699', 'tblTempUsageDetail_20' ) start [2025-03-07 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626699', 'tblTempUsageDetail_20' ) end [2025-03-07 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626699', 'tblTempVendorCDR_20' ) start [2025-03-07 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626699', 'tblTempVendorCDR_20' ) end [2025-03-07 08:49:18] Production.INFO: ProcessCDR(1,14626699,1,1,2) [2025-03-07 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626699', 'tblTempUsageDetail_20' ) start [2025-03-07 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626699', 'tblTempUsageDetail_20' ) end [2025-03-07 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:49:22] Production.INFO: ==27177== Releasing lock... [2025-03-07 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:49:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-07 08:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:50:07 [end_date_ymd] => 2025-03-07 08:50:07 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:50:07' and `end` < '2025-03-07 08: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-03-07 08:50:19] Production.INFO: count ==545 [2025-03-07 08:50:19] Production.ERROR: pbx CDR StartTime 2025-03-07 05:50:07 - End Time 2025-03-07 08:50:07 [2025-03-07 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626705', 'tblTempUsageDetail_20' ) start [2025-03-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626705', 'tblTempUsageDetail_20' ) end [2025-03-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626705', 'tblTempVendorCDR_20' ) start [2025-03-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626705', 'tblTempVendorCDR_20' ) end [2025-03-07 08:50:19] Production.INFO: ProcessCDR(1,14626705,1,1,2) [2025-03-07 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626705', 'tblTempUsageDetail_20' ) start [2025-03-07 08:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626705', 'tblTempUsageDetail_20' ) end [2025-03-07 08:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:50:25] Production.INFO: ==27254== Releasing lock... [2025-03-07 08:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:50:25] Production.INFO: 33 MB #Memory Used# [2025-03-07 08:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:51:06 [end_date_ymd] => 2025-03-07 08:51:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:51:06' and `end` < '2025-03-07 08: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-03-07 08:51:18] Production.INFO: count ==594 [2025-03-07 08:51:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:51:06 - End Time 2025-03-07 08:51:06 [2025-03-07 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626710', 'tblTempUsageDetail_20' ) start [2025-03-07 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626710', 'tblTempUsageDetail_20' ) end [2025-03-07 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626710', 'tblTempVendorCDR_20' ) start [2025-03-07 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626710', 'tblTempVendorCDR_20' ) end [2025-03-07 08:51:18] Production.INFO: ProcessCDR(1,14626710,1,1,2) [2025-03-07 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626710', 'tblTempUsageDetail_20' ) start [2025-03-07 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626710', 'tblTempUsageDetail_20' ) end [2025-03-07 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:51:22] Production.INFO: ==27335== Releasing lock... [2025-03-07 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:51:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-07 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:52:06 [end_date_ymd] => 2025-03-07 08:52:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:52:06' and `end` < '2025-03-07 08: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-03-07 08:52:18] Production.INFO: count ==606 [2025-03-07 08:52:19] Production.ERROR: pbx CDR StartTime 2025-03-07 05:52:06 - End Time 2025-03-07 08:52:06 [2025-03-07 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626715', 'tblTempUsageDetail_20' ) start [2025-03-07 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626715', 'tblTempUsageDetail_20' ) end [2025-03-07 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626715', 'tblTempVendorCDR_20' ) start [2025-03-07 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626715', 'tblTempVendorCDR_20' ) end [2025-03-07 08:52:19] Production.INFO: ProcessCDR(1,14626715,1,1,2) [2025-03-07 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626715', 'tblTempUsageDetail_20' ) start [2025-03-07 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626715', 'tblTempUsageDetail_20' ) end [2025-03-07 08:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:52:24] Production.INFO: ==27411== Releasing lock... [2025-03-07 08:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:52:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-07 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:53:06 [end_date_ymd] => 2025-03-07 08:53:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:53:06' and `end` < '2025-03-07 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-03-07 08:53:18] Production.INFO: count ==627 [2025-03-07 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:53:06 - End Time 2025-03-07 08:53:06 [2025-03-07 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626720', 'tblTempUsageDetail_20' ) start [2025-03-07 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626720', 'tblTempUsageDetail_20' ) end [2025-03-07 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626720', 'tblTempVendorCDR_20' ) start [2025-03-07 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626720', 'tblTempVendorCDR_20' ) end [2025-03-07 08:53:18] Production.INFO: ProcessCDR(1,14626720,1,1,2) [2025-03-07 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626720', 'tblTempUsageDetail_20' ) start [2025-03-07 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626720', 'tblTempUsageDetail_20' ) end [2025-03-07 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:53:23] Production.INFO: ==27486== Releasing lock... [2025-03-07 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:53:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-07 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:54:05 [end_date_ymd] => 2025-03-07 08:54:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:54:05' and `end` < '2025-03-07 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-03-07 08:54:17] Production.INFO: count ==654 [2025-03-07 08:54:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:54:05 - End Time 2025-03-07 08:54:05 [2025-03-07 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626725', 'tblTempUsageDetail_20' ) start [2025-03-07 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626725', 'tblTempUsageDetail_20' ) end [2025-03-07 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626725', 'tblTempVendorCDR_20' ) start [2025-03-07 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626725', 'tblTempVendorCDR_20' ) end [2025-03-07 08:54:18] Production.INFO: ProcessCDR(1,14626725,1,1,2) [2025-03-07 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626725', 'tblTempUsageDetail_20' ) start [2025-03-07 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626725', 'tblTempUsageDetail_20' ) end [2025-03-07 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:54:23] Production.INFO: ==27560== Releasing lock... [2025-03-07 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:54:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-07 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:55:06 [end_date_ymd] => 2025-03-07 08:55:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:55:06' and `end` < '2025-03-07 08: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-03-07 08:55:18] Production.INFO: count ==668 [2025-03-07 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:55:06 - End Time 2025-03-07 08:55:06 [2025-03-07 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626730', 'tblTempUsageDetail_20' ) start [2025-03-07 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626730', 'tblTempUsageDetail_20' ) end [2025-03-07 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626730', 'tblTempVendorCDR_20' ) start [2025-03-07 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626730', 'tblTempVendorCDR_20' ) end [2025-03-07 08:55:18] Production.INFO: ProcessCDR(1,14626730,1,1,2) [2025-03-07 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626730', 'tblTempUsageDetail_20' ) start [2025-03-07 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626730', 'tblTempUsageDetail_20' ) end [2025-03-07 08:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:55:24] Production.INFO: ==27641== Releasing lock... [2025-03-07 08:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:55:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-07 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:56:06 [end_date_ymd] => 2025-03-07 08:56:06 [RateCDR] => 1 ) [2025-03-07 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:56:06' and `end` < '2025-03-07 08:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:56:18] Production.INFO: count ==671 [2025-03-07 08:56:19] Production.ERROR: pbx CDR StartTime 2025-03-07 05:56:06 - End Time 2025-03-07 08:56:06 [2025-03-07 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626735', 'tblTempUsageDetail_20' ) start [2025-03-07 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626735', 'tblTempUsageDetail_20' ) end [2025-03-07 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626735', 'tblTempVendorCDR_20' ) start [2025-03-07 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626735', 'tblTempVendorCDR_20' ) end [2025-03-07 08:56:19] Production.INFO: ProcessCDR(1,14626735,1,1,2) [2025-03-07 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626735', 'tblTempUsageDetail_20' ) start [2025-03-07 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626735', 'tblTempUsageDetail_20' ) end [2025-03-07 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:56:24] Production.INFO: ==27724== Releasing lock... [2025-03-07 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:56:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-07 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:57:05 [end_date_ymd] => 2025-03-07 08:57:05 [RateCDR] => 1 ) [2025-03-07 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 05:57:05' and `end` < '2025-03-07 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 08:57:17] Production.INFO: count ==673 [2025-03-07 08:57:17] Production.ERROR: pbx CDR StartTime 2025-03-07 05:57:05 - End Time 2025-03-07 08:57:05 [2025-03-07 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626740', 'tblTempUsageDetail_20' ) start [2025-03-07 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626740', 'tblTempUsageDetail_20' ) end [2025-03-07 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626740', 'tblTempVendorCDR_20' ) start [2025-03-07 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626740', 'tblTempVendorCDR_20' ) end [2025-03-07 08:57:17] Production.INFO: ProcessCDR(1,14626740,1,1,2) [2025-03-07 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626740', 'tblTempUsageDetail_20' ) start [2025-03-07 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626740', 'tblTempUsageDetail_20' ) end [2025-03-07 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:57:21] Production.INFO: ==27797== Releasing lock... [2025-03-07 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:57:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-07 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:58:06 [end_date_ymd] => 2025-03-07 08:58:06 [RateCDR] => 1 ) [2025-03-07 08: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-03-07 05:58:06' and `end` < '2025-03-07 08: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-03-07 08:58:19] Production.INFO: count ==675 [2025-03-07 08:58:19] Production.ERROR: pbx CDR StartTime 2025-03-07 05:58:06 - End Time 2025-03-07 08:58:06 [2025-03-07 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626745', 'tblTempUsageDetail_20' ) start [2025-03-07 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626745', 'tblTempUsageDetail_20' ) end [2025-03-07 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626745', 'tblTempVendorCDR_20' ) start [2025-03-07 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626745', 'tblTempVendorCDR_20' ) end [2025-03-07 08:58:19] Production.INFO: ProcessCDR(1,14626745,1,1,2) [2025-03-07 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626745', 'tblTempUsageDetail_20' ) start [2025-03-07 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626745', 'tblTempUsageDetail_20' ) end [2025-03-07 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:58:22] Production.INFO: ==27880== Releasing lock... [2025-03-07 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:58:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-07 08:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 05:59:06 [end_date_ymd] => 2025-03-07 08:59:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 05:59:06' and `end` < '2025-03-07 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-03-07 08:59:18] Production.INFO: count ==684 [2025-03-07 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-07 05:59:06 - End Time 2025-03-07 08:59:06 [2025-03-07 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626750', 'tblTempUsageDetail_20' ) start [2025-03-07 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626750', 'tblTempUsageDetail_20' ) end [2025-03-07 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626750', 'tblTempVendorCDR_20' ) start [2025-03-07 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626750', 'tblTempVendorCDR_20' ) end [2025-03-07 08:59:18] Production.INFO: ProcessCDR(1,14626750,1,1,2) [2025-03-07 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626750', 'tblTempUsageDetail_20' ) start [2025-03-07 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626750', 'tblTempUsageDetail_20' ) end [2025-03-07 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 08:59:22] Production.INFO: ==27964== Releasing lock... [2025-03-07 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 08:59:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-07 09:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:00:07 [end_date_ymd] => 2025-03-07 09:00:07 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:00:07' and `end` < '2025-03-07 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-03-07 09:00:20] Production.INFO: count ==710 [2025-03-07 09:00:20] Production.ERROR: pbx CDR StartTime 2025-03-07 06:00:07 - End Time 2025-03-07 09:00:07 [2025-03-07 09:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626756', 'tblTempUsageDetail_20' ) start [2025-03-07 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626756', 'tblTempUsageDetail_20' ) end [2025-03-07 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626756', 'tblTempVendorCDR_20' ) start [2025-03-07 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626756', 'tblTempVendorCDR_20' ) end [2025-03-07 09:00:20] Production.INFO: ProcessCDR(1,14626756,1,1,2) [2025-03-07 09:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626756', 'tblTempUsageDetail_20' ) start [2025-03-07 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626756', 'tblTempUsageDetail_20' ) end [2025-03-07 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:00:24] Production.INFO: ==28044== Releasing lock... [2025-03-07 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:00:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-07 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:01:06 [end_date_ymd] => 2025-03-07 09:01:06 [RateCDR] => 1 ) [2025-03-07 09:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:01:06' and `end` < '2025-03-07 09:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:01:18] Production.INFO: count ==757 [2025-03-07 09:01:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:01:06 - End Time 2025-03-07 09:01:06 [2025-03-07 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626761', 'tblTempUsageDetail_20' ) start [2025-03-07 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626761', 'tblTempUsageDetail_20' ) end [2025-03-07 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626761', 'tblTempVendorCDR_20' ) start [2025-03-07 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626761', 'tblTempVendorCDR_20' ) end [2025-03-07 09:01:19] Production.INFO: ProcessCDR(1,14626761,1,1,2) [2025-03-07 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626761', 'tblTempUsageDetail_20' ) start [2025-03-07 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626761', 'tblTempUsageDetail_20' ) end [2025-03-07 09:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:01:24] Production.INFO: ==28135== Releasing lock... [2025-03-07 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:01:24] Production.INFO: 34 MB #Memory Used# [2025-03-07 09:02:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:02:07 [end_date_ymd] => 2025-03-07 09:02:07 [RateCDR] => 1 ) [2025-03-07 09:02: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-03-07 06:02:07' and `end` < '2025-03-07 09:02: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-03-07 09:02:19] Production.INFO: count ==765 [2025-03-07 09:02:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:02:07 - End Time 2025-03-07 09:02:07 [2025-03-07 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626766', 'tblTempUsageDetail_20' ) start [2025-03-07 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626766', 'tblTempUsageDetail_20' ) end [2025-03-07 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626766', 'tblTempVendorCDR_20' ) start [2025-03-07 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626766', 'tblTempVendorCDR_20' ) end [2025-03-07 09:02:19] Production.INFO: ProcessCDR(1,14626766,1,1,2) [2025-03-07 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626766', 'tblTempUsageDetail_20' ) start [2025-03-07 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626766', 'tblTempUsageDetail_20' ) end [2025-03-07 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:02:23] Production.INFO: ==28253== Releasing lock... [2025-03-07 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:02:23] Production.INFO: 34 MB #Memory Used# [2025-03-07 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:03:06 [end_date_ymd] => 2025-03-07 09:03:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:03:06' and `end` < '2025-03-07 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-03-07 09:03:18] Production.INFO: count ==779 [2025-03-07 09:03:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:03:06 - End Time 2025-03-07 09:03:06 [2025-03-07 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626771', 'tblTempUsageDetail_20' ) start [2025-03-07 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626771', 'tblTempUsageDetail_20' ) end [2025-03-07 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626771', 'tblTempVendorCDR_20' ) start [2025-03-07 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626771', 'tblTempVendorCDR_20' ) end [2025-03-07 09:03:18] Production.INFO: ProcessCDR(1,14626771,1,1,2) [2025-03-07 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626771', 'tblTempUsageDetail_20' ) start [2025-03-07 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626771', 'tblTempUsageDetail_20' ) end [2025-03-07 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:03:24] Production.INFO: ==28334== Releasing lock... [2025-03-07 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:03:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-07 09:04:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:04:07 [end_date_ymd] => 2025-03-07 09:04:07 [RateCDR] => 1 ) [2025-03-07 09:04: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-03-07 06:04:07' and `end` < '2025-03-07 09:04: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-03-07 09:04:19] Production.INFO: count ==787 [2025-03-07 09:04:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:04:07 - End Time 2025-03-07 09:04:07 [2025-03-07 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626776', 'tblTempUsageDetail_20' ) start [2025-03-07 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626776', 'tblTempUsageDetail_20' ) end [2025-03-07 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626776', 'tblTempVendorCDR_20' ) start [2025-03-07 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626776', 'tblTempVendorCDR_20' ) end [2025-03-07 09:04:19] Production.INFO: ProcessCDR(1,14626776,1,1,2) [2025-03-07 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626776', 'tblTempUsageDetail_20' ) start [2025-03-07 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626776', 'tblTempUsageDetail_20' ) end [2025-03-07 09:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:04:25] Production.INFO: ==28410== Releasing lock... [2025-03-07 09:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:04:25] Production.INFO: 34.25 MB #Memory Used# [2025-03-07 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:05:06 [end_date_ymd] => 2025-03-07 09:05:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:05:06' and `end` < '2025-03-07 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-03-07 09:05:18] Production.INFO: count ==794 [2025-03-07 09:05:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:05:06 - End Time 2025-03-07 09:05:06 [2025-03-07 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626781', 'tblTempUsageDetail_20' ) start [2025-03-07 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626781', 'tblTempUsageDetail_20' ) end [2025-03-07 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626781', 'tblTempVendorCDR_20' ) start [2025-03-07 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626781', 'tblTempVendorCDR_20' ) end [2025-03-07 09:05:19] Production.INFO: ProcessCDR(1,14626781,1,1,2) [2025-03-07 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626781', 'tblTempUsageDetail_20' ) start [2025-03-07 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626781', 'tblTempUsageDetail_20' ) end [2025-03-07 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:05:24] Production.INFO: ==28487== Releasing lock... [2025-03-07 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:05:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-07 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:06:06 [end_date_ymd] => 2025-03-07 09:06:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:06:06' and `end` < '2025-03-07 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-03-07 09:06:18] Production.INFO: count ==800 [2025-03-07 09:06:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:06:06 - End Time 2025-03-07 09:06:06 [2025-03-07 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626786', 'tblTempUsageDetail_20' ) start [2025-03-07 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626786', 'tblTempUsageDetail_20' ) end [2025-03-07 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626786', 'tblTempVendorCDR_20' ) start [2025-03-07 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626786', 'tblTempVendorCDR_20' ) end [2025-03-07 09:06:19] Production.INFO: ProcessCDR(1,14626786,1,1,2) [2025-03-07 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626786', 'tblTempUsageDetail_20' ) start [2025-03-07 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626786', 'tblTempUsageDetail_20' ) end [2025-03-07 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:06:24] Production.INFO: ==28566== Releasing lock... [2025-03-07 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:06:24] Production.INFO: 34.5 MB #Memory Used# [2025-03-07 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:07:05 [end_date_ymd] => 2025-03-07 09:07:05 [RateCDR] => 1 ) [2025-03-07 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:07:05' and `end` < '2025-03-07 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:07:18] Production.INFO: count ==831 [2025-03-07 09:07:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:07:05 - End Time 2025-03-07 09:07:05 [2025-03-07 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626791', 'tblTempUsageDetail_20' ) start [2025-03-07 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626791', 'tblTempUsageDetail_20' ) end [2025-03-07 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626791', 'tblTempVendorCDR_20' ) start [2025-03-07 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626791', 'tblTempVendorCDR_20' ) end [2025-03-07 09:07:18] Production.INFO: ProcessCDR(1,14626791,1,1,2) [2025-03-07 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626791', 'tblTempUsageDetail_20' ) start [2025-03-07 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626791', 'tblTempUsageDetail_20' ) end [2025-03-07 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:07:23] Production.INFO: ==28647== Releasing lock... [2025-03-07 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:07:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-07 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:08:06 [end_date_ymd] => 2025-03-07 09:08:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:08:06' and `end` < '2025-03-07 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-03-07 09:08:19] Production.INFO: count ==842 [2025-03-07 09:08:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:08:06 - End Time 2025-03-07 09:08:06 [2025-03-07 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626796', 'tblTempUsageDetail_20' ) start [2025-03-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626796', 'tblTempUsageDetail_20' ) end [2025-03-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626796', 'tblTempVendorCDR_20' ) start [2025-03-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626796', 'tblTempVendorCDR_20' ) end [2025-03-07 09:08:19] Production.INFO: ProcessCDR(1,14626796,1,1,2) [2025-03-07 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626796', 'tblTempUsageDetail_20' ) start [2025-03-07 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626796', 'tblTempUsageDetail_20' ) end [2025-03-07 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:08:24] Production.INFO: ==28731== Releasing lock... [2025-03-07 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:08:24] Production.INFO: 34.5 MB #Memory Used# [2025-03-07 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:09:06 [end_date_ymd] => 2025-03-07 09:09:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:09:06' and `end` < '2025-03-07 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-03-07 09:09:18] Production.INFO: count ==871 [2025-03-07 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:09:06 - End Time 2025-03-07 09:09:06 [2025-03-07 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626801', 'tblTempUsageDetail_20' ) start [2025-03-07 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626801', 'tblTempUsageDetail_20' ) end [2025-03-07 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626801', 'tblTempVendorCDR_20' ) start [2025-03-07 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626801', 'tblTempVendorCDR_20' ) end [2025-03-07 09:09:18] Production.INFO: ProcessCDR(1,14626801,1,1,2) [2025-03-07 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626801', 'tblTempUsageDetail_20' ) start [2025-03-07 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626801', 'tblTempUsageDetail_20' ) end [2025-03-07 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:09:24] Production.INFO: ==28807== Releasing lock... [2025-03-07 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:09:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-07 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:10:07 [end_date_ymd] => 2025-03-07 09:10:07 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:10:07' and `end` < '2025-03-07 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-03-07 09:10:19] Production.INFO: count ==883 [2025-03-07 09:10:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:10:07 - End Time 2025-03-07 09:10:07 [2025-03-07 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626806', 'tblTempUsageDetail_20' ) start [2025-03-07 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626806', 'tblTempUsageDetail_20' ) end [2025-03-07 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626806', 'tblTempVendorCDR_20' ) start [2025-03-07 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626806', 'tblTempVendorCDR_20' ) end [2025-03-07 09:10:20] Production.INFO: ProcessCDR(1,14626806,1,1,2) [2025-03-07 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626806', 'tblTempUsageDetail_20' ) start [2025-03-07 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626806', 'tblTempUsageDetail_20' ) end [2025-03-07 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:10:25] Production.INFO: ==28893== Releasing lock... [2025-03-07 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:10:25] Production.INFO: 35 MB #Memory Used# [2025-03-07 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:11:05 [end_date_ymd] => 2025-03-07 09:11:05 [RateCDR] => 1 ) [2025-03-07 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:11:05' and `end` < '2025-03-07 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:11:18] Production.INFO: count ==946 [2025-03-07 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:11:05 - End Time 2025-03-07 09:11:05 [2025-03-07 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626812', 'tblTempUsageDetail_20' ) start [2025-03-07 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626812', 'tblTempUsageDetail_20' ) end [2025-03-07 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626812', 'tblTempVendorCDR_20' ) start [2025-03-07 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626812', 'tblTempVendorCDR_20' ) end [2025-03-07 09:11:18] Production.INFO: ProcessCDR(1,14626812,1,1,2) [2025-03-07 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626812', 'tblTempUsageDetail_20' ) start [2025-03-07 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626812', 'tblTempUsageDetail_20' ) end [2025-03-07 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:11:24] Production.INFO: ==28975== Releasing lock... [2025-03-07 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:11:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-07 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:12:06 [end_date_ymd] => 2025-03-07 09:12:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:12:06' and `end` < '2025-03-07 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-03-07 09:12:19] Production.INFO: count ==959 [2025-03-07 09:12:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:12:06 - End Time 2025-03-07 09:12:06 [2025-03-07 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626817', 'tblTempUsageDetail_20' ) start [2025-03-07 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626817', 'tblTempUsageDetail_20' ) end [2025-03-07 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626817', 'tblTempVendorCDR_20' ) start [2025-03-07 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626817', 'tblTempVendorCDR_20' ) end [2025-03-07 09:12:19] Production.INFO: ProcessCDR(1,14626817,1,1,2) [2025-03-07 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626817', 'tblTempUsageDetail_20' ) start [2025-03-07 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626817', 'tblTempUsageDetail_20' ) end [2025-03-07 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:12:25] Production.INFO: ==29058== Releasing lock... [2025-03-07 09:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:12:25] Production.INFO: 36 MB #Memory Used# [2025-03-07 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:13:05 [end_date_ymd] => 2025-03-07 09:13:05 [RateCDR] => 1 ) [2025-03-07 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:13:05' and `end` < '2025-03-07 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:13:18] Production.INFO: count ==986 [2025-03-07 09:13:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:13:05 - End Time 2025-03-07 09:13:05 [2025-03-07 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626822', 'tblTempUsageDetail_20' ) start [2025-03-07 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626822', 'tblTempUsageDetail_20' ) end [2025-03-07 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626822', 'tblTempVendorCDR_20' ) start [2025-03-07 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626822', 'tblTempVendorCDR_20' ) end [2025-03-07 09:13:18] Production.INFO: ProcessCDR(1,14626822,1,1,2) [2025-03-07 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626822', 'tblTempUsageDetail_20' ) start [2025-03-07 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626822', 'tblTempUsageDetail_20' ) end [2025-03-07 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:13:24] Production.INFO: ==29134== Releasing lock... [2025-03-07 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:13:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-07 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:14:06 [end_date_ymd] => 2025-03-07 09:14:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:14:06' and `end` < '2025-03-07 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-03-07 09:14:19] Production.INFO: count ==992 [2025-03-07 09:14:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:14:06 - End Time 2025-03-07 09:14:06 [2025-03-07 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626827', 'tblTempUsageDetail_20' ) start [2025-03-07 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626827', 'tblTempUsageDetail_20' ) end [2025-03-07 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626827', 'tblTempVendorCDR_20' ) start [2025-03-07 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626827', 'tblTempVendorCDR_20' ) end [2025-03-07 09:14:19] Production.INFO: ProcessCDR(1,14626827,1,1,2) [2025-03-07 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626827', 'tblTempUsageDetail_20' ) start [2025-03-07 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626827', 'tblTempUsageDetail_20' ) end [2025-03-07 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:14:23] Production.INFO: ==29220== Releasing lock... [2025-03-07 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:14:23] Production.INFO: 36 MB #Memory Used# [2025-03-07 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:15:05 [end_date_ymd] => 2025-03-07 09:15:05 [RateCDR] => 1 ) [2025-03-07 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:15:05' and `end` < '2025-03-07 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:15:18] Production.INFO: count ==1000 [2025-03-07 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:15:05 - End Time 2025-03-07 09:15:05 [2025-03-07 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626832', 'tblTempUsageDetail_20' ) start [2025-03-07 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626832', 'tblTempUsageDetail_20' ) end [2025-03-07 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626832', 'tblTempVendorCDR_20' ) start [2025-03-07 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626832', 'tblTempVendorCDR_20' ) end [2025-03-07 09:15:18] Production.INFO: ProcessCDR(1,14626832,1,1,2) [2025-03-07 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626832', 'tblTempUsageDetail_20' ) start [2025-03-07 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626832', 'tblTempUsageDetail_20' ) end [2025-03-07 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:15:23] Production.INFO: ==29299== Releasing lock... [2025-03-07 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:15:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-07 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:16:06 [end_date_ymd] => 2025-03-07 09:16:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:16:06' and `end` < '2025-03-07 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-03-07 09:16:19] Production.INFO: count ==1013 [2025-03-07 09:16:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:16:06 - End Time 2025-03-07 09:16:06 [2025-03-07 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626837', 'tblTempUsageDetail_20' ) start [2025-03-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626837', 'tblTempUsageDetail_20' ) end [2025-03-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626837', 'tblTempVendorCDR_20' ) start [2025-03-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626837', 'tblTempVendorCDR_20' ) end [2025-03-07 09:16:19] Production.INFO: ProcessCDR(1,14626837,1,1,2) [2025-03-07 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626837', 'tblTempUsageDetail_20' ) start [2025-03-07 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626837', 'tblTempUsageDetail_20' ) end [2025-03-07 09:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:16:25] Production.INFO: ==29380== Releasing lock... [2025-03-07 09:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:16:25] Production.INFO: 36.25 MB #Memory Used# [2025-03-07 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:17:06 [end_date_ymd] => 2025-03-07 09:17:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:17:06' and `end` < '2025-03-07 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-03-07 09:17:18] Production.INFO: count ==1025 [2025-03-07 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:17:06 - End Time 2025-03-07 09:17:06 [2025-03-07 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626838', 'tblTempUsageDetail_20' ) start [2025-03-07 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626838', 'tblTempUsageDetail_20' ) end [2025-03-07 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626838', 'tblTempVendorCDR_20' ) start [2025-03-07 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626838', 'tblTempVendorCDR_20' ) end [2025-03-07 09:17:18] Production.INFO: ProcessCDR(1,14626838,1,1,2) [2025-03-07 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626838', 'tblTempUsageDetail_20' ) start [2025-03-07 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626838', 'tblTempUsageDetail_20' ) end [2025-03-07 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:17:24] Production.INFO: ==29496== Releasing lock... [2025-03-07 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:17:24] Production.INFO: 36 MB #Memory Used# [2025-03-07 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:18:05 [end_date_ymd] => 2025-03-07 09:18:05 [RateCDR] => 1 ) [2025-03-07 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:18:05' and `end` < '2025-03-07 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:18:18] Production.INFO: count ==1034 [2025-03-07 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:18:05 - End Time 2025-03-07 09:18:05 [2025-03-07 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626847', 'tblTempUsageDetail_20' ) start [2025-03-07 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626847', 'tblTempUsageDetail_20' ) end [2025-03-07 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626847', 'tblTempVendorCDR_20' ) start [2025-03-07 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626847', 'tblTempVendorCDR_20' ) end [2025-03-07 09:18:18] Production.INFO: ProcessCDR(1,14626847,1,1,2) [2025-03-07 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626847', 'tblTempUsageDetail_20' ) start [2025-03-07 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626847', 'tblTempUsageDetail_20' ) end [2025-03-07 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:18:24] Production.INFO: ==29574== Releasing lock... [2025-03-07 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:18:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-07 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:19:05 [end_date_ymd] => 2025-03-07 09:19:05 [RateCDR] => 1 ) [2025-03-07 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:19:05' and `end` < '2025-03-07 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:19:18] Production.INFO: count ==1036 [2025-03-07 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:19:05 - End Time 2025-03-07 09:19:05 [2025-03-07 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626852', 'tblTempUsageDetail_20' ) start [2025-03-07 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626852', 'tblTempUsageDetail_20' ) end [2025-03-07 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626852', 'tblTempVendorCDR_20' ) start [2025-03-07 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626852', 'tblTempVendorCDR_20' ) end [2025-03-07 09:19:18] Production.INFO: ProcessCDR(1,14626852,1,1,2) [2025-03-07 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626852', 'tblTempUsageDetail_20' ) start [2025-03-07 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626852', 'tblTempUsageDetail_20' ) end [2025-03-07 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:19:23] Production.INFO: ==29654== Releasing lock... [2025-03-07 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:19:23] Production.INFO: 36 MB #Memory Used# [2025-03-07 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:20:05 [end_date_ymd] => 2025-03-07 09:20:05 [RateCDR] => 1 ) [2025-03-07 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:20:05' and `end` < '2025-03-07 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:20:18] Production.INFO: count ==1047 [2025-03-07 09:20:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:20:05 - End Time 2025-03-07 09:20:05 [2025-03-07 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626857', 'tblTempUsageDetail_20' ) start [2025-03-07 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626857', 'tblTempUsageDetail_20' ) end [2025-03-07 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626857', 'tblTempVendorCDR_20' ) start [2025-03-07 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626857', 'tblTempVendorCDR_20' ) end [2025-03-07 09:20:18] Production.INFO: ProcessCDR(1,14626857,1,1,2) [2025-03-07 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626857', 'tblTempUsageDetail_20' ) start [2025-03-07 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626857', 'tblTempUsageDetail_20' ) end [2025-03-07 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:20:24] Production.INFO: ==29729== Releasing lock... [2025-03-07 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:20:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-07 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:21:06 [end_date_ymd] => 2025-03-07 09:21:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:21:06' and `end` < '2025-03-07 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-03-07 09:21:18] Production.INFO: count ==1099 [2025-03-07 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:21:06 - End Time 2025-03-07 09:21:06 [2025-03-07 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626863', 'tblTempUsageDetail_20' ) start [2025-03-07 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626863', 'tblTempUsageDetail_20' ) end [2025-03-07 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626863', 'tblTempVendorCDR_20' ) start [2025-03-07 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626863', 'tblTempVendorCDR_20' ) end [2025-03-07 09:21:18] Production.INFO: ProcessCDR(1,14626863,1,1,2) [2025-03-07 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626863', 'tblTempUsageDetail_20' ) start [2025-03-07 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626863', 'tblTempUsageDetail_20' ) end [2025-03-07 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:21:24] Production.INFO: ==29808== Releasing lock... [2025-03-07 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:21:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-07 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:22:05 [end_date_ymd] => 2025-03-07 09:22:05 [RateCDR] => 1 ) [2025-03-07 09: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-03-07 06:22:05' and `end` < '2025-03-07 09: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-03-07 09:22:18] Production.INFO: count ==1101 [2025-03-07 09:22:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:22:05 - End Time 2025-03-07 09:22:05 [2025-03-07 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626868', 'tblTempUsageDetail_20' ) start [2025-03-07 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626868', 'tblTempUsageDetail_20' ) end [2025-03-07 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626868', 'tblTempVendorCDR_20' ) start [2025-03-07 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626868', 'tblTempVendorCDR_20' ) end [2025-03-07 09:22:18] Production.INFO: ProcessCDR(1,14626868,1,1,2) [2025-03-07 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626868', 'tblTempUsageDetail_20' ) start [2025-03-07 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626868', 'tblTempUsageDetail_20' ) end [2025-03-07 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:22:24] Production.INFO: ==29884== Releasing lock... [2025-03-07 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:22:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-07 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:23:05 [end_date_ymd] => 2025-03-07 09:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:23:05' and `end` < '2025-03-07 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-03-07 09:23:17] Production.INFO: count ==1106 [2025-03-07 09:23:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:23:05 - End Time 2025-03-07 09:23:05 [2025-03-07 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626873', 'tblTempUsageDetail_20' ) start [2025-03-07 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626873', 'tblTempUsageDetail_20' ) end [2025-03-07 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626873', 'tblTempVendorCDR_20' ) start [2025-03-07 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626873', 'tblTempVendorCDR_20' ) end [2025-03-07 09:23:18] Production.INFO: ProcessCDR(1,14626873,1,1,2) [2025-03-07 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626873', 'tblTempUsageDetail_20' ) start [2025-03-07 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626873', 'tblTempUsageDetail_20' ) end [2025-03-07 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:23:23] Production.INFO: ==29962== Releasing lock... [2025-03-07 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:23:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-07 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:24:05 [end_date_ymd] => 2025-03-07 09:24:05 [RateCDR] => 1 ) [2025-03-07 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:24:05' and `end` < '2025-03-07 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:24:18] Production.INFO: count ==1110 [2025-03-07 09:24:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:24:05 - End Time 2025-03-07 09:24:05 [2025-03-07 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626878', 'tblTempUsageDetail_20' ) start [2025-03-07 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626878', 'tblTempUsageDetail_20' ) end [2025-03-07 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626878', 'tblTempVendorCDR_20' ) start [2025-03-07 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626878', 'tblTempVendorCDR_20' ) end [2025-03-07 09:24:18] Production.INFO: ProcessCDR(1,14626878,1,1,2) [2025-03-07 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626878', 'tblTempUsageDetail_20' ) start [2025-03-07 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626878', 'tblTempUsageDetail_20' ) end [2025-03-07 09:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:24:22] Production.INFO: ==30037== Releasing lock... [2025-03-07 09:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:24:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-07 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:25:06 [end_date_ymd] => 2025-03-07 09:25:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:25:06' and `end` < '2025-03-07 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:25:18] Production.INFO: count ==1118 [2025-03-07 09:25:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:25:06 - End Time 2025-03-07 09:25:06 [2025-03-07 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626883', 'tblTempUsageDetail_20' ) start [2025-03-07 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626883', 'tblTempUsageDetail_20' ) end [2025-03-07 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626883', 'tblTempVendorCDR_20' ) start [2025-03-07 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626883', 'tblTempVendorCDR_20' ) end [2025-03-07 09:25:18] Production.INFO: ProcessCDR(1,14626883,1,1,2) [2025-03-07 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626883', 'tblTempUsageDetail_20' ) start [2025-03-07 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626883', 'tblTempUsageDetail_20' ) end [2025-03-07 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:25:24] Production.INFO: ==30118== Releasing lock... [2025-03-07 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:25:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-07 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:26:06 [end_date_ymd] => 2025-03-07 09:26:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:26:06' and `end` < '2025-03-07 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-03-07 09:26:18] Production.INFO: count ==1134 [2025-03-07 09:26:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:26:06 - End Time 2025-03-07 09:26:06 [2025-03-07 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626888', 'tblTempUsageDetail_20' ) start [2025-03-07 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626888', 'tblTempUsageDetail_20' ) end [2025-03-07 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626888', 'tblTempVendorCDR_20' ) start [2025-03-07 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626888', 'tblTempVendorCDR_20' ) end [2025-03-07 09:26:19] Production.INFO: ProcessCDR(1,14626888,1,1,2) [2025-03-07 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626888', 'tblTempUsageDetail_20' ) start [2025-03-07 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626888', 'tblTempUsageDetail_20' ) end [2025-03-07 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:26:24] Production.INFO: ==30190== Releasing lock... [2025-03-07 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:26:24] Production.INFO: 37 MB #Memory Used# [2025-03-07 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:27:06 [end_date_ymd] => 2025-03-07 09:27:06 [RateCDR] => 1 ) [2025-03-07 09: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-03-07 06:27:06' and `end` < '2025-03-07 09: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-03-07 09:27:18] Production.INFO: count ==1143 [2025-03-07 09:27:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:27:06 - End Time 2025-03-07 09:27:06 [2025-03-07 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626893', 'tblTempUsageDetail_20' ) start [2025-03-07 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626893', 'tblTempUsageDetail_20' ) end [2025-03-07 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626893', 'tblTempVendorCDR_20' ) start [2025-03-07 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626893', 'tblTempVendorCDR_20' ) end [2025-03-07 09:27:18] Production.INFO: ProcessCDR(1,14626893,1,1,2) [2025-03-07 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626893', 'tblTempUsageDetail_20' ) start [2025-03-07 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626893', 'tblTempUsageDetail_20' ) end [2025-03-07 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:27:24] Production.INFO: ==30268== Releasing lock... [2025-03-07 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:27:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-07 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:28:06 [end_date_ymd] => 2025-03-07 09:28:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:28:06' and `end` < '2025-03-07 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-03-07 09:28:19] Production.INFO: count ==1147 [2025-03-07 09:28:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:28:06 - End Time 2025-03-07 09:28:06 [2025-03-07 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626898', 'tblTempUsageDetail_20' ) start [2025-03-07 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626898', 'tblTempUsageDetail_20' ) end [2025-03-07 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626898', 'tblTempVendorCDR_20' ) start [2025-03-07 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626898', 'tblTempVendorCDR_20' ) end [2025-03-07 09:28:19] Production.INFO: ProcessCDR(1,14626898,1,1,2) [2025-03-07 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626898', 'tblTempUsageDetail_20' ) start [2025-03-07 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626898', 'tblTempUsageDetail_20' ) end [2025-03-07 09:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:28:25] Production.INFO: ==30344== Releasing lock... [2025-03-07 09:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:28:25] Production.INFO: 37.25 MB #Memory Used# [2025-03-07 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:29:06 [end_date_ymd] => 2025-03-07 09:29:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:29:06' and `end` < '2025-03-07 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-03-07 09:29:18] Production.INFO: count ==1155 [2025-03-07 09:29:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:29:06 - End Time 2025-03-07 09:29:06 [2025-03-07 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626903', 'tblTempUsageDetail_20' ) start [2025-03-07 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626903', 'tblTempUsageDetail_20' ) end [2025-03-07 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626903', 'tblTempVendorCDR_20' ) start [2025-03-07 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626903', 'tblTempVendorCDR_20' ) end [2025-03-07 09:29:18] Production.INFO: ProcessCDR(1,14626903,1,1,2) [2025-03-07 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626903', 'tblTempUsageDetail_20' ) start [2025-03-07 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626903', 'tblTempUsageDetail_20' ) end [2025-03-07 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:29:24] Production.INFO: ==30417== Releasing lock... [2025-03-07 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:29:24] Production.INFO: 37 MB #Memory Used# [2025-03-07 09:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:30:07 [end_date_ymd] => 2025-03-07 09:30:07 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:30:07' and `end` < '2025-03-07 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-03-07 09:30:20] Production.INFO: count ==1178 [2025-03-07 09:30:20] Production.ERROR: pbx CDR StartTime 2025-03-07 06:30:07 - End Time 2025-03-07 09:30:07 [2025-03-07 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626909', 'tblTempUsageDetail_20' ) start [2025-03-07 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626909', 'tblTempUsageDetail_20' ) end [2025-03-07 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626909', 'tblTempVendorCDR_20' ) start [2025-03-07 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626909', 'tblTempVendorCDR_20' ) end [2025-03-07 09:30:20] Production.INFO: ProcessCDR(1,14626909,1,1,2) [2025-03-07 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626909', 'tblTempUsageDetail_20' ) start [2025-03-07 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626909', 'tblTempUsageDetail_20' ) end [2025-03-07 09:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:30:26] Production.INFO: ==30498== Releasing lock... [2025-03-07 09:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:30:26] Production.INFO: 37.25 MB #Memory Used# [2025-03-07 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:31:06 [end_date_ymd] => 2025-03-07 09:31:06 [RateCDR] => 1 ) [2025-03-07 09: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-03-07 06:31:06' and `end` < '2025-03-07 09: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-03-07 09:31:18] Production.INFO: count ==1244 [2025-03-07 09:31:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:31:06 - End Time 2025-03-07 09:31:06 [2025-03-07 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626914', 'tblTempUsageDetail_20' ) start [2025-03-07 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626914', 'tblTempUsageDetail_20' ) end [2025-03-07 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626914', 'tblTempVendorCDR_20' ) start [2025-03-07 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626914', 'tblTempVendorCDR_20' ) end [2025-03-07 09:31:18] Production.INFO: ProcessCDR(1,14626914,1,1,2) [2025-03-07 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626914', 'tblTempUsageDetail_20' ) start [2025-03-07 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626914', 'tblTempUsageDetail_20' ) end [2025-03-07 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:31:24] Production.INFO: ==30574== Releasing lock... [2025-03-07 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:31:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-07 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:32:05 [end_date_ymd] => 2025-03-07 09:32:05 [RateCDR] => 1 ) [2025-03-07 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:32:05' and `end` < '2025-03-07 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:32:18] Production.INFO: count ==1255 [2025-03-07 09:32:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:32:05 - End Time 2025-03-07 09:32:05 [2025-03-07 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626919', 'tblTempUsageDetail_20' ) start [2025-03-07 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626919', 'tblTempUsageDetail_20' ) end [2025-03-07 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626919', 'tblTempVendorCDR_20' ) start [2025-03-07 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626919', 'tblTempVendorCDR_20' ) end [2025-03-07 09:32:18] Production.INFO: ProcessCDR(1,14626919,1,1,2) [2025-03-07 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626919', 'tblTempUsageDetail_20' ) start [2025-03-07 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626919', 'tblTempUsageDetail_20' ) end [2025-03-07 09:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:32:23] Production.INFO: ==30647== Releasing lock... [2025-03-07 09:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:32:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-07 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:33:05 [end_date_ymd] => 2025-03-07 09:33:05 [RateCDR] => 1 ) [2025-03-07 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:33:05' and `end` < '2025-03-07 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:33:17] Production.INFO: count ==1259 [2025-03-07 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:33:05 - End Time 2025-03-07 09:33:05 [2025-03-07 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626924', 'tblTempUsageDetail_20' ) start [2025-03-07 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626924', 'tblTempUsageDetail_20' ) end [2025-03-07 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626924', 'tblTempVendorCDR_20' ) start [2025-03-07 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626924', 'tblTempVendorCDR_20' ) end [2025-03-07 09:33:18] Production.INFO: ProcessCDR(1,14626924,1,1,2) [2025-03-07 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626924', 'tblTempUsageDetail_20' ) start [2025-03-07 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626924', 'tblTempUsageDetail_20' ) end [2025-03-07 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:33:23] Production.INFO: ==30759== Releasing lock... [2025-03-07 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:33:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-07 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:34:06 [end_date_ymd] => 2025-03-07 09:34:06 [RateCDR] => 1 ) [2025-03-07 09: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-03-07 06:34:06' and `end` < '2025-03-07 09: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-03-07 09:34:19] Production.INFO: count ==1265 [2025-03-07 09:34:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:34:06 - End Time 2025-03-07 09:34:06 [2025-03-07 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626929', 'tblTempUsageDetail_20' ) start [2025-03-07 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626929', 'tblTempUsageDetail_20' ) end [2025-03-07 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626929', 'tblTempVendorCDR_20' ) start [2025-03-07 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626929', 'tblTempVendorCDR_20' ) end [2025-03-07 09:34:19] Production.INFO: ProcessCDR(1,14626929,1,1,2) [2025-03-07 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626929', 'tblTempUsageDetail_20' ) start [2025-03-07 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626929', 'tblTempUsageDetail_20' ) end [2025-03-07 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:34:24] Production.INFO: ==30836== Releasing lock... [2025-03-07 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:34:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-07 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:35:05 [end_date_ymd] => 2025-03-07 09:35:05 [RateCDR] => 1 ) [2025-03-07 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:35:05' and `end` < '2025-03-07 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:35:18] Production.INFO: count ==1276 [2025-03-07 09:35:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:35:05 - End Time 2025-03-07 09:35:05 [2025-03-07 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626934', 'tblTempUsageDetail_20' ) start [2025-03-07 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626934', 'tblTempUsageDetail_20' ) end [2025-03-07 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626934', 'tblTempVendorCDR_20' ) start [2025-03-07 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626934', 'tblTempVendorCDR_20' ) end [2025-03-07 09:35:18] Production.INFO: ProcessCDR(1,14626934,1,1,2) [2025-03-07 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626934', 'tblTempUsageDetail_20' ) start [2025-03-07 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626934', 'tblTempUsageDetail_20' ) end [2025-03-07 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:35:24] Production.INFO: ==30907== Releasing lock... [2025-03-07 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:35:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-07 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:36:06 [end_date_ymd] => 2025-03-07 09:36:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:36:06' and `end` < '2025-03-07 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-03-07 09:36:19] Production.INFO: count ==1290 [2025-03-07 09:36:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:36:06 - End Time 2025-03-07 09:36:06 [2025-03-07 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626939', 'tblTempUsageDetail_20' ) start [2025-03-07 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626939', 'tblTempUsageDetail_20' ) end [2025-03-07 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626939', 'tblTempVendorCDR_20' ) start [2025-03-07 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626939', 'tblTempVendorCDR_20' ) end [2025-03-07 09:36:19] Production.INFO: ProcessCDR(1,14626939,1,1,2) [2025-03-07 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626939', 'tblTempUsageDetail_20' ) start [2025-03-07 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626939', 'tblTempUsageDetail_20' ) end [2025-03-07 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:36:25] Production.INFO: ==30978== Releasing lock... [2025-03-07 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:36:25] Production.INFO: 37.5 MB #Memory Used# [2025-03-07 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:37:06 [end_date_ymd] => 2025-03-07 09:37:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:37:06' and `end` < '2025-03-07 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-03-07 09:37:18] Production.INFO: count ==1316 [2025-03-07 09:37:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:37:06 - End Time 2025-03-07 09:37:06 [2025-03-07 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626944', 'tblTempUsageDetail_20' ) start [2025-03-07 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626944', 'tblTempUsageDetail_20' ) end [2025-03-07 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626944', 'tblTempVendorCDR_20' ) start [2025-03-07 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626944', 'tblTempVendorCDR_20' ) end [2025-03-07 09:37:19] Production.INFO: ProcessCDR(1,14626944,1,1,2) [2025-03-07 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626944', 'tblTempUsageDetail_20' ) start [2025-03-07 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626944', 'tblTempUsageDetail_20' ) end [2025-03-07 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:37:24] Production.INFO: ==31054== Releasing lock... [2025-03-07 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:37:24] Production.INFO: 38 MB #Memory Used# [2025-03-07 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:38:06 [end_date_ymd] => 2025-03-07 09:38:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:38:06' and `end` < '2025-03-07 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-03-07 09:38:19] Production.INFO: count ==1324 [2025-03-07 09:38:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:38:06 - End Time 2025-03-07 09:38:06 [2025-03-07 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626949', 'tblTempUsageDetail_20' ) start [2025-03-07 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626949', 'tblTempUsageDetail_20' ) end [2025-03-07 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626949', 'tblTempVendorCDR_20' ) start [2025-03-07 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626949', 'tblTempVendorCDR_20' ) end [2025-03-07 09:38:19] Production.INFO: ProcessCDR(1,14626949,1,1,2) [2025-03-07 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626949', 'tblTempUsageDetail_20' ) start [2025-03-07 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626949', 'tblTempUsageDetail_20' ) end [2025-03-07 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:38:25] Production.INFO: ==31134== Releasing lock... [2025-03-07 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:38:25] Production.INFO: 38 MB #Memory Used# [2025-03-07 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:39:06 [end_date_ymd] => 2025-03-07 09:39:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:39:06' and `end` < '2025-03-07 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-03-07 09:39:18] Production.INFO: count ==1347 [2025-03-07 09:39:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:39:06 - End Time 2025-03-07 09:39:06 [2025-03-07 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626954', 'tblTempUsageDetail_20' ) start [2025-03-07 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626954', 'tblTempUsageDetail_20' ) end [2025-03-07 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626954', 'tblTempVendorCDR_20' ) start [2025-03-07 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626954', 'tblTempVendorCDR_20' ) end [2025-03-07 09:39:18] Production.INFO: ProcessCDR(1,14626954,1,1,2) [2025-03-07 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626954', 'tblTempUsageDetail_20' ) start [2025-03-07 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626954', 'tblTempUsageDetail_20' ) end [2025-03-07 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:39:24] Production.INFO: ==31210== Releasing lock... [2025-03-07 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:39:24] Production.INFO: 38 MB #Memory Used# [2025-03-07 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:40:07 [end_date_ymd] => 2025-03-07 09:40:07 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:40:07' and `end` < '2025-03-07 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-03-07 09:40:19] Production.INFO: count ==1366 [2025-03-07 09:40:20] Production.ERROR: pbx CDR StartTime 2025-03-07 06:40:07 - End Time 2025-03-07 09:40:07 [2025-03-07 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626960', 'tblTempUsageDetail_20' ) start [2025-03-07 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626960', 'tblTempUsageDetail_20' ) end [2025-03-07 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626960', 'tblTempVendorCDR_20' ) start [2025-03-07 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626960', 'tblTempVendorCDR_20' ) end [2025-03-07 09:40:20] Production.INFO: ProcessCDR(1,14626960,1,1,2) [2025-03-07 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626960', 'tblTempUsageDetail_20' ) start [2025-03-07 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626960', 'tblTempUsageDetail_20' ) end [2025-03-07 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:40:26] Production.INFO: ==31286== Releasing lock... [2025-03-07 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:40:26] Production.INFO: 38.25 MB #Memory Used# [2025-03-07 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:41:05 [end_date_ymd] => 2025-03-07 09:41:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:41:05' and `end` < '2025-03-07 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:41:18] Production.INFO: count ==1437 [2025-03-07 09:41:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:41:05 - End Time 2025-03-07 09:41:05 [2025-03-07 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626965', 'tblTempUsageDetail_20' ) start [2025-03-07 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626965', 'tblTempUsageDetail_20' ) end [2025-03-07 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626965', 'tblTempVendorCDR_20' ) start [2025-03-07 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626965', 'tblTempVendorCDR_20' ) end [2025-03-07 09:41:19] Production.INFO: ProcessCDR(1,14626965,1,1,2) [2025-03-07 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626965', 'tblTempUsageDetail_20' ) start [2025-03-07 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626965', 'tblTempUsageDetail_20' ) end [2025-03-07 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:41:24] Production.INFO: ==31360== Releasing lock... [2025-03-07 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:41:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-07 09:42:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:42:06 [end_date_ymd] => 2025-03-07 09:42:06 [RateCDR] => 1 ) [2025-03-07 09:42: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-03-07 06:42:06' and `end` < '2025-03-07 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-03-07 09:42:19] Production.INFO: count ==1450 [2025-03-07 09:42:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:42:06 - End Time 2025-03-07 09:42:06 [2025-03-07 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626970', 'tblTempUsageDetail_20' ) start [2025-03-07 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626970', 'tblTempUsageDetail_20' ) end [2025-03-07 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626970', 'tblTempVendorCDR_20' ) start [2025-03-07 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626970', 'tblTempVendorCDR_20' ) end [2025-03-07 09:42:20] Production.INFO: ProcessCDR(1,14626970,1,1,2) [2025-03-07 09:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626970', 'tblTempUsageDetail_20' ) start [2025-03-07 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626970', 'tblTempUsageDetail_20' ) end [2025-03-07 09:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:42:25] Production.INFO: ==31430== Releasing lock... [2025-03-07 09:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:42:25] Production.INFO: 39 MB #Memory Used# [2025-03-07 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:43:06 [end_date_ymd] => 2025-03-07 09:43:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:43:06' and `end` < '2025-03-07 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-03-07 09:43:18] Production.INFO: count ==1479 [2025-03-07 09:43:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:43:06 - End Time 2025-03-07 09:43:06 [2025-03-07 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626975', 'tblTempUsageDetail_20' ) start [2025-03-07 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626975', 'tblTempUsageDetail_20' ) end [2025-03-07 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626975', 'tblTempVendorCDR_20' ) start [2025-03-07 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626975', 'tblTempVendorCDR_20' ) end [2025-03-07 09:43:19] Production.INFO: ProcessCDR(1,14626975,1,1,2) [2025-03-07 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626975', 'tblTempUsageDetail_20' ) start [2025-03-07 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626975', 'tblTempUsageDetail_20' ) end [2025-03-07 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:43:24] Production.INFO: ==31502== Releasing lock... [2025-03-07 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:43:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-07 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:44:05 [end_date_ymd] => 2025-03-07 09:44:05 [RateCDR] => 1 ) [2025-03-07 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:44:05' and `end` < '2025-03-07 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:44:17] Production.INFO: count ==1484 [2025-03-07 09:44:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:44:05 - End Time 2025-03-07 09:44:05 [2025-03-07 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626980', 'tblTempUsageDetail_20' ) start [2025-03-07 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626980', 'tblTempUsageDetail_20' ) end [2025-03-07 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626980', 'tblTempVendorCDR_20' ) start [2025-03-07 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626980', 'tblTempVendorCDR_20' ) end [2025-03-07 09:44:18] Production.INFO: ProcessCDR(1,14626980,1,1,2) [2025-03-07 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626980', 'tblTempUsageDetail_20' ) start [2025-03-07 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626980', 'tblTempUsageDetail_20' ) end [2025-03-07 09:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:44:23] Production.INFO: ==31572== Releasing lock... [2025-03-07 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:44:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-07 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:45:05 [end_date_ymd] => 2025-03-07 09:45:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:45:05' and `end` < '2025-03-07 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-03-07 09:45:18] Production.INFO: count ==1490 [2025-03-07 09:45:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:45:05 - End Time 2025-03-07 09:45:05 [2025-03-07 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626985', 'tblTempUsageDetail_20' ) start [2025-03-07 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626985', 'tblTempUsageDetail_20' ) end [2025-03-07 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626985', 'tblTempVendorCDR_20' ) start [2025-03-07 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626985', 'tblTempVendorCDR_20' ) end [2025-03-07 09:45:18] Production.INFO: ProcessCDR(1,14626985,1,1,2) [2025-03-07 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626985', 'tblTempUsageDetail_20' ) start [2025-03-07 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626985', 'tblTempUsageDetail_20' ) end [2025-03-07 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:45:24] Production.INFO: ==31644== Releasing lock... [2025-03-07 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:45:24] Production.INFO: 39 MB #Memory Used# [2025-03-07 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:46:05 [end_date_ymd] => 2025-03-07 09:46:05 [RateCDR] => 1 ) [2025-03-07 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:46:05' and `end` < '2025-03-07 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:46:18] Production.INFO: count ==1496 [2025-03-07 09:46:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:46:05 - End Time 2025-03-07 09:46:05 [2025-03-07 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626990', 'tblTempUsageDetail_20' ) start [2025-03-07 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626990', 'tblTempUsageDetail_20' ) end [2025-03-07 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626990', 'tblTempVendorCDR_20' ) start [2025-03-07 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626990', 'tblTempVendorCDR_20' ) end [2025-03-07 09:46:18] Production.INFO: ProcessCDR(1,14626990,1,1,2) [2025-03-07 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626990', 'tblTempUsageDetail_20' ) start [2025-03-07 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626990', 'tblTempUsageDetail_20' ) end [2025-03-07 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:46:24] Production.INFO: ==31718== Releasing lock... [2025-03-07 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:46:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-07 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:47:06 [end_date_ymd] => 2025-03-07 09:47:06 [RateCDR] => 1 ) [2025-03-07 09:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:47:06' and `end` < '2025-03-07 09:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:47:19] Production.INFO: count ==1519 [2025-03-07 09:47:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:47:06 - End Time 2025-03-07 09:47:06 [2025-03-07 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626995', 'tblTempUsageDetail_20' ) start [2025-03-07 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14626995', 'tblTempUsageDetail_20' ) end [2025-03-07 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626995', 'tblTempVendorCDR_20' ) start [2025-03-07 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14626995', 'tblTempVendorCDR_20' ) end [2025-03-07 09:47:19] Production.INFO: ProcessCDR(1,14626995,1,1,2) [2025-03-07 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14626995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14626995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14626995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14626995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626995', 'tblTempUsageDetail_20' ) start [2025-03-07 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14626995', 'tblTempUsageDetail_20' ) end [2025-03-07 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:47:24] Production.INFO: ==31790== Releasing lock... [2025-03-07 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:47:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-07 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:48:05 [end_date_ymd] => 2025-03-07 09:48:05 [RateCDR] => 1 ) [2025-03-07 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:48:05' and `end` < '2025-03-07 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:48:17] Production.INFO: count ==1534 [2025-03-07 09:48:18] Production.ERROR: pbx CDR StartTime 2025-03-07 06:48:05 - End Time 2025-03-07 09:48:05 [2025-03-07 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627000', 'tblTempUsageDetail_20' ) start [2025-03-07 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627000', 'tblTempUsageDetail_20' ) end [2025-03-07 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627000', 'tblTempVendorCDR_20' ) start [2025-03-07 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627000', 'tblTempVendorCDR_20' ) end [2025-03-07 09:48:18] Production.INFO: ProcessCDR(1,14627000,1,1,2) [2025-03-07 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627000', 'tblTempUsageDetail_20' ) start [2025-03-07 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627000', 'tblTempUsageDetail_20' ) end [2025-03-07 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:48:23] Production.INFO: ==31900== Releasing lock... [2025-03-07 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:48:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-07 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:49:06 [end_date_ymd] => 2025-03-07 09:49:06 [RateCDR] => 1 ) [2025-03-07 09: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-03-07 06:49:06' and `end` < '2025-03-07 09: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-03-07 09:49:18] Production.INFO: count ==1548 [2025-03-07 09:49:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:49:06 - End Time 2025-03-07 09:49:06 [2025-03-07 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627005', 'tblTempUsageDetail_20' ) start [2025-03-07 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627005', 'tblTempUsageDetail_20' ) end [2025-03-07 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627005', 'tblTempVendorCDR_20' ) start [2025-03-07 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627005', 'tblTempVendorCDR_20' ) end [2025-03-07 09:49:19] Production.INFO: ProcessCDR(1,14627005,1,1,2) [2025-03-07 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627005', 'tblTempUsageDetail_20' ) start [2025-03-07 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627005', 'tblTempUsageDetail_20' ) end [2025-03-07 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:49:24] Production.INFO: ==31973== Releasing lock... [2025-03-07 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:49:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-07 09:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:50:07 [end_date_ymd] => 2025-03-07 09:50:07 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:50:07' and `end` < '2025-03-07 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-03-07 09:50:19] Production.INFO: count ==1579 [2025-03-07 09:50:20] Production.ERROR: pbx CDR StartTime 2025-03-07 06:50:07 - End Time 2025-03-07 09:50:07 [2025-03-07 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627011', 'tblTempUsageDetail_20' ) start [2025-03-07 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627011', 'tblTempUsageDetail_20' ) end [2025-03-07 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627011', 'tblTempVendorCDR_20' ) start [2025-03-07 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627011', 'tblTempVendorCDR_20' ) end [2025-03-07 09:50:20] Production.INFO: ProcessCDR(1,14627011,1,1,2) [2025-03-07 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627011', 'tblTempUsageDetail_20' ) start [2025-03-07 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627011', 'tblTempUsageDetail_20' ) end [2025-03-07 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:50:25] Production.INFO: ==32046== Releasing lock... [2025-03-07 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:50:25] Production.INFO: 40 MB #Memory Used# [2025-03-07 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:51:05 [end_date_ymd] => 2025-03-07 09:51:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:51:05' and `end` < '2025-03-07 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-03-07 09:51:18] Production.INFO: count ==1665 [2025-03-07 09:51:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:51:05 - End Time 2025-03-07 09:51:05 [2025-03-07 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627016', 'tblTempUsageDetail_20' ) start [2025-03-07 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627016', 'tblTempUsageDetail_20' ) end [2025-03-07 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627016', 'tblTempVendorCDR_20' ) start [2025-03-07 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627016', 'tblTempVendorCDR_20' ) end [2025-03-07 09:51:19] Production.INFO: ProcessCDR(1,14627016,1,1,2) [2025-03-07 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627016', 'tblTempUsageDetail_20' ) start [2025-03-07 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627016', 'tblTempUsageDetail_20' ) end [2025-03-07 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:51:24] Production.INFO: ==32125== Releasing lock... [2025-03-07 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:51:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-07 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:52:06 [end_date_ymd] => 2025-03-07 09:52:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:52:06' and `end` < '2025-03-07 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-03-07 09:52:19] Production.INFO: count ==1675 [2025-03-07 09:52:20] Production.ERROR: pbx CDR StartTime 2025-03-07 06:52:06 - End Time 2025-03-07 09:52:06 [2025-03-07 09:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627021', 'tblTempUsageDetail_20' ) start [2025-03-07 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627021', 'tblTempUsageDetail_20' ) end [2025-03-07 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627021', 'tblTempVendorCDR_20' ) start [2025-03-07 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627021', 'tblTempVendorCDR_20' ) end [2025-03-07 09:52:20] Production.INFO: ProcessCDR(1,14627021,1,1,2) [2025-03-07 09:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627021', 'tblTempUsageDetail_20' ) start [2025-03-07 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627021', 'tblTempUsageDetail_20' ) end [2025-03-07 09:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:52:25] Production.INFO: ==32195== Releasing lock... [2025-03-07 09:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:52:25] Production.INFO: 40.5 MB #Memory Used# [2025-03-07 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:53:06 [end_date_ymd] => 2025-03-07 09:53:06 [RateCDR] => 1 ) [2025-03-07 09: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-03-07 06:53:06' and `end` < '2025-03-07 09: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-03-07 09:53:18] Production.INFO: count ==1735 [2025-03-07 09:53:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:53:06 - End Time 2025-03-07 09:53:06 [2025-03-07 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627026', 'tblTempUsageDetail_20' ) start [2025-03-07 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627026', 'tblTempUsageDetail_20' ) end [2025-03-07 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627026', 'tblTempVendorCDR_20' ) start [2025-03-07 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627026', 'tblTempVendorCDR_20' ) end [2025-03-07 09:53:19] Production.INFO: ProcessCDR(1,14627026,1,1,2) [2025-03-07 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627026', 'tblTempUsageDetail_20' ) start [2025-03-07 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627026', 'tblTempUsageDetail_20' ) end [2025-03-07 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:53:25] Production.INFO: ==32277== Releasing lock... [2025-03-07 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:53:25] Production.INFO: 41 MB #Memory Used# [2025-03-07 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:54:05 [end_date_ymd] => 2025-03-07 09:54:05 [RateCDR] => 1 ) [2025-03-07 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:54:05' and `end` < '2025-03-07 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 09:54:18] Production.INFO: count ==1761 [2025-03-07 09:54:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:54:05 - End Time 2025-03-07 09:54:05 [2025-03-07 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627031', 'tblTempUsageDetail_20' ) start [2025-03-07 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627031', 'tblTempUsageDetail_20' ) end [2025-03-07 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627031', 'tblTempVendorCDR_20' ) start [2025-03-07 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627031', 'tblTempVendorCDR_20' ) end [2025-03-07 09:54:19] Production.INFO: ProcessCDR(1,14627031,1,1,2) [2025-03-07 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627031', 'tblTempUsageDetail_20' ) start [2025-03-07 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627031', 'tblTempUsageDetail_20' ) end [2025-03-07 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:54:24] Production.INFO: ==32349== Releasing lock... [2025-03-07 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:54:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-07 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:55:06 [end_date_ymd] => 2025-03-07 09:55:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:55:06' and `end` < '2025-03-07 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-03-07 09:55:18] Production.INFO: count ==1769 [2025-03-07 09:55:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:55:06 - End Time 2025-03-07 09:55:06 [2025-03-07 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627036', 'tblTempUsageDetail_20' ) start [2025-03-07 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627036', 'tblTempUsageDetail_20' ) end [2025-03-07 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627036', 'tblTempVendorCDR_20' ) start [2025-03-07 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627036', 'tblTempVendorCDR_20' ) end [2025-03-07 09:55:19] Production.INFO: ProcessCDR(1,14627036,1,1,2) [2025-03-07 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627036', 'tblTempUsageDetail_20' ) start [2025-03-07 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627036', 'tblTempUsageDetail_20' ) end [2025-03-07 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:55:24] Production.INFO: ==32426== Releasing lock... [2025-03-07 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:55:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-07 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:56:06 [end_date_ymd] => 2025-03-07 09:56:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:56:06' and `end` < '2025-03-07 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-03-07 09:56:18] Production.INFO: count ==1789 [2025-03-07 09:56:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:56:06 - End Time 2025-03-07 09:56:06 [2025-03-07 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627041', 'tblTempUsageDetail_20' ) start [2025-03-07 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627041', 'tblTempUsageDetail_20' ) end [2025-03-07 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627041', 'tblTempVendorCDR_20' ) start [2025-03-07 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627041', 'tblTempVendorCDR_20' ) end [2025-03-07 09:56:19] Production.INFO: ProcessCDR(1,14627041,1,1,2) [2025-03-07 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627041', 'tblTempUsageDetail_20' ) start [2025-03-07 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627041', 'tblTempUsageDetail_20' ) end [2025-03-07 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:56:24] Production.INFO: ==32507== Releasing lock... [2025-03-07 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:56:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-07 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:57:06 [end_date_ymd] => 2025-03-07 09:57:06 [RateCDR] => 1 ) [2025-03-07 09:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 06:57:06' and `end` < '2025-03-07 09: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-03-07 09:57:18] Production.INFO: count ==1806 [2025-03-07 09:57:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:57:06 - End Time 2025-03-07 09:57:06 [2025-03-07 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627046', 'tblTempUsageDetail_20' ) start [2025-03-07 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627046', 'tblTempUsageDetail_20' ) end [2025-03-07 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627046', 'tblTempVendorCDR_20' ) start [2025-03-07 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627046', 'tblTempVendorCDR_20' ) end [2025-03-07 09:57:19] Production.INFO: ProcessCDR(1,14627046,1,1,2) [2025-03-07 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627046', 'tblTempUsageDetail_20' ) start [2025-03-07 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627046', 'tblTempUsageDetail_20' ) end [2025-03-07 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:57:24] Production.INFO: ==32588== Releasing lock... [2025-03-07 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:57:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-07 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:58:06 [end_date_ymd] => 2025-03-07 09:58:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 06:58:06' and `end` < '2025-03-07 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-03-07 09:58:18] Production.INFO: count ==1811 [2025-03-07 09:58:19] Production.ERROR: pbx CDR StartTime 2025-03-07 06:58:06 - End Time 2025-03-07 09:58:06 [2025-03-07 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627051', 'tblTempUsageDetail_20' ) start [2025-03-07 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627051', 'tblTempUsageDetail_20' ) end [2025-03-07 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627051', 'tblTempVendorCDR_20' ) start [2025-03-07 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627051', 'tblTempVendorCDR_20' ) end [2025-03-07 09:58:19] Production.INFO: ProcessCDR(1,14627051,1,1,2) [2025-03-07 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627051', 'tblTempUsageDetail_20' ) start [2025-03-07 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627051', 'tblTempUsageDetail_20' ) end [2025-03-07 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:58:24] Production.INFO: ==32665== Releasing lock... [2025-03-07 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:58:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-07 09:59:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 06:59:07 [end_date_ymd] => 2025-03-07 09:59:07 [RateCDR] => 1 ) [2025-03-07 09:59: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-03-07 06:59:07' and `end` < '2025-03-07 09:59: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-03-07 09:59:19] Production.INFO: count ==1823 [2025-03-07 09:59:20] Production.ERROR: pbx CDR StartTime 2025-03-07 06:59:07 - End Time 2025-03-07 09:59:07 [2025-03-07 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627056', 'tblTempUsageDetail_20' ) start [2025-03-07 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627056', 'tblTempUsageDetail_20' ) end [2025-03-07 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627056', 'tblTempVendorCDR_20' ) start [2025-03-07 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627056', 'tblTempVendorCDR_20' ) end [2025-03-07 09:59:20] Production.INFO: ProcessCDR(1,14627056,1,1,2) [2025-03-07 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627056', 'tblTempUsageDetail_20' ) start [2025-03-07 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627056', 'tblTempUsageDetail_20' ) end [2025-03-07 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 09:59:24] Production.INFO: ==32747== Releasing lock... [2025-03-07 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 09:59:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-07 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:00:07 [end_date_ymd] => 2025-03-07 10:00:07 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:00:07' and `end` < '2025-03-07 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-03-07 10:00:19] Production.INFO: count ==1839 [2025-03-07 10:00:21] Production.ERROR: pbx CDR StartTime 2025-03-07 07:00:07 - End Time 2025-03-07 10:00:07 [2025-03-07 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627062', 'tblTempUsageDetail_20' ) start [2025-03-07 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627062', 'tblTempUsageDetail_20' ) end [2025-03-07 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627062', 'tblTempVendorCDR_20' ) start [2025-03-07 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627062', 'tblTempVendorCDR_20' ) end [2025-03-07 10:00:21] Production.INFO: ProcessCDR(1,14627062,1,1,2) [2025-03-07 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627062', 'tblTempUsageDetail_20' ) start [2025-03-07 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627062', 'tblTempUsageDetail_20' ) end [2025-03-07 10:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:00:27] Production.INFO: ==376== Releasing lock... [2025-03-07 10:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:00:27] Production.INFO: 42 MB #Memory Used# [2025-03-07 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:01:05 [end_date_ymd] => 2025-03-07 10:01:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:01:05' and `end` < '2025-03-07 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-03-07 10:01:18] Production.INFO: count ==1903 [2025-03-07 10:01:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:01:05 - End Time 2025-03-07 10:01:05 [2025-03-07 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627067', 'tblTempUsageDetail_20' ) start [2025-03-07 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627067', 'tblTempUsageDetail_20' ) end [2025-03-07 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627067', 'tblTempVendorCDR_20' ) start [2025-03-07 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627067', 'tblTempVendorCDR_20' ) end [2025-03-07 10:01:19] Production.INFO: ProcessCDR(1,14627067,1,1,2) [2025-03-07 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627067', 'tblTempUsageDetail_20' ) start [2025-03-07 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627067', 'tblTempUsageDetail_20' ) end [2025-03-07 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:01:24] Production.INFO: ==467== Releasing lock... [2025-03-07 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:01:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-07 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:02:06 [end_date_ymd] => 2025-03-07 10:02:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:02:06' and `end` < '2025-03-07 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-03-07 10:02:19] Production.INFO: count ==1915 [2025-03-07 10:02:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:02:06 - End Time 2025-03-07 10:02:06 [2025-03-07 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627072', 'tblTempUsageDetail_20' ) start [2025-03-07 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627072', 'tblTempUsageDetail_20' ) end [2025-03-07 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627072', 'tblTempVendorCDR_20' ) start [2025-03-07 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627072', 'tblTempVendorCDR_20' ) end [2025-03-07 10:02:19] Production.INFO: ProcessCDR(1,14627072,1,1,2) [2025-03-07 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627072', 'tblTempUsageDetail_20' ) start [2025-03-07 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627072', 'tblTempUsageDetail_20' ) end [2025-03-07 10:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:02:23] Production.INFO: ==545== Releasing lock... [2025-03-07 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:02:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-07 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:03:05 [end_date_ymd] => 2025-03-07 10:03:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:03:05' and `end` < '2025-03-07 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-03-07 10:03:18] Production.INFO: count ==1941 [2025-03-07 10:03:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:03:05 - End Time 2025-03-07 10:03:05 [2025-03-07 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627077', 'tblTempUsageDetail_20' ) start [2025-03-07 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627077', 'tblTempUsageDetail_20' ) end [2025-03-07 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627077', 'tblTempVendorCDR_20' ) start [2025-03-07 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627077', 'tblTempVendorCDR_20' ) end [2025-03-07 10:03:19] Production.INFO: ProcessCDR(1,14627077,1,1,2) [2025-03-07 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627077', 'tblTempUsageDetail_20' ) start [2025-03-07 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627077', 'tblTempUsageDetail_20' ) end [2025-03-07 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:03:24] Production.INFO: ==627== Releasing lock... [2025-03-07 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:03:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-07 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:04:05 [end_date_ymd] => 2025-03-07 10:04:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:04:05' and `end` < '2025-03-07 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:04:18] Production.INFO: count ==1976 [2025-03-07 10:04:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:04:05 - End Time 2025-03-07 10:04:05 [2025-03-07 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627082', 'tblTempUsageDetail_20' ) start [2025-03-07 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627082', 'tblTempUsageDetail_20' ) end [2025-03-07 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627082', 'tblTempVendorCDR_20' ) start [2025-03-07 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627082', 'tblTempVendorCDR_20' ) end [2025-03-07 10:04:19] Production.INFO: ProcessCDR(1,14627082,1,1,2) [2025-03-07 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627082', 'tblTempUsageDetail_20' ) start [2025-03-07 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627082', 'tblTempUsageDetail_20' ) end [2025-03-07 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:04:24] Production.INFO: ==773== Releasing lock... [2025-03-07 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:04:24] Production.INFO: 43 MB #Memory Used# [2025-03-07 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:05:05 [end_date_ymd] => 2025-03-07 10:05:05 [RateCDR] => 1 ) [2025-03-07 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:05:05' and `end` < '2025-03-07 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:05:18] Production.INFO: count ==2001 [2025-03-07 10:05:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:05:05 - End Time 2025-03-07 10:05:05 [2025-03-07 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627087', 'tblTempUsageDetail_20' ) start [2025-03-07 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627087', 'tblTempUsageDetail_20' ) end [2025-03-07 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627087', 'tblTempVendorCDR_20' ) start [2025-03-07 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627087', 'tblTempVendorCDR_20' ) end [2025-03-07 10:05:19] Production.INFO: ProcessCDR(1,14627087,1,1,2) [2025-03-07 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627087', 'tblTempUsageDetail_20' ) start [2025-03-07 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627087', 'tblTempUsageDetail_20' ) end [2025-03-07 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:05:24] Production.INFO: ==853== Releasing lock... [2025-03-07 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:05:24] Production.INFO: 43 MB #Memory Used# [2025-03-07 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:06:06 [end_date_ymd] => 2025-03-07 10:06:06 [RateCDR] => 1 ) [2025-03-07 10:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:06:06' and `end` < '2025-03-07 10:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:06:19] Production.INFO: count ==2066 [2025-03-07 10:06:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:06:06 - End Time 2025-03-07 10:06:06 [2025-03-07 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627092', 'tblTempUsageDetail_20' ) start [2025-03-07 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627092', 'tblTempUsageDetail_20' ) end [2025-03-07 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627092', 'tblTempVendorCDR_20' ) start [2025-03-07 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627092', 'tblTempVendorCDR_20' ) end [2025-03-07 10:06:19] Production.INFO: ProcessCDR(1,14627092,1,1,2) [2025-03-07 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627092', 'tblTempUsageDetail_20' ) start [2025-03-07 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627092', 'tblTempUsageDetail_20' ) end [2025-03-07 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:06:25] Production.INFO: ==932== Releasing lock... [2025-03-07 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:06:25] Production.INFO: 43.75 MB #Memory Used# [2025-03-07 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:07:05 [end_date_ymd] => 2025-03-07 10:07:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:07:05' and `end` < '2025-03-07 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-03-07 10:07:18] Production.INFO: count ==2073 [2025-03-07 10:07:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:07:05 - End Time 2025-03-07 10:07:05 [2025-03-07 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627097', 'tblTempUsageDetail_20' ) start [2025-03-07 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627097', 'tblTempUsageDetail_20' ) end [2025-03-07 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627097', 'tblTempVendorCDR_20' ) start [2025-03-07 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627097', 'tblTempVendorCDR_20' ) end [2025-03-07 10:07:19] Production.INFO: ProcessCDR(1,14627097,1,1,2) [2025-03-07 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627097', 'tblTempUsageDetail_20' ) start [2025-03-07 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627097', 'tblTempUsageDetail_20' ) end [2025-03-07 10:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:07:23] Production.INFO: ==1016== Releasing lock... [2025-03-07 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:07:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-07 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:08:06 [end_date_ymd] => 2025-03-07 10:08:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:08:06' and `end` < '2025-03-07 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-03-07 10:08:19] Production.INFO: count ==2084 [2025-03-07 10:08:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:08:06 - End Time 2025-03-07 10:08:06 [2025-03-07 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627102', 'tblTempUsageDetail_20' ) start [2025-03-07 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627102', 'tblTempUsageDetail_20' ) end [2025-03-07 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627102', 'tblTempVendorCDR_20' ) start [2025-03-07 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627102', 'tblTempVendorCDR_20' ) end [2025-03-07 10:08:20] Production.INFO: ProcessCDR(1,14627102,1,1,2) [2025-03-07 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627102', 'tblTempUsageDetail_20' ) start [2025-03-07 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627102', 'tblTempUsageDetail_20' ) end [2025-03-07 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:08:25] Production.INFO: ==1096== Releasing lock... [2025-03-07 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:08:25] Production.INFO: 43.75 MB #Memory Used# [2025-03-07 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:09:05 [end_date_ymd] => 2025-03-07 10:09:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:09:05' and `end` < '2025-03-07 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-03-07 10:09:18] Production.INFO: count ==2090 [2025-03-07 10:09:18] Production.ERROR: pbx CDR StartTime 2025-03-07 07:09:05 - End Time 2025-03-07 10:09:05 [2025-03-07 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627107', 'tblTempUsageDetail_20' ) start [2025-03-07 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627107', 'tblTempUsageDetail_20' ) end [2025-03-07 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627107', 'tblTempVendorCDR_20' ) start [2025-03-07 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627107', 'tblTempVendorCDR_20' ) end [2025-03-07 10:09:18] Production.INFO: ProcessCDR(1,14627107,1,1,2) [2025-03-07 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627107', 'tblTempUsageDetail_20' ) start [2025-03-07 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627107', 'tblTempUsageDetail_20' ) end [2025-03-07 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:09:24] Production.INFO: ==1182== Releasing lock... [2025-03-07 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:09:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-07 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:10:07 [end_date_ymd] => 2025-03-07 10:10:07 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:10:07' and `end` < '2025-03-07 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-03-07 10:10:19] Production.INFO: count ==2097 [2025-03-07 10:10:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:10:07 - End Time 2025-03-07 10:10:07 [2025-03-07 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627113', 'tblTempUsageDetail_20' ) start [2025-03-07 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627113', 'tblTempUsageDetail_20' ) end [2025-03-07 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627113', 'tblTempVendorCDR_20' ) start [2025-03-07 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627113', 'tblTempVendorCDR_20' ) end [2025-03-07 10:10:20] Production.INFO: ProcessCDR(1,14627113,1,1,2) [2025-03-07 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627113', 'tblTempUsageDetail_20' ) start [2025-03-07 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627113', 'tblTempUsageDetail_20' ) end [2025-03-07 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:10:24] Production.INFO: ==1270== Releasing lock... [2025-03-07 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:10:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-07 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:11:06 [end_date_ymd] => 2025-03-07 10:11:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:11:06' and `end` < '2025-03-07 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-03-07 10:11:19] Production.INFO: count ==2221 [2025-03-07 10:11:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:11:06 - End Time 2025-03-07 10:11:06 [2025-03-07 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627118', 'tblTempUsageDetail_20' ) start [2025-03-07 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627118', 'tblTempUsageDetail_20' ) end [2025-03-07 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627118', 'tblTempVendorCDR_20' ) start [2025-03-07 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627118', 'tblTempVendorCDR_20' ) end [2025-03-07 10:11:19] Production.INFO: ProcessCDR(1,14627118,1,1,2) [2025-03-07 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627118', 'tblTempUsageDetail_20' ) start [2025-03-07 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627118', 'tblTempUsageDetail_20' ) end [2025-03-07 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:11:25] Production.INFO: ==1348== Releasing lock... [2025-03-07 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:11:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-07 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:12:06 [end_date_ymd] => 2025-03-07 10:12:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:12:06' and `end` < '2025-03-07 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-03-07 10:12:19] Production.INFO: count ==2238 [2025-03-07 10:12:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:12:06 - End Time 2025-03-07 10:12:06 [2025-03-07 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627123', 'tblTempUsageDetail_20' ) start [2025-03-07 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627123', 'tblTempUsageDetail_20' ) end [2025-03-07 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627123', 'tblTempVendorCDR_20' ) start [2025-03-07 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627123', 'tblTempVendorCDR_20' ) end [2025-03-07 10:12:20] Production.INFO: ProcessCDR(1,14627123,1,1,2) [2025-03-07 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627123', 'tblTempUsageDetail_20' ) start [2025-03-07 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627123', 'tblTempUsageDetail_20' ) end [2025-03-07 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:12:25] Production.INFO: ==1427== Releasing lock... [2025-03-07 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:12:25] Production.INFO: 45 MB #Memory Used# [2025-03-07 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:13:05 [end_date_ymd] => 2025-03-07 10:13:05 [RateCDR] => 1 ) [2025-03-07 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:13:05' and `end` < '2025-03-07 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:13:18] Production.INFO: count ==2265 [2025-03-07 10:13:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:13:05 - End Time 2025-03-07 10:13:05 [2025-03-07 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627128', 'tblTempUsageDetail_20' ) start [2025-03-07 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627128', 'tblTempUsageDetail_20' ) end [2025-03-07 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627128', 'tblTempVendorCDR_20' ) start [2025-03-07 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627128', 'tblTempVendorCDR_20' ) end [2025-03-07 10:13:19] Production.INFO: ProcessCDR(1,14627128,1,1,2) [2025-03-07 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627128', 'tblTempUsageDetail_20' ) start [2025-03-07 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627128', 'tblTempUsageDetail_20' ) end [2025-03-07 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:13:25] Production.INFO: ==1535== Releasing lock... [2025-03-07 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:13:25] Production.INFO: 45 MB #Memory Used# [2025-03-07 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:14:06 [end_date_ymd] => 2025-03-07 10:14:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:14:06' and `end` < '2025-03-07 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-03-07 10:14:19] Production.INFO: count ==2288 [2025-03-07 10:14:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:14:06 - End Time 2025-03-07 10:14:06 [2025-03-07 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627133', 'tblTempUsageDetail_20' ) start [2025-03-07 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627133', 'tblTempUsageDetail_20' ) end [2025-03-07 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627133', 'tblTempVendorCDR_20' ) start [2025-03-07 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627133', 'tblTempVendorCDR_20' ) end [2025-03-07 10:14:20] Production.INFO: ProcessCDR(1,14627133,1,1,2) [2025-03-07 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627133', 'tblTempUsageDetail_20' ) start [2025-03-07 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627133', 'tblTempUsageDetail_20' ) end [2025-03-07 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:14:26] Production.INFO: ==1619== Releasing lock... [2025-03-07 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:14:26] Production.INFO: 45.25 MB #Memory Used# [2025-03-07 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:15:06 [end_date_ymd] => 2025-03-07 10:15:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:15:06' and `end` < '2025-03-07 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-03-07 10:15:19] Production.INFO: count ==2292 [2025-03-07 10:15:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:15:06 - End Time 2025-03-07 10:15:06 [2025-03-07 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627138', 'tblTempUsageDetail_20' ) start [2025-03-07 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627138', 'tblTempUsageDetail_20' ) end [2025-03-07 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627138', 'tblTempVendorCDR_20' ) start [2025-03-07 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627138', 'tblTempVendorCDR_20' ) end [2025-03-07 10:15:20] Production.INFO: ProcessCDR(1,14627138,1,1,2) [2025-03-07 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627138', 'tblTempUsageDetail_20' ) start [2025-03-07 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627138', 'tblTempUsageDetail_20' ) end [2025-03-07 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:15:25] Production.INFO: ==1699== Releasing lock... [2025-03-07 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:15:25] Production.INFO: 45.25 MB #Memory Used# [2025-03-07 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:16:06 [end_date_ymd] => 2025-03-07 10:16:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:16:06' and `end` < '2025-03-07 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-03-07 10:16:19] Production.INFO: count ==2314 [2025-03-07 10:16:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:16:06 - End Time 2025-03-07 10:16:06 [2025-03-07 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627143', 'tblTempUsageDetail_20' ) start [2025-03-07 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627143', 'tblTempUsageDetail_20' ) end [2025-03-07 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627143', 'tblTempVendorCDR_20' ) start [2025-03-07 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627143', 'tblTempVendorCDR_20' ) end [2025-03-07 10:16:20] Production.INFO: ProcessCDR(1,14627143,1,1,2) [2025-03-07 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627143', 'tblTempUsageDetail_20' ) start [2025-03-07 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627143', 'tblTempUsageDetail_20' ) end [2025-03-07 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:16:25] Production.INFO: ==1775== Releasing lock... [2025-03-07 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:16:25] Production.INFO: 45.75 MB #Memory Used# [2025-03-07 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:17:06 [end_date_ymd] => 2025-03-07 10:17:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:17:06' and `end` < '2025-03-07 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-03-07 10:17:18] Production.INFO: count ==2345 [2025-03-07 10:17:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:17:06 - End Time 2025-03-07 10:17:06 [2025-03-07 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627148', 'tblTempUsageDetail_20' ) start [2025-03-07 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627148', 'tblTempUsageDetail_20' ) end [2025-03-07 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627148', 'tblTempVendorCDR_20' ) start [2025-03-07 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627148', 'tblTempVendorCDR_20' ) end [2025-03-07 10:17:19] Production.INFO: ProcessCDR(1,14627148,1,1,2) [2025-03-07 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627148', 'tblTempUsageDetail_20' ) start [2025-03-07 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627148', 'tblTempUsageDetail_20' ) end [2025-03-07 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:17:25] Production.INFO: ==1852== Releasing lock... [2025-03-07 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:17:25] Production.INFO: 45.75 MB #Memory Used# [2025-03-07 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:18:06 [end_date_ymd] => 2025-03-07 10:18:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:18:06' and `end` < '2025-03-07 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-03-07 10:18:18] Production.INFO: count ==2374 [2025-03-07 10:18:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:18:06 - End Time 2025-03-07 10:18:06 [2025-03-07 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627153', 'tblTempUsageDetail_20' ) start [2025-03-07 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627153', 'tblTempUsageDetail_20' ) end [2025-03-07 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627153', 'tblTempVendorCDR_20' ) start [2025-03-07 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627153', 'tblTempVendorCDR_20' ) end [2025-03-07 10:18:19] Production.INFO: ProcessCDR(1,14627153,1,1,2) [2025-03-07 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627153', 'tblTempUsageDetail_20' ) start [2025-03-07 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627153', 'tblTempUsageDetail_20' ) end [2025-03-07 10:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:18:23] Production.INFO: ==1927== Releasing lock... [2025-03-07 10:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:18:23] Production.INFO: 46 MB #Memory Used# [2025-03-07 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:19:06 [end_date_ymd] => 2025-03-07 10:19:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:19:06' and `end` < '2025-03-07 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-03-07 10:19:18] Production.INFO: count ==2381 [2025-03-07 10:19:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:19:06 - End Time 2025-03-07 10:19:06 [2025-03-07 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627158', 'tblTempUsageDetail_20' ) start [2025-03-07 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627158', 'tblTempUsageDetail_20' ) end [2025-03-07 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627158', 'tblTempVendorCDR_20' ) start [2025-03-07 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627158', 'tblTempVendorCDR_20' ) end [2025-03-07 10:19:20] Production.INFO: ProcessCDR(1,14627158,1,1,2) [2025-03-07 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627158', 'tblTempUsageDetail_20' ) start [2025-03-07 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627158', 'tblTempUsageDetail_20' ) end [2025-03-07 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:19:25] Production.INFO: ==2042== Releasing lock... [2025-03-07 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:19:25] Production.INFO: 46 MB #Memory Used# [2025-03-07 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:20:07 [end_date_ymd] => 2025-03-07 10:20:07 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:20:07' and `end` < '2025-03-07 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-03-07 10:20:19] Production.INFO: count ==2397 [2025-03-07 10:20:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:20:07 - End Time 2025-03-07 10:20:07 [2025-03-07 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627164', 'tblTempUsageDetail_20' ) start [2025-03-07 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627164', 'tblTempUsageDetail_20' ) end [2025-03-07 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627164', 'tblTempVendorCDR_20' ) start [2025-03-07 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627164', 'tblTempVendorCDR_20' ) end [2025-03-07 10:20:21] Production.INFO: ProcessCDR(1,14627164,1,1,2) [2025-03-07 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627164', 'tblTempUsageDetail_20' ) start [2025-03-07 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627164', 'tblTempUsageDetail_20' ) end [2025-03-07 10:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:20:26] Production.INFO: ==2122== Releasing lock... [2025-03-07 10:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:20:26] Production.INFO: 46 MB #Memory Used# [2025-03-07 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:21:05 [end_date_ymd] => 2025-03-07 10:21:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:21:05' and `end` < '2025-03-07 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-03-07 10:21:18] Production.INFO: count ==2503 [2025-03-07 10:21:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:21:05 - End Time 2025-03-07 10:21:05 [2025-03-07 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627169', 'tblTempUsageDetail_20' ) start [2025-03-07 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627169', 'tblTempUsageDetail_20' ) end [2025-03-07 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627169', 'tblTempVendorCDR_20' ) start [2025-03-07 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627169', 'tblTempVendorCDR_20' ) end [2025-03-07 10:21:19] Production.INFO: ProcessCDR(1,14627169,1,1,2) [2025-03-07 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627169', 'tblTempUsageDetail_20' ) start [2025-03-07 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627169', 'tblTempUsageDetail_20' ) end [2025-03-07 10:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:21:24] Production.INFO: ==2205== Releasing lock... [2025-03-07 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:21:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-07 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:22:06 [end_date_ymd] => 2025-03-07 10:22:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:22:06' and `end` < '2025-03-07 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-03-07 10:22:18] Production.INFO: count ==2515 [2025-03-07 10:22:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:22:06 - End Time 2025-03-07 10:22:06 [2025-03-07 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627174', 'tblTempUsageDetail_20' ) start [2025-03-07 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627174', 'tblTempUsageDetail_20' ) end [2025-03-07 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627174', 'tblTempVendorCDR_20' ) start [2025-03-07 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627174', 'tblTempVendorCDR_20' ) end [2025-03-07 10:22:20] Production.INFO: ProcessCDR(1,14627174,1,1,2) [2025-03-07 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627174', 'tblTempUsageDetail_20' ) start [2025-03-07 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627174', 'tblTempUsageDetail_20' ) end [2025-03-07 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:22:25] Production.INFO: ==2279== Releasing lock... [2025-03-07 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:22:25] Production.INFO: 47 MB #Memory Used# [2025-03-07 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:23:06 [end_date_ymd] => 2025-03-07 10:23:06 [RateCDR] => 1 ) [2025-03-07 10:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:23:06' and `end` < '2025-03-07 10:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:23:18] Production.INFO: count ==2530 [2025-03-07 10:23:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:23:06 - End Time 2025-03-07 10:23:06 [2025-03-07 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627179', 'tblTempUsageDetail_20' ) start [2025-03-07 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627179', 'tblTempUsageDetail_20' ) end [2025-03-07 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627179', 'tblTempVendorCDR_20' ) start [2025-03-07 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627179', 'tblTempVendorCDR_20' ) end [2025-03-07 10:23:20] Production.INFO: ProcessCDR(1,14627179,1,1,2) [2025-03-07 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627179', 'tblTempUsageDetail_20' ) start [2025-03-07 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627179', 'tblTempUsageDetail_20' ) end [2025-03-07 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:23:25] Production.INFO: ==2350== Releasing lock... [2025-03-07 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:23:25] Production.INFO: 47 MB #Memory Used# [2025-03-07 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:24:05 [end_date_ymd] => 2025-03-07 10:24:05 [RateCDR] => 1 ) [2025-03-07 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:24:05' and `end` < '2025-03-07 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:24:18] Production.INFO: count ==2535 [2025-03-07 10:24:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:24:05 - End Time 2025-03-07 10:24:05 [2025-03-07 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627184', 'tblTempUsageDetail_20' ) start [2025-03-07 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627184', 'tblTempUsageDetail_20' ) end [2025-03-07 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627184', 'tblTempVendorCDR_20' ) start [2025-03-07 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627184', 'tblTempVendorCDR_20' ) end [2025-03-07 10:24:19] Production.INFO: ProcessCDR(1,14627184,1,1,2) [2025-03-07 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627184', 'tblTempUsageDetail_20' ) start [2025-03-07 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627184', 'tblTempUsageDetail_20' ) end [2025-03-07 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:24:24] Production.INFO: ==2422== Releasing lock... [2025-03-07 10:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:24:24] Production.INFO: 47 MB #Memory Used# [2025-03-07 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:25:06 [end_date_ymd] => 2025-03-07 10:25:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:25:06' and `end` < '2025-03-07 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-03-07 10:25:18] Production.INFO: count ==2544 [2025-03-07 10:25:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:25:06 - End Time 2025-03-07 10:25:06 [2025-03-07 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627189', 'tblTempUsageDetail_20' ) start [2025-03-07 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627189', 'tblTempUsageDetail_20' ) end [2025-03-07 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627189', 'tblTempVendorCDR_20' ) start [2025-03-07 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627189', 'tblTempVendorCDR_20' ) end [2025-03-07 10:25:20] Production.INFO: ProcessCDR(1,14627189,1,1,2) [2025-03-07 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627189', 'tblTempUsageDetail_20' ) start [2025-03-07 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627189', 'tblTempUsageDetail_20' ) end [2025-03-07 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:25:25] Production.INFO: ==2502== Releasing lock... [2025-03-07 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:25:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-07 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:26:05 [end_date_ymd] => 2025-03-07 10:26:05 [RateCDR] => 1 ) [2025-03-07 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:26:05' and `end` < '2025-03-07 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:26:18] Production.INFO: count ==2554 [2025-03-07 10:26:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:26:05 - End Time 2025-03-07 10:26:05 [2025-03-07 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627194', 'tblTempUsageDetail_20' ) start [2025-03-07 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627194', 'tblTempUsageDetail_20' ) end [2025-03-07 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627194', 'tblTempVendorCDR_20' ) start [2025-03-07 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627194', 'tblTempVendorCDR_20' ) end [2025-03-07 10:26:19] Production.INFO: ProcessCDR(1,14627194,1,1,2) [2025-03-07 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627194', 'tblTempUsageDetail_20' ) start [2025-03-07 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627194', 'tblTempUsageDetail_20' ) end [2025-03-07 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:26:25] Production.INFO: ==2577== Releasing lock... [2025-03-07 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:26:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-07 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:27:05 [end_date_ymd] => 2025-03-07 10:27:05 [RateCDR] => 1 ) [2025-03-07 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:27:05' and `end` < '2025-03-07 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:27:18] Production.INFO: count ==2569 [2025-03-07 10:27:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:27:05 - End Time 2025-03-07 10:27:05 [2025-03-07 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627199', 'tblTempUsageDetail_20' ) start [2025-03-07 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627199', 'tblTempUsageDetail_20' ) end [2025-03-07 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627199', 'tblTempVendorCDR_20' ) start [2025-03-07 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627199', 'tblTempVendorCDR_20' ) end [2025-03-07 10:27:19] Production.INFO: ProcessCDR(1,14627199,1,1,2) [2025-03-07 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627199', 'tblTempUsageDetail_20' ) start [2025-03-07 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627199', 'tblTempUsageDetail_20' ) end [2025-03-07 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:27:25] Production.INFO: ==2655== Releasing lock... [2025-03-07 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:27:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-07 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:28:05 [end_date_ymd] => 2025-03-07 10:28:05 [RateCDR] => 1 ) [2025-03-07 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:28:05' and `end` < '2025-03-07 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:28:18] Production.INFO: count ==2575 [2025-03-07 10:28:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:28:05 - End Time 2025-03-07 10:28:05 [2025-03-07 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627204', 'tblTempUsageDetail_20' ) start [2025-03-07 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627204', 'tblTempUsageDetail_20' ) end [2025-03-07 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627204', 'tblTempVendorCDR_20' ) start [2025-03-07 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627204', 'tblTempVendorCDR_20' ) end [2025-03-07 10:28:19] Production.INFO: ProcessCDR(1,14627204,1,1,2) [2025-03-07 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627204', 'tblTempUsageDetail_20' ) start [2025-03-07 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627204', 'tblTempUsageDetail_20' ) end [2025-03-07 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:28:25] Production.INFO: ==2726== Releasing lock... [2025-03-07 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:28:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-07 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:29:06 [end_date_ymd] => 2025-03-07 10:29:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:29:06' and `end` < '2025-03-07 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-03-07 10:29:18] Production.INFO: count ==2587 [2025-03-07 10:29:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:29:06 - End Time 2025-03-07 10:29:06 [2025-03-07 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627209', 'tblTempUsageDetail_20' ) start [2025-03-07 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627209', 'tblTempUsageDetail_20' ) end [2025-03-07 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627209', 'tblTempVendorCDR_20' ) start [2025-03-07 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627209', 'tblTempVendorCDR_20' ) end [2025-03-07 10:29:19] Production.INFO: ProcessCDR(1,14627209,1,1,2) [2025-03-07 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627209', 'tblTempUsageDetail_20' ) start [2025-03-07 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627209', 'tblTempUsageDetail_20' ) end [2025-03-07 10:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:29:24] Production.INFO: ==2806== Releasing lock... [2025-03-07 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:29:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-07 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:30:06 [end_date_ymd] => 2025-03-07 10:30:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:30:06' and `end` < '2025-03-07 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-03-07 10:30:19] Production.INFO: count ==2605 [2025-03-07 10:30:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:30:06 - End Time 2025-03-07 10:30:06 [2025-03-07 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627215', 'tblTempUsageDetail_20' ) start [2025-03-07 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627215', 'tblTempUsageDetail_20' ) end [2025-03-07 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627215', 'tblTempVendorCDR_20' ) start [2025-03-07 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627215', 'tblTempVendorCDR_20' ) end [2025-03-07 10:30:20] Production.INFO: ProcessCDR(1,14627215,1,1,2) [2025-03-07 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627215', 'tblTempUsageDetail_20' ) start [2025-03-07 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627215', 'tblTempUsageDetail_20' ) end [2025-03-07 10:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:30:26] Production.INFO: ==2881== Releasing lock... [2025-03-07 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:30:26] Production.INFO: 47.5 MB #Memory Used# [2025-03-07 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:31:05 [end_date_ymd] => 2025-03-07 10:31:05 [RateCDR] => 1 ) [2025-03-07 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:31:05' and `end` < '2025-03-07 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:31:18] Production.INFO: count ==2698 [2025-03-07 10:31:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:31:05 - End Time 2025-03-07 10:31:05 [2025-03-07 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627220', 'tblTempUsageDetail_20' ) start [2025-03-07 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627220', 'tblTempUsageDetail_20' ) end [2025-03-07 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627220', 'tblTempVendorCDR_20' ) start [2025-03-07 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627220', 'tblTempVendorCDR_20' ) end [2025-03-07 10:31:19] Production.INFO: ProcessCDR(1,14627220,1,1,2) [2025-03-07 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627220', 'tblTempUsageDetail_20' ) start [2025-03-07 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627220', 'tblTempUsageDetail_20' ) end [2025-03-07 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:31:25] Production.INFO: ==2964== Releasing lock... [2025-03-07 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:31:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-07 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:32:06 [end_date_ymd] => 2025-03-07 10:32:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:32:06' and `end` < '2025-03-07 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-03-07 10:32:19] Production.INFO: count ==2717 [2025-03-07 10:32:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:32:06 - End Time 2025-03-07 10:32:06 [2025-03-07 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627225', 'tblTempUsageDetail_20' ) start [2025-03-07 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627225', 'tblTempUsageDetail_20' ) end [2025-03-07 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627225', 'tblTempVendorCDR_20' ) start [2025-03-07 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627225', 'tblTempVendorCDR_20' ) end [2025-03-07 10:32:20] Production.INFO: ProcessCDR(1,14627225,1,1,2) [2025-03-07 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627225', 'tblTempUsageDetail_20' ) start [2025-03-07 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627225', 'tblTempUsageDetail_20' ) end [2025-03-07 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:32:25] Production.INFO: ==3040== Releasing lock... [2025-03-07 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:32:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-07 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:33:06 [end_date_ymd] => 2025-03-07 10:33:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:33:06' and `end` < '2025-03-07 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-03-07 10:33:18] Production.INFO: count ==2729 [2025-03-07 10:33:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:33:06 - End Time 2025-03-07 10:33:06 [2025-03-07 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627230', 'tblTempUsageDetail_20' ) start [2025-03-07 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627230', 'tblTempUsageDetail_20' ) end [2025-03-07 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627230', 'tblTempVendorCDR_20' ) start [2025-03-07 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627230', 'tblTempVendorCDR_20' ) end [2025-03-07 10:33:20] Production.INFO: ProcessCDR(1,14627230,1,1,2) [2025-03-07 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627230', 'tblTempUsageDetail_20' ) start [2025-03-07 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627230', 'tblTempUsageDetail_20' ) end [2025-03-07 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:33:25] Production.INFO: ==3118== Releasing lock... [2025-03-07 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:33:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-07 10:34:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:34:07 [end_date_ymd] => 2025-03-07 10:34:07 [RateCDR] => 1 ) [2025-03-07 10: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-03-07 07:34:07' and `end` < '2025-03-07 10: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-03-07 10:34:19] Production.INFO: count ==2730 [2025-03-07 10:34:21] Production.ERROR: pbx CDR StartTime 2025-03-07 07:34:07 - End Time 2025-03-07 10:34:07 [2025-03-07 10:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627235', 'tblTempUsageDetail_20' ) start [2025-03-07 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627235', 'tblTempUsageDetail_20' ) end [2025-03-07 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627235', 'tblTempVendorCDR_20' ) start [2025-03-07 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627235', 'tblTempVendorCDR_20' ) end [2025-03-07 10:34:21] Production.INFO: ProcessCDR(1,14627235,1,1,2) [2025-03-07 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627235', 'tblTempUsageDetail_20' ) start [2025-03-07 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627235', 'tblTempUsageDetail_20' ) end [2025-03-07 10:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:34:26] Production.INFO: ==3229== Releasing lock... [2025-03-07 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:34:26] Production.INFO: 48.5 MB #Memory Used# [2025-03-07 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:35:06 [end_date_ymd] => 2025-03-07 10:35:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:35:06' and `end` < '2025-03-07 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-03-07 10:35:19] Production.INFO: count ==2735 [2025-03-07 10:35:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:35:06 - End Time 2025-03-07 10:35:06 [2025-03-07 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627240', 'tblTempUsageDetail_20' ) start [2025-03-07 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627240', 'tblTempUsageDetail_20' ) end [2025-03-07 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627240', 'tblTempVendorCDR_20' ) start [2025-03-07 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627240', 'tblTempVendorCDR_20' ) end [2025-03-07 10:35:20] Production.INFO: ProcessCDR(1,14627240,1,1,2) [2025-03-07 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627240', 'tblTempUsageDetail_20' ) start [2025-03-07 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627240', 'tblTempUsageDetail_20' ) end [2025-03-07 10:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:35:26] Production.INFO: ==3304== Releasing lock... [2025-03-07 10:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:35:26] Production.INFO: 48.5 MB #Memory Used# [2025-03-07 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:36:06 [end_date_ymd] => 2025-03-07 10:36:06 [RateCDR] => 1 ) [2025-03-07 10:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:36:06' and `end` < '2025-03-07 10:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:36:18] Production.INFO: count ==2744 [2025-03-07 10:36:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:36:06 - End Time 2025-03-07 10:36:06 [2025-03-07 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627245', 'tblTempUsageDetail_20' ) start [2025-03-07 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627245', 'tblTempUsageDetail_20' ) end [2025-03-07 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627245', 'tblTempVendorCDR_20' ) start [2025-03-07 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627245', 'tblTempVendorCDR_20' ) end [2025-03-07 10:36:20] Production.INFO: ProcessCDR(1,14627245,1,1,2) [2025-03-07 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627245', 'tblTempUsageDetail_20' ) start [2025-03-07 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627245', 'tblTempUsageDetail_20' ) end [2025-03-07 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:36:25] Production.INFO: ==3384== Releasing lock... [2025-03-07 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:36:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-07 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:37:06 [end_date_ymd] => 2025-03-07 10:37:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:37:06' and `end` < '2025-03-07 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-03-07 10:37:19] Production.INFO: count ==2764 [2025-03-07 10:37:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:37:06 - End Time 2025-03-07 10:37:06 [2025-03-07 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627250', 'tblTempUsageDetail_20' ) start [2025-03-07 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627250', 'tblTempUsageDetail_20' ) end [2025-03-07 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627250', 'tblTempVendorCDR_20' ) start [2025-03-07 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627250', 'tblTempVendorCDR_20' ) end [2025-03-07 10:37:20] Production.INFO: ProcessCDR(1,14627250,1,1,2) [2025-03-07 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627250', 'tblTempUsageDetail_20' ) start [2025-03-07 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627250', 'tblTempUsageDetail_20' ) end [2025-03-07 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:37:26] Production.INFO: ==3462== Releasing lock... [2025-03-07 10:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:37:26] Production.INFO: 48.75 MB #Memory Used# [2025-03-07 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:38:05 [end_date_ymd] => 2025-03-07 10:38:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:38:05' and `end` < '2025-03-07 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-03-07 10:38:18] Production.INFO: count ==2753 [2025-03-07 10:38:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:38:05 - End Time 2025-03-07 10:38:05 [2025-03-07 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627255', 'tblTempUsageDetail_20' ) start [2025-03-07 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627255', 'tblTempUsageDetail_20' ) end [2025-03-07 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627255', 'tblTempVendorCDR_20' ) start [2025-03-07 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627255', 'tblTempVendorCDR_20' ) end [2025-03-07 10:38:19] Production.INFO: ProcessCDR(1,14627255,1,1,2) [2025-03-07 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627255', 'tblTempUsageDetail_20' ) start [2025-03-07 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627255', 'tblTempUsageDetail_20' ) end [2025-03-07 10:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:38:24] Production.INFO: ==3536== Releasing lock... [2025-03-07 10:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:38:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-07 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:39:05 [end_date_ymd] => 2025-03-07 10:39:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:39:05' and `end` < '2025-03-07 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-03-07 10:39:18] Production.INFO: count ==2775 [2025-03-07 10:39:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:39:05 - End Time 2025-03-07 10:39:05 [2025-03-07 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627260', 'tblTempUsageDetail_20' ) start [2025-03-07 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627260', 'tblTempUsageDetail_20' ) end [2025-03-07 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627260', 'tblTempVendorCDR_20' ) start [2025-03-07 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627260', 'tblTempVendorCDR_20' ) end [2025-03-07 10:39:20] Production.INFO: ProcessCDR(1,14627260,1,1,2) [2025-03-07 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627260', 'tblTempUsageDetail_20' ) start [2025-03-07 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627260', 'tblTempUsageDetail_20' ) end [2025-03-07 10:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:39:24] Production.INFO: ==3611== Releasing lock... [2025-03-07 10:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:39:24] Production.INFO: 49 MB #Memory Used# [2025-03-07 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:40:06 [end_date_ymd] => 2025-03-07 10:40:06 [RateCDR] => 1 ) [2025-03-07 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:40:06' and `end` < '2025-03-07 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:40:19] Production.INFO: count ==2797 [2025-03-07 10:40:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:40:06 - End Time 2025-03-07 10:40:06 [2025-03-07 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627266', 'tblTempUsageDetail_20' ) start [2025-03-07 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627266', 'tblTempUsageDetail_20' ) end [2025-03-07 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627266', 'tblTempVendorCDR_20' ) start [2025-03-07 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627266', 'tblTempVendorCDR_20' ) end [2025-03-07 10:40:20] Production.INFO: ProcessCDR(1,14627266,1,1,2) [2025-03-07 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627266', 'tblTempUsageDetail_20' ) start [2025-03-07 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627266', 'tblTempUsageDetail_20' ) end [2025-03-07 10:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:40:25] Production.INFO: ==3690== Releasing lock... [2025-03-07 10:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:40:25] Production.INFO: 49 MB #Memory Used# [2025-03-07 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:41:06 [end_date_ymd] => 2025-03-07 10:41:06 [RateCDR] => 1 ) [2025-03-07 10:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:41:06' and `end` < '2025-03-07 10:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:41:19] Production.INFO: count ==2933 [2025-03-07 10:41:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:41:06 - End Time 2025-03-07 10:41:06 [2025-03-07 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627271', 'tblTempUsageDetail_20' ) start [2025-03-07 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627271', 'tblTempUsageDetail_20' ) end [2025-03-07 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627271', 'tblTempVendorCDR_20' ) start [2025-03-07 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627271', 'tblTempVendorCDR_20' ) end [2025-03-07 10:41:20] Production.INFO: ProcessCDR(1,14627271,1,1,2) [2025-03-07 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627271', 'tblTempUsageDetail_20' ) start [2025-03-07 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627271', 'tblTempUsageDetail_20' ) end [2025-03-07 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:41:25] Production.INFO: ==3770== Releasing lock... [2025-03-07 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:41:25] Production.INFO: 49.5 MB #Memory Used# [2025-03-07 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:42:05 [end_date_ymd] => 2025-03-07 10:42:05 [RateCDR] => 1 ) [2025-03-07 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:42:05' and `end` < '2025-03-07 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:42:18] Production.INFO: count ==2944 [2025-03-07 10:42:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:42:05 - End Time 2025-03-07 10:42:05 [2025-03-07 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627276', 'tblTempUsageDetail_20' ) start [2025-03-07 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627276', 'tblTempUsageDetail_20' ) end [2025-03-07 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627276', 'tblTempVendorCDR_20' ) start [2025-03-07 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627276', 'tblTempVendorCDR_20' ) end [2025-03-07 10:42:20] Production.INFO: ProcessCDR(1,14627276,1,1,2) [2025-03-07 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627276', 'tblTempUsageDetail_20' ) start [2025-03-07 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627276', 'tblTempUsageDetail_20' ) end [2025-03-07 10:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:42:24] Production.INFO: ==3848== Releasing lock... [2025-03-07 10:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:42:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-07 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:43:05 [end_date_ymd] => 2025-03-07 10:43:05 [RateCDR] => 1 ) [2025-03-07 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:43:05' and `end` < '2025-03-07 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:43:18] Production.INFO: count ==2944 [2025-03-07 10:43:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:43:05 - End Time 2025-03-07 10:43:05 [2025-03-07 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627281', 'tblTempUsageDetail_20' ) start [2025-03-07 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627281', 'tblTempUsageDetail_20' ) end [2025-03-07 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627281', 'tblTempVendorCDR_20' ) start [2025-03-07 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627281', 'tblTempVendorCDR_20' ) end [2025-03-07 10:43:19] Production.INFO: ProcessCDR(1,14627281,1,1,2) [2025-03-07 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627281', 'tblTempUsageDetail_20' ) start [2025-03-07 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627281', 'tblTempUsageDetail_20' ) end [2025-03-07 10:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:43:24] Production.INFO: ==3922== Releasing lock... [2025-03-07 10:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:43:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-07 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:44:05 [end_date_ymd] => 2025-03-07 10:44:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:44:05' and `end` < '2025-03-07 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-03-07 10:44:17] Production.INFO: count ==2948 [2025-03-07 10:44:18] Production.ERROR: pbx CDR StartTime 2025-03-07 07:44:05 - End Time 2025-03-07 10:44:05 [2025-03-07 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627286', 'tblTempUsageDetail_20' ) start [2025-03-07 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627286', 'tblTempUsageDetail_20' ) end [2025-03-07 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627286', 'tblTempVendorCDR_20' ) start [2025-03-07 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627286', 'tblTempVendorCDR_20' ) end [2025-03-07 10:44:19] Production.INFO: ProcessCDR(1,14627286,1,1,2) [2025-03-07 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627286', 'tblTempUsageDetail_20' ) start [2025-03-07 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627286', 'tblTempUsageDetail_20' ) end [2025-03-07 10:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:44:23] Production.INFO: ==3997== Releasing lock... [2025-03-07 10:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:44:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-07 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:45:05 [end_date_ymd] => 2025-03-07 10:45:05 [RateCDR] => 1 ) [2025-03-07 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:45:05' and `end` < '2025-03-07 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:45:18] Production.INFO: count ==2959 [2025-03-07 10:45:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:45:05 - End Time 2025-03-07 10:45:05 [2025-03-07 10:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627291', 'tblTempUsageDetail_20' ) start [2025-03-07 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627291', 'tblTempUsageDetail_20' ) end [2025-03-07 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627291', 'tblTempVendorCDR_20' ) start [2025-03-07 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627291', 'tblTempVendorCDR_20' ) end [2025-03-07 10:45:19] Production.INFO: ProcessCDR(1,14627291,1,1,2) [2025-03-07 10:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627291', 'tblTempUsageDetail_20' ) start [2025-03-07 10:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627291', 'tblTempUsageDetail_20' ) end [2025-03-07 10:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:45:24] Production.INFO: ==4075== Releasing lock... [2025-03-07 10:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:45:24] Production.INFO: 50 MB #Memory Used# [2025-03-07 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:46:05 [end_date_ymd] => 2025-03-07 10:46:05 [RateCDR] => 1 ) [2025-03-07 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:46:05' and `end` < '2025-03-07 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:46:18] Production.INFO: count ==2986 [2025-03-07 10:46:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:46:05 - End Time 2025-03-07 10:46:05 [2025-03-07 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627296', 'tblTempUsageDetail_20' ) start [2025-03-07 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627296', 'tblTempUsageDetail_20' ) end [2025-03-07 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627296', 'tblTempVendorCDR_20' ) start [2025-03-07 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627296', 'tblTempVendorCDR_20' ) end [2025-03-07 10:46:19] Production.INFO: ProcessCDR(1,14627296,1,1,2) [2025-03-07 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627296', 'tblTempUsageDetail_20' ) start [2025-03-07 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627296', 'tblTempUsageDetail_20' ) end [2025-03-07 10:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:46:24] Production.INFO: ==4148== Releasing lock... [2025-03-07 10:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:46:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-07 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:47:06 [end_date_ymd] => 2025-03-07 10:47:06 [RateCDR] => 1 ) [2025-03-07 10:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:47:06' and `end` < '2025-03-07 10: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-03-07 10:47:19] Production.INFO: count ==3025 [2025-03-07 10:47:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:47:06 - End Time 2025-03-07 10:47:06 [2025-03-07 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627301', 'tblTempUsageDetail_20' ) start [2025-03-07 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627301', 'tblTempUsageDetail_20' ) end [2025-03-07 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627301', 'tblTempVendorCDR_20' ) start [2025-03-07 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627301', 'tblTempVendorCDR_20' ) end [2025-03-07 10:47:20] Production.INFO: ProcessCDR(1,14627301,1,1,2) [2025-03-07 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627301', 'tblTempUsageDetail_20' ) start [2025-03-07 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627301', 'tblTempUsageDetail_20' ) end [2025-03-07 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:47:26] Production.INFO: ==4222== Releasing lock... [2025-03-07 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:47:26] Production.INFO: 50.5 MB #Memory Used# [2025-03-07 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:48:05 [end_date_ymd] => 2025-03-07 10:48:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:48:05' and `end` < '2025-03-07 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-03-07 10:48:17] Production.INFO: count ==3048 [2025-03-07 10:48:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:48:05 - End Time 2025-03-07 10:48:05 [2025-03-07 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627306', 'tblTempUsageDetail_20' ) start [2025-03-07 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627306', 'tblTempUsageDetail_20' ) end [2025-03-07 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627306', 'tblTempVendorCDR_20' ) start [2025-03-07 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627306', 'tblTempVendorCDR_20' ) end [2025-03-07 10:48:19] Production.INFO: ProcessCDR(1,14627306,1,1,2) [2025-03-07 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627306', 'tblTempUsageDetail_20' ) start [2025-03-07 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627306', 'tblTempUsageDetail_20' ) end [2025-03-07 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:48:24] Production.INFO: ==4293== Releasing lock... [2025-03-07 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:48:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-07 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:49:06 [end_date_ymd] => 2025-03-07 10:49:06 [RateCDR] => 1 ) [2025-03-07 10:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:49:06' and `end` < '2025-03-07 10:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:49:19] Production.INFO: count ==3063 [2025-03-07 10:49:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:49:06 - End Time 2025-03-07 10:49:06 [2025-03-07 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627311', 'tblTempUsageDetail_20' ) start [2025-03-07 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627311', 'tblTempUsageDetail_20' ) end [2025-03-07 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627311', 'tblTempVendorCDR_20' ) start [2025-03-07 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627311', 'tblTempVendorCDR_20' ) end [2025-03-07 10:49:20] Production.INFO: ProcessCDR(1,14627311,1,1,2) [2025-03-07 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627311', 'tblTempUsageDetail_20' ) start [2025-03-07 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627311', 'tblTempUsageDetail_20' ) end [2025-03-07 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:49:25] Production.INFO: ==4370== Releasing lock... [2025-03-07 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:49:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-07 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:50:06 [end_date_ymd] => 2025-03-07 10:50:06 [RateCDR] => 1 ) [2025-03-07 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:50:06' and `end` < '2025-03-07 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:50:19] Production.INFO: count ==3092 [2025-03-07 10:50:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:50:06 - End Time 2025-03-07 10:50:06 [2025-03-07 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627317', 'tblTempUsageDetail_20' ) start [2025-03-07 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627317', 'tblTempUsageDetail_20' ) end [2025-03-07 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627317', 'tblTempVendorCDR_20' ) start [2025-03-07 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627317', 'tblTempVendorCDR_20' ) end [2025-03-07 10:50:20] Production.INFO: ProcessCDR(1,14627317,1,1,2) [2025-03-07 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627317', 'tblTempUsageDetail_20' ) start [2025-03-07 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627317', 'tblTempUsageDetail_20' ) end [2025-03-07 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:50:25] Production.INFO: ==4482== Releasing lock... [2025-03-07 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:50:25] Production.INFO: 51.25 MB #Memory Used# [2025-03-07 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:51:06 [end_date_ymd] => 2025-03-07 10:51:06 [RateCDR] => 1 ) [2025-03-07 10: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-03-07 07:51:06' and `end` < '2025-03-07 10: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-03-07 10:51:19] Production.INFO: count ==3191 [2025-03-07 10:51:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:51:06 - End Time 2025-03-07 10:51:06 [2025-03-07 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627322', 'tblTempUsageDetail_20' ) start [2025-03-07 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627322', 'tblTempUsageDetail_20' ) end [2025-03-07 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627322', 'tblTempVendorCDR_20' ) start [2025-03-07 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627322', 'tblTempVendorCDR_20' ) end [2025-03-07 10:51:20] Production.INFO: ProcessCDR(1,14627322,1,1,2) [2025-03-07 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627322', 'tblTempUsageDetail_20' ) start [2025-03-07 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627322', 'tblTempUsageDetail_20' ) end [2025-03-07 10:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:51:23] Production.INFO: ==4554== Releasing lock... [2025-03-07 10:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:51:23] Production.INFO: 52 MB #Memory Used# [2025-03-07 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:52:06 [end_date_ymd] => 2025-03-07 10:52:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:52:06' and `end` < '2025-03-07 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-03-07 10:52:19] Production.INFO: count ==3202 [2025-03-07 10:52:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:52:06 - End Time 2025-03-07 10:52:06 [2025-03-07 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627327', 'tblTempUsageDetail_20' ) start [2025-03-07 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627327', 'tblTempUsageDetail_20' ) end [2025-03-07 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627327', 'tblTempVendorCDR_20' ) start [2025-03-07 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627327', 'tblTempVendorCDR_20' ) end [2025-03-07 10:52:20] Production.INFO: ProcessCDR(1,14627327,1,1,2) [2025-03-07 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627327', 'tblTempUsageDetail_20' ) start [2025-03-07 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627327', 'tblTempUsageDetail_20' ) end [2025-03-07 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:52:25] Production.INFO: ==4637== Releasing lock... [2025-03-07 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:52:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-07 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:53:05 [end_date_ymd] => 2025-03-07 10:53:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:53:05' and `end` < '2025-03-07 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-03-07 10:53:18] Production.INFO: count ==3214 [2025-03-07 10:53:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:53:05 - End Time 2025-03-07 10:53:05 [2025-03-07 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627332', 'tblTempUsageDetail_20' ) start [2025-03-07 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627332', 'tblTempUsageDetail_20' ) end [2025-03-07 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627332', 'tblTempVendorCDR_20' ) start [2025-03-07 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627332', 'tblTempVendorCDR_20' ) end [2025-03-07 10:53:19] Production.INFO: ProcessCDR(1,14627332,1,1,2) [2025-03-07 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627332', 'tblTempUsageDetail_20' ) start [2025-03-07 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627332', 'tblTempUsageDetail_20' ) end [2025-03-07 10:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:53:24] Production.INFO: ==4713== Releasing lock... [2025-03-07 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:53:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-07 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:54:05 [end_date_ymd] => 2025-03-07 10:54:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:54:05' and `end` < '2025-03-07 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-03-07 10:54:18] Production.INFO: count ==3243 [2025-03-07 10:54:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:54:05 - End Time 2025-03-07 10:54:05 [2025-03-07 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627337', 'tblTempUsageDetail_20' ) start [2025-03-07 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627337', 'tblTempUsageDetail_20' ) end [2025-03-07 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627337', 'tblTempVendorCDR_20' ) start [2025-03-07 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627337', 'tblTempVendorCDR_20' ) end [2025-03-07 10:54:19] Production.INFO: ProcessCDR(1,14627337,1,1,2) [2025-03-07 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627337', 'tblTempUsageDetail_20' ) start [2025-03-07 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627337', 'tblTempUsageDetail_20' ) end [2025-03-07 10:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:54:24] Production.INFO: ==4783== Releasing lock... [2025-03-07 10:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:54:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-07 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:55:05 [end_date_ymd] => 2025-03-07 10:55:05 [RateCDR] => 1 ) [2025-03-07 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:55:05' and `end` < '2025-03-07 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:55:18] Production.INFO: count ==3263 [2025-03-07 10:55:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:55:05 - End Time 2025-03-07 10:55:05 [2025-03-07 10:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627342', 'tblTempUsageDetail_20' ) start [2025-03-07 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627342', 'tblTempUsageDetail_20' ) end [2025-03-07 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627342', 'tblTempVendorCDR_20' ) start [2025-03-07 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627342', 'tblTempVendorCDR_20' ) end [2025-03-07 10:55:19] Production.INFO: ProcessCDR(1,14627342,1,1,2) [2025-03-07 10:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627342', 'tblTempUsageDetail_20' ) start [2025-03-07 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627342', 'tblTempUsageDetail_20' ) end [2025-03-07 10:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:55:24] Production.INFO: ==4860== Releasing lock... [2025-03-07 10:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:55:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-07 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:56:05 [end_date_ymd] => 2025-03-07 10:56:05 [RateCDR] => 1 ) [2025-03-07 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 07:56:05' and `end` < '2025-03-07 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 10:56:18] Production.INFO: count ==3283 [2025-03-07 10:56:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:56:05 - End Time 2025-03-07 10:56:05 [2025-03-07 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627347', 'tblTempUsageDetail_20' ) start [2025-03-07 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627347', 'tblTempUsageDetail_20' ) end [2025-03-07 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627347', 'tblTempVendorCDR_20' ) start [2025-03-07 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627347', 'tblTempVendorCDR_20' ) end [2025-03-07 10:56:19] Production.INFO: ProcessCDR(1,14627347,1,1,2) [2025-03-07 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627347', 'tblTempUsageDetail_20' ) start [2025-03-07 10:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627347', 'tblTempUsageDetail_20' ) end [2025-03-07 10:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:56:23] Production.INFO: ==4934== Releasing lock... [2025-03-07 10:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:56:23] Production.INFO: 53 MB #Memory Used# [2025-03-07 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:57:05 [end_date_ymd] => 2025-03-07 10:57:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:57:05' and `end` < '2025-03-07 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-03-07 10:57:18] Production.INFO: count ==3286 [2025-03-07 10:57:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:57:05 - End Time 2025-03-07 10:57:05 [2025-03-07 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627352', 'tblTempUsageDetail_20' ) start [2025-03-07 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627352', 'tblTempUsageDetail_20' ) end [2025-03-07 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627352', 'tblTempVendorCDR_20' ) start [2025-03-07 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627352', 'tblTempVendorCDR_20' ) end [2025-03-07 10:57:20] Production.INFO: ProcessCDR(1,14627352,1,1,2) [2025-03-07 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627352', 'tblTempUsageDetail_20' ) start [2025-03-07 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627352', 'tblTempUsageDetail_20' ) end [2025-03-07 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:57:25] Production.INFO: ==5006== Releasing lock... [2025-03-07 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:57:25] Production.INFO: 53 MB #Memory Used# [2025-03-07 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:58:06 [end_date_ymd] => 2025-03-07 10:58:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:58:06' and `end` < '2025-03-07 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-03-07 10:58:19] Production.INFO: count ==3314 [2025-03-07 10:58:20] Production.ERROR: pbx CDR StartTime 2025-03-07 07:58:06 - End Time 2025-03-07 10:58:06 [2025-03-07 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627357', 'tblTempUsageDetail_20' ) start [2025-03-07 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627357', 'tblTempUsageDetail_20' ) end [2025-03-07 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627357', 'tblTempVendorCDR_20' ) start [2025-03-07 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627357', 'tblTempVendorCDR_20' ) end [2025-03-07 10:58:20] Production.INFO: ProcessCDR(1,14627357,1,1,2) [2025-03-07 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627357', 'tblTempUsageDetail_20' ) start [2025-03-07 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627357', 'tblTempUsageDetail_20' ) end [2025-03-07 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:58:25] Production.INFO: ==5083== Releasing lock... [2025-03-07 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:58:25] Production.INFO: 53.75 MB #Memory Used# [2025-03-07 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 07:59:05 [end_date_ymd] => 2025-03-07 10:59:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 07:59:05' and `end` < '2025-03-07 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-03-07 10:59:18] Production.INFO: count ==3321 [2025-03-07 10:59:19] Production.ERROR: pbx CDR StartTime 2025-03-07 07:59:05 - End Time 2025-03-07 10:59:05 [2025-03-07 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627362', 'tblTempUsageDetail_20' ) start [2025-03-07 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627362', 'tblTempUsageDetail_20' ) end [2025-03-07 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627362', 'tblTempVendorCDR_20' ) start [2025-03-07 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627362', 'tblTempVendorCDR_20' ) end [2025-03-07 10:59:19] Production.INFO: ProcessCDR(1,14627362,1,1,2) [2025-03-07 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627362', 'tblTempUsageDetail_20' ) start [2025-03-07 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627362', 'tblTempUsageDetail_20' ) end [2025-03-07 10:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 10:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 10:59:24] Production.INFO: ==5164== Releasing lock... [2025-03-07 10:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 10:59:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-07 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:00:07 [end_date_ymd] => 2025-03-07 11:00:07 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:00:07' and `end` < '2025-03-07 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-03-07 11:00:20] Production.INFO: count ==3355 [2025-03-07 11:00:22] Production.ERROR: pbx CDR StartTime 2025-03-07 08:00:07 - End Time 2025-03-07 11:00:07 [2025-03-07 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627368', 'tblTempUsageDetail_20' ) start [2025-03-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627368', 'tblTempUsageDetail_20' ) end [2025-03-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627368', 'tblTempVendorCDR_20' ) start [2025-03-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627368', 'tblTempVendorCDR_20' ) end [2025-03-07 11:00:22] Production.INFO: ProcessCDR(1,14627368,1,1,2) [2025-03-07 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627368', 'tblTempUsageDetail_20' ) start [2025-03-07 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627368', 'tblTempUsageDetail_20' ) end [2025-03-07 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:00:27] Production.INFO: ==5245== Releasing lock... [2025-03-07 11:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:00:27] Production.INFO: 53.5 MB #Memory Used# [2025-03-07 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:01:05 [end_date_ymd] => 2025-03-07 11:01:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:01:05' and `end` < '2025-03-07 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-03-07 11:01:18] Production.INFO: count ==3487 [2025-03-07 11:01:19] Production.ERROR: pbx CDR StartTime 2025-03-07 08:01:05 - End Time 2025-03-07 11:01:05 [2025-03-07 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627373', 'tblTempUsageDetail_20' ) start [2025-03-07 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627373', 'tblTempUsageDetail_20' ) end [2025-03-07 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627373', 'tblTempVendorCDR_20' ) start [2025-03-07 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627373', 'tblTempVendorCDR_20' ) end [2025-03-07 11:01:20] Production.INFO: ProcessCDR(1,14627373,1,1,2) [2025-03-07 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627373', 'tblTempUsageDetail_20' ) start [2025-03-07 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627373', 'tblTempUsageDetail_20' ) end [2025-03-07 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:01:25] Production.INFO: ==5372== Releasing lock... [2025-03-07 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:01:25] Production.INFO: 55 MB #Memory Used# [2025-03-07 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:02:06 [end_date_ymd] => 2025-03-07 11:02:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:02:06' and `end` < '2025-03-07 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-03-07 11:02:19] Production.INFO: count ==3491 [2025-03-07 11:02:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:02:06 - End Time 2025-03-07 11:02:06 [2025-03-07 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627378', 'tblTempUsageDetail_20' ) start [2025-03-07 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627378', 'tblTempUsageDetail_20' ) end [2025-03-07 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627378', 'tblTempVendorCDR_20' ) start [2025-03-07 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627378', 'tblTempVendorCDR_20' ) end [2025-03-07 11:02:20] Production.INFO: ProcessCDR(1,14627378,1,1,2) [2025-03-07 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627378', 'tblTempUsageDetail_20' ) start [2025-03-07 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627378', 'tblTempUsageDetail_20' ) end [2025-03-07 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:02:26] Production.INFO: ==5492== Releasing lock... [2025-03-07 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:02:26] Production.INFO: 54 MB #Memory Used# [2025-03-07 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:03:06 [end_date_ymd] => 2025-03-07 11:03:06 [RateCDR] => 1 ) [2025-03-07 11: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-03-07 08:03:06' and `end` < '2025-03-07 11: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-03-07 11:03:19] Production.INFO: count ==3521 [2025-03-07 11:03:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:03:06 - End Time 2025-03-07 11:03:06 [2025-03-07 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627383', 'tblTempUsageDetail_20' ) start [2025-03-07 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627383', 'tblTempUsageDetail_20' ) end [2025-03-07 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627383', 'tblTempVendorCDR_20' ) start [2025-03-07 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627383', 'tblTempVendorCDR_20' ) end [2025-03-07 11:03:20] Production.INFO: ProcessCDR(1,14627383,1,1,2) [2025-03-07 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627383', 'tblTempUsageDetail_20' ) start [2025-03-07 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627383', 'tblTempUsageDetail_20' ) end [2025-03-07 11:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:03:25] Production.INFO: ==5573== Releasing lock... [2025-03-07 11:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:03:25] Production.INFO: 54.25 MB #Memory Used# [2025-03-07 11:04:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:04:07 [end_date_ymd] => 2025-03-07 11:04:07 [RateCDR] => 1 ) [2025-03-07 11:04: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-03-07 08:04:07' and `end` < '2025-03-07 11:04: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-03-07 11:04:19] Production.INFO: count ==3546 [2025-03-07 11:04:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:04:07 - End Time 2025-03-07 11:04:07 [2025-03-07 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627388', 'tblTempUsageDetail_20' ) start [2025-03-07 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627388', 'tblTempUsageDetail_20' ) end [2025-03-07 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627388', 'tblTempVendorCDR_20' ) start [2025-03-07 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627388', 'tblTempVendorCDR_20' ) end [2025-03-07 11:04:21] Production.INFO: ProcessCDR(1,14627388,1,1,2) [2025-03-07 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627388', 'tblTempUsageDetail_20' ) start [2025-03-07 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627388', 'tblTempUsageDetail_20' ) end [2025-03-07 11:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:04:27] Production.INFO: ==5652== Releasing lock... [2025-03-07 11:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:04:27] Production.INFO: 54.75 MB #Memory Used# [2025-03-07 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:05:05 [end_date_ymd] => 2025-03-07 11:05:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:05:05' and `end` < '2025-03-07 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-03-07 11:05:18] Production.INFO: count ==3554 [2025-03-07 11:05:19] Production.ERROR: pbx CDR StartTime 2025-03-07 08:05:05 - End Time 2025-03-07 11:05:05 [2025-03-07 11:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627393', 'tblTempUsageDetail_20' ) start [2025-03-07 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627393', 'tblTempUsageDetail_20' ) end [2025-03-07 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627393', 'tblTempVendorCDR_20' ) start [2025-03-07 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627393', 'tblTempVendorCDR_20' ) end [2025-03-07 11:05:20] Production.INFO: ProcessCDR(1,14627393,1,1,2) [2025-03-07 11:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627393', 'tblTempUsageDetail_20' ) start [2025-03-07 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627393', 'tblTempUsageDetail_20' ) end [2025-03-07 11:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:05:24] Production.INFO: ==5854== Releasing lock... [2025-03-07 11:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:05:24] Production.INFO: 54.75 MB #Memory Used# [2025-03-07 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:06:06 [end_date_ymd] => 2025-03-07 11:06:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:06:06' and `end` < '2025-03-07 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-03-07 11:06:19] Production.INFO: count ==3563 [2025-03-07 11:06:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:06:06 - End Time 2025-03-07 11:06:06 [2025-03-07 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627398', 'tblTempUsageDetail_20' ) start [2025-03-07 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627398', 'tblTempUsageDetail_20' ) end [2025-03-07 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627398', 'tblTempVendorCDR_20' ) start [2025-03-07 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627398', 'tblTempVendorCDR_20' ) end [2025-03-07 11:06:20] Production.INFO: ProcessCDR(1,14627398,1,1,2) [2025-03-07 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627398', 'tblTempUsageDetail_20' ) start [2025-03-07 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627398', 'tblTempUsageDetail_20' ) end [2025-03-07 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:06:26] Production.INFO: ==5933== Releasing lock... [2025-03-07 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:06:26] Production.INFO: 54.75 MB #Memory Used# [2025-03-07 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:07:05 [end_date_ymd] => 2025-03-07 11:07:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:07:05' and `end` < '2025-03-07 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-03-07 11:07:18] Production.INFO: count ==3570 [2025-03-07 11:07:19] Production.ERROR: pbx CDR StartTime 2025-03-07 08:07:05 - End Time 2025-03-07 11:07:05 [2025-03-07 11:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627403', 'tblTempUsageDetail_20' ) start [2025-03-07 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627403', 'tblTempUsageDetail_20' ) end [2025-03-07 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627403', 'tblTempVendorCDR_20' ) start [2025-03-07 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627403', 'tblTempVendorCDR_20' ) end [2025-03-07 11:07:19] Production.INFO: ProcessCDR(1,14627403,1,1,2) [2025-03-07 11:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627403', 'tblTempUsageDetail_20' ) start [2025-03-07 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627403', 'tblTempUsageDetail_20' ) end [2025-03-07 11:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:07:25] Production.INFO: ==6006== Releasing lock... [2025-03-07 11:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:07:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-07 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:08:05 [end_date_ymd] => 2025-03-07 11:08:05 [RateCDR] => 1 ) [2025-03-07 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:08:05' and `end` < '2025-03-07 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:08:18] Production.INFO: count ==3584 [2025-03-07 11:08:19] Production.ERROR: pbx CDR StartTime 2025-03-07 08:08:05 - End Time 2025-03-07 11:08:05 [2025-03-07 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627408', 'tblTempUsageDetail_20' ) start [2025-03-07 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627408', 'tblTempUsageDetail_20' ) end [2025-03-07 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627408', 'tblTempVendorCDR_20' ) start [2025-03-07 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627408', 'tblTempVendorCDR_20' ) end [2025-03-07 11:08:20] Production.INFO: ProcessCDR(1,14627408,1,1,2) [2025-03-07 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627408', 'tblTempUsageDetail_20' ) start [2025-03-07 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627408', 'tblTempUsageDetail_20' ) end [2025-03-07 11:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:08:25] Production.INFO: ==6165== Releasing lock... [2025-03-07 11:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:08:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-07 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:09:06 [end_date_ymd] => 2025-03-07 11:09:06 [RateCDR] => 1 ) [2025-03-07 11:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:09:06' and `end` < '2025-03-07 11:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:09:19] Production.INFO: count ==3612 [2025-03-07 11:09:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:09:06 - End Time 2025-03-07 11:09:06 [2025-03-07 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627413', 'tblTempUsageDetail_20' ) start [2025-03-07 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627413', 'tblTempUsageDetail_20' ) end [2025-03-07 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627413', 'tblTempVendorCDR_20' ) start [2025-03-07 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627413', 'tblTempVendorCDR_20' ) end [2025-03-07 11:09:20] Production.INFO: ProcessCDR(1,14627413,1,1,2) [2025-03-07 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627413', 'tblTempUsageDetail_20' ) start [2025-03-07 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627413', 'tblTempUsageDetail_20' ) end [2025-03-07 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:09:26] Production.INFO: ==6244== Releasing lock... [2025-03-07 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:09:26] Production.INFO: 55.5 MB #Memory Used# [2025-03-07 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:10:06 [end_date_ymd] => 2025-03-07 11:10:06 [RateCDR] => 1 ) [2025-03-07 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:10:06' and `end` < '2025-03-07 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:10:19] Production.INFO: count ==3614 [2025-03-07 11:10:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:10:06 - End Time 2025-03-07 11:10:06 [2025-03-07 11:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627418', 'tblTempUsageDetail_20' ) start [2025-03-07 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627418', 'tblTempUsageDetail_20' ) end [2025-03-07 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627418', 'tblTempVendorCDR_20' ) start [2025-03-07 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627418', 'tblTempVendorCDR_20' ) end [2025-03-07 11:10:20] Production.INFO: ProcessCDR(1,14627418,1,1,2) [2025-03-07 11:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627418', 'tblTempUsageDetail_20' ) start [2025-03-07 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627418', 'tblTempUsageDetail_20' ) end [2025-03-07 11:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:10:25] Production.INFO: ==6329== Releasing lock... [2025-03-07 11:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:10:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-07 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:11:05 [end_date_ymd] => 2025-03-07 11:11:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:11:05' and `end` < '2025-03-07 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-03-07 11:11:18] Production.INFO: count ==3723 [2025-03-07 11:11:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:11:05 - End Time 2025-03-07 11:11:05 [2025-03-07 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627424', 'tblTempUsageDetail_20' ) start [2025-03-07 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627424', 'tblTempUsageDetail_20' ) end [2025-03-07 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627424', 'tblTempVendorCDR_20' ) start [2025-03-07 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627424', 'tblTempVendorCDR_20' ) end [2025-03-07 11:11:20] Production.INFO: ProcessCDR(1,14627424,1,1,2) [2025-03-07 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627424', 'tblTempUsageDetail_20' ) start [2025-03-07 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627424', 'tblTempUsageDetail_20' ) end [2025-03-07 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:11:25] Production.INFO: ==6410== Releasing lock... [2025-03-07 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:11:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-07 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:12:05 [end_date_ymd] => 2025-03-07 11:12:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:12:05' and `end` < '2025-03-07 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-03-07 11:12:18] Production.INFO: count ==3783 [2025-03-07 11:12:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:12:05 - End Time 2025-03-07 11:12:05 [2025-03-07 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627429', 'tblTempUsageDetail_20' ) start [2025-03-07 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627429', 'tblTempUsageDetail_20' ) end [2025-03-07 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627429', 'tblTempVendorCDR_20' ) start [2025-03-07 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627429', 'tblTempVendorCDR_20' ) end [2025-03-07 11:12:20] Production.INFO: ProcessCDR(1,14627429,1,1,2) [2025-03-07 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627429', 'tblTempUsageDetail_20' ) start [2025-03-07 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627429', 'tblTempUsageDetail_20' ) end [2025-03-07 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:12:25] Production.INFO: ==6566== Releasing lock... [2025-03-07 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:12:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-07 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:13:05 [end_date_ymd] => 2025-03-07 11:13:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:13:05' and `end` < '2025-03-07 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-03-07 11:13:18] Production.INFO: count ==3801 [2025-03-07 11:13:19] Production.ERROR: pbx CDR StartTime 2025-03-07 08:13:05 - End Time 2025-03-07 11:13:05 [2025-03-07 11:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627434', 'tblTempUsageDetail_20' ) start [2025-03-07 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627434', 'tblTempUsageDetail_20' ) end [2025-03-07 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627434', 'tblTempVendorCDR_20' ) start [2025-03-07 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627434', 'tblTempVendorCDR_20' ) end [2025-03-07 11:13:19] Production.INFO: ProcessCDR(1,14627434,1,1,2) [2025-03-07 11:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627434', 'tblTempUsageDetail_20' ) start [2025-03-07 11:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627434', 'tblTempUsageDetail_20' ) end [2025-03-07 11:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:13:24] Production.INFO: ==6644== Releasing lock... [2025-03-07 11:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:13:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-07 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:14:06 [end_date_ymd] => 2025-03-07 11:14:06 [RateCDR] => 1 ) [2025-03-07 11:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:14:06' and `end` < '2025-03-07 11:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:14:19] Production.INFO: count ==3796 [2025-03-07 11:14:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:14:06 - End Time 2025-03-07 11:14:06 [2025-03-07 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627439', 'tblTempUsageDetail_20' ) start [2025-03-07 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627439', 'tblTempUsageDetail_20' ) end [2025-03-07 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627439', 'tblTempVendorCDR_20' ) start [2025-03-07 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627439', 'tblTempVendorCDR_20' ) end [2025-03-07 11:14:20] Production.INFO: ProcessCDR(1,14627439,1,1,2) [2025-03-07 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627439', 'tblTempUsageDetail_20' ) start [2025-03-07 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627439', 'tblTempUsageDetail_20' ) end [2025-03-07 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:14:25] Production.INFO: ==6727== Releasing lock... [2025-03-07 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:14:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-07 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:15:05 [end_date_ymd] => 2025-03-07 11:15:05 [RateCDR] => 1 ) [2025-03-07 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:15:05' and `end` < '2025-03-07 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:15:18] Production.INFO: count ==3798 [2025-03-07 11:15:19] Production.ERROR: pbx CDR StartTime 2025-03-07 08:15:05 - End Time 2025-03-07 11:15:05 [2025-03-07 11:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627444', 'tblTempUsageDetail_20' ) start [2025-03-07 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627444', 'tblTempUsageDetail_20' ) end [2025-03-07 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627444', 'tblTempVendorCDR_20' ) start [2025-03-07 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627444', 'tblTempVendorCDR_20' ) end [2025-03-07 11:15:20] Production.INFO: ProcessCDR(1,14627444,1,1,2) [2025-03-07 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627444', 'tblTempUsageDetail_20' ) start [2025-03-07 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627444', 'tblTempUsageDetail_20' ) end [2025-03-07 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:15:25] Production.INFO: ==6882== Releasing lock... [2025-03-07 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:15:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-07 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:16:06 [end_date_ymd] => 2025-03-07 11:16:06 [RateCDR] => 1 ) [2025-03-07 11:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:16:06' and `end` < '2025-03-07 11:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:16:19] Production.INFO: count ==3803 [2025-03-07 11:16:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:16:06 - End Time 2025-03-07 11:16:06 [2025-03-07 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627449', 'tblTempUsageDetail_20' ) start [2025-03-07 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627449', 'tblTempUsageDetail_20' ) end [2025-03-07 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627449', 'tblTempVendorCDR_20' ) start [2025-03-07 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627449', 'tblTempVendorCDR_20' ) end [2025-03-07 11:16:20] Production.INFO: ProcessCDR(1,14627449,1,1,2) [2025-03-07 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627449', 'tblTempUsageDetail_20' ) start [2025-03-07 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627449', 'tblTempUsageDetail_20' ) end [2025-03-07 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:16:26] Production.INFO: ==6961== Releasing lock... [2025-03-07 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:16:26] Production.INFO: 56.25 MB #Memory Used# [2025-03-07 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:17:05 [end_date_ymd] => 2025-03-07 11:17:05 [RateCDR] => 1 ) [2025-03-07 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:17:05' and `end` < '2025-03-07 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:17:18] Production.INFO: count ==3816 [2025-03-07 11:17:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:17:05 - End Time 2025-03-07 11:17:05 [2025-03-07 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627454', 'tblTempUsageDetail_20' ) start [2025-03-07 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627454', 'tblTempUsageDetail_20' ) end [2025-03-07 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627454', 'tblTempVendorCDR_20' ) start [2025-03-07 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627454', 'tblTempVendorCDR_20' ) end [2025-03-07 11:17:20] Production.INFO: ProcessCDR(1,14627454,1,1,2) [2025-03-07 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627454', 'tblTempUsageDetail_20' ) start [2025-03-07 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627454', 'tblTempUsageDetail_20' ) end [2025-03-07 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:17:25] Production.INFO: ==7040== Releasing lock... [2025-03-07 11:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:17:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-07 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:18:06 [end_date_ymd] => 2025-03-07 11:18:06 [RateCDR] => 1 ) [2025-03-07 11: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-03-07 08:18:06' and `end` < '2025-03-07 11: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-03-07 11:18:19] Production.INFO: count ==3834 [2025-03-07 11:18:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:18:06 - End Time 2025-03-07 11:18:06 [2025-03-07 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627459', 'tblTempUsageDetail_20' ) start [2025-03-07 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627459', 'tblTempUsageDetail_20' ) end [2025-03-07 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627459', 'tblTempVendorCDR_20' ) start [2025-03-07 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627459', 'tblTempVendorCDR_20' ) end [2025-03-07 11:18:21] Production.INFO: ProcessCDR(1,14627459,1,1,2) [2025-03-07 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627459', 'tblTempUsageDetail_20' ) start [2025-03-07 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627459', 'tblTempUsageDetail_20' ) end [2025-03-07 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:18:26] Production.INFO: ==7121== Releasing lock... [2025-03-07 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:18:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-07 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:19:06 [end_date_ymd] => 2025-03-07 11:19:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:19:06' and `end` < '2025-03-07 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-03-07 11:19:19] Production.INFO: count ==3842 [2025-03-07 11:19:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:19:06 - End Time 2025-03-07 11:19:06 [2025-03-07 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627464', 'tblTempUsageDetail_20' ) start [2025-03-07 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627464', 'tblTempUsageDetail_20' ) end [2025-03-07 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627464', 'tblTempVendorCDR_20' ) start [2025-03-07 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627464', 'tblTempVendorCDR_20' ) end [2025-03-07 11:19:20] Production.INFO: ProcessCDR(1,14627464,1,1,2) [2025-03-07 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627464', 'tblTempUsageDetail_20' ) start [2025-03-07 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627464', 'tblTempUsageDetail_20' ) end [2025-03-07 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:19:25] Production.INFO: ==7203== Releasing lock... [2025-03-07 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:19:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-07 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:20:07 [end_date_ymd] => 2025-03-07 11:20:07 [RateCDR] => 1 ) [2025-03-07 11: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-03-07 08:20:07' and `end` < '2025-03-07 11: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-03-07 11:20:19] Production.INFO: count ==3850 [2025-03-07 11:20:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:20:07 - End Time 2025-03-07 11:20:07 [2025-03-07 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627469', 'tblTempUsageDetail_20' ) start [2025-03-07 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627469', 'tblTempUsageDetail_20' ) end [2025-03-07 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627469', 'tblTempVendorCDR_20' ) start [2025-03-07 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627469', 'tblTempVendorCDR_20' ) end [2025-03-07 11:20:21] Production.INFO: ProcessCDR(1,14627469,1,1,2) [2025-03-07 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627469', 'tblTempUsageDetail_20' ) start [2025-03-07 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627469', 'tblTempUsageDetail_20' ) end [2025-03-07 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:20:26] Production.INFO: ==7283== Releasing lock... [2025-03-07 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:20:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-07 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:21:06 [end_date_ymd] => 2025-03-07 11:21:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:21:06' and `end` < '2025-03-07 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-03-07 11:21:18] Production.INFO: count ==3937 [2025-03-07 11:21:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:21:06 - End Time 2025-03-07 11:21:06 [2025-03-07 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627475', 'tblTempUsageDetail_20' ) start [2025-03-07 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627475', 'tblTempUsageDetail_20' ) end [2025-03-07 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627475', 'tblTempVendorCDR_20' ) start [2025-03-07 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627475', 'tblTempVendorCDR_20' ) end [2025-03-07 11:21:20] Production.INFO: ProcessCDR(1,14627475,1,1,2) [2025-03-07 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627475', 'tblTempUsageDetail_20' ) start [2025-03-07 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627475', 'tblTempUsageDetail_20' ) end [2025-03-07 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:21:26] Production.INFO: ==7400== Releasing lock... [2025-03-07 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:21:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-07 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:22:06 [end_date_ymd] => 2025-03-07 11:22:06 [RateCDR] => 1 ) [2025-03-07 11:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:22:06' and `end` < '2025-03-07 11:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:22:19] Production.INFO: count ==3943 [2025-03-07 11:22:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:22:06 - End Time 2025-03-07 11:22:06 [2025-03-07 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627480', 'tblTempUsageDetail_20' ) start [2025-03-07 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627480', 'tblTempUsageDetail_20' ) end [2025-03-07 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627480', 'tblTempVendorCDR_20' ) start [2025-03-07 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627480', 'tblTempVendorCDR_20' ) end [2025-03-07 11:22:21] Production.INFO: ProcessCDR(1,14627480,1,1,2) [2025-03-07 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627480', 'tblTempUsageDetail_20' ) start [2025-03-07 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627480', 'tblTempUsageDetail_20' ) end [2025-03-07 11:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:22:25] Production.INFO: ==7477== Releasing lock... [2025-03-07 11:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:22:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-07 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:23:05 [end_date_ymd] => 2025-03-07 11:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:23:05' and `end` < '2025-03-07 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-03-07 11:23:18] Production.INFO: count ==3954 [2025-03-07 11:23:19] Production.ERROR: pbx CDR StartTime 2025-03-07 08:23:05 - End Time 2025-03-07 11:23:05 [2025-03-07 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627485', 'tblTempUsageDetail_20' ) start [2025-03-07 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627485', 'tblTempUsageDetail_20' ) end [2025-03-07 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627485', 'tblTempVendorCDR_20' ) start [2025-03-07 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627485', 'tblTempVendorCDR_20' ) end [2025-03-07 11:23:20] Production.INFO: ProcessCDR(1,14627485,1,1,2) [2025-03-07 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627485', 'tblTempUsageDetail_20' ) start [2025-03-07 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627485', 'tblTempUsageDetail_20' ) end [2025-03-07 11:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:23:25] Production.INFO: ==7559== Releasing lock... [2025-03-07 11:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:23:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-07 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:24:06 [end_date_ymd] => 2025-03-07 11:24:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:24:06' and `end` < '2025-03-07 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-03-07 11:24:20] Production.INFO: count ==3973 [2025-03-07 11:24:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:24:06 - End Time 2025-03-07 11:24:06 [2025-03-07 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627490', 'tblTempUsageDetail_20' ) start [2025-03-07 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627490', 'tblTempUsageDetail_20' ) end [2025-03-07 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627490', 'tblTempVendorCDR_20' ) start [2025-03-07 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627490', 'tblTempVendorCDR_20' ) end [2025-03-07 11:24:21] Production.INFO: ProcessCDR(1,14627490,1,1,2) [2025-03-07 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627490', 'tblTempUsageDetail_20' ) start [2025-03-07 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627490', 'tblTempUsageDetail_20' ) end [2025-03-07 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:24:26] Production.INFO: ==7642== Releasing lock... [2025-03-07 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:24:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-07 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:25:05 [end_date_ymd] => 2025-03-07 11:25:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:25:05' and `end` < '2025-03-07 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-03-07 11:25:19] Production.INFO: count ==3983 [2025-03-07 11:25:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:25:05 - End Time 2025-03-07 11:25:05 [2025-03-07 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627495', 'tblTempUsageDetail_20' ) start [2025-03-07 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627495', 'tblTempUsageDetail_20' ) end [2025-03-07 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627495', 'tblTempVendorCDR_20' ) start [2025-03-07 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627495', 'tblTempVendorCDR_20' ) end [2025-03-07 11:25:21] Production.INFO: ProcessCDR(1,14627495,1,1,2) [2025-03-07 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627495', 'tblTempUsageDetail_20' ) start [2025-03-07 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627495', 'tblTempUsageDetail_20' ) end [2025-03-07 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:25:26] Production.INFO: ==7720== Releasing lock... [2025-03-07 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:25:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-07 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:26:06 [end_date_ymd] => 2025-03-07 11:26:06 [RateCDR] => 1 ) [2025-03-07 11: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-03-07 08:26:06' and `end` < '2025-03-07 11: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-03-07 11:26:18] Production.INFO: count ==3994 [2025-03-07 11:26:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:26:06 - End Time 2025-03-07 11:26:06 [2025-03-07 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627500', 'tblTempUsageDetail_20' ) start [2025-03-07 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627500', 'tblTempUsageDetail_20' ) end [2025-03-07 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627500', 'tblTempVendorCDR_20' ) start [2025-03-07 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627500', 'tblTempVendorCDR_20' ) end [2025-03-07 11:26:20] Production.INFO: ProcessCDR(1,14627500,1,1,2) [2025-03-07 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627500', 'tblTempUsageDetail_20' ) start [2025-03-07 11:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627500', 'tblTempUsageDetail_20' ) end [2025-03-07 11:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:26:24] Production.INFO: ==7799== Releasing lock... [2025-03-07 11:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:26:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-07 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:27:05 [end_date_ymd] => 2025-03-07 11:27:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:27:05' and `end` < '2025-03-07 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-03-07 11:27:18] Production.INFO: count ==4013 [2025-03-07 11:27:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:27:05 - End Time 2025-03-07 11:27:05 [2025-03-07 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627505', 'tblTempUsageDetail_20' ) start [2025-03-07 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627505', 'tblTempUsageDetail_20' ) end [2025-03-07 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627505', 'tblTempVendorCDR_20' ) start [2025-03-07 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627505', 'tblTempVendorCDR_20' ) end [2025-03-07 11:27:20] Production.INFO: ProcessCDR(1,14627505,1,1,2) [2025-03-07 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627505', 'tblTempUsageDetail_20' ) start [2025-03-07 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627505', 'tblTempUsageDetail_20' ) end [2025-03-07 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:27:25] Production.INFO: ==7879== Releasing lock... [2025-03-07 11:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:27:25] Production.INFO: 58 MB #Memory Used# [2025-03-07 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:28:06 [end_date_ymd] => 2025-03-07 11:28:06 [RateCDR] => 1 ) [2025-03-07 11: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-03-07 08:28:06' and `end` < '2025-03-07 11: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-03-07 11:28:19] Production.INFO: count ==4042 [2025-03-07 11:28:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:28:06 - End Time 2025-03-07 11:28:06 [2025-03-07 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627510', 'tblTempUsageDetail_20' ) start [2025-03-07 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627510', 'tblTempUsageDetail_20' ) end [2025-03-07 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627510', 'tblTempVendorCDR_20' ) start [2025-03-07 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627510', 'tblTempVendorCDR_20' ) end [2025-03-07 11:28:21] Production.INFO: ProcessCDR(1,14627510,1,1,2) [2025-03-07 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627510', 'tblTempUsageDetail_20' ) start [2025-03-07 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627510', 'tblTempUsageDetail_20' ) end [2025-03-07 11:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:28:24] Production.INFO: ==7956== Releasing lock... [2025-03-07 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:28:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-07 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:29:05 [end_date_ymd] => 2025-03-07 11:29:05 [RateCDR] => 1 ) [2025-03-07 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:29:05' and `end` < '2025-03-07 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:29:18] Production.INFO: count ==4048 [2025-03-07 11:29:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:29:05 - End Time 2025-03-07 11:29:05 [2025-03-07 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627515', 'tblTempUsageDetail_20' ) start [2025-03-07 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627515', 'tblTempUsageDetail_20' ) end [2025-03-07 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627515', 'tblTempVendorCDR_20' ) start [2025-03-07 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627515', 'tblTempVendorCDR_20' ) end [2025-03-07 11:29:20] Production.INFO: ProcessCDR(1,14627515,1,1,2) [2025-03-07 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627515', 'tblTempUsageDetail_20' ) start [2025-03-07 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627515', 'tblTempUsageDetail_20' ) end [2025-03-07 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:29:25] Production.INFO: ==8033== Releasing lock... [2025-03-07 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:29:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-07 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:30:06 [end_date_ymd] => 2025-03-07 11:30:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:30:06' and `end` < '2025-03-07 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-03-07 11:30:19] Production.INFO: count ==4051 [2025-03-07 11:30:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:30:06 - End Time 2025-03-07 11:30:06 [2025-03-07 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627521', 'tblTempUsageDetail_20' ) start [2025-03-07 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627521', 'tblTempUsageDetail_20' ) end [2025-03-07 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627521', 'tblTempVendorCDR_20' ) start [2025-03-07 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627521', 'tblTempVendorCDR_20' ) end [2025-03-07 11:30:21] Production.INFO: ProcessCDR(1,14627521,1,1,2) [2025-03-07 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627521', 'tblTempUsageDetail_20' ) start [2025-03-07 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627521', 'tblTempUsageDetail_20' ) end [2025-03-07 11:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:30:26] Production.INFO: ==8108== Releasing lock... [2025-03-07 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:30:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-07 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:31:05 [end_date_ymd] => 2025-03-07 11:31:05 [RateCDR] => 1 ) [2025-03-07 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:31:05' and `end` < '2025-03-07 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:31:18] Production.INFO: count ==4105 [2025-03-07 11:31:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:31:05 - End Time 2025-03-07 11:31:05 [2025-03-07 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627526', 'tblTempUsageDetail_20' ) start [2025-03-07 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627526', 'tblTempUsageDetail_20' ) end [2025-03-07 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627526', 'tblTempVendorCDR_20' ) start [2025-03-07 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627526', 'tblTempVendorCDR_20' ) end [2025-03-07 11:31:20] Production.INFO: ProcessCDR(1,14627526,1,1,2) [2025-03-07 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627526', 'tblTempUsageDetail_20' ) start [2025-03-07 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627526', 'tblTempUsageDetail_20' ) end [2025-03-07 11:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:31:25] Production.INFO: ==8190== Releasing lock... [2025-03-07 11:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:31:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-07 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:32:06 [end_date_ymd] => 2025-03-07 11:32:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:32:06' and `end` < '2025-03-07 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-03-07 11:32:19] Production.INFO: count ==4108 [2025-03-07 11:32:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:32:06 - End Time 2025-03-07 11:32:06 [2025-03-07 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627531', 'tblTempUsageDetail_20' ) start [2025-03-07 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627531', 'tblTempUsageDetail_20' ) end [2025-03-07 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627531', 'tblTempVendorCDR_20' ) start [2025-03-07 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627531', 'tblTempVendorCDR_20' ) end [2025-03-07 11:32:21] Production.INFO: ProcessCDR(1,14627531,1,1,2) [2025-03-07 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627531', 'tblTempUsageDetail_20' ) start [2025-03-07 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627531', 'tblTempUsageDetail_20' ) end [2025-03-07 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:32:26] Production.INFO: ==8267== Releasing lock... [2025-03-07 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:32:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-07 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:33:05 [end_date_ymd] => 2025-03-07 11:33:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:33:05' and `end` < '2025-03-07 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-03-07 11:33:18] Production.INFO: count ==4118 [2025-03-07 11:33:19] Production.ERROR: pbx CDR StartTime 2025-03-07 08:33:05 - End Time 2025-03-07 11:33:05 [2025-03-07 11:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627536', 'tblTempUsageDetail_20' ) start [2025-03-07 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627536', 'tblTempUsageDetail_20' ) end [2025-03-07 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627536', 'tblTempVendorCDR_20' ) start [2025-03-07 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627536', 'tblTempVendorCDR_20' ) end [2025-03-07 11:33:20] Production.INFO: ProcessCDR(1,14627536,1,1,2) [2025-03-07 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627536', 'tblTempUsageDetail_20' ) start [2025-03-07 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627536', 'tblTempUsageDetail_20' ) end [2025-03-07 11:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:33:25] Production.INFO: ==8342== Releasing lock... [2025-03-07 11:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:33:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-07 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:34:05 [end_date_ymd] => 2025-03-07 11:34:05 [RateCDR] => 1 ) [2025-03-07 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:34:05' and `end` < '2025-03-07 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:34:18] Production.INFO: count ==4145 [2025-03-07 11:34:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:34:05 - End Time 2025-03-07 11:34:05 [2025-03-07 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627541', 'tblTempUsageDetail_20' ) start [2025-03-07 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627541', 'tblTempUsageDetail_20' ) end [2025-03-07 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627541', 'tblTempVendorCDR_20' ) start [2025-03-07 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627541', 'tblTempVendorCDR_20' ) end [2025-03-07 11:34:20] Production.INFO: ProcessCDR(1,14627541,1,1,2) [2025-03-07 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627541', 'tblTempUsageDetail_20' ) start [2025-03-07 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627541', 'tblTempUsageDetail_20' ) end [2025-03-07 11:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:34:25] Production.INFO: ==8418== Releasing lock... [2025-03-07 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:34:25] Production.INFO: 59 MB #Memory Used# [2025-03-07 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:35:05 [end_date_ymd] => 2025-03-07 11:35:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:35:05' and `end` < '2025-03-07 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-03-07 11:35:18] Production.INFO: count ==4146 [2025-03-07 11:35:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:35:05 - End Time 2025-03-07 11:35:05 [2025-03-07 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627546', 'tblTempUsageDetail_20' ) start [2025-03-07 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627546', 'tblTempUsageDetail_20' ) end [2025-03-07 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627546', 'tblTempVendorCDR_20' ) start [2025-03-07 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627546', 'tblTempVendorCDR_20' ) end [2025-03-07 11:35:20] Production.INFO: ProcessCDR(1,14627546,1,1,2) [2025-03-07 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627546', 'tblTempUsageDetail_20' ) start [2025-03-07 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627546', 'tblTempUsageDetail_20' ) end [2025-03-07 11:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:35:25] Production.INFO: ==8491== Releasing lock... [2025-03-07 11:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:35:25] Production.INFO: 59 MB #Memory Used# [2025-03-07 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:36:05 [end_date_ymd] => 2025-03-07 11:36:05 [RateCDR] => 1 ) [2025-03-07 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:36:05' and `end` < '2025-03-07 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:36:18] Production.INFO: count ==4154 [2025-03-07 11:36:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:36:05 - End Time 2025-03-07 11:36:05 [2025-03-07 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627551', 'tblTempUsageDetail_20' ) start [2025-03-07 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627551', 'tblTempUsageDetail_20' ) end [2025-03-07 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627551', 'tblTempVendorCDR_20' ) start [2025-03-07 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627551', 'tblTempVendorCDR_20' ) end [2025-03-07 11:36:20] Production.INFO: ProcessCDR(1,14627551,1,1,2) [2025-03-07 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627551', 'tblTempUsageDetail_20' ) start [2025-03-07 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627551', 'tblTempUsageDetail_20' ) end [2025-03-07 11:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:36:25] Production.INFO: ==8605== Releasing lock... [2025-03-07 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:36:25] Production.INFO: 59 MB #Memory Used# [2025-03-07 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:37:05 [end_date_ymd] => 2025-03-07 11:37:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:37:05' and `end` < '2025-03-07 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-03-07 11:37:18] Production.INFO: count ==4166 [2025-03-07 11:37:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:37:05 - End Time 2025-03-07 11:37:05 [2025-03-07 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627556', 'tblTempUsageDetail_20' ) start [2025-03-07 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627556', 'tblTempUsageDetail_20' ) end [2025-03-07 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627556', 'tblTempVendorCDR_20' ) start [2025-03-07 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627556', 'tblTempVendorCDR_20' ) end [2025-03-07 11:37:20] Production.INFO: ProcessCDR(1,14627556,1,1,2) [2025-03-07 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627556', 'tblTempUsageDetail_20' ) start [2025-03-07 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627556', 'tblTempUsageDetail_20' ) end [2025-03-07 11:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:37:23] Production.INFO: ==8679== Releasing lock... [2025-03-07 11:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:37:23] Production.INFO: 59.25 MB #Memory Used# [2025-03-07 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:38:06 [end_date_ymd] => 2025-03-07 11:38:06 [RateCDR] => 1 ) [2025-03-07 11:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:38:06' and `end` < '2025-03-07 11:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:38:19] Production.INFO: count ==4171 [2025-03-07 11:38:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:38:06 - End Time 2025-03-07 11:38:06 [2025-03-07 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627561', 'tblTempUsageDetail_20' ) start [2025-03-07 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627561', 'tblTempUsageDetail_20' ) end [2025-03-07 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627561', 'tblTempVendorCDR_20' ) start [2025-03-07 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627561', 'tblTempVendorCDR_20' ) end [2025-03-07 11:38:21] Production.INFO: ProcessCDR(1,14627561,1,1,2) [2025-03-07 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627561', 'tblTempUsageDetail_20' ) start [2025-03-07 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627561', 'tblTempUsageDetail_20' ) end [2025-03-07 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:38:26] Production.INFO: ==8756== Releasing lock... [2025-03-07 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:38:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-07 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:39:06 [end_date_ymd] => 2025-03-07 11:39:06 [RateCDR] => 1 ) [2025-03-07 11:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:39:06' and `end` < '2025-03-07 11:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:39:19] Production.INFO: count ==4189 [2025-03-07 11:39:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:39:06 - End Time 2025-03-07 11:39:06 [2025-03-07 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627566', 'tblTempUsageDetail_20' ) start [2025-03-07 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627566', 'tblTempUsageDetail_20' ) end [2025-03-07 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627566', 'tblTempVendorCDR_20' ) start [2025-03-07 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627566', 'tblTempVendorCDR_20' ) end [2025-03-07 11:39:21] Production.INFO: ProcessCDR(1,14627566,1,1,2) [2025-03-07 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627566', 'tblTempUsageDetail_20' ) start [2025-03-07 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627566', 'tblTempUsageDetail_20' ) end [2025-03-07 11:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:39:27] Production.INFO: ==8824== Releasing lock... [2025-03-07 11:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:39:27] Production.INFO: 59.25 MB #Memory Used# [2025-03-07 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:40:07 [end_date_ymd] => 2025-03-07 11:40:07 [RateCDR] => 1 ) [2025-03-07 11: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-03-07 08:40:07' and `end` < '2025-03-07 11: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-03-07 11:40:20] Production.INFO: count ==4227 [2025-03-07 11:40:22] Production.ERROR: pbx CDR StartTime 2025-03-07 08:40:07 - End Time 2025-03-07 11:40:07 [2025-03-07 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627572', 'tblTempUsageDetail_20' ) start [2025-03-07 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627572', 'tblTempUsageDetail_20' ) end [2025-03-07 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627572', 'tblTempVendorCDR_20' ) start [2025-03-07 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627572', 'tblTempVendorCDR_20' ) end [2025-03-07 11:40:22] Production.INFO: ProcessCDR(1,14627572,1,1,2) [2025-03-07 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627572', 'tblTempUsageDetail_20' ) start [2025-03-07 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627572', 'tblTempUsageDetail_20' ) end [2025-03-07 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:40:27] Production.INFO: ==8901== Releasing lock... [2025-03-07 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:40:27] Production.INFO: 59.5 MB #Memory Used# [2025-03-07 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:41:05 [end_date_ymd] => 2025-03-07 11:41:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:41:05' and `end` < '2025-03-07 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-03-07 11:41:18] Production.INFO: count ==4338 [2025-03-07 11:41:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:41:05 - End Time 2025-03-07 11:41:05 [2025-03-07 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627577', 'tblTempUsageDetail_20' ) start [2025-03-07 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627577', 'tblTempUsageDetail_20' ) end [2025-03-07 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627577', 'tblTempVendorCDR_20' ) start [2025-03-07 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627577', 'tblTempVendorCDR_20' ) end [2025-03-07 11:41:20] Production.INFO: ProcessCDR(1,14627577,1,1,2) [2025-03-07 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627577', 'tblTempUsageDetail_20' ) start [2025-03-07 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627577', 'tblTempUsageDetail_20' ) end [2025-03-07 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:41:26] Production.INFO: ==8975== Releasing lock... [2025-03-07 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:41:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-07 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:42:06 [end_date_ymd] => 2025-03-07 11:42:06 [RateCDR] => 1 ) [2025-03-07 11: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-03-07 08:42:06' and `end` < '2025-03-07 11: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-03-07 11:42:19] Production.INFO: count ==4351 [2025-03-07 11:42:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:42:06 - End Time 2025-03-07 11:42:06 [2025-03-07 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627582', 'tblTempUsageDetail_20' ) start [2025-03-07 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627582', 'tblTempUsageDetail_20' ) end [2025-03-07 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627582', 'tblTempVendorCDR_20' ) start [2025-03-07 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627582', 'tblTempVendorCDR_20' ) end [2025-03-07 11:42:21] Production.INFO: ProcessCDR(1,14627582,1,1,2) [2025-03-07 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627582', 'tblTempUsageDetail_20' ) start [2025-03-07 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627582', 'tblTempUsageDetail_20' ) end [2025-03-07 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:42:26] Production.INFO: ==9047== Releasing lock... [2025-03-07 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:42:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-07 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:43:05 [end_date_ymd] => 2025-03-07 11:43:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:43:05' and `end` < '2025-03-07 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-03-07 11:43:18] Production.INFO: count ==4382 [2025-03-07 11:43:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:43:05 - End Time 2025-03-07 11:43:05 [2025-03-07 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627587', 'tblTempUsageDetail_20' ) start [2025-03-07 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627587', 'tblTempUsageDetail_20' ) end [2025-03-07 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627587', 'tblTempVendorCDR_20' ) start [2025-03-07 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627587', 'tblTempVendorCDR_20' ) end [2025-03-07 11:43:20] Production.INFO: ProcessCDR(1,14627587,1,1,2) [2025-03-07 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627587', 'tblTempUsageDetail_20' ) start [2025-03-07 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627587', 'tblTempUsageDetail_20' ) end [2025-03-07 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:43:25] Production.INFO: ==9121== Releasing lock... [2025-03-07 11:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:43:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-07 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:44:06 [end_date_ymd] => 2025-03-07 11:44:06 [RateCDR] => 1 ) [2025-03-07 11: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-03-07 08:44:06' and `end` < '2025-03-07 11: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-03-07 11:44:19] Production.INFO: count ==4382 [2025-03-07 11:44:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:44:06 - End Time 2025-03-07 11:44:06 [2025-03-07 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627592', 'tblTempUsageDetail_20' ) start [2025-03-07 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627592', 'tblTempUsageDetail_20' ) end [2025-03-07 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627592', 'tblTempVendorCDR_20' ) start [2025-03-07 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627592', 'tblTempVendorCDR_20' ) end [2025-03-07 11:44:21] Production.INFO: ProcessCDR(1,14627592,1,1,2) [2025-03-07 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627592', 'tblTempUsageDetail_20' ) start [2025-03-07 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627592', 'tblTempUsageDetail_20' ) end [2025-03-07 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:44:26] Production.INFO: ==9195== Releasing lock... [2025-03-07 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:44:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-07 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:45:05 [end_date_ymd] => 2025-03-07 11:45:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:45:05' and `end` < '2025-03-07 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-03-07 11:45:18] Production.INFO: count ==4413 [2025-03-07 11:45:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:45:05 - End Time 2025-03-07 11:45:05 [2025-03-07 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627597', 'tblTempUsageDetail_20' ) start [2025-03-07 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627597', 'tblTempUsageDetail_20' ) end [2025-03-07 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627597', 'tblTempVendorCDR_20' ) start [2025-03-07 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627597', 'tblTempVendorCDR_20' ) end [2025-03-07 11:45:20] Production.INFO: ProcessCDR(1,14627597,1,1,2) [2025-03-07 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627597', 'tblTempUsageDetail_20' ) start [2025-03-07 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627597', 'tblTempUsageDetail_20' ) end [2025-03-07 11:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:45:25] Production.INFO: ==9267== Releasing lock... [2025-03-07 11:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:45:25] Production.INFO: 61 MB #Memory Used# [2025-03-07 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:46:05 [end_date_ymd] => 2025-03-07 11:46:05 [RateCDR] => 1 ) [2025-03-07 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:46:05' and `end` < '2025-03-07 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:46:18] Production.INFO: count ==4444 [2025-03-07 11:46:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:46:05 - End Time 2025-03-07 11:46:05 [2025-03-07 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627602', 'tblTempUsageDetail_20' ) start [2025-03-07 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627602', 'tblTempUsageDetail_20' ) end [2025-03-07 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627602', 'tblTempVendorCDR_20' ) start [2025-03-07 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627602', 'tblTempVendorCDR_20' ) end [2025-03-07 11:46:21] Production.INFO: ProcessCDR(1,14627602,1,1,2) [2025-03-07 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627602', 'tblTempUsageDetail_20' ) start [2025-03-07 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627602', 'tblTempUsageDetail_20' ) end [2025-03-07 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:46:26] Production.INFO: ==9339== Releasing lock... [2025-03-07 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:46:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-07 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:47:05 [end_date_ymd] => 2025-03-07 11:47:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:47:05' and `end` < '2025-03-07 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-03-07 11:47:18] Production.INFO: count ==4438 [2025-03-07 11:47:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:47:05 - End Time 2025-03-07 11:47:05 [2025-03-07 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627607', 'tblTempUsageDetail_20' ) start [2025-03-07 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627607', 'tblTempUsageDetail_20' ) end [2025-03-07 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627607', 'tblTempVendorCDR_20' ) start [2025-03-07 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627607', 'tblTempVendorCDR_20' ) end [2025-03-07 11:47:20] Production.INFO: ProcessCDR(1,14627607,1,1,2) [2025-03-07 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627607', 'tblTempUsageDetail_20' ) start [2025-03-07 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627607', 'tblTempUsageDetail_20' ) end [2025-03-07 11:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:47:25] Production.INFO: ==9409== Releasing lock... [2025-03-07 11:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:47:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-07 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:48:05 [end_date_ymd] => 2025-03-07 11:48:05 [RateCDR] => 1 ) [2025-03-07 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:48:05' and `end` < '2025-03-07 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:48:19] Production.INFO: count ==4435 [2025-03-07 11:48:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:48:05 - End Time 2025-03-07 11:48:05 [2025-03-07 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627612', 'tblTempUsageDetail_20' ) start [2025-03-07 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627612', 'tblTempUsageDetail_20' ) end [2025-03-07 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627612', 'tblTempVendorCDR_20' ) start [2025-03-07 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627612', 'tblTempVendorCDR_20' ) end [2025-03-07 11:48:21] Production.INFO: ProcessCDR(1,14627612,1,1,2) [2025-03-07 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627612', 'tblTempUsageDetail_20' ) start [2025-03-07 11:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627612', 'tblTempUsageDetail_20' ) end [2025-03-07 11:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:48:24] Production.INFO: ==9479== Releasing lock... [2025-03-07 11:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:48:24] Production.INFO: 61.25 MB #Memory Used# [2025-03-07 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:49:05 [end_date_ymd] => 2025-03-07 11:49:05 [RateCDR] => 1 ) [2025-03-07 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:49:05' and `end` < '2025-03-07 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:49:18] Production.INFO: count ==4451 [2025-03-07 11:49:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:49:05 - End Time 2025-03-07 11:49:05 [2025-03-07 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627617', 'tblTempUsageDetail_20' ) start [2025-03-07 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627617', 'tblTempUsageDetail_20' ) end [2025-03-07 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627617', 'tblTempVendorCDR_20' ) start [2025-03-07 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627617', 'tblTempVendorCDR_20' ) end [2025-03-07 11:49:20] Production.INFO: ProcessCDR(1,14627617,1,1,2) [2025-03-07 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627617', 'tblTempUsageDetail_20' ) start [2025-03-07 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627617', 'tblTempUsageDetail_20' ) end [2025-03-07 11:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:49:25] Production.INFO: ==9553== Releasing lock... [2025-03-07 11:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:49:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-07 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:50:06 [end_date_ymd] => 2025-03-07 11:50:06 [RateCDR] => 1 ) [2025-03-07 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:50:06' and `end` < '2025-03-07 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:50:19] Production.INFO: count ==4455 [2025-03-07 11:50:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:50:06 - End Time 2025-03-07 11:50:06 [2025-03-07 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627622', 'tblTempUsageDetail_20' ) start [2025-03-07 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627622', 'tblTempUsageDetail_20' ) end [2025-03-07 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627622', 'tblTempVendorCDR_20' ) start [2025-03-07 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627622', 'tblTempVendorCDR_20' ) end [2025-03-07 11:50:21] Production.INFO: ProcessCDR(1,14627622,1,1,2) [2025-03-07 11:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627622', 'tblTempUsageDetail_20' ) start [2025-03-07 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627622', 'tblTempUsageDetail_20' ) end [2025-03-07 11:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:50:26] Production.INFO: ==9629== Releasing lock... [2025-03-07 11:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:50:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-07 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:51:05 [end_date_ymd] => 2025-03-07 11:51:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:51:05' and `end` < '2025-03-07 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-03-07 11:51:18] Production.INFO: count ==4478 [2025-03-07 11:51:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:51:05 - End Time 2025-03-07 11:51:05 [2025-03-07 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627628', 'tblTempUsageDetail_20' ) start [2025-03-07 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627628', 'tblTempUsageDetail_20' ) end [2025-03-07 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627628', 'tblTempVendorCDR_20' ) start [2025-03-07 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627628', 'tblTempVendorCDR_20' ) end [2025-03-07 11:51:20] Production.INFO: ProcessCDR(1,14627628,1,1,2) [2025-03-07 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627628', 'tblTempUsageDetail_20' ) start [2025-03-07 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627628', 'tblTempUsageDetail_20' ) end [2025-03-07 11:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:51:25] Production.INFO: ==9704== Releasing lock... [2025-03-07 11:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:51:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-07 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:52:06 [end_date_ymd] => 2025-03-07 11:52:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:52:06' and `end` < '2025-03-07 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-03-07 11:52:19] Production.INFO: count ==4491 [2025-03-07 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:52:06 - End Time 2025-03-07 11:52:06 [2025-03-07 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627633', 'tblTempUsageDetail_20' ) start [2025-03-07 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627633', 'tblTempUsageDetail_20' ) end [2025-03-07 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627633', 'tblTempVendorCDR_20' ) start [2025-03-07 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627633', 'tblTempVendorCDR_20' ) end [2025-03-07 11:52:21] Production.INFO: ProcessCDR(1,14627633,1,1,2) [2025-03-07 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627633', 'tblTempUsageDetail_20' ) start [2025-03-07 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627633', 'tblTempUsageDetail_20' ) end [2025-03-07 11:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:52:26] Production.INFO: ==9815== Releasing lock... [2025-03-07 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:52:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-07 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:53:05 [end_date_ymd] => 2025-03-07 11:53:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:53:05' and `end` < '2025-03-07 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-03-07 11:53:18] Production.INFO: count ==4499 [2025-03-07 11:53:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:53:05 - End Time 2025-03-07 11:53:05 [2025-03-07 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627638', 'tblTempUsageDetail_20' ) start [2025-03-07 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627638', 'tblTempUsageDetail_20' ) end [2025-03-07 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627638', 'tblTempVendorCDR_20' ) start [2025-03-07 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627638', 'tblTempVendorCDR_20' ) end [2025-03-07 11:53:20] Production.INFO: ProcessCDR(1,14627638,1,1,2) [2025-03-07 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627638', 'tblTempUsageDetail_20' ) start [2025-03-07 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627638', 'tblTempUsageDetail_20' ) end [2025-03-07 11:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:53:25] Production.INFO: ==9894== Releasing lock... [2025-03-07 11:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:53:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-07 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:54:05 [end_date_ymd] => 2025-03-07 11:54:05 [RateCDR] => 1 ) [2025-03-07 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:54:05' and `end` < '2025-03-07 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:54:18] Production.INFO: count ==4482 [2025-03-07 11:54:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:54:05 - End Time 2025-03-07 11:54:05 [2025-03-07 11:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627643', 'tblTempUsageDetail_20' ) start [2025-03-07 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627643', 'tblTempUsageDetail_20' ) end [2025-03-07 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627643', 'tblTempVendorCDR_20' ) start [2025-03-07 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627643', 'tblTempVendorCDR_20' ) end [2025-03-07 11:54:20] Production.INFO: ProcessCDR(1,14627643,1,1,2) [2025-03-07 11:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627643', 'tblTempUsageDetail_20' ) start [2025-03-07 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627643', 'tblTempUsageDetail_20' ) end [2025-03-07 11:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:54:25] Production.INFO: ==9966== Releasing lock... [2025-03-07 11:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:54:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-07 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:55:05 [end_date_ymd] => 2025-03-07 11:55:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:55:05' and `end` < '2025-03-07 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-03-07 11:55:18] Production.INFO: count ==4489 [2025-03-07 11:55:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:55:05 - End Time 2025-03-07 11:55:05 [2025-03-07 11:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627648', 'tblTempUsageDetail_20' ) start [2025-03-07 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627648', 'tblTempUsageDetail_20' ) end [2025-03-07 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627648', 'tblTempVendorCDR_20' ) start [2025-03-07 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627648', 'tblTempVendorCDR_20' ) end [2025-03-07 11:55:20] Production.INFO: ProcessCDR(1,14627648,1,1,2) [2025-03-07 11:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627648', 'tblTempUsageDetail_20' ) start [2025-03-07 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627648', 'tblTempUsageDetail_20' ) end [2025-03-07 11:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:55:25] Production.INFO: ==10036== Releasing lock... [2025-03-07 11:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:55:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-07 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:56:06 [end_date_ymd] => 2025-03-07 11:56:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 08:56:06' and `end` < '2025-03-07 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-03-07 11:56:19] Production.INFO: count ==4493 [2025-03-07 11:56:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:56:06 - End Time 2025-03-07 11:56:06 [2025-03-07 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627653', 'tblTempUsageDetail_20' ) start [2025-03-07 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627653', 'tblTempUsageDetail_20' ) end [2025-03-07 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627653', 'tblTempVendorCDR_20' ) start [2025-03-07 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627653', 'tblTempVendorCDR_20' ) end [2025-03-07 11:56:21] Production.INFO: ProcessCDR(1,14627653,1,1,2) [2025-03-07 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627653', 'tblTempUsageDetail_20' ) start [2025-03-07 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627653', 'tblTempUsageDetail_20' ) end [2025-03-07 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:56:26] Production.INFO: ==10107== Releasing lock... [2025-03-07 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:56:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-07 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:57:05 [end_date_ymd] => 2025-03-07 11:57:05 [RateCDR] => 1 ) [2025-03-07 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:57:05' and `end` < '2025-03-07 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:57:18] Production.INFO: count ==4518 [2025-03-07 11:57:20] Production.ERROR: pbx CDR StartTime 2025-03-07 08:57:05 - End Time 2025-03-07 11:57:05 [2025-03-07 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627658', 'tblTempUsageDetail_20' ) start [2025-03-07 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627658', 'tblTempUsageDetail_20' ) end [2025-03-07 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627658', 'tblTempVendorCDR_20' ) start [2025-03-07 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627658', 'tblTempVendorCDR_20' ) end [2025-03-07 11:57:20] Production.INFO: ProcessCDR(1,14627658,1,1,2) [2025-03-07 11:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627658', 'tblTempUsageDetail_20' ) start [2025-03-07 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627658', 'tblTempUsageDetail_20' ) end [2025-03-07 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:57:26] Production.INFO: ==10180== Releasing lock... [2025-03-07 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:57:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-07 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:58:06 [end_date_ymd] => 2025-03-07 11:58:06 [RateCDR] => 1 ) [2025-03-07 11:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:58:06' and `end` < '2025-03-07 11:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:58:19] Production.INFO: count ==4536 [2025-03-07 11:58:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:58:06 - End Time 2025-03-07 11:58:06 [2025-03-07 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627663', 'tblTempUsageDetail_20' ) start [2025-03-07 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627663', 'tblTempUsageDetail_20' ) end [2025-03-07 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627663', 'tblTempVendorCDR_20' ) start [2025-03-07 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627663', 'tblTempVendorCDR_20' ) end [2025-03-07 11:58:21] Production.INFO: ProcessCDR(1,14627663,1,1,2) [2025-03-07 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627663', 'tblTempUsageDetail_20' ) start [2025-03-07 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627663', 'tblTempUsageDetail_20' ) end [2025-03-07 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:58:26] Production.INFO: ==10253== Releasing lock... [2025-03-07 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:58:26] Production.INFO: 62 MB #Memory Used# [2025-03-07 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 08:59:06 [end_date_ymd] => 2025-03-07 11:59:06 [RateCDR] => 1 ) [2025-03-07 11:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 08:59:06' and `end` < '2025-03-07 11:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 11:59:19] Production.INFO: count ==4550 [2025-03-07 11:59:21] Production.ERROR: pbx CDR StartTime 2025-03-07 08:59:06 - End Time 2025-03-07 11:59:06 [2025-03-07 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627668', 'tblTempUsageDetail_20' ) start [2025-03-07 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627668', 'tblTempUsageDetail_20' ) end [2025-03-07 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627668', 'tblTempVendorCDR_20' ) start [2025-03-07 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627668', 'tblTempVendorCDR_20' ) end [2025-03-07 11:59:21] Production.INFO: ProcessCDR(1,14627668,1,1,2) [2025-03-07 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627668', 'tblTempUsageDetail_20' ) start [2025-03-07 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627668', 'tblTempUsageDetail_20' ) end [2025-03-07 11:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 11:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 11:59:27] Production.INFO: ==10324== Releasing lock... [2025-03-07 11:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 11:59:27] Production.INFO: 62 MB #Memory Used# [2025-03-07 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:00:06 [end_date_ymd] => 2025-03-07 12:00:06 [RateCDR] => 1 ) [2025-03-07 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:00:06' and `end` < '2025-03-07 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:00:19] Production.INFO: count ==4553 [2025-03-07 12:00:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:00:06 - End Time 2025-03-07 12:00:06 [2025-03-07 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627673', 'tblTempUsageDetail_20' ) start [2025-03-07 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627673', 'tblTempUsageDetail_20' ) end [2025-03-07 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627673', 'tblTempVendorCDR_20' ) start [2025-03-07 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627673', 'tblTempVendorCDR_20' ) end [2025-03-07 12:00:21] Production.INFO: ProcessCDR(1,14627673,1,1,2) [2025-03-07 12:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627673', 'tblTempUsageDetail_20' ) start [2025-03-07 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627673', 'tblTempUsageDetail_20' ) end [2025-03-07 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:00:27] Production.INFO: ==10404== Releasing lock... [2025-03-07 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:00:27] Production.INFO: 62 MB #Memory Used# [2025-03-07 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:01:06 [end_date_ymd] => 2025-03-07 12:01:06 [RateCDR] => 1 ) [2025-03-07 12:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:01:06' and `end` < '2025-03-07 12:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:01:19] Production.INFO: count ==4602 [2025-03-07 12:01:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:01:06 - End Time 2025-03-07 12:01:06 [2025-03-07 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627679', 'tblTempUsageDetail_20' ) start [2025-03-07 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627679', 'tblTempUsageDetail_20' ) end [2025-03-07 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627679', 'tblTempVendorCDR_20' ) start [2025-03-07 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627679', 'tblTempVendorCDR_20' ) end [2025-03-07 12:01:21] Production.INFO: ProcessCDR(1,14627679,1,1,2) [2025-03-07 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627679', 'tblTempUsageDetail_20' ) start [2025-03-07 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627679', 'tblTempUsageDetail_20' ) end [2025-03-07 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:01:26] Production.INFO: ==10491== Releasing lock... [2025-03-07 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:01:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-07 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:02:05 [end_date_ymd] => 2025-03-07 12:02:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:02:05' and `end` < '2025-03-07 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-03-07 12:02:18] Production.INFO: count ==4597 [2025-03-07 12:02:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:02:05 - End Time 2025-03-07 12:02:05 [2025-03-07 12:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627684', 'tblTempUsageDetail_20' ) start [2025-03-07 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627684', 'tblTempUsageDetail_20' ) end [2025-03-07 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627684', 'tblTempVendorCDR_20' ) start [2025-03-07 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627684', 'tblTempVendorCDR_20' ) end [2025-03-07 12:02:21] Production.INFO: ProcessCDR(1,14627684,1,1,2) [2025-03-07 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627684', 'tblTempUsageDetail_20' ) start [2025-03-07 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627684', 'tblTempUsageDetail_20' ) end [2025-03-07 12:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:02:26] Production.INFO: ==10563== Releasing lock... [2025-03-07 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:02:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-07 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:03:06 [end_date_ymd] => 2025-03-07 12:03:06 [RateCDR] => 1 ) [2025-03-07 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:03:06' and `end` < '2025-03-07 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:03:19] Production.INFO: count ==4603 [2025-03-07 12:03:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:03:06 - End Time 2025-03-07 12:03:06 [2025-03-07 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627689', 'tblTempUsageDetail_20' ) start [2025-03-07 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627689', 'tblTempUsageDetail_20' ) end [2025-03-07 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627689', 'tblTempVendorCDR_20' ) start [2025-03-07 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627689', 'tblTempVendorCDR_20' ) end [2025-03-07 12:03:21] Production.INFO: ProcessCDR(1,14627689,1,1,2) [2025-03-07 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627689', 'tblTempUsageDetail_20' ) start [2025-03-07 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627689', 'tblTempUsageDetail_20' ) end [2025-03-07 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:03:26] Production.INFO: ==10636== Releasing lock... [2025-03-07 12:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:03:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-07 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:04:06 [end_date_ymd] => 2025-03-07 12:04:06 [RateCDR] => 1 ) [2025-03-07 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:04:06' and `end` < '2025-03-07 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:04:19] Production.INFO: count ==4620 [2025-03-07 12:04:22] Production.ERROR: pbx CDR StartTime 2025-03-07 09:04:06 - End Time 2025-03-07 12:04:06 [2025-03-07 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627694', 'tblTempUsageDetail_20' ) start [2025-03-07 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627694', 'tblTempUsageDetail_20' ) end [2025-03-07 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627694', 'tblTempVendorCDR_20' ) start [2025-03-07 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627694', 'tblTempVendorCDR_20' ) end [2025-03-07 12:04:22] Production.INFO: ProcessCDR(1,14627694,1,1,2) [2025-03-07 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627694', 'tblTempUsageDetail_20' ) start [2025-03-07 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627694', 'tblTempUsageDetail_20' ) end [2025-03-07 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:04:27] Production.INFO: ==10710== Releasing lock... [2025-03-07 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:04:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-07 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:05:06 [end_date_ymd] => 2025-03-07 12:05:06 [RateCDR] => 1 ) [2025-03-07 12:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:05:06' and `end` < '2025-03-07 12:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:05:19] Production.INFO: count ==4614 [2025-03-07 12:05:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:05:06 - End Time 2025-03-07 12:05:06 [2025-03-07 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627699', 'tblTempUsageDetail_20' ) start [2025-03-07 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627699', 'tblTempUsageDetail_20' ) end [2025-03-07 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627699', 'tblTempVendorCDR_20' ) start [2025-03-07 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627699', 'tblTempVendorCDR_20' ) end [2025-03-07 12:05:21] Production.INFO: ProcessCDR(1,14627699,1,1,2) [2025-03-07 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627699', 'tblTempUsageDetail_20' ) start [2025-03-07 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627699', 'tblTempUsageDetail_20' ) end [2025-03-07 12:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:05:27] Production.INFO: ==10780== Releasing lock... [2025-03-07 12:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:05:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-07 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:06:05 [end_date_ymd] => 2025-03-07 12:06:05 [RateCDR] => 1 ) [2025-03-07 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:06:05' and `end` < '2025-03-07 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:06:19] Production.INFO: count ==4594 [2025-03-07 12:06:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:06:05 - End Time 2025-03-07 12:06:05 [2025-03-07 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627704', 'tblTempUsageDetail_20' ) start [2025-03-07 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627704', 'tblTempUsageDetail_20' ) end [2025-03-07 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627704', 'tblTempVendorCDR_20' ) start [2025-03-07 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627704', 'tblTempVendorCDR_20' ) end [2025-03-07 12:06:21] Production.INFO: ProcessCDR(1,14627704,1,1,2) [2025-03-07 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627704', 'tblTempUsageDetail_20' ) start [2025-03-07 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627704', 'tblTempUsageDetail_20' ) end [2025-03-07 12:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:06:26] Production.INFO: ==10851== Releasing lock... [2025-03-07 12:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:06:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-07 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:07:06 [end_date_ymd] => 2025-03-07 12:07:06 [RateCDR] => 1 ) [2025-03-07 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:07:06' and `end` < '2025-03-07 12:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:07:19] Production.INFO: count ==4605 [2025-03-07 12:07:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:07:06 - End Time 2025-03-07 12:07:06 [2025-03-07 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627709', 'tblTempUsageDetail_20' ) start [2025-03-07 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627709', 'tblTempUsageDetail_20' ) end [2025-03-07 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627709', 'tblTempVendorCDR_20' ) start [2025-03-07 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627709', 'tblTempVendorCDR_20' ) end [2025-03-07 12:07:21] Production.INFO: ProcessCDR(1,14627709,1,1,2) [2025-03-07 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627709', 'tblTempUsageDetail_20' ) start [2025-03-07 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627709', 'tblTempUsageDetail_20' ) end [2025-03-07 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:07:26] Production.INFO: ==10961== Releasing lock... [2025-03-07 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:07:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-07 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:08:05 [end_date_ymd] => 2025-03-07 12:08:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:08:05' and `end` < '2025-03-07 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-03-07 12:08:18] Production.INFO: count ==4631 [2025-03-07 12:08:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:08:05 - End Time 2025-03-07 12:08:05 [2025-03-07 12:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627714', 'tblTempUsageDetail_20' ) start [2025-03-07 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627714', 'tblTempUsageDetail_20' ) end [2025-03-07 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627714', 'tblTempVendorCDR_20' ) start [2025-03-07 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627714', 'tblTempVendorCDR_20' ) end [2025-03-07 12:08:20] Production.INFO: ProcessCDR(1,14627714,1,1,2) [2025-03-07 12:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627714', 'tblTempUsageDetail_20' ) start [2025-03-07 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627714', 'tblTempUsageDetail_20' ) end [2025-03-07 12:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:08:25] Production.INFO: ==11034== Releasing lock... [2025-03-07 12:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:08:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-07 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:09:06 [end_date_ymd] => 2025-03-07 12:09:06 [RateCDR] => 1 ) [2025-03-07 12: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-03-07 09:09:06' and `end` < '2025-03-07 12: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-03-07 12:09:19] Production.INFO: count ==4636 [2025-03-07 12:09:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:09:06 - End Time 2025-03-07 12:09:06 [2025-03-07 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627719', 'tblTempUsageDetail_20' ) start [2025-03-07 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627719', 'tblTempUsageDetail_20' ) end [2025-03-07 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627719', 'tblTempVendorCDR_20' ) start [2025-03-07 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627719', 'tblTempVendorCDR_20' ) end [2025-03-07 12:09:21] Production.INFO: ProcessCDR(1,14627719,1,1,2) [2025-03-07 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627719', 'tblTempUsageDetail_20' ) start [2025-03-07 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627719', 'tblTempUsageDetail_20' ) end [2025-03-07 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:09:26] Production.INFO: ==11108== Releasing lock... [2025-03-07 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:09:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-07 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:10:06 [end_date_ymd] => 2025-03-07 12:10:06 [RateCDR] => 1 ) [2025-03-07 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:10:06' and `end` < '2025-03-07 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:10:19] Production.INFO: count ==4640 [2025-03-07 12:10:22] Production.ERROR: pbx CDR StartTime 2025-03-07 09:10:06 - End Time 2025-03-07 12:10:06 [2025-03-07 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627725', 'tblTempUsageDetail_20' ) start [2025-03-07 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627725', 'tblTempUsageDetail_20' ) end [2025-03-07 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627725', 'tblTempVendorCDR_20' ) start [2025-03-07 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627725', 'tblTempVendorCDR_20' ) end [2025-03-07 12:10:22] Production.INFO: ProcessCDR(1,14627725,1,1,2) [2025-03-07 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627725', 'tblTempUsageDetail_20' ) start [2025-03-07 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627725', 'tblTempUsageDetail_20' ) end [2025-03-07 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:10:27] Production.INFO: ==11182== Releasing lock... [2025-03-07 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:10:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-07 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:11:06 [end_date_ymd] => 2025-03-07 12:11:06 [RateCDR] => 1 ) [2025-03-07 12: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-03-07 09:11:06' and `end` < '2025-03-07 12: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-03-07 12:11:19] Production.INFO: count ==4636 [2025-03-07 12:11:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:11:06 - End Time 2025-03-07 12:11:06 [2025-03-07 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627730', 'tblTempUsageDetail_20' ) start [2025-03-07 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627730', 'tblTempUsageDetail_20' ) end [2025-03-07 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627730', 'tblTempVendorCDR_20' ) start [2025-03-07 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627730', 'tblTempVendorCDR_20' ) end [2025-03-07 12:11:21] Production.INFO: ProcessCDR(1,14627730,1,1,2) [2025-03-07 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627730', 'tblTempUsageDetail_20' ) start [2025-03-07 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627730', 'tblTempUsageDetail_20' ) end [2025-03-07 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:11:26] Production.INFO: ==11258== Releasing lock... [2025-03-07 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:11:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-07 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:12:06 [end_date_ymd] => 2025-03-07 12:12:06 [RateCDR] => 1 ) [2025-03-07 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:12:06' and `end` < '2025-03-07 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:12:19] Production.INFO: count ==4617 [2025-03-07 12:12:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:12:06 - End Time 2025-03-07 12:12:06 [2025-03-07 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627735', 'tblTempUsageDetail_20' ) start [2025-03-07 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627735', 'tblTempUsageDetail_20' ) end [2025-03-07 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627735', 'tblTempVendorCDR_20' ) start [2025-03-07 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627735', 'tblTempVendorCDR_20' ) end [2025-03-07 12:12:21] Production.INFO: ProcessCDR(1,14627735,1,1,2) [2025-03-07 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627735', 'tblTempUsageDetail_20' ) start [2025-03-07 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627735', 'tblTempUsageDetail_20' ) end [2025-03-07 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:12:26] Production.INFO: ==11334== Releasing lock... [2025-03-07 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:12:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-07 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:13:06 [end_date_ymd] => 2025-03-07 12:13:06 [RateCDR] => 1 ) [2025-03-07 12: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-03-07 09:13:06' and `end` < '2025-03-07 12: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-03-07 12:13:19] Production.INFO: count ==4611 [2025-03-07 12:13:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:13:06 - End Time 2025-03-07 12:13:06 [2025-03-07 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627740', 'tblTempUsageDetail_20' ) start [2025-03-07 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627740', 'tblTempUsageDetail_20' ) end [2025-03-07 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627740', 'tblTempVendorCDR_20' ) start [2025-03-07 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627740', 'tblTempVendorCDR_20' ) end [2025-03-07 12:13:21] Production.INFO: ProcessCDR(1,14627740,1,1,2) [2025-03-07 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627740', 'tblTempUsageDetail_20' ) start [2025-03-07 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627740', 'tblTempUsageDetail_20' ) end [2025-03-07 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:13:26] Production.INFO: ==11405== Releasing lock... [2025-03-07 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:13:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-07 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:14:05 [end_date_ymd] => 2025-03-07 12:14:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:14:05' and `end` < '2025-03-07 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-03-07 12:14:19] Production.INFO: count ==4632 [2025-03-07 12:14:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:14:05 - End Time 2025-03-07 12:14:05 [2025-03-07 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627745', 'tblTempUsageDetail_20' ) start [2025-03-07 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627745', 'tblTempUsageDetail_20' ) end [2025-03-07 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627745', 'tblTempVendorCDR_20' ) start [2025-03-07 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627745', 'tblTempVendorCDR_20' ) end [2025-03-07 12:14:21] Production.INFO: ProcessCDR(1,14627745,1,1,2) [2025-03-07 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627745', 'tblTempUsageDetail_20' ) start [2025-03-07 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627745', 'tblTempUsageDetail_20' ) end [2025-03-07 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:14:26] Production.INFO: ==11475== Releasing lock... [2025-03-07 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:14:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-07 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:15:05 [end_date_ymd] => 2025-03-07 12:15:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:15:05' and `end` < '2025-03-07 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-03-07 12:15:18] Production.INFO: count ==4637 [2025-03-07 12:15:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:15:05 - End Time 2025-03-07 12:15:05 [2025-03-07 12:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627750', 'tblTempUsageDetail_20' ) start [2025-03-07 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627750', 'tblTempUsageDetail_20' ) end [2025-03-07 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627750', 'tblTempVendorCDR_20' ) start [2025-03-07 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627750', 'tblTempVendorCDR_20' ) end [2025-03-07 12:15:20] Production.INFO: ProcessCDR(1,14627750,1,1,2) [2025-03-07 12:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627750', 'tblTempUsageDetail_20' ) start [2025-03-07 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627750', 'tblTempUsageDetail_20' ) end [2025-03-07 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:15:26] Production.INFO: ==11550== Releasing lock... [2025-03-07 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:15:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-07 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:16:05 [end_date_ymd] => 2025-03-07 12:16:05 [RateCDR] => 1 ) [2025-03-07 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:16:05' and `end` < '2025-03-07 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:16:19] Production.INFO: count ==4637 [2025-03-07 12:16:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:16:05 - End Time 2025-03-07 12:16:05 [2025-03-07 12:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627755', 'tblTempUsageDetail_20' ) start [2025-03-07 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627755', 'tblTempUsageDetail_20' ) end [2025-03-07 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627755', 'tblTempVendorCDR_20' ) start [2025-03-07 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627755', 'tblTempVendorCDR_20' ) end [2025-03-07 12:16:21] Production.INFO: ProcessCDR(1,14627755,1,1,2) [2025-03-07 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627755', 'tblTempUsageDetail_20' ) start [2025-03-07 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627755', 'tblTempUsageDetail_20' ) end [2025-03-07 12:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:16:24] Production.INFO: ==11623== Releasing lock... [2025-03-07 12:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:16:24] Production.INFO: 62.75 MB #Memory Used# [2025-03-07 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:17:05 [end_date_ymd] => 2025-03-07 12:17:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:17:05' and `end` < '2025-03-07 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-03-07 12:17:18] Production.INFO: count ==4660 [2025-03-07 12:17:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:17:05 - End Time 2025-03-07 12:17:05 [2025-03-07 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627760', 'tblTempUsageDetail_20' ) start [2025-03-07 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627760', 'tblTempUsageDetail_20' ) end [2025-03-07 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627760', 'tblTempVendorCDR_20' ) start [2025-03-07 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627760', 'tblTempVendorCDR_20' ) end [2025-03-07 12:17:20] Production.INFO: ProcessCDR(1,14627760,1,1,2) [2025-03-07 12:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627760', 'tblTempUsageDetail_20' ) start [2025-03-07 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627760', 'tblTempUsageDetail_20' ) end [2025-03-07 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:17:26] Production.INFO: ==11697== Releasing lock... [2025-03-07 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:17:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-07 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:18:05 [end_date_ymd] => 2025-03-07 12:18:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:18:05' and `end` < '2025-03-07 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-03-07 12:18:18] Production.INFO: count ==4676 [2025-03-07 12:18:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:18:05 - End Time 2025-03-07 12:18:05 [2025-03-07 12:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627765', 'tblTempUsageDetail_20' ) start [2025-03-07 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627765', 'tblTempUsageDetail_20' ) end [2025-03-07 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627765', 'tblTempVendorCDR_20' ) start [2025-03-07 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627765', 'tblTempVendorCDR_20' ) end [2025-03-07 12:18:21] Production.INFO: ProcessCDR(1,14627765,1,1,2) [2025-03-07 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627765', 'tblTempUsageDetail_20' ) start [2025-03-07 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627765', 'tblTempUsageDetail_20' ) end [2025-03-07 12:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:18:26] Production.INFO: ==11780== Releasing lock... [2025-03-07 12:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:18:26] Production.INFO: 63 MB #Memory Used# [2025-03-07 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:19:06 [end_date_ymd] => 2025-03-07 12:19:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:19:06' and `end` < '2025-03-07 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-03-07 12:19:19] Production.INFO: count ==4682 [2025-03-07 12:19:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:19:06 - End Time 2025-03-07 12:19:06 [2025-03-07 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627770', 'tblTempUsageDetail_20' ) start [2025-03-07 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627770', 'tblTempUsageDetail_20' ) end [2025-03-07 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627770', 'tblTempVendorCDR_20' ) start [2025-03-07 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627770', 'tblTempVendorCDR_20' ) end [2025-03-07 12:19:21] Production.INFO: ProcessCDR(1,14627770,1,1,2) [2025-03-07 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627770', 'tblTempUsageDetail_20' ) start [2025-03-07 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627770', 'tblTempUsageDetail_20' ) end [2025-03-07 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:19:26] Production.INFO: ==11854== Releasing lock... [2025-03-07 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:19:26] Production.INFO: 63 MB #Memory Used# [2025-03-07 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:20:06 [end_date_ymd] => 2025-03-07 12:20:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:20:06' and `end` < '2025-03-07 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-03-07 12:20:19] Production.INFO: count ==4681 [2025-03-07 12:20:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:20:06 - End Time 2025-03-07 12:20:06 [2025-03-07 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627776', 'tblTempUsageDetail_20' ) start [2025-03-07 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627776', 'tblTempUsageDetail_20' ) end [2025-03-07 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627776', 'tblTempVendorCDR_20' ) start [2025-03-07 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627776', 'tblTempVendorCDR_20' ) end [2025-03-07 12:20:21] Production.INFO: ProcessCDR(1,14627776,1,1,2) [2025-03-07 12:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627776', 'tblTempUsageDetail_20' ) start [2025-03-07 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627776', 'tblTempUsageDetail_20' ) end [2025-03-07 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:20:27] Production.INFO: ==11927== Releasing lock... [2025-03-07 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:20:27] Production.INFO: 63 MB #Memory Used# [2025-03-07 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:21:05 [end_date_ymd] => 2025-03-07 12:21:05 [RateCDR] => 1 ) [2025-03-07 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:21:05' and `end` < '2025-03-07 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:21:18] Production.INFO: count ==4738 [2025-03-07 12:21:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:21:05 - End Time 2025-03-07 12:21:05 [2025-03-07 12:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627781', 'tblTempUsageDetail_20' ) start [2025-03-07 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627781', 'tblTempUsageDetail_20' ) end [2025-03-07 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627781', 'tblTempVendorCDR_20' ) start [2025-03-07 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627781', 'tblTempVendorCDR_20' ) end [2025-03-07 12:21:20] Production.INFO: ProcessCDR(1,14627781,1,1,2) [2025-03-07 12:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627781', 'tblTempUsageDetail_20' ) start [2025-03-07 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627781', 'tblTempUsageDetail_20' ) end [2025-03-07 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:21:26] Production.INFO: ==11999== Releasing lock... [2025-03-07 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:21:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-07 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:22:06 [end_date_ymd] => 2025-03-07 12:22:06 [RateCDR] => 1 ) [2025-03-07 12: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-03-07 09:22:06' and `end` < '2025-03-07 12: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-03-07 12:22:19] Production.INFO: count ==4772 [2025-03-07 12:22:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:22:06 - End Time 2025-03-07 12:22:06 [2025-03-07 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627786', 'tblTempUsageDetail_20' ) start [2025-03-07 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627786', 'tblTempUsageDetail_20' ) end [2025-03-07 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627786', 'tblTempVendorCDR_20' ) start [2025-03-07 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627786', 'tblTempVendorCDR_20' ) end [2025-03-07 12:22:21] Production.INFO: ProcessCDR(1,14627786,1,1,2) [2025-03-07 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627786', 'tblTempUsageDetail_20' ) start [2025-03-07 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627786', 'tblTempUsageDetail_20' ) end [2025-03-07 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:22:26] Production.INFO: ==12112== Releasing lock... [2025-03-07 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:22:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-07 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:23:06 [end_date_ymd] => 2025-03-07 12:23:06 [RateCDR] => 1 ) [2025-03-07 12:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:23:06' and `end` < '2025-03-07 12:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:23:19] Production.INFO: count ==4772 [2025-03-07 12:23:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:23:06 - End Time 2025-03-07 12:23:06 [2025-03-07 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627791', 'tblTempUsageDetail_20' ) start [2025-03-07 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627791', 'tblTempUsageDetail_20' ) end [2025-03-07 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627791', 'tblTempVendorCDR_20' ) start [2025-03-07 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627791', 'tblTempVendorCDR_20' ) end [2025-03-07 12:23:21] Production.INFO: ProcessCDR(1,14627791,1,1,2) [2025-03-07 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627791', 'tblTempUsageDetail_20' ) start [2025-03-07 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627791', 'tblTempUsageDetail_20' ) end [2025-03-07 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:23:27] Production.INFO: ==12185== Releasing lock... [2025-03-07 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:23:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-07 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:24:06 [end_date_ymd] => 2025-03-07 12:24:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:24:06' and `end` < '2025-03-07 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-03-07 12:24:19] Production.INFO: count ==4780 [2025-03-07 12:24:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:24:06 - End Time 2025-03-07 12:24:06 [2025-03-07 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627796', 'tblTempUsageDetail_20' ) start [2025-03-07 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627796', 'tblTempUsageDetail_20' ) end [2025-03-07 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627796', 'tblTempVendorCDR_20' ) start [2025-03-07 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627796', 'tblTempVendorCDR_20' ) end [2025-03-07 12:24:21] Production.INFO: ProcessCDR(1,14627796,1,1,2) [2025-03-07 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627796', 'tblTempUsageDetail_20' ) start [2025-03-07 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627796', 'tblTempUsageDetail_20' ) end [2025-03-07 12:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:24:26] Production.INFO: ==12257== Releasing lock... [2025-03-07 12:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:24:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-07 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:25:05 [end_date_ymd] => 2025-03-07 12:25:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:25:05' and `end` < '2025-03-07 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-03-07 12:25:19] Production.INFO: count ==4777 [2025-03-07 12:25:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:25:05 - End Time 2025-03-07 12:25:05 [2025-03-07 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627801', 'tblTempUsageDetail_20' ) start [2025-03-07 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627801', 'tblTempUsageDetail_20' ) end [2025-03-07 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627801', 'tblTempVendorCDR_20' ) start [2025-03-07 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627801', 'tblTempVendorCDR_20' ) end [2025-03-07 12:25:21] Production.INFO: ProcessCDR(1,14627801,1,1,2) [2025-03-07 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627801', 'tblTempUsageDetail_20' ) start [2025-03-07 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627801', 'tblTempUsageDetail_20' ) end [2025-03-07 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:25:26] Production.INFO: ==12331== Releasing lock... [2025-03-07 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:25:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-07 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:26:05 [end_date_ymd] => 2025-03-07 12:26:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:26:05' and `end` < '2025-03-07 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-03-07 12:26:18] Production.INFO: count ==4788 [2025-03-07 12:26:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:26:05 - End Time 2025-03-07 12:26:05 [2025-03-07 12:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627806', 'tblTempUsageDetail_20' ) start [2025-03-07 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627806', 'tblTempUsageDetail_20' ) end [2025-03-07 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627806', 'tblTempVendorCDR_20' ) start [2025-03-07 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627806', 'tblTempVendorCDR_20' ) end [2025-03-07 12:26:20] Production.INFO: ProcessCDR(1,14627806,1,1,2) [2025-03-07 12:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627806', 'tblTempUsageDetail_20' ) start [2025-03-07 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627806', 'tblTempUsageDetail_20' ) end [2025-03-07 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:26:26] Production.INFO: ==12402== Releasing lock... [2025-03-07 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:26:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-07 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:27:06 [end_date_ymd] => 2025-03-07 12:27:06 [RateCDR] => 1 ) [2025-03-07 12: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-03-07 09:27:06' and `end` < '2025-03-07 12: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-03-07 12:27:19] Production.INFO: count ==4795 [2025-03-07 12:27:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:27:06 - End Time 2025-03-07 12:27:06 [2025-03-07 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627811', 'tblTempUsageDetail_20' ) start [2025-03-07 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627811', 'tblTempUsageDetail_20' ) end [2025-03-07 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627811', 'tblTempVendorCDR_20' ) start [2025-03-07 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627811', 'tblTempVendorCDR_20' ) end [2025-03-07 12:27:21] Production.INFO: ProcessCDR(1,14627811,1,1,2) [2025-03-07 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627811', 'tblTempUsageDetail_20' ) start [2025-03-07 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627811', 'tblTempUsageDetail_20' ) end [2025-03-07 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:27:26] Production.INFO: ==12474== Releasing lock... [2025-03-07 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:27:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-07 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:28:05 [end_date_ymd] => 2025-03-07 12:28:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:28:05' and `end` < '2025-03-07 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-03-07 12:28:18] Production.INFO: count ==4809 [2025-03-07 12:28:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:28:05 - End Time 2025-03-07 12:28:05 [2025-03-07 12:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627816', 'tblTempUsageDetail_20' ) start [2025-03-07 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627816', 'tblTempUsageDetail_20' ) end [2025-03-07 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627816', 'tblTempVendorCDR_20' ) start [2025-03-07 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627816', 'tblTempVendorCDR_20' ) end [2025-03-07 12:28:20] Production.INFO: ProcessCDR(1,14627816,1,1,2) [2025-03-07 12:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627816', 'tblTempUsageDetail_20' ) start [2025-03-07 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627816', 'tblTempUsageDetail_20' ) end [2025-03-07 12:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:28:25] Production.INFO: ==12551== Releasing lock... [2025-03-07 12:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:28:25] Production.INFO: 64 MB #Memory Used# [2025-03-07 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:29:06 [end_date_ymd] => 2025-03-07 12:29:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:29:06' and `end` < '2025-03-07 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-03-07 12:29:19] Production.INFO: count ==4804 [2025-03-07 12:29:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:29:06 - End Time 2025-03-07 12:29:06 [2025-03-07 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627821', 'tblTempUsageDetail_20' ) start [2025-03-07 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627821', 'tblTempUsageDetail_20' ) end [2025-03-07 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627821', 'tblTempVendorCDR_20' ) start [2025-03-07 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627821', 'tblTempVendorCDR_20' ) end [2025-03-07 12:29:21] Production.INFO: ProcessCDR(1,14627821,1,1,2) [2025-03-07 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627821', 'tblTempUsageDetail_20' ) start [2025-03-07 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627821', 'tblTempUsageDetail_20' ) end [2025-03-07 12:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:29:26] Production.INFO: ==12622== Releasing lock... [2025-03-07 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:29:26] Production.INFO: 64 MB #Memory Used# [2025-03-07 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:30:06 [end_date_ymd] => 2025-03-07 12:30:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:30:06' and `end` < '2025-03-07 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-03-07 12:30:19] Production.INFO: count ==4813 [2025-03-07 12:30:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:30:06 - End Time 2025-03-07 12:30:06 [2025-03-07 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627826', 'tblTempUsageDetail_20' ) start [2025-03-07 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627826', 'tblTempUsageDetail_20' ) end [2025-03-07 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627826', 'tblTempVendorCDR_20' ) start [2025-03-07 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627826', 'tblTempVendorCDR_20' ) end [2025-03-07 12:30:21] Production.INFO: ProcessCDR(1,14627826,1,1,2) [2025-03-07 12:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627826', 'tblTempUsageDetail_20' ) start [2025-03-07 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627826', 'tblTempUsageDetail_20' ) end [2025-03-07 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:30:27] Production.INFO: ==12694== Releasing lock... [2025-03-07 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:30:27] Production.INFO: 64 MB #Memory Used# [2025-03-07 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:31:06 [end_date_ymd] => 2025-03-07 12:31:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:31:06' and `end` < '2025-03-07 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-03-07 12:31:19] Production.INFO: count ==4854 [2025-03-07 12:31:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:31:06 - End Time 2025-03-07 12:31:06 [2025-03-07 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627832', 'tblTempUsageDetail_20' ) start [2025-03-07 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627832', 'tblTempUsageDetail_20' ) end [2025-03-07 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627832', 'tblTempVendorCDR_20' ) start [2025-03-07 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627832', 'tblTempVendorCDR_20' ) end [2025-03-07 12:31:21] Production.INFO: ProcessCDR(1,14627832,1,1,2) [2025-03-07 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627832', 'tblTempUsageDetail_20' ) start [2025-03-07 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627832', 'tblTempUsageDetail_20' ) end [2025-03-07 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:31:27] Production.INFO: ==12767== Releasing lock... [2025-03-07 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:31:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-07 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:32:05 [end_date_ymd] => 2025-03-07 12:32:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:32:05' and `end` < '2025-03-07 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-03-07 12:32:19] Production.INFO: count ==4884 [2025-03-07 12:32:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:32:05 - End Time 2025-03-07 12:32:05 [2025-03-07 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627837', 'tblTempUsageDetail_20' ) start [2025-03-07 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627837', 'tblTempUsageDetail_20' ) end [2025-03-07 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627837', 'tblTempVendorCDR_20' ) start [2025-03-07 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627837', 'tblTempVendorCDR_20' ) end [2025-03-07 12:32:21] Production.INFO: ProcessCDR(1,14627837,1,1,2) [2025-03-07 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627837', 'tblTempUsageDetail_20' ) start [2025-03-07 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627837', 'tblTempUsageDetail_20' ) end [2025-03-07 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:32:26] Production.INFO: ==12844== Releasing lock... [2025-03-07 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:32:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:33:05 [end_date_ymd] => 2025-03-07 12:33:05 [RateCDR] => 1 ) [2025-03-07 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:33:05' and `end` < '2025-03-07 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:33:18] Production.INFO: count ==4901 [2025-03-07 12:33:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:33:05 - End Time 2025-03-07 12:33:05 [2025-03-07 12:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627842', 'tblTempUsageDetail_20' ) start [2025-03-07 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627842', 'tblTempUsageDetail_20' ) end [2025-03-07 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627842', 'tblTempVendorCDR_20' ) start [2025-03-07 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627842', 'tblTempVendorCDR_20' ) end [2025-03-07 12:33:21] Production.INFO: ProcessCDR(1,14627842,1,1,2) [2025-03-07 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627842', 'tblTempUsageDetail_20' ) start [2025-03-07 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627842', 'tblTempUsageDetail_20' ) end [2025-03-07 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:33:26] Production.INFO: ==12919== Releasing lock... [2025-03-07 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:33:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:34:05 [end_date_ymd] => 2025-03-07 12:34:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:34:05' and `end` < '2025-03-07 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-03-07 12:34:18] Production.INFO: count ==4902 [2025-03-07 12:34:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:34:05 - End Time 2025-03-07 12:34:05 [2025-03-07 12:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627847', 'tblTempUsageDetail_20' ) start [2025-03-07 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627847', 'tblTempUsageDetail_20' ) end [2025-03-07 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627847', 'tblTempVendorCDR_20' ) start [2025-03-07 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627847', 'tblTempVendorCDR_20' ) end [2025-03-07 12:34:21] Production.INFO: ProcessCDR(1,14627847,1,1,2) [2025-03-07 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627847', 'tblTempUsageDetail_20' ) start [2025-03-07 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627847', 'tblTempUsageDetail_20' ) end [2025-03-07 12:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:34:24] Production.INFO: ==12989== Releasing lock... [2025-03-07 12:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:34:24] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:35:06 [end_date_ymd] => 2025-03-07 12:35:06 [RateCDR] => 1 ) [2025-03-07 12: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-03-07 09:35:06' and `end` < '2025-03-07 12: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-03-07 12:35:20] Production.INFO: count ==4904 [2025-03-07 12:35:22] Production.ERROR: pbx CDR StartTime 2025-03-07 09:35:06 - End Time 2025-03-07 12:35:06 [2025-03-07 12:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627852', 'tblTempUsageDetail_20' ) start [2025-03-07 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627852', 'tblTempUsageDetail_20' ) end [2025-03-07 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627852', 'tblTempVendorCDR_20' ) start [2025-03-07 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627852', 'tblTempVendorCDR_20' ) end [2025-03-07 12:35:22] Production.INFO: ProcessCDR(1,14627852,1,1,2) [2025-03-07 12:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627852', 'tblTempUsageDetail_20' ) start [2025-03-07 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627852', 'tblTempUsageDetail_20' ) end [2025-03-07 12:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:35:27] Production.INFO: ==13060== Releasing lock... [2025-03-07 12:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:35:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:36:05 [end_date_ymd] => 2025-03-07 12:36:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:36:05' and `end` < '2025-03-07 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-03-07 12:36:18] Production.INFO: count ==4896 [2025-03-07 12:36:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:36:05 - End Time 2025-03-07 12:36:05 [2025-03-07 12:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627857', 'tblTempUsageDetail_20' ) start [2025-03-07 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627857', 'tblTempUsageDetail_20' ) end [2025-03-07 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627857', 'tblTempVendorCDR_20' ) start [2025-03-07 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627857', 'tblTempVendorCDR_20' ) end [2025-03-07 12:36:20] Production.INFO: ProcessCDR(1,14627857,1,1,2) [2025-03-07 12:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627857', 'tblTempUsageDetail_20' ) start [2025-03-07 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627857', 'tblTempUsageDetail_20' ) end [2025-03-07 12:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:36:25] Production.INFO: ==13132== Releasing lock... [2025-03-07 12:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:36:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:37:05 [end_date_ymd] => 2025-03-07 12:37:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:37:05' and `end` < '2025-03-07 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-03-07 12:37:18] Production.INFO: count ==4909 [2025-03-07 12:37:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:37:05 - End Time 2025-03-07 12:37:05 [2025-03-07 12:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627862', 'tblTempUsageDetail_20' ) start [2025-03-07 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627862', 'tblTempUsageDetail_20' ) end [2025-03-07 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627862', 'tblTempVendorCDR_20' ) start [2025-03-07 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627862', 'tblTempVendorCDR_20' ) end [2025-03-07 12:37:20] Production.INFO: ProcessCDR(1,14627862,1,1,2) [2025-03-07 12:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627862', 'tblTempUsageDetail_20' ) start [2025-03-07 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627862', 'tblTempUsageDetail_20' ) end [2025-03-07 12:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:37:25] Production.INFO: ==13202== Releasing lock... [2025-03-07 12:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:37:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:38:06 [end_date_ymd] => 2025-03-07 12:38:06 [RateCDR] => 1 ) [2025-03-07 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:38:06' and `end` < '2025-03-07 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:38:19] Production.INFO: count ==4915 [2025-03-07 12:38:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:38:06 - End Time 2025-03-07 12:38:06 [2025-03-07 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627867', 'tblTempUsageDetail_20' ) start [2025-03-07 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627867', 'tblTempUsageDetail_20' ) end [2025-03-07 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627867', 'tblTempVendorCDR_20' ) start [2025-03-07 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627867', 'tblTempVendorCDR_20' ) end [2025-03-07 12:38:21] Production.INFO: ProcessCDR(1,14627867,1,1,2) [2025-03-07 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627867', 'tblTempUsageDetail_20' ) start [2025-03-07 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627867', 'tblTempUsageDetail_20' ) end [2025-03-07 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:38:26] Production.INFO: ==13376== Releasing lock... [2025-03-07 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:38:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:39:06 [end_date_ymd] => 2025-03-07 12:39:06 [RateCDR] => 1 ) [2025-03-07 12: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-03-07 09:39:06' and `end` < '2025-03-07 12: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-03-07 12:39:19] Production.INFO: count ==4907 [2025-03-07 12:39:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:39:06 - End Time 2025-03-07 12:39:06 [2025-03-07 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627872', 'tblTempUsageDetail_20' ) start [2025-03-07 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627872', 'tblTempUsageDetail_20' ) end [2025-03-07 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627872', 'tblTempVendorCDR_20' ) start [2025-03-07 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627872', 'tblTempVendorCDR_20' ) end [2025-03-07 12:39:21] Production.INFO: ProcessCDR(1,14627872,1,1,2) [2025-03-07 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627872', 'tblTempUsageDetail_20' ) start [2025-03-07 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627872', 'tblTempUsageDetail_20' ) end [2025-03-07 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:39:27] Production.INFO: ==13456== Releasing lock... [2025-03-07 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:39:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:40:06 [end_date_ymd] => 2025-03-07 12:40:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:40:06' and `end` < '2025-03-07 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-03-07 12:40:20] Production.INFO: count ==4901 [2025-03-07 12:40:22] Production.ERROR: pbx CDR StartTime 2025-03-07 09:40:06 - End Time 2025-03-07 12:40:06 [2025-03-07 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627878', 'tblTempUsageDetail_20' ) start [2025-03-07 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627878', 'tblTempUsageDetail_20' ) end [2025-03-07 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627878', 'tblTempVendorCDR_20' ) start [2025-03-07 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627878', 'tblTempVendorCDR_20' ) end [2025-03-07 12:40:22] Production.INFO: ProcessCDR(1,14627878,1,1,2) [2025-03-07 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627878', 'tblTempUsageDetail_20' ) start [2025-03-07 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627878', 'tblTempUsageDetail_20' ) end [2025-03-07 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:40:27] Production.INFO: ==13533== Releasing lock... [2025-03-07 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:40:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:41:06 [end_date_ymd] => 2025-03-07 12:41:06 [RateCDR] => 1 ) [2025-03-07 12: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-03-07 09:41:06' and `end` < '2025-03-07 12: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-03-07 12:41:19] Production.INFO: count ==4886 [2025-03-07 12:41:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:41:06 - End Time 2025-03-07 12:41:06 [2025-03-07 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627883', 'tblTempUsageDetail_20' ) start [2025-03-07 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627883', 'tblTempUsageDetail_20' ) end [2025-03-07 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627883', 'tblTempVendorCDR_20' ) start [2025-03-07 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627883', 'tblTempVendorCDR_20' ) end [2025-03-07 12:41:21] Production.INFO: ProcessCDR(1,14627883,1,1,2) [2025-03-07 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627883', 'tblTempUsageDetail_20' ) start [2025-03-07 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627883', 'tblTempUsageDetail_20' ) end [2025-03-07 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:41:26] Production.INFO: ==13607== Releasing lock... [2025-03-07 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:41:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:42:05 [end_date_ymd] => 2025-03-07 12:42:05 [RateCDR] => 1 ) [2025-03-07 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:42:05' and `end` < '2025-03-07 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:42:18] Production.INFO: count ==4878 [2025-03-07 12:42:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:42:05 - End Time 2025-03-07 12:42:05 [2025-03-07 12:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627888', 'tblTempUsageDetail_20' ) start [2025-03-07 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627888', 'tblTempUsageDetail_20' ) end [2025-03-07 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627888', 'tblTempVendorCDR_20' ) start [2025-03-07 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627888', 'tblTempVendorCDR_20' ) end [2025-03-07 12:42:21] Production.INFO: ProcessCDR(1,14627888,1,1,2) [2025-03-07 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627888', 'tblTempUsageDetail_20' ) start [2025-03-07 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627888', 'tblTempUsageDetail_20' ) end [2025-03-07 12:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:42:26] Production.INFO: ==13678== Releasing lock... [2025-03-07 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:42:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:43:06 [end_date_ymd] => 2025-03-07 12:43:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:43:06' and `end` < '2025-03-07 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-03-07 12:43:19] Production.INFO: count ==4895 [2025-03-07 12:43:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:43:06 - End Time 2025-03-07 12:43:06 [2025-03-07 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627893', 'tblTempUsageDetail_20' ) start [2025-03-07 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627893', 'tblTempUsageDetail_20' ) end [2025-03-07 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627893', 'tblTempVendorCDR_20' ) start [2025-03-07 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627893', 'tblTempVendorCDR_20' ) end [2025-03-07 12:43:21] Production.INFO: ProcessCDR(1,14627893,1,1,2) [2025-03-07 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627893', 'tblTempUsageDetail_20' ) start [2025-03-07 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627893', 'tblTempUsageDetail_20' ) end [2025-03-07 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:43:26] Production.INFO: ==13751== Releasing lock... [2025-03-07 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:43:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:44:05 [end_date_ymd] => 2025-03-07 12:44:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:44:05' and `end` < '2025-03-07 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-03-07 12:44:18] Production.INFO: count ==4897 [2025-03-07 12:44:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:44:05 - End Time 2025-03-07 12:44:05 [2025-03-07 12:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627898', 'tblTempUsageDetail_20' ) start [2025-03-07 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627898', 'tblTempUsageDetail_20' ) end [2025-03-07 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627898', 'tblTempVendorCDR_20' ) start [2025-03-07 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627898', 'tblTempVendorCDR_20' ) end [2025-03-07 12:44:21] Production.INFO: ProcessCDR(1,14627898,1,1,2) [2025-03-07 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627898', 'tblTempUsageDetail_20' ) start [2025-03-07 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627898', 'tblTempUsageDetail_20' ) end [2025-03-07 12:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:44:26] Production.INFO: ==13826== Releasing lock... [2025-03-07 12:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:44:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:45:05 [end_date_ymd] => 2025-03-07 12:45:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:45:05' and `end` < '2025-03-07 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-03-07 12:45:18] Production.INFO: count ==4897 [2025-03-07 12:45:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:45:05 - End Time 2025-03-07 12:45:05 [2025-03-07 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627903', 'tblTempUsageDetail_20' ) start [2025-03-07 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627903', 'tblTempUsageDetail_20' ) end [2025-03-07 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627903', 'tblTempVendorCDR_20' ) start [2025-03-07 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627903', 'tblTempVendorCDR_20' ) end [2025-03-07 12:45:21] Production.INFO: ProcessCDR(1,14627903,1,1,2) [2025-03-07 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627903', 'tblTempUsageDetail_20' ) start [2025-03-07 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627903', 'tblTempUsageDetail_20' ) end [2025-03-07 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:45:26] Production.INFO: ==13898== Releasing lock... [2025-03-07 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:45:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:46:05 [end_date_ymd] => 2025-03-07 12:46:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:46:05' and `end` < '2025-03-07 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-03-07 12:46:18] Production.INFO: count ==4901 [2025-03-07 12:46:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:46:05 - End Time 2025-03-07 12:46:05 [2025-03-07 12:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627908', 'tblTempUsageDetail_20' ) start [2025-03-07 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627908', 'tblTempUsageDetail_20' ) end [2025-03-07 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627908', 'tblTempVendorCDR_20' ) start [2025-03-07 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627908', 'tblTempVendorCDR_20' ) end [2025-03-07 12:46:20] Production.INFO: ProcessCDR(1,14627908,1,1,2) [2025-03-07 12:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627908', 'tblTempUsageDetail_20' ) start [2025-03-07 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627908', 'tblTempUsageDetail_20' ) end [2025-03-07 12:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:46:25] Production.INFO: ==13968== Releasing lock... [2025-03-07 12:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:46:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:47:05 [end_date_ymd] => 2025-03-07 12:47:05 [RateCDR] => 1 ) [2025-03-07 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:47:05' and `end` < '2025-03-07 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:47:19] Production.INFO: count ==4881 [2025-03-07 12:47:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:47:05 - End Time 2025-03-07 12:47:05 [2025-03-07 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627913', 'tblTempUsageDetail_20' ) start [2025-03-07 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627913', 'tblTempUsageDetail_20' ) end [2025-03-07 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627913', 'tblTempVendorCDR_20' ) start [2025-03-07 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627913', 'tblTempVendorCDR_20' ) end [2025-03-07 12:47:21] Production.INFO: ProcessCDR(1,14627913,1,1,2) [2025-03-07 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627913', 'tblTempUsageDetail_20' ) start [2025-03-07 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627913', 'tblTempUsageDetail_20' ) end [2025-03-07 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:47:26] Production.INFO: ==14064== Releasing lock... [2025-03-07 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:47:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:48:05 [end_date_ymd] => 2025-03-07 12:48:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:48:05' and `end` < '2025-03-07 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-03-07 12:48:18] Production.INFO: count ==4870 [2025-03-07 12:48:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:48:05 - End Time 2025-03-07 12:48:05 [2025-03-07 12:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627918', 'tblTempUsageDetail_20' ) start [2025-03-07 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627918', 'tblTempUsageDetail_20' ) end [2025-03-07 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627918', 'tblTempVendorCDR_20' ) start [2025-03-07 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627918', 'tblTempVendorCDR_20' ) end [2025-03-07 12:48:20] Production.INFO: ProcessCDR(1,14627918,1,1,2) [2025-03-07 12:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627918', 'tblTempUsageDetail_20' ) start [2025-03-07 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627918', 'tblTempUsageDetail_20' ) end [2025-03-07 12:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:48:26] Production.INFO: ==14163== Releasing lock... [2025-03-07 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:48:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:49:05 [end_date_ymd] => 2025-03-07 12:49:05 [RateCDR] => 1 ) [2025-03-07 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:49:05' and `end` < '2025-03-07 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:49:18] Production.INFO: count ==4866 [2025-03-07 12:49:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:49:05 - End Time 2025-03-07 12:49:05 [2025-03-07 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627923', 'tblTempUsageDetail_20' ) start [2025-03-07 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627923', 'tblTempUsageDetail_20' ) end [2025-03-07 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627923', 'tblTempVendorCDR_20' ) start [2025-03-07 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627923', 'tblTempVendorCDR_20' ) end [2025-03-07 12:49:20] Production.INFO: ProcessCDR(1,14627923,1,1,2) [2025-03-07 12:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627923', 'tblTempUsageDetail_20' ) start [2025-03-07 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627923', 'tblTempUsageDetail_20' ) end [2025-03-07 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:49:26] Production.INFO: ==14265== Releasing lock... [2025-03-07 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:49:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:50:05 [end_date_ymd] => 2025-03-07 12:50:05 [RateCDR] => 1 ) [2025-03-07 12:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:50:05' and `end` < '2025-03-07 12:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:50:19] Production.INFO: count ==4859 [2025-03-07 12:50:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:50:05 - End Time 2025-03-07 12:50:05 [2025-03-07 12:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627929', 'tblTempUsageDetail_20' ) start [2025-03-07 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627929', 'tblTempUsageDetail_20' ) end [2025-03-07 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627929', 'tblTempVendorCDR_20' ) start [2025-03-07 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627929', 'tblTempVendorCDR_20' ) end [2025-03-07 12:50:21] Production.INFO: ProcessCDR(1,14627929,1,1,2) [2025-03-07 12:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627929', 'tblTempUsageDetail_20' ) start [2025-03-07 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627929', 'tblTempUsageDetail_20' ) end [2025-03-07 12:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:50:26] Production.INFO: ==14372== Releasing lock... [2025-03-07 12:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:50:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-07 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:51:05 [end_date_ymd] => 2025-03-07 12:51:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:51:05' and `end` < '2025-03-07 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-03-07 12:51:18] Production.INFO: count ==4861 [2025-03-07 12:51:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:51:05 - End Time 2025-03-07 12:51:05 [2025-03-07 12:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627934', 'tblTempUsageDetail_20' ) start [2025-03-07 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627934', 'tblTempUsageDetail_20' ) end [2025-03-07 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627934', 'tblTempVendorCDR_20' ) start [2025-03-07 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627934', 'tblTempVendorCDR_20' ) end [2025-03-07 12:51:20] Production.INFO: ProcessCDR(1,14627934,1,1,2) [2025-03-07 12:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627934', 'tblTempUsageDetail_20' ) start [2025-03-07 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627934', 'tblTempUsageDetail_20' ) end [2025-03-07 12:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:51:24] Production.INFO: ==14480== Releasing lock... [2025-03-07 12:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:51:24] Production.INFO: 64.25 MB #Memory Used# [2025-03-07 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:52:06 [end_date_ymd] => 2025-03-07 12:52:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:52:06' and `end` < '2025-03-07 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-03-07 12:52:19] Production.INFO: count ==4856 [2025-03-07 12:52:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:52:06 - End Time 2025-03-07 12:52:06 [2025-03-07 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627939', 'tblTempUsageDetail_20' ) start [2025-03-07 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627939', 'tblTempUsageDetail_20' ) end [2025-03-07 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627939', 'tblTempVendorCDR_20' ) start [2025-03-07 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627939', 'tblTempVendorCDR_20' ) end [2025-03-07 12:52:21] Production.INFO: ProcessCDR(1,14627939,1,1,2) [2025-03-07 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627939', 'tblTempUsageDetail_20' ) start [2025-03-07 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627939', 'tblTempUsageDetail_20' ) end [2025-03-07 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:52:26] Production.INFO: ==14587== Releasing lock... [2025-03-07 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:52:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-07 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:53:06 [end_date_ymd] => 2025-03-07 12:53:06 [RateCDR] => 1 ) [2025-03-07 12: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-03-07 09:53:06' and `end` < '2025-03-07 12: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-03-07 12:53:19] Production.INFO: count ==4838 [2025-03-07 12:53:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:53:06 - End Time 2025-03-07 12:53:06 [2025-03-07 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627944', 'tblTempUsageDetail_20' ) start [2025-03-07 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627944', 'tblTempUsageDetail_20' ) end [2025-03-07 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627944', 'tblTempVendorCDR_20' ) start [2025-03-07 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627944', 'tblTempVendorCDR_20' ) end [2025-03-07 12:53:21] Production.INFO: ProcessCDR(1,14627944,1,1,2) [2025-03-07 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627944', 'tblTempUsageDetail_20' ) start [2025-03-07 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627944', 'tblTempUsageDetail_20' ) end [2025-03-07 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:53:26] Production.INFO: ==14728== Releasing lock... [2025-03-07 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:53:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-07 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:54:06 [end_date_ymd] => 2025-03-07 12:54:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:54:06' and `end` < '2025-03-07 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-03-07 12:54:19] Production.INFO: count ==4863 [2025-03-07 12:54:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:54:06 - End Time 2025-03-07 12:54:06 [2025-03-07 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627949', 'tblTempUsageDetail_20' ) start [2025-03-07 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627949', 'tblTempUsageDetail_20' ) end [2025-03-07 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627949', 'tblTempVendorCDR_20' ) start [2025-03-07 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627949', 'tblTempVendorCDR_20' ) end [2025-03-07 12:54:21] Production.INFO: ProcessCDR(1,14627949,1,1,2) [2025-03-07 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627949', 'tblTempUsageDetail_20' ) start [2025-03-07 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627949', 'tblTempUsageDetail_20' ) end [2025-03-07 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:54:26] Production.INFO: ==14828== Releasing lock... [2025-03-07 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:54:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:55:05 [end_date_ymd] => 2025-03-07 12:55:05 [RateCDR] => 1 ) [2025-03-07 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 09:55:05' and `end` < '2025-03-07 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 12:55:18] Production.INFO: count ==4880 [2025-03-07 12:55:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:55:05 - End Time 2025-03-07 12:55:05 [2025-03-07 12:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627954', 'tblTempUsageDetail_20' ) start [2025-03-07 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627954', 'tblTempUsageDetail_20' ) end [2025-03-07 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627954', 'tblTempVendorCDR_20' ) start [2025-03-07 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627954', 'tblTempVendorCDR_20' ) end [2025-03-07 12:55:21] Production.INFO: ProcessCDR(1,14627954,1,1,2) [2025-03-07 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627954', 'tblTempUsageDetail_20' ) start [2025-03-07 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627954', 'tblTempUsageDetail_20' ) end [2025-03-07 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:55:26] Production.INFO: ==14921== Releasing lock... [2025-03-07 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:55:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:56:06 [end_date_ymd] => 2025-03-07 12:56:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:56:06' and `end` < '2025-03-07 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-03-07 12:56:19] Production.INFO: count ==4880 [2025-03-07 12:56:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:56:06 - End Time 2025-03-07 12:56:06 [2025-03-07 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627959', 'tblTempUsageDetail_20' ) start [2025-03-07 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627959', 'tblTempUsageDetail_20' ) end [2025-03-07 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627959', 'tblTempVendorCDR_20' ) start [2025-03-07 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627959', 'tblTempVendorCDR_20' ) end [2025-03-07 12:56:21] Production.INFO: ProcessCDR(1,14627959,1,1,2) [2025-03-07 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627959', 'tblTempUsageDetail_20' ) start [2025-03-07 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627959', 'tblTempUsageDetail_20' ) end [2025-03-07 12:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:56:26] Production.INFO: ==15016== Releasing lock... [2025-03-07 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:56:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:57:05 [end_date_ymd] => 2025-03-07 12:57:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:57:05' and `end` < '2025-03-07 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-03-07 12:57:18] Production.INFO: count ==4884 [2025-03-07 12:57:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:57:05 - End Time 2025-03-07 12:57:05 [2025-03-07 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627964', 'tblTempUsageDetail_20' ) start [2025-03-07 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627964', 'tblTempUsageDetail_20' ) end [2025-03-07 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627964', 'tblTempVendorCDR_20' ) start [2025-03-07 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627964', 'tblTempVendorCDR_20' ) end [2025-03-07 12:57:20] Production.INFO: ProcessCDR(1,14627964,1,1,2) [2025-03-07 12:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627964', 'tblTempUsageDetail_20' ) start [2025-03-07 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627964', 'tblTempUsageDetail_20' ) end [2025-03-07 12:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:57:25] Production.INFO: ==15114== Releasing lock... [2025-03-07 12:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:57:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:58:06 [end_date_ymd] => 2025-03-07 12:58:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:58:06' and `end` < '2025-03-07 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-03-07 12:58:19] Production.INFO: count ==4911 [2025-03-07 12:58:21] Production.ERROR: pbx CDR StartTime 2025-03-07 09:58:06 - End Time 2025-03-07 12:58:06 [2025-03-07 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627969', 'tblTempUsageDetail_20' ) start [2025-03-07 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627969', 'tblTempUsageDetail_20' ) end [2025-03-07 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627969', 'tblTempVendorCDR_20' ) start [2025-03-07 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627969', 'tblTempVendorCDR_20' ) end [2025-03-07 12:58:21] Production.INFO: ProcessCDR(1,14627969,1,1,2) [2025-03-07 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627969', 'tblTempUsageDetail_20' ) start [2025-03-07 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627969', 'tblTempUsageDetail_20' ) end [2025-03-07 12:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:58:26] Production.INFO: ==15216== Releasing lock... [2025-03-07 12:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:58:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 09:59:05 [end_date_ymd] => 2025-03-07 12:59:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 09:59:05' and `end` < '2025-03-07 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-03-07 12:59:18] Production.INFO: count ==4938 [2025-03-07 12:59:20] Production.ERROR: pbx CDR StartTime 2025-03-07 09:59:05 - End Time 2025-03-07 12:59:05 [2025-03-07 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627974', 'tblTempUsageDetail_20' ) start [2025-03-07 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627974', 'tblTempUsageDetail_20' ) end [2025-03-07 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627974', 'tblTempVendorCDR_20' ) start [2025-03-07 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627974', 'tblTempVendorCDR_20' ) end [2025-03-07 12:59:20] Production.INFO: ProcessCDR(1,14627974,1,1,2) [2025-03-07 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627974', 'tblTempUsageDetail_20' ) start [2025-03-07 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627974', 'tblTempUsageDetail_20' ) end [2025-03-07 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 12:59:26] Production.INFO: ==15319== Releasing lock... [2025-03-07 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 12:59:26] Production.INFO: 65 MB #Memory Used# [2025-03-07 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:00:06 [end_date_ymd] => 2025-03-07 13:00:06 [RateCDR] => 1 ) [2025-03-07 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:00:06' and `end` < '2025-03-07 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:00:19] Production.INFO: count ==4948 [2025-03-07 13:00:22] Production.ERROR: pbx CDR StartTime 2025-03-07 10:00:06 - End Time 2025-03-07 13:00:06 [2025-03-07 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627979', 'tblTempUsageDetail_20' ) start [2025-03-07 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627979', 'tblTempUsageDetail_20' ) end [2025-03-07 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627979', 'tblTempVendorCDR_20' ) start [2025-03-07 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627979', 'tblTempVendorCDR_20' ) end [2025-03-07 13:00:22] Production.INFO: ProcessCDR(1,14627979,1,1,2) [2025-03-07 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627979', 'tblTempUsageDetail_20' ) start [2025-03-07 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627979', 'tblTempUsageDetail_20' ) end [2025-03-07 13:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:00:27] Production.INFO: ==15423== Releasing lock... [2025-03-07 13:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:00:27] Production.INFO: 65 MB #Memory Used# [2025-03-07 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:01:05 [end_date_ymd] => 2025-03-07 13:01:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:01:05' and `end` < '2025-03-07 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-03-07 13:01:18] Production.INFO: count ==4960 [2025-03-07 13:01:20] Production.ERROR: pbx CDR StartTime 2025-03-07 10:01:05 - End Time 2025-03-07 13:01:05 [2025-03-07 13:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627985', 'tblTempUsageDetail_20' ) start [2025-03-07 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627985', 'tblTempUsageDetail_20' ) end [2025-03-07 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627985', 'tblTempVendorCDR_20' ) start [2025-03-07 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627985', 'tblTempVendorCDR_20' ) end [2025-03-07 13:01:20] Production.INFO: ProcessCDR(1,14627985,1,1,2) [2025-03-07 13:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627985', 'tblTempUsageDetail_20' ) start [2025-03-07 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627985', 'tblTempUsageDetail_20' ) end [2025-03-07 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:01:26] Production.INFO: ==15516== Releasing lock... [2025-03-07 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:01:26] Production.INFO: 65 MB #Memory Used# [2025-03-07 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:02:06 [end_date_ymd] => 2025-03-07 13:02:06 [RateCDR] => 1 ) [2025-03-07 13: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-03-07 10:02:06' and `end` < '2025-03-07 13: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-03-07 13:02:19] Production.INFO: count ==4941 [2025-03-07 13:02:22] Production.ERROR: pbx CDR StartTime 2025-03-07 10:02:06 - End Time 2025-03-07 13:02:06 [2025-03-07 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627990', 'tblTempUsageDetail_20' ) start [2025-03-07 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627990', 'tblTempUsageDetail_20' ) end [2025-03-07 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627990', 'tblTempVendorCDR_20' ) start [2025-03-07 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627990', 'tblTempVendorCDR_20' ) end [2025-03-07 13:02:22] Production.INFO: ProcessCDR(1,14627990,1,1,2) [2025-03-07 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627990', 'tblTempUsageDetail_20' ) start [2025-03-07 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627990', 'tblTempUsageDetail_20' ) end [2025-03-07 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:02:27] Production.INFO: ==15590== Releasing lock... [2025-03-07 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:02:27] Production.INFO: 65 MB #Memory Used# [2025-03-07 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:03:06 [end_date_ymd] => 2025-03-07 13:03:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:03:06' and `end` < '2025-03-07 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-03-07 13:03:19] Production.INFO: count ==4909 [2025-03-07 13:03:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:03:06 - End Time 2025-03-07 13:03:06 [2025-03-07 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627995', 'tblTempUsageDetail_20' ) start [2025-03-07 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14627995', 'tblTempUsageDetail_20' ) end [2025-03-07 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627995', 'tblTempVendorCDR_20' ) start [2025-03-07 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14627995', 'tblTempVendorCDR_20' ) end [2025-03-07 13:03:21] Production.INFO: ProcessCDR(1,14627995,1,1,2) [2025-03-07 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14627995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14627995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14627995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14627995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627995', 'tblTempUsageDetail_20' ) start [2025-03-07 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14627995', 'tblTempUsageDetail_20' ) end [2025-03-07 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:03:27] Production.INFO: ==15660== Releasing lock... [2025-03-07 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:03:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:04:06 [end_date_ymd] => 2025-03-07 13:04:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:04:06' and `end` < '2025-03-07 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-03-07 13:04:20] Production.INFO: count ==4884 [2025-03-07 13:04:22] Production.ERROR: pbx CDR StartTime 2025-03-07 10:04:06 - End Time 2025-03-07 13:04:06 [2025-03-07 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628000', 'tblTempUsageDetail_20' ) start [2025-03-07 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628000', 'tblTempUsageDetail_20' ) end [2025-03-07 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628000', 'tblTempVendorCDR_20' ) start [2025-03-07 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628000', 'tblTempVendorCDR_20' ) end [2025-03-07 13:04:22] Production.INFO: ProcessCDR(1,14628000,1,1,2) [2025-03-07 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628000', 'tblTempUsageDetail_20' ) start [2025-03-07 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628000', 'tblTempUsageDetail_20' ) end [2025-03-07 13:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:04:28] Production.INFO: ==15731== Releasing lock... [2025-03-07 13:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:04:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:05:05 [end_date_ymd] => 2025-03-07 13:05:05 [RateCDR] => 1 ) [2025-03-07 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:05:05' and `end` < '2025-03-07 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:05:19] Production.INFO: count ==4876 [2025-03-07 13:05:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:05:05 - End Time 2025-03-07 13:05:05 [2025-03-07 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628005', 'tblTempUsageDetail_20' ) start [2025-03-07 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628005', 'tblTempUsageDetail_20' ) end [2025-03-07 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628005', 'tblTempVendorCDR_20' ) start [2025-03-07 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628005', 'tblTempVendorCDR_20' ) end [2025-03-07 13:05:21] Production.INFO: ProcessCDR(1,14628005,1,1,2) [2025-03-07 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628005', 'tblTempUsageDetail_20' ) start [2025-03-07 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628005', 'tblTempUsageDetail_20' ) end [2025-03-07 13:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:05:27] Production.INFO: ==15803== Releasing lock... [2025-03-07 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:05:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:06:05 [end_date_ymd] => 2025-03-07 13:06:05 [RateCDR] => 1 ) [2025-03-07 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:06:05' and `end` < '2025-03-07 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:06:19] Production.INFO: count ==4867 [2025-03-07 13:06:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:06:05 - End Time 2025-03-07 13:06:05 [2025-03-07 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628010', 'tblTempUsageDetail_20' ) start [2025-03-07 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628010', 'tblTempUsageDetail_20' ) end [2025-03-07 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628010', 'tblTempVendorCDR_20' ) start [2025-03-07 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628010', 'tblTempVendorCDR_20' ) end [2025-03-07 13:06:21] Production.INFO: ProcessCDR(1,14628010,1,1,2) [2025-03-07 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628010', 'tblTempUsageDetail_20' ) start [2025-03-07 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628010', 'tblTempUsageDetail_20' ) end [2025-03-07 13:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:06:27] Production.INFO: ==15877== Releasing lock... [2025-03-07 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:06:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:07:05 [end_date_ymd] => 2025-03-07 13:07:05 [RateCDR] => 1 ) [2025-03-07 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:07:05' and `end` < '2025-03-07 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:07:19] Production.INFO: count ==4902 [2025-03-07 13:07:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:07:05 - End Time 2025-03-07 13:07:05 [2025-03-07 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628015', 'tblTempUsageDetail_20' ) start [2025-03-07 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628015', 'tblTempUsageDetail_20' ) end [2025-03-07 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628015', 'tblTempVendorCDR_20' ) start [2025-03-07 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628015', 'tblTempVendorCDR_20' ) end [2025-03-07 13:07:21] Production.INFO: ProcessCDR(1,14628015,1,1,2) [2025-03-07 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628015', 'tblTempUsageDetail_20' ) start [2025-03-07 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628015', 'tblTempUsageDetail_20' ) end [2025-03-07 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:07:27] Production.INFO: ==15947== Releasing lock... [2025-03-07 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:07:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:08:06 [end_date_ymd] => 2025-03-07 13:08:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:08:06' and `end` < '2025-03-07 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-03-07 13:08:19] Production.INFO: count ==4886 [2025-03-07 13:08:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:08:06 - End Time 2025-03-07 13:08:06 [2025-03-07 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628020', 'tblTempUsageDetail_20' ) start [2025-03-07 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628020', 'tblTempUsageDetail_20' ) end [2025-03-07 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628020', 'tblTempVendorCDR_20' ) start [2025-03-07 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628020', 'tblTempVendorCDR_20' ) end [2025-03-07 13:08:21] Production.INFO: ProcessCDR(1,14628020,1,1,2) [2025-03-07 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628020', 'tblTempUsageDetail_20' ) start [2025-03-07 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628020', 'tblTempUsageDetail_20' ) end [2025-03-07 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:08:27] Production.INFO: ==16019== Releasing lock... [2025-03-07 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:08:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:09:05 [end_date_ymd] => 2025-03-07 13:09:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:09:05' and `end` < '2025-03-07 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-03-07 13:09:18] Production.INFO: count ==4908 [2025-03-07 13:09:20] Production.ERROR: pbx CDR StartTime 2025-03-07 10:09:05 - End Time 2025-03-07 13:09:05 [2025-03-07 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628025', 'tblTempUsageDetail_20' ) start [2025-03-07 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628025', 'tblTempUsageDetail_20' ) end [2025-03-07 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628025', 'tblTempVendorCDR_20' ) start [2025-03-07 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628025', 'tblTempVendorCDR_20' ) end [2025-03-07 13:09:21] Production.INFO: ProcessCDR(1,14628025,1,1,2) [2025-03-07 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628025', 'tblTempUsageDetail_20' ) start [2025-03-07 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628025', 'tblTempUsageDetail_20' ) end [2025-03-07 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:09:26] Production.INFO: ==16127== Releasing lock... [2025-03-07 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:09:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:10:07 [end_date_ymd] => 2025-03-07 13:10:07 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:10:07' and `end` < '2025-03-07 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-03-07 13:10:21] Production.INFO: count ==4916 [2025-03-07 13:10:23] Production.ERROR: pbx CDR StartTime 2025-03-07 10:10:07 - End Time 2025-03-07 13:10:07 [2025-03-07 13:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628031', 'tblTempUsageDetail_20' ) start [2025-03-07 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628031', 'tblTempUsageDetail_20' ) end [2025-03-07 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628031', 'tblTempVendorCDR_20' ) start [2025-03-07 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628031', 'tblTempVendorCDR_20' ) end [2025-03-07 13:10:23] Production.INFO: ProcessCDR(1,14628031,1,1,2) [2025-03-07 13:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628031', 'tblTempUsageDetail_20' ) start [2025-03-07 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628031', 'tblTempUsageDetail_20' ) end [2025-03-07 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:10:28] Production.INFO: ==16204== Releasing lock... [2025-03-07 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:10:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:11:05 [end_date_ymd] => 2025-03-07 13:11:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:11:05' and `end` < '2025-03-07 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-03-07 13:11:18] Production.INFO: count ==4908 [2025-03-07 13:11:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:11:05 - End Time 2025-03-07 13:11:05 [2025-03-07 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628036', 'tblTempUsageDetail_20' ) start [2025-03-07 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628036', 'tblTempUsageDetail_20' ) end [2025-03-07 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628036', 'tblTempVendorCDR_20' ) start [2025-03-07 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628036', 'tblTempVendorCDR_20' ) end [2025-03-07 13:11:21] Production.INFO: ProcessCDR(1,14628036,1,1,2) [2025-03-07 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628036', 'tblTempUsageDetail_20' ) start [2025-03-07 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628036', 'tblTempUsageDetail_20' ) end [2025-03-07 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:11:26] Production.INFO: ==16282== Releasing lock... [2025-03-07 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:11:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:12:06 [end_date_ymd] => 2025-03-07 13:12:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:12:06' and `end` < '2025-03-07 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-03-07 13:12:19] Production.INFO: count ==4907 [2025-03-07 13:12:22] Production.ERROR: pbx CDR StartTime 2025-03-07 10:12:06 - End Time 2025-03-07 13:12:06 [2025-03-07 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628041', 'tblTempUsageDetail_20' ) start [2025-03-07 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628041', 'tblTempUsageDetail_20' ) end [2025-03-07 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628041', 'tblTempVendorCDR_20' ) start [2025-03-07 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628041', 'tblTempVendorCDR_20' ) end [2025-03-07 13:12:22] Production.INFO: ProcessCDR(1,14628041,1,1,2) [2025-03-07 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628041', 'tblTempUsageDetail_20' ) start [2025-03-07 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628041', 'tblTempUsageDetail_20' ) end [2025-03-07 13:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:12:28] Production.INFO: ==16355== Releasing lock... [2025-03-07 13:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:12:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:13:06 [end_date_ymd] => 2025-03-07 13:13:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:13:06' and `end` < '2025-03-07 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-03-07 13:13:19] Production.INFO: count ==4918 [2025-03-07 13:13:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:13:06 - End Time 2025-03-07 13:13:06 [2025-03-07 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628046', 'tblTempUsageDetail_20' ) start [2025-03-07 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628046', 'tblTempUsageDetail_20' ) end [2025-03-07 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628046', 'tblTempVendorCDR_20' ) start [2025-03-07 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628046', 'tblTempVendorCDR_20' ) end [2025-03-07 13:13:21] Production.INFO: ProcessCDR(1,14628046,1,1,2) [2025-03-07 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628046', 'tblTempUsageDetail_20' ) start [2025-03-07 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628046', 'tblTempUsageDetail_20' ) end [2025-03-07 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:13:27] Production.INFO: ==16425== Releasing lock... [2025-03-07 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:13:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:14:06 [end_date_ymd] => 2025-03-07 13:14:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:14:06' and `end` < '2025-03-07 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-03-07 13:14:19] Production.INFO: count ==4902 [2025-03-07 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:14:06 - End Time 2025-03-07 13:14:06 [2025-03-07 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628051', 'tblTempUsageDetail_20' ) start [2025-03-07 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628051', 'tblTempUsageDetail_20' ) end [2025-03-07 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628051', 'tblTempVendorCDR_20' ) start [2025-03-07 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628051', 'tblTempVendorCDR_20' ) end [2025-03-07 13:14:22] Production.INFO: ProcessCDR(1,14628051,1,1,2) [2025-03-07 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628051', 'tblTempUsageDetail_20' ) start [2025-03-07 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628051', 'tblTempUsageDetail_20' ) end [2025-03-07 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:14:27] Production.INFO: ==16495== Releasing lock... [2025-03-07 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:14:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:15:06 [end_date_ymd] => 2025-03-07 13:15:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:15:06' and `end` < '2025-03-07 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-03-07 13:15:20] Production.INFO: count ==4906 [2025-03-07 13:15:22] Production.ERROR: pbx CDR StartTime 2025-03-07 10:15:06 - End Time 2025-03-07 13:15:06 [2025-03-07 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628056', 'tblTempUsageDetail_20' ) start [2025-03-07 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628056', 'tblTempUsageDetail_20' ) end [2025-03-07 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628056', 'tblTempVendorCDR_20' ) start [2025-03-07 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628056', 'tblTempVendorCDR_20' ) end [2025-03-07 13:15:22] Production.INFO: ProcessCDR(1,14628056,1,1,2) [2025-03-07 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628056', 'tblTempUsageDetail_20' ) start [2025-03-07 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628056', 'tblTempUsageDetail_20' ) end [2025-03-07 13:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:15:28] Production.INFO: ==16568== Releasing lock... [2025-03-07 13:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:15:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:16:06 [end_date_ymd] => 2025-03-07 13:16:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:16:06' and `end` < '2025-03-07 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-03-07 13:16:19] Production.INFO: count ==4937 [2025-03-07 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:16:06 - End Time 2025-03-07 13:16:06 [2025-03-07 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628061', 'tblTempUsageDetail_20' ) start [2025-03-07 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628061', 'tblTempUsageDetail_20' ) end [2025-03-07 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628061', 'tblTempVendorCDR_20' ) start [2025-03-07 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628061', 'tblTempVendorCDR_20' ) end [2025-03-07 13:16:22] Production.INFO: ProcessCDR(1,14628061,1,1,2) [2025-03-07 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628061', 'tblTempUsageDetail_20' ) start [2025-03-07 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628061', 'tblTempUsageDetail_20' ) end [2025-03-07 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:16:27] Production.INFO: ==16638== Releasing lock... [2025-03-07 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:16:27] Production.INFO: 65 MB #Memory Used# [2025-03-07 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:17:06 [end_date_ymd] => 2025-03-07 13:17:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:17:06' and `end` < '2025-03-07 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-03-07 13:17:19] Production.INFO: count ==4916 [2025-03-07 13:17:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:17:06 - End Time 2025-03-07 13:17:06 [2025-03-07 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628066', 'tblTempUsageDetail_20' ) start [2025-03-07 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628066', 'tblTempUsageDetail_20' ) end [2025-03-07 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628066', 'tblTempVendorCDR_20' ) start [2025-03-07 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628066', 'tblTempVendorCDR_20' ) end [2025-03-07 13:17:21] Production.INFO: ProcessCDR(1,14628066,1,1,2) [2025-03-07 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628066', 'tblTempUsageDetail_20' ) start [2025-03-07 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628066', 'tblTempUsageDetail_20' ) end [2025-03-07 13:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:17:26] Production.INFO: ==16709== Releasing lock... [2025-03-07 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:17:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:18:06 [end_date_ymd] => 2025-03-07 13:18:06 [RateCDR] => 1 ) [2025-03-07 13:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:18:06' and `end` < '2025-03-07 13:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:18:20] Production.INFO: count ==4899 [2025-03-07 13:18:22] Production.ERROR: pbx CDR StartTime 2025-03-07 10:18:06 - End Time 2025-03-07 13:18:06 [2025-03-07 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628071', 'tblTempUsageDetail_20' ) start [2025-03-07 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628071', 'tblTempUsageDetail_20' ) end [2025-03-07 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628071', 'tblTempVendorCDR_20' ) start [2025-03-07 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628071', 'tblTempVendorCDR_20' ) end [2025-03-07 13:18:22] Production.INFO: ProcessCDR(1,14628071,1,1,2) [2025-03-07 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628071', 'tblTempUsageDetail_20' ) start [2025-03-07 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628071', 'tblTempUsageDetail_20' ) end [2025-03-07 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:18:27] Production.INFO: ==16785== Releasing lock... [2025-03-07 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:18:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:19:06 [end_date_ymd] => 2025-03-07 13:19:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:19:06' and `end` < '2025-03-07 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-03-07 13:19:19] Production.INFO: count ==4903 [2025-03-07 13:19:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:19:06 - End Time 2025-03-07 13:19:06 [2025-03-07 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628076', 'tblTempUsageDetail_20' ) start [2025-03-07 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628076', 'tblTempUsageDetail_20' ) end [2025-03-07 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628076', 'tblTempVendorCDR_20' ) start [2025-03-07 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628076', 'tblTempVendorCDR_20' ) end [2025-03-07 13:19:21] Production.INFO: ProcessCDR(1,14628076,1,1,2) [2025-03-07 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628076', 'tblTempUsageDetail_20' ) start [2025-03-07 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628076', 'tblTempUsageDetail_20' ) end [2025-03-07 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:19:27] Production.INFO: ==16861== Releasing lock... [2025-03-07 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:19:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:20:06 [end_date_ymd] => 2025-03-07 13:20:06 [RateCDR] => 1 ) [2025-03-07 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:20:06' and `end` < '2025-03-07 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:20:20] Production.INFO: count ==4901 [2025-03-07 13:20:22] Production.ERROR: pbx CDR StartTime 2025-03-07 10:20:06 - End Time 2025-03-07 13:20:06 [2025-03-07 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628082', 'tblTempUsageDetail_20' ) start [2025-03-07 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628082', 'tblTempUsageDetail_20' ) end [2025-03-07 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628082', 'tblTempVendorCDR_20' ) start [2025-03-07 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628082', 'tblTempVendorCDR_20' ) end [2025-03-07 13:20:22] Production.INFO: ProcessCDR(1,14628082,1,1,2) [2025-03-07 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628082', 'tblTempUsageDetail_20' ) start [2025-03-07 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628082', 'tblTempUsageDetail_20' ) end [2025-03-07 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:20:27] Production.INFO: ==16933== Releasing lock... [2025-03-07 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:20:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-07 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:21:05 [end_date_ymd] => 2025-03-07 13:21:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:21:05' and `end` < '2025-03-07 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-03-07 13:21:18] Production.INFO: count ==4933 [2025-03-07 13:21:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:21:05 - End Time 2025-03-07 13:21:05 [2025-03-07 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628087', 'tblTempUsageDetail_20' ) start [2025-03-07 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628087', 'tblTempUsageDetail_20' ) end [2025-03-07 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628087', 'tblTempVendorCDR_20' ) start [2025-03-07 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628087', 'tblTempVendorCDR_20' ) end [2025-03-07 13:21:21] Production.INFO: ProcessCDR(1,14628087,1,1,2) [2025-03-07 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628087', 'tblTempUsageDetail_20' ) start [2025-03-07 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628087', 'tblTempUsageDetail_20' ) end [2025-03-07 13:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:21:25] Production.INFO: ==17005== Releasing lock... [2025-03-07 13:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:21:25] Production.INFO: 65 MB #Memory Used# [2025-03-07 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:22:06 [end_date_ymd] => 2025-03-07 13:22:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:22:06' and `end` < '2025-03-07 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-03-07 13:22:19] Production.INFO: count ==4930 [2025-03-07 13:22:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:22:06 - End Time 2025-03-07 13:22:06 [2025-03-07 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628092', 'tblTempUsageDetail_20' ) start [2025-03-07 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628092', 'tblTempUsageDetail_20' ) end [2025-03-07 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628092', 'tblTempVendorCDR_20' ) start [2025-03-07 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628092', 'tblTempVendorCDR_20' ) end [2025-03-07 13:22:21] Production.INFO: ProcessCDR(1,14628092,1,1,2) [2025-03-07 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628092', 'tblTempUsageDetail_20' ) start [2025-03-07 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628092', 'tblTempUsageDetail_20' ) end [2025-03-07 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:22:27] Production.INFO: ==17076== Releasing lock... [2025-03-07 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:22:27] Production.INFO: 65 MB #Memory Used# [2025-03-07 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:23:06 [end_date_ymd] => 2025-03-07 13:23:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:23:06' and `end` < '2025-03-07 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-03-07 13:23:19] Production.INFO: count ==4934 [2025-03-07 13:23:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:23:06 - End Time 2025-03-07 13:23:06 [2025-03-07 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628097', 'tblTempUsageDetail_20' ) start [2025-03-07 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628097', 'tblTempUsageDetail_20' ) end [2025-03-07 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628097', 'tblTempVendorCDR_20' ) start [2025-03-07 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628097', 'tblTempVendorCDR_20' ) end [2025-03-07 13:23:22] Production.INFO: ProcessCDR(1,14628097,1,1,2) [2025-03-07 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628097', 'tblTempUsageDetail_20' ) start [2025-03-07 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628097', 'tblTempUsageDetail_20' ) end [2025-03-07 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:23:27] Production.INFO: ==17151== Releasing lock... [2025-03-07 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:23:27] Production.INFO: 65 MB #Memory Used# [2025-03-07 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:24:06 [end_date_ymd] => 2025-03-07 13:24:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:24:06' and `end` < '2025-03-07 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-03-07 13:24:19] Production.INFO: count ==4941 [2025-03-07 13:24:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:24:06 - End Time 2025-03-07 13:24:06 [2025-03-07 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628102', 'tblTempUsageDetail_20' ) start [2025-03-07 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628102', 'tblTempUsageDetail_20' ) end [2025-03-07 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628102', 'tblTempVendorCDR_20' ) start [2025-03-07 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628102', 'tblTempVendorCDR_20' ) end [2025-03-07 13:24:21] Production.INFO: ProcessCDR(1,14628102,1,1,2) [2025-03-07 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628102', 'tblTempUsageDetail_20' ) start [2025-03-07 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628102', 'tblTempUsageDetail_20' ) end [2025-03-07 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:24:27] Production.INFO: ==17261== Releasing lock... [2025-03-07 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:24:27] Production.INFO: 65 MB #Memory Used# [2025-03-07 13:25:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:25:07 [end_date_ymd] => 2025-03-07 13:25:07 [RateCDR] => 1 ) [2025-03-07 13:25: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-03-07 10:25:07' and `end` < '2025-03-07 13:25: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-03-07 13:25:20] Production.INFO: count ==4948 [2025-03-07 13:25:22] Production.ERROR: pbx CDR StartTime 2025-03-07 10:25:07 - End Time 2025-03-07 13:25:07 [2025-03-07 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628107', 'tblTempUsageDetail_20' ) start [2025-03-07 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628107', 'tblTempUsageDetail_20' ) end [2025-03-07 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628107', 'tblTempVendorCDR_20' ) start [2025-03-07 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628107', 'tblTempVendorCDR_20' ) end [2025-03-07 13:25:22] Production.INFO: ProcessCDR(1,14628107,1,1,2) [2025-03-07 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628107', 'tblTempUsageDetail_20' ) start [2025-03-07 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628107', 'tblTempUsageDetail_20' ) end [2025-03-07 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:25:28] Production.INFO: ==17330== Releasing lock... [2025-03-07 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:25:28] Production.INFO: 65 MB #Memory Used# [2025-03-07 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:26:06 [end_date_ymd] => 2025-03-07 13:26:06 [RateCDR] => 1 ) [2025-03-07 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:26:06' and `end` < '2025-03-07 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:26:19] Production.INFO: count ==4938 [2025-03-07 13:26:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:26:06 - End Time 2025-03-07 13:26:06 [2025-03-07 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628112', 'tblTempUsageDetail_20' ) start [2025-03-07 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628112', 'tblTempUsageDetail_20' ) end [2025-03-07 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628112', 'tblTempVendorCDR_20' ) start [2025-03-07 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628112', 'tblTempVendorCDR_20' ) end [2025-03-07 13:26:21] Production.INFO: ProcessCDR(1,14628112,1,1,2) [2025-03-07 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628112', 'tblTempUsageDetail_20' ) start [2025-03-07 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628112', 'tblTempUsageDetail_20' ) end [2025-03-07 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:26:26] Production.INFO: ==17402== Releasing lock... [2025-03-07 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:26:26] Production.INFO: 65 MB #Memory Used# [2025-03-07 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:27:06 [end_date_ymd] => 2025-03-07 13:27:06 [RateCDR] => 1 ) [2025-03-07 13: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-03-07 10:27:06' and `end` < '2025-03-07 13: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-03-07 13:27:19] Production.INFO: count ==4929 [2025-03-07 13:27:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:27:06 - End Time 2025-03-07 13:27:06 [2025-03-07 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628117', 'tblTempUsageDetail_20' ) start [2025-03-07 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628117', 'tblTempUsageDetail_20' ) end [2025-03-07 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628117', 'tblTempVendorCDR_20' ) start [2025-03-07 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628117', 'tblTempVendorCDR_20' ) end [2025-03-07 13:27:22] Production.INFO: ProcessCDR(1,14628117,1,1,2) [2025-03-07 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628117', 'tblTempUsageDetail_20' ) start [2025-03-07 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628117', 'tblTempUsageDetail_20' ) end [2025-03-07 13:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:27:28] Production.INFO: ==17474== Releasing lock... [2025-03-07 13:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:27:28] Production.INFO: 65 MB #Memory Used# [2025-03-07 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:28:06 [end_date_ymd] => 2025-03-07 13:28:06 [RateCDR] => 1 ) [2025-03-07 13:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:28:06' and `end` < '2025-03-07 13:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:28:19] Production.INFO: count ==4947 [2025-03-07 13:28:22] Production.ERROR: pbx CDR StartTime 2025-03-07 10:28:06 - End Time 2025-03-07 13:28:06 [2025-03-07 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628122', 'tblTempUsageDetail_20' ) start [2025-03-07 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628122', 'tblTempUsageDetail_20' ) end [2025-03-07 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628122', 'tblTempVendorCDR_20' ) start [2025-03-07 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628122', 'tblTempVendorCDR_20' ) end [2025-03-07 13:28:22] Production.INFO: ProcessCDR(1,14628122,1,1,2) [2025-03-07 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628122', 'tblTempUsageDetail_20' ) start [2025-03-07 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628122', 'tblTempUsageDetail_20' ) end [2025-03-07 13:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:28:28] Production.INFO: ==17542== Releasing lock... [2025-03-07 13:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:28:28] Production.INFO: 65 MB #Memory Used# [2025-03-07 13:29:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:29:07 [end_date_ymd] => 2025-03-07 13:29:07 [RateCDR] => 1 ) [2025-03-07 13:29: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-03-07 10:29:07' and `end` < '2025-03-07 13:29: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-03-07 13:29:20] Production.INFO: count ==4954 [2025-03-07 13:29:22] Production.ERROR: pbx CDR StartTime 2025-03-07 10:29:07 - End Time 2025-03-07 13:29:07 [2025-03-07 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628127', 'tblTempUsageDetail_20' ) start [2025-03-07 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628127', 'tblTempUsageDetail_20' ) end [2025-03-07 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628127', 'tblTempVendorCDR_20' ) start [2025-03-07 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628127', 'tblTempVendorCDR_20' ) end [2025-03-07 13:29:22] Production.INFO: ProcessCDR(1,14628127,1,1,2) [2025-03-07 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628127', 'tblTempUsageDetail_20' ) start [2025-03-07 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628127', 'tblTempUsageDetail_20' ) end [2025-03-07 13:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:29:28] Production.INFO: ==17613== Releasing lock... [2025-03-07 13:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:29:28] Production.INFO: 65 MB #Memory Used# [2025-03-07 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:30:06 [end_date_ymd] => 2025-03-07 13:30:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:30:06' and `end` < '2025-03-07 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-03-07 13:30:20] Production.INFO: count ==5041 [2025-03-07 13:30:22] Production.ERROR: pbx CDR StartTime 2025-03-07 10:30:06 - End Time 2025-03-07 13:30:06 [2025-03-07 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628133', 'tblTempUsageDetail_20' ) start [2025-03-07 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628133', 'tblTempUsageDetail_20' ) end [2025-03-07 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628133', 'tblTempVendorCDR_20' ) start [2025-03-07 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628133', 'tblTempVendorCDR_20' ) end [2025-03-07 13:30:22] Production.INFO: ProcessCDR(1,14628133,1,1,2) [2025-03-07 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628133', 'tblTempUsageDetail_20' ) start [2025-03-07 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628133', 'tblTempUsageDetail_20' ) end [2025-03-07 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:30:28] Production.INFO: ==17691== Releasing lock... [2025-03-07 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:30:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-07 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:31:06 [end_date_ymd] => 2025-03-07 13:31:06 [RateCDR] => 1 ) [2025-03-07 13:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:31:06' and `end` < '2025-03-07 13:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:31:19] Production.INFO: count ==5028 [2025-03-07 13:31:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:31:06 - End Time 2025-03-07 13:31:06 [2025-03-07 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628138', 'tblTempUsageDetail_20' ) start [2025-03-07 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628138', 'tblTempUsageDetail_20' ) end [2025-03-07 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628138', 'tblTempVendorCDR_20' ) start [2025-03-07 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628138', 'tblTempVendorCDR_20' ) end [2025-03-07 13:31:21] Production.INFO: ProcessCDR(1,14628138,1,1,2) [2025-03-07 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628138', 'tblTempUsageDetail_20' ) start [2025-03-07 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628138', 'tblTempUsageDetail_20' ) end [2025-03-07 13:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:31:26] Production.INFO: ==17767== Releasing lock... [2025-03-07 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:31:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-07 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:32:05 [end_date_ymd] => 2025-03-07 13:32:05 [RateCDR] => 1 ) [2025-03-07 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:32:05' and `end` < '2025-03-07 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:32:19] Production.INFO: count ==5066 [2025-03-07 13:32:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:32:05 - End Time 2025-03-07 13:32:05 [2025-03-07 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628143', 'tblTempUsageDetail_20' ) start [2025-03-07 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628143', 'tblTempUsageDetail_20' ) end [2025-03-07 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628143', 'tblTempVendorCDR_20' ) start [2025-03-07 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628143', 'tblTempVendorCDR_20' ) end [2025-03-07 13:32:21] Production.INFO: ProcessCDR(1,14628143,1,1,2) [2025-03-07 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628143', 'tblTempUsageDetail_20' ) start [2025-03-07 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628143', 'tblTempUsageDetail_20' ) end [2025-03-07 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:32:27] Production.INFO: ==17838== Releasing lock... [2025-03-07 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:32:27] Production.INFO: 66 MB #Memory Used# [2025-03-07 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:33:06 [end_date_ymd] => 2025-03-07 13:33:06 [RateCDR] => 1 ) [2025-03-07 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:33:06' and `end` < '2025-03-07 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:33:19] Production.INFO: count ==5069 [2025-03-07 13:33:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:33:06 - End Time 2025-03-07 13:33:06 [2025-03-07 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628148', 'tblTempUsageDetail_20' ) start [2025-03-07 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628148', 'tblTempUsageDetail_20' ) end [2025-03-07 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628148', 'tblTempVendorCDR_20' ) start [2025-03-07 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628148', 'tblTempVendorCDR_20' ) end [2025-03-07 13:33:21] Production.INFO: ProcessCDR(1,14628148,1,1,2) [2025-03-07 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628148', 'tblTempUsageDetail_20' ) start [2025-03-07 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628148', 'tblTempUsageDetail_20' ) end [2025-03-07 13:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:33:26] Production.INFO: ==17917== Releasing lock... [2025-03-07 13:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:33:26] Production.INFO: 66 MB #Memory Used# [2025-03-07 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:34:05 [end_date_ymd] => 2025-03-07 13:34:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:34:05' and `end` < '2025-03-07 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-03-07 13:34:19] Production.INFO: count ==5082 [2025-03-07 13:34:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:34:05 - End Time 2025-03-07 13:34:05 [2025-03-07 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628153', 'tblTempUsageDetail_20' ) start [2025-03-07 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628153', 'tblTempUsageDetail_20' ) end [2025-03-07 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628153', 'tblTempVendorCDR_20' ) start [2025-03-07 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628153', 'tblTempVendorCDR_20' ) end [2025-03-07 13:34:21] Production.INFO: ProcessCDR(1,14628153,1,1,2) [2025-03-07 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628153', 'tblTempUsageDetail_20' ) start [2025-03-07 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628153', 'tblTempUsageDetail_20' ) end [2025-03-07 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:34:26] Production.INFO: ==17987== Releasing lock... [2025-03-07 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:34:26] Production.INFO: 66 MB #Memory Used# [2025-03-07 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:35:05 [end_date_ymd] => 2025-03-07 13:35:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:35:05' and `end` < '2025-03-07 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-03-07 13:35:19] Production.INFO: count ==5077 [2025-03-07 13:35:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:35:05 - End Time 2025-03-07 13:35:05 [2025-03-07 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628158', 'tblTempUsageDetail_20' ) start [2025-03-07 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628158', 'tblTempUsageDetail_20' ) end [2025-03-07 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628158', 'tblTempVendorCDR_20' ) start [2025-03-07 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628158', 'tblTempVendorCDR_20' ) end [2025-03-07 13:35:21] Production.INFO: ProcessCDR(1,14628158,1,1,2) [2025-03-07 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628158', 'tblTempUsageDetail_20' ) start [2025-03-07 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628158', 'tblTempUsageDetail_20' ) end [2025-03-07 13:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:35:26] Production.INFO: ==18058== Releasing lock... [2025-03-07 13:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:35:26] Production.INFO: 66 MB #Memory Used# [2025-03-07 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:36:05 [end_date_ymd] => 2025-03-07 13:36:05 [RateCDR] => 1 ) [2025-03-07 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:36:05' and `end` < '2025-03-07 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:36:19] Production.INFO: count ==5080 [2025-03-07 13:36:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:36:05 - End Time 2025-03-07 13:36:05 [2025-03-07 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628163', 'tblTempUsageDetail_20' ) start [2025-03-07 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628163', 'tblTempUsageDetail_20' ) end [2025-03-07 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628163', 'tblTempVendorCDR_20' ) start [2025-03-07 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628163', 'tblTempVendorCDR_20' ) end [2025-03-07 13:36:21] Production.INFO: ProcessCDR(1,14628163,1,1,2) [2025-03-07 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628163', 'tblTempUsageDetail_20' ) start [2025-03-07 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628163', 'tblTempUsageDetail_20' ) end [2025-03-07 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:36:27] Production.INFO: ==18128== Releasing lock... [2025-03-07 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:36:27] Production.INFO: 66 MB #Memory Used# [2025-03-07 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:37:06 [end_date_ymd] => 2025-03-07 13:37:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:37:06' and `end` < '2025-03-07 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-03-07 13:37:19] Production.INFO: count ==5079 [2025-03-07 13:37:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:37:06 - End Time 2025-03-07 13:37:06 [2025-03-07 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628168', 'tblTempUsageDetail_20' ) start [2025-03-07 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628168', 'tblTempUsageDetail_20' ) end [2025-03-07 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628168', 'tblTempVendorCDR_20' ) start [2025-03-07 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628168', 'tblTempVendorCDR_20' ) end [2025-03-07 13:37:21] Production.INFO: ProcessCDR(1,14628168,1,1,2) [2025-03-07 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628168', 'tblTempUsageDetail_20' ) start [2025-03-07 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628168', 'tblTempUsageDetail_20' ) end [2025-03-07 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:37:26] Production.INFO: ==18198== Releasing lock... [2025-03-07 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:37:26] Production.INFO: 66 MB #Memory Used# [2025-03-07 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:38:05 [end_date_ymd] => 2025-03-07 13:38:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:38:05' and `end` < '2025-03-07 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-03-07 13:38:19] Production.INFO: count ==5091 [2025-03-07 13:38:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:38:05 - End Time 2025-03-07 13:38:05 [2025-03-07 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628173', 'tblTempUsageDetail_20' ) start [2025-03-07 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628173', 'tblTempUsageDetail_20' ) end [2025-03-07 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628173', 'tblTempVendorCDR_20' ) start [2025-03-07 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628173', 'tblTempVendorCDR_20' ) end [2025-03-07 13:38:21] Production.INFO: ProcessCDR(1,14628173,1,1,2) [2025-03-07 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628173', 'tblTempUsageDetail_20' ) start [2025-03-07 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628173', 'tblTempUsageDetail_20' ) end [2025-03-07 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:38:26] Production.INFO: ==18272== Releasing lock... [2025-03-07 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:38:26] Production.INFO: 66 MB #Memory Used# [2025-03-07 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:39:05 [end_date_ymd] => 2025-03-07 13:39:05 [RateCDR] => 1 ) [2025-03-07 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:39:05' and `end` < '2025-03-07 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:39:19] Production.INFO: count ==5100 [2025-03-07 13:39:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:39:05 - End Time 2025-03-07 13:39:05 [2025-03-07 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628178', 'tblTempUsageDetail_20' ) start [2025-03-07 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628178', 'tblTempUsageDetail_20' ) end [2025-03-07 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628178', 'tblTempVendorCDR_20' ) start [2025-03-07 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628178', 'tblTempVendorCDR_20' ) end [2025-03-07 13:39:21] Production.INFO: ProcessCDR(1,14628178,1,1,2) [2025-03-07 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628178', 'tblTempUsageDetail_20' ) start [2025-03-07 13:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628178', 'tblTempUsageDetail_20' ) end [2025-03-07 13:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:39:25] Production.INFO: ==18343== Releasing lock... [2025-03-07 13:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:39:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-07 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:40:05 [end_date_ymd] => 2025-03-07 13:40:05 [RateCDR] => 1 ) [2025-03-07 13: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-03-07 10:40:05' and `end` < '2025-03-07 13: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-03-07 13:40:22] Production.INFO: count ==5080 [2025-03-07 13:40:24] Production.ERROR: pbx CDR StartTime 2025-03-07 10:40:05 - End Time 2025-03-07 13:40:05 [2025-03-07 13:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628184', 'tblTempUsageDetail_20' ) start [2025-03-07 13:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628184', 'tblTempUsageDetail_20' ) end [2025-03-07 13:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628184', 'tblTempVendorCDR_20' ) start [2025-03-07 13:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628184', 'tblTempVendorCDR_20' ) end [2025-03-07 13:40:25] Production.INFO: ProcessCDR(1,14628184,1,1,2) [2025-03-07 13:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628184', 'tblTempUsageDetail_20' ) start [2025-03-07 13:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628184', 'tblTempUsageDetail_20' ) end [2025-03-07 13:40:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:40:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:40:30] Production.INFO: ==18454== Releasing lock... [2025-03-07 13:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:40:30] Production.INFO: 66 MB #Memory Used# [2025-03-07 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:41:05 [end_date_ymd] => 2025-03-07 13:41:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:41:05' and `end` < '2025-03-07 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-03-07 13:41:19] Production.INFO: count ==5067 [2025-03-07 13:41:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:41:05 - End Time 2025-03-07 13:41:05 [2025-03-07 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628189', 'tblTempUsageDetail_20' ) start [2025-03-07 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628189', 'tblTempUsageDetail_20' ) end [2025-03-07 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628189', 'tblTempVendorCDR_20' ) start [2025-03-07 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628189', 'tblTempVendorCDR_20' ) end [2025-03-07 13:41:21] Production.INFO: ProcessCDR(1,14628189,1,1,2) [2025-03-07 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628189', 'tblTempUsageDetail_20' ) start [2025-03-07 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628189', 'tblTempUsageDetail_20' ) end [2025-03-07 13:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:41:26] Production.INFO: ==18529== Releasing lock... [2025-03-07 13:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:41:26] Production.INFO: 66 MB #Memory Used# [2025-03-07 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:42:06 [end_date_ymd] => 2025-03-07 13:42:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:42:06' and `end` < '2025-03-07 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-03-07 13:42:20] Production.INFO: count ==5304 [2025-03-07 13:42:23] Production.ERROR: pbx CDR StartTime 2025-03-07 10:42:06 - End Time 2025-03-07 13:42:06 [2025-03-07 13:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628194', 'tblTempUsageDetail_20' ) start [2025-03-07 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628194', 'tblTempUsageDetail_20' ) end [2025-03-07 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628194', 'tblTempVendorCDR_20' ) start [2025-03-07 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628194', 'tblTempVendorCDR_20' ) end [2025-03-07 13:42:23] Production.INFO: ProcessCDR(1,14628194,1,1,2) [2025-03-07 13:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628194', 'tblTempUsageDetail_20' ) start [2025-03-07 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628194', 'tblTempUsageDetail_20' ) end [2025-03-07 13:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:42:28] Production.INFO: ==18600== Releasing lock... [2025-03-07 13:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:42:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-07 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:43:05 [end_date_ymd] => 2025-03-07 13:43:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:43:05' and `end` < '2025-03-07 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:43:19] Production.INFO: count ==5496 [2025-03-07 13:43:22] Production.ERROR: pbx CDR StartTime 2025-03-07 10:43:05 - End Time 2025-03-07 13:43:05 [2025-03-07 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628199', 'tblTempUsageDetail_20' ) start [2025-03-07 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628199', 'tblTempUsageDetail_20' ) end [2025-03-07 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628199', 'tblTempVendorCDR_20' ) start [2025-03-07 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628199', 'tblTempVendorCDR_20' ) end [2025-03-07 13:43:22] Production.INFO: ProcessCDR(1,14628199,1,1,2) [2025-03-07 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628199', 'tblTempUsageDetail_20' ) start [2025-03-07 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628199', 'tblTempUsageDetail_20' ) end [2025-03-07 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:43:27] Production.INFO: ==18670== Releasing lock... [2025-03-07 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:43:27] Production.INFO: 69 MB #Memory Used# [2025-03-07 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:44:06 [end_date_ymd] => 2025-03-07 13:44:06 [RateCDR] => 1 ) [2025-03-07 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:44:06' and `end` < '2025-03-07 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:44:19] Production.INFO: count ==5503 [2025-03-07 13:44:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:44:06 - End Time 2025-03-07 13:44:06 [2025-03-07 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628204', 'tblTempUsageDetail_20' ) start [2025-03-07 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628204', 'tblTempUsageDetail_20' ) end [2025-03-07 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628204', 'tblTempVendorCDR_20' ) start [2025-03-07 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628204', 'tblTempVendorCDR_20' ) end [2025-03-07 13:44:22] Production.INFO: ProcessCDR(1,14628204,1,1,2) [2025-03-07 13:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628204', 'tblTempUsageDetail_20' ) start [2025-03-07 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628204', 'tblTempUsageDetail_20' ) end [2025-03-07 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:44:27] Production.INFO: ==18740== Releasing lock... [2025-03-07 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:44:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-07 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:45:05 [end_date_ymd] => 2025-03-07 13:45:05 [RateCDR] => 1 ) [2025-03-07 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:45:05' and `end` < '2025-03-07 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:45:19] Production.INFO: count ==5513 [2025-03-07 13:45:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:45:05 - End Time 2025-03-07 13:45:05 [2025-03-07 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628209', 'tblTempUsageDetail_20' ) start [2025-03-07 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628209', 'tblTempUsageDetail_20' ) end [2025-03-07 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628209', 'tblTempVendorCDR_20' ) start [2025-03-07 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628209', 'tblTempVendorCDR_20' ) end [2025-03-07 13:45:21] Production.INFO: ProcessCDR(1,14628209,1,1,2) [2025-03-07 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628209', 'tblTempUsageDetail_20' ) start [2025-03-07 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628209', 'tblTempUsageDetail_20' ) end [2025-03-07 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:45:27] Production.INFO: ==18813== Releasing lock... [2025-03-07 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:45:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-07 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:46:06 [end_date_ymd] => 2025-03-07 13:46:06 [RateCDR] => 1 ) [2025-03-07 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:46:06' and `end` < '2025-03-07 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:46:19] Production.INFO: count ==5503 [2025-03-07 13:46:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:46:06 - End Time 2025-03-07 13:46:06 [2025-03-07 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628214', 'tblTempUsageDetail_20' ) start [2025-03-07 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628214', 'tblTempUsageDetail_20' ) end [2025-03-07 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628214', 'tblTempVendorCDR_20' ) start [2025-03-07 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628214', 'tblTempVendorCDR_20' ) end [2025-03-07 13:46:21] Production.INFO: ProcessCDR(1,14628214,1,1,2) [2025-03-07 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628214', 'tblTempUsageDetail_20' ) start [2025-03-07 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628214', 'tblTempUsageDetail_20' ) end [2025-03-07 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:46:27] Production.INFO: ==18885== Releasing lock... [2025-03-07 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:46:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-07 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:47:05 [end_date_ymd] => 2025-03-07 13:47:05 [RateCDR] => 1 ) [2025-03-07 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:47:05' and `end` < '2025-03-07 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:47:18] Production.INFO: count ==5476 [2025-03-07 13:47:20] Production.ERROR: pbx CDR StartTime 2025-03-07 10:47:05 - End Time 2025-03-07 13:47:05 [2025-03-07 13:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628219', 'tblTempUsageDetail_20' ) start [2025-03-07 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628219', 'tblTempUsageDetail_20' ) end [2025-03-07 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628219', 'tblTempVendorCDR_20' ) start [2025-03-07 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628219', 'tblTempVendorCDR_20' ) end [2025-03-07 13:47:20] Production.INFO: ProcessCDR(1,14628219,1,1,2) [2025-03-07 13:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628219', 'tblTempUsageDetail_20' ) start [2025-03-07 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628219', 'tblTempUsageDetail_20' ) end [2025-03-07 13:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:47:26] Production.INFO: ==18955== Releasing lock... [2025-03-07 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:47:26] Production.INFO: 69 MB #Memory Used# [2025-03-07 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:48:06 [end_date_ymd] => 2025-03-07 13:48:06 [RateCDR] => 1 ) [2025-03-07 13: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-03-07 10:48:06' and `end` < '2025-03-07 13: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-03-07 13:48:20] Production.INFO: count ==5476 [2025-03-07 13:48:22] Production.ERROR: pbx CDR StartTime 2025-03-07 10:48:06 - End Time 2025-03-07 13:48:06 [2025-03-07 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628224', 'tblTempUsageDetail_20' ) start [2025-03-07 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628224', 'tblTempUsageDetail_20' ) end [2025-03-07 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628224', 'tblTempVendorCDR_20' ) start [2025-03-07 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628224', 'tblTempVendorCDR_20' ) end [2025-03-07 13:48:22] Production.INFO: ProcessCDR(1,14628224,1,1,2) [2025-03-07 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628224', 'tblTempUsageDetail_20' ) start [2025-03-07 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628224', 'tblTempUsageDetail_20' ) end [2025-03-07 13:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:48:28] Production.INFO: ==19035== Releasing lock... [2025-03-07 13:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:48:28] Production.INFO: 69 MB #Memory Used# [2025-03-07 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:49:06 [end_date_ymd] => 2025-03-07 13:49:06 [RateCDR] => 1 ) [2025-03-07 13:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:49:06' and `end` < '2025-03-07 13:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:49:19] Production.INFO: count ==5482 [2025-03-07 13:49:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:49:06 - End Time 2025-03-07 13:49:06 [2025-03-07 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628229', 'tblTempUsageDetail_20' ) start [2025-03-07 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628229', 'tblTempUsageDetail_20' ) end [2025-03-07 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628229', 'tblTempVendorCDR_20' ) start [2025-03-07 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628229', 'tblTempVendorCDR_20' ) end [2025-03-07 13:49:21] Production.INFO: ProcessCDR(1,14628229,1,1,2) [2025-03-07 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628229', 'tblTempUsageDetail_20' ) start [2025-03-07 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628229', 'tblTempUsageDetail_20' ) end [2025-03-07 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:49:26] Production.INFO: ==19116== Releasing lock... [2025-03-07 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:49:26] Production.INFO: 69 MB #Memory Used# [2025-03-07 13:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:50:07 [end_date_ymd] => 2025-03-07 13:50:07 [RateCDR] => 1 ) [2025-03-07 13: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-03-07 10:50:07' and `end` < '2025-03-07 13: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-03-07 13:50:20] Production.INFO: count ==5466 [2025-03-07 13:50:23] Production.ERROR: pbx CDR StartTime 2025-03-07 10:50:07 - End Time 2025-03-07 13:50:07 [2025-03-07 13:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628235', 'tblTempUsageDetail_20' ) start [2025-03-07 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628235', 'tblTempUsageDetail_20' ) end [2025-03-07 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628235', 'tblTempVendorCDR_20' ) start [2025-03-07 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628235', 'tblTempVendorCDR_20' ) end [2025-03-07 13:50:23] Production.INFO: ProcessCDR(1,14628235,1,1,2) [2025-03-07 13:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628235', 'tblTempUsageDetail_20' ) start [2025-03-07 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628235', 'tblTempUsageDetail_20' ) end [2025-03-07 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:50:28] Production.INFO: ==19189== Releasing lock... [2025-03-07 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:50:28] Production.INFO: 69 MB #Memory Used# [2025-03-07 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:51:05 [end_date_ymd] => 2025-03-07 13:51:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:51:05' and `end` < '2025-03-07 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-03-07 13:51:18] Production.INFO: count ==5471 [2025-03-07 13:51:20] Production.ERROR: pbx CDR StartTime 2025-03-07 10:51:05 - End Time 2025-03-07 13:51:05 [2025-03-07 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628240', 'tblTempUsageDetail_20' ) start [2025-03-07 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628240', 'tblTempUsageDetail_20' ) end [2025-03-07 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628240', 'tblTempVendorCDR_20' ) start [2025-03-07 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628240', 'tblTempVendorCDR_20' ) end [2025-03-07 13:51:21] Production.INFO: ProcessCDR(1,14628240,1,1,2) [2025-03-07 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628240', 'tblTempUsageDetail_20' ) start [2025-03-07 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628240', 'tblTempUsageDetail_20' ) end [2025-03-07 13:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:51:26] Production.INFO: ==19263== Releasing lock... [2025-03-07 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:51:26] Production.INFO: 69 MB #Memory Used# [2025-03-07 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:52:06 [end_date_ymd] => 2025-03-07 13:52:06 [RateCDR] => 1 ) [2025-03-07 13: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-03-07 10:52:06' and `end` < '2025-03-07 13: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-03-07 13:52:19] Production.INFO: count ==5467 [2025-03-07 13:52:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:52:06 - End Time 2025-03-07 13:52:06 [2025-03-07 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628245', 'tblTempUsageDetail_20' ) start [2025-03-07 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628245', 'tblTempUsageDetail_20' ) end [2025-03-07 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628245', 'tblTempVendorCDR_20' ) start [2025-03-07 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628245', 'tblTempVendorCDR_20' ) end [2025-03-07 13:52:22] Production.INFO: ProcessCDR(1,14628245,1,1,2) [2025-03-07 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628245', 'tblTempUsageDetail_20' ) start [2025-03-07 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628245', 'tblTempUsageDetail_20' ) end [2025-03-07 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:52:27] Production.INFO: ==19333== Releasing lock... [2025-03-07 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:52:27] Production.INFO: 69 MB #Memory Used# [2025-03-07 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:53:05 [end_date_ymd] => 2025-03-07 13:53:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:53:05' and `end` < '2025-03-07 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-03-07 13:53:18] Production.INFO: count ==5481 [2025-03-07 13:53:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:53:05 - End Time 2025-03-07 13:53:05 [2025-03-07 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628250', 'tblTempUsageDetail_20' ) start [2025-03-07 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628250', 'tblTempUsageDetail_20' ) end [2025-03-07 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628250', 'tblTempVendorCDR_20' ) start [2025-03-07 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628250', 'tblTempVendorCDR_20' ) end [2025-03-07 13:53:21] Production.INFO: ProcessCDR(1,14628250,1,1,2) [2025-03-07 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628250', 'tblTempUsageDetail_20' ) start [2025-03-07 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628250', 'tblTempUsageDetail_20' ) end [2025-03-07 13:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:53:25] Production.INFO: ==19404== Releasing lock... [2025-03-07 13:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:53:25] Production.INFO: 69 MB #Memory Used# [2025-03-07 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:54:06 [end_date_ymd] => 2025-03-07 13:54:06 [RateCDR] => 1 ) [2025-03-07 13: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-03-07 10:54:06' and `end` < '2025-03-07 13: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-03-07 13:54:19] Production.INFO: count ==5483 [2025-03-07 13:54:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:54:06 - End Time 2025-03-07 13:54:06 [2025-03-07 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628255', 'tblTempUsageDetail_20' ) start [2025-03-07 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628255', 'tblTempUsageDetail_20' ) end [2025-03-07 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628255', 'tblTempVendorCDR_20' ) start [2025-03-07 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628255', 'tblTempVendorCDR_20' ) end [2025-03-07 13:54:22] Production.INFO: ProcessCDR(1,14628255,1,1,2) [2025-03-07 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628255', 'tblTempUsageDetail_20' ) start [2025-03-07 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628255', 'tblTempUsageDetail_20' ) end [2025-03-07 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:54:27] Production.INFO: ==19477== Releasing lock... [2025-03-07 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:54:27] Production.INFO: 69 MB #Memory Used# [2025-03-07 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:55:05 [end_date_ymd] => 2025-03-07 13:55:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:55:05' and `end` < '2025-03-07 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-03-07 13:55:18] Production.INFO: count ==5520 [2025-03-07 13:55:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:55:05 - End Time 2025-03-07 13:55:05 [2025-03-07 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628260', 'tblTempUsageDetail_20' ) start [2025-03-07 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628260', 'tblTempUsageDetail_20' ) end [2025-03-07 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628260', 'tblTempVendorCDR_20' ) start [2025-03-07 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628260', 'tblTempVendorCDR_20' ) end [2025-03-07 13:55:21] Production.INFO: ProcessCDR(1,14628260,1,1,2) [2025-03-07 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628260', 'tblTempUsageDetail_20' ) start [2025-03-07 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628260', 'tblTempUsageDetail_20' ) end [2025-03-07 13:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:55:26] Production.INFO: ==19585== Releasing lock... [2025-03-07 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:55:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-07 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:56:05 [end_date_ymd] => 2025-03-07 13:56:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:56:05' and `end` < '2025-03-07 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-03-07 13:56:19] Production.INFO: count ==5528 [2025-03-07 13:56:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:56:05 - End Time 2025-03-07 13:56:05 [2025-03-07 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628265', 'tblTempUsageDetail_20' ) start [2025-03-07 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628265', 'tblTempUsageDetail_20' ) end [2025-03-07 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628265', 'tblTempVendorCDR_20' ) start [2025-03-07 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628265', 'tblTempVendorCDR_20' ) end [2025-03-07 13:56:21] Production.INFO: ProcessCDR(1,14628265,1,1,2) [2025-03-07 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628265', 'tblTempUsageDetail_20' ) start [2025-03-07 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628265', 'tblTempUsageDetail_20' ) end [2025-03-07 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:56:26] Production.INFO: ==19659== Releasing lock... [2025-03-07 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:56:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-07 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:57:05 [end_date_ymd] => 2025-03-07 13:57:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:57:05' and `end` < '2025-03-07 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-03-07 13:57:19] Production.INFO: count ==5556 [2025-03-07 13:57:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:57:05 - End Time 2025-03-07 13:57:05 [2025-03-07 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628270', 'tblTempUsageDetail_20' ) start [2025-03-07 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628270', 'tblTempUsageDetail_20' ) end [2025-03-07 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628270', 'tblTempVendorCDR_20' ) start [2025-03-07 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628270', 'tblTempVendorCDR_20' ) end [2025-03-07 13:57:21] Production.INFO: ProcessCDR(1,14628270,1,1,2) [2025-03-07 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628270', 'tblTempUsageDetail_20' ) start [2025-03-07 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628270', 'tblTempUsageDetail_20' ) end [2025-03-07 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:57:26] Production.INFO: ==19730== Releasing lock... [2025-03-07 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:57:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-07 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:58:05 [end_date_ymd] => 2025-03-07 13:58:05 [RateCDR] => 1 ) [2025-03-07 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 10:58:05' and `end` < '2025-03-07 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 13:58:19] Production.INFO: count ==5557 [2025-03-07 13:58:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:58:05 - End Time 2025-03-07 13:58:05 [2025-03-07 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628275', 'tblTempUsageDetail_20' ) start [2025-03-07 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628275', 'tblTempUsageDetail_20' ) end [2025-03-07 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628275', 'tblTempVendorCDR_20' ) start [2025-03-07 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628275', 'tblTempVendorCDR_20' ) end [2025-03-07 13:58:21] Production.INFO: ProcessCDR(1,14628275,1,1,2) [2025-03-07 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628275', 'tblTempUsageDetail_20' ) start [2025-03-07 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628275', 'tblTempUsageDetail_20' ) end [2025-03-07 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:58:27] Production.INFO: ==19800== Releasing lock... [2025-03-07 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:58:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-07 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 10:59:05 [end_date_ymd] => 2025-03-07 13:59:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 10:59:05' and `end` < '2025-03-07 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-03-07 13:59:18] Production.INFO: count ==5570 [2025-03-07 13:59:21] Production.ERROR: pbx CDR StartTime 2025-03-07 10:59:05 - End Time 2025-03-07 13:59:05 [2025-03-07 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628280', 'tblTempUsageDetail_20' ) start [2025-03-07 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628280', 'tblTempUsageDetail_20' ) end [2025-03-07 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628280', 'tblTempVendorCDR_20' ) start [2025-03-07 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628280', 'tblTempVendorCDR_20' ) end [2025-03-07 13:59:21] Production.INFO: ProcessCDR(1,14628280,1,1,2) [2025-03-07 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628280', 'tblTempUsageDetail_20' ) start [2025-03-07 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628280', 'tblTempUsageDetail_20' ) end [2025-03-07 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 13:59:26] Production.INFO: ==19870== Releasing lock... [2025-03-07 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 13:59:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-07 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:00:06 [end_date_ymd] => 2025-03-07 14:00:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:00:06' and `end` < '2025-03-07 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-03-07 14:00:20] Production.INFO: count ==5541 [2025-03-07 14:00:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:00:06 - End Time 2025-03-07 14:00:06 [2025-03-07 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628286', 'tblTempUsageDetail_20' ) start [2025-03-07 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628286', 'tblTempUsageDetail_20' ) end [2025-03-07 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628286', 'tblTempVendorCDR_20' ) start [2025-03-07 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628286', 'tblTempVendorCDR_20' ) end [2025-03-07 14:00:23] Production.INFO: ProcessCDR(1,14628286,1,1,2) [2025-03-07 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628286', 'tblTempUsageDetail_20' ) start [2025-03-07 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628286', 'tblTempUsageDetail_20' ) end [2025-03-07 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:00:28] Production.INFO: ==19943== Releasing lock... [2025-03-07 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:00:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-07 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:01:05 [end_date_ymd] => 2025-03-07 14:01:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:01:05' and `end` < '2025-03-07 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-03-07 14:01:18] Production.INFO: count ==5581 [2025-03-07 14:01:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:01:05 - End Time 2025-03-07 14:01:05 [2025-03-07 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628291', 'tblTempUsageDetail_20' ) start [2025-03-07 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628291', 'tblTempUsageDetail_20' ) end [2025-03-07 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628291', 'tblTempVendorCDR_20' ) start [2025-03-07 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628291', 'tblTempVendorCDR_20' ) end [2025-03-07 14:01:21] Production.INFO: ProcessCDR(1,14628291,1,1,2) [2025-03-07 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628291', 'tblTempUsageDetail_20' ) start [2025-03-07 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628291', 'tblTempUsageDetail_20' ) end [2025-03-07 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:01:26] Production.INFO: ==20028== Releasing lock... [2025-03-07 14:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:01:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-07 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:02:06 [end_date_ymd] => 2025-03-07 14:02:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:02:06' and `end` < '2025-03-07 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-03-07 14:02:19] Production.INFO: count ==5692 [2025-03-07 14:02:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:02:06 - End Time 2025-03-07 14:02:06 [2025-03-07 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628296', 'tblTempUsageDetail_20' ) start [2025-03-07 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628296', 'tblTempUsageDetail_20' ) end [2025-03-07 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628296', 'tblTempVendorCDR_20' ) start [2025-03-07 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628296', 'tblTempVendorCDR_20' ) end [2025-03-07 14:02:22] Production.INFO: ProcessCDR(1,14628296,1,1,2) [2025-03-07 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628296', 'tblTempUsageDetail_20' ) start [2025-03-07 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628296', 'tblTempUsageDetail_20' ) end [2025-03-07 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:02:28] Production.INFO: ==20102== Releasing lock... [2025-03-07 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:02:28] Production.INFO: 70.5 MB #Memory Used# [2025-03-07 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:03:05 [end_date_ymd] => 2025-03-07 14:03:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:03:05' and `end` < '2025-03-07 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-03-07 14:03:19] Production.INFO: count ==5709 [2025-03-07 14:03:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:03:05 - End Time 2025-03-07 14:03:05 [2025-03-07 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628301', 'tblTempUsageDetail_20' ) start [2025-03-07 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628301', 'tblTempUsageDetail_20' ) end [2025-03-07 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628301', 'tblTempVendorCDR_20' ) start [2025-03-07 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628301', 'tblTempVendorCDR_20' ) end [2025-03-07 14:03:21] Production.INFO: ProcessCDR(1,14628301,1,1,2) [2025-03-07 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628301', 'tblTempUsageDetail_20' ) start [2025-03-07 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628301', 'tblTempUsageDetail_20' ) end [2025-03-07 14:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:03:26] Production.INFO: ==20173== Releasing lock... [2025-03-07 14:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:03:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:04:06 [end_date_ymd] => 2025-03-07 14:04:06 [RateCDR] => 1 ) [2025-03-07 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:04:06' and `end` < '2025-03-07 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:04:19] Production.INFO: count ==5698 [2025-03-07 14:04:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:04:06 - End Time 2025-03-07 14:04:06 [2025-03-07 14:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628306', 'tblTempUsageDetail_20' ) start [2025-03-07 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628306', 'tblTempUsageDetail_20' ) end [2025-03-07 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628306', 'tblTempVendorCDR_20' ) start [2025-03-07 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628306', 'tblTempVendorCDR_20' ) end [2025-03-07 14:04:22] Production.INFO: ProcessCDR(1,14628306,1,1,2) [2025-03-07 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628306', 'tblTempUsageDetail_20' ) start [2025-03-07 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628306', 'tblTempUsageDetail_20' ) end [2025-03-07 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:04:27] Production.INFO: ==20247== Releasing lock... [2025-03-07 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:04:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:05:05 [end_date_ymd] => 2025-03-07 14:05:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:05:05' and `end` < '2025-03-07 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-03-07 14:05:19] Production.INFO: count ==5799 [2025-03-07 14:05:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:05:05 - End Time 2025-03-07 14:05:05 [2025-03-07 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628311', 'tblTempUsageDetail_20' ) start [2025-03-07 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628311', 'tblTempUsageDetail_20' ) end [2025-03-07 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628311', 'tblTempVendorCDR_20' ) start [2025-03-07 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628311', 'tblTempVendorCDR_20' ) end [2025-03-07 14:05:22] Production.INFO: ProcessCDR(1,14628311,1,1,2) [2025-03-07 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628311', 'tblTempUsageDetail_20' ) start [2025-03-07 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628311', 'tblTempUsageDetail_20' ) end [2025-03-07 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:05:27] Production.INFO: ==20317== Releasing lock... [2025-03-07 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:05:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-07 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:06:06 [end_date_ymd] => 2025-03-07 14:06:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:06:06' and `end` < '2025-03-07 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-03-07 14:06:19] Production.INFO: count ==5856 [2025-03-07 14:06:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:06:06 - End Time 2025-03-07 14:06:06 [2025-03-07 14:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628316', 'tblTempUsageDetail_20' ) start [2025-03-07 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628316', 'tblTempUsageDetail_20' ) end [2025-03-07 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628316', 'tblTempVendorCDR_20' ) start [2025-03-07 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628316', 'tblTempVendorCDR_20' ) end [2025-03-07 14:06:22] Production.INFO: ProcessCDR(1,14628316,1,1,2) [2025-03-07 14:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628316', 'tblTempUsageDetail_20' ) start [2025-03-07 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628316', 'tblTempUsageDetail_20' ) end [2025-03-07 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:06:27] Production.INFO: ==20388== Releasing lock... [2025-03-07 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:06:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-07 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:07:05 [end_date_ymd] => 2025-03-07 14:07:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:07:05' and `end` < '2025-03-07 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-03-07 14:07:18] Production.INFO: count ==5861 [2025-03-07 14:07:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:07:05 - End Time 2025-03-07 14:07:05 [2025-03-07 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628321', 'tblTempUsageDetail_20' ) start [2025-03-07 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628321', 'tblTempUsageDetail_20' ) end [2025-03-07 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628321', 'tblTempVendorCDR_20' ) start [2025-03-07 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628321', 'tblTempVendorCDR_20' ) end [2025-03-07 14:07:21] Production.INFO: ProcessCDR(1,14628321,1,1,2) [2025-03-07 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628321', 'tblTempUsageDetail_20' ) start [2025-03-07 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628321', 'tblTempUsageDetail_20' ) end [2025-03-07 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:07:26] Production.INFO: ==20457== Releasing lock... [2025-03-07 14:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:07:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-07 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:08:05 [end_date_ymd] => 2025-03-07 14:08:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:08:05' and `end` < '2025-03-07 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-03-07 14:08:18] Production.INFO: count ==5861 [2025-03-07 14:08:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:08:05 - End Time 2025-03-07 14:08:05 [2025-03-07 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628326', 'tblTempUsageDetail_20' ) start [2025-03-07 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628326', 'tblTempUsageDetail_20' ) end [2025-03-07 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628326', 'tblTempVendorCDR_20' ) start [2025-03-07 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628326', 'tblTempVendorCDR_20' ) end [2025-03-07 14:08:21] Production.INFO: ProcessCDR(1,14628326,1,1,2) [2025-03-07 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628326', 'tblTempUsageDetail_20' ) start [2025-03-07 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628326', 'tblTempUsageDetail_20' ) end [2025-03-07 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:08:26] Production.INFO: ==20529== Releasing lock... [2025-03-07 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:08:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-07 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:09:05 [end_date_ymd] => 2025-03-07 14:09:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:09:05' and `end` < '2025-03-07 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-03-07 14:09:18] Production.INFO: count ==5831 [2025-03-07 14:09:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:09:05 - End Time 2025-03-07 14:09:05 [2025-03-07 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628331', 'tblTempUsageDetail_20' ) start [2025-03-07 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628331', 'tblTempUsageDetail_20' ) end [2025-03-07 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628331', 'tblTempVendorCDR_20' ) start [2025-03-07 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628331', 'tblTempVendorCDR_20' ) end [2025-03-07 14:09:21] Production.INFO: ProcessCDR(1,14628331,1,1,2) [2025-03-07 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628331', 'tblTempUsageDetail_20' ) start [2025-03-07 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628331', 'tblTempUsageDetail_20' ) end [2025-03-07 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:09:26] Production.INFO: ==20604== Releasing lock... [2025-03-07 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:09:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-07 14:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:10:07 [end_date_ymd] => 2025-03-07 14:10:07 [RateCDR] => 1 ) [2025-03-07 14:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:10:07' and `end` < '2025-03-07 14:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:10:20] Production.INFO: count ==5823 [2025-03-07 14:10:23] Production.ERROR: pbx CDR StartTime 2025-03-07 11:10:07 - End Time 2025-03-07 14:10:07 [2025-03-07 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628337', 'tblTempUsageDetail_20' ) start [2025-03-07 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628337', 'tblTempUsageDetail_20' ) end [2025-03-07 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628337', 'tblTempVendorCDR_20' ) start [2025-03-07 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628337', 'tblTempVendorCDR_20' ) end [2025-03-07 14:10:23] Production.INFO: ProcessCDR(1,14628337,1,1,2) [2025-03-07 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628337', 'tblTempUsageDetail_20' ) start [2025-03-07 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628337', 'tblTempUsageDetail_20' ) end [2025-03-07 14:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:10:28] Production.INFO: ==20717== Releasing lock... [2025-03-07 14:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:10:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-07 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:11:05 [end_date_ymd] => 2025-03-07 14:11:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:11:05' and `end` < '2025-03-07 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-03-07 14:11:19] Production.INFO: count ==5808 [2025-03-07 14:11:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:11:05 - End Time 2025-03-07 14:11:05 [2025-03-07 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628342', 'tblTempUsageDetail_20' ) start [2025-03-07 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628342', 'tblTempUsageDetail_20' ) end [2025-03-07 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628342', 'tblTempVendorCDR_20' ) start [2025-03-07 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628342', 'tblTempVendorCDR_20' ) end [2025-03-07 14:11:21] Production.INFO: ProcessCDR(1,14628342,1,1,2) [2025-03-07 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628342', 'tblTempUsageDetail_20' ) start [2025-03-07 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628342', 'tblTempUsageDetail_20' ) end [2025-03-07 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:11:27] Production.INFO: ==20791== Releasing lock... [2025-03-07 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:11:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-07 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:12:05 [end_date_ymd] => 2025-03-07 14:12:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:12:05' and `end` < '2025-03-07 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-03-07 14:12:19] Production.INFO: count ==5781 [2025-03-07 14:12:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:12:05 - End Time 2025-03-07 14:12:05 [2025-03-07 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628347', 'tblTempUsageDetail_20' ) start [2025-03-07 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628347', 'tblTempUsageDetail_20' ) end [2025-03-07 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628347', 'tblTempVendorCDR_20' ) start [2025-03-07 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628347', 'tblTempVendorCDR_20' ) end [2025-03-07 14:12:22] Production.INFO: ProcessCDR(1,14628347,1,1,2) [2025-03-07 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628347', 'tblTempUsageDetail_20' ) start [2025-03-07 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628347', 'tblTempUsageDetail_20' ) end [2025-03-07 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:12:26] Production.INFO: ==20862== Releasing lock... [2025-03-07 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:12:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-07 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:13:06 [end_date_ymd] => 2025-03-07 14:13:06 [RateCDR] => 1 ) [2025-03-07 14: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-03-07 11:13:06' and `end` < '2025-03-07 14: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-03-07 14:13:19] Production.INFO: count ==5775 [2025-03-07 14:13:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:13:06 - End Time 2025-03-07 14:13:06 [2025-03-07 14:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628352', 'tblTempUsageDetail_20' ) start [2025-03-07 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628352', 'tblTempUsageDetail_20' ) end [2025-03-07 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628352', 'tblTempVendorCDR_20' ) start [2025-03-07 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628352', 'tblTempVendorCDR_20' ) end [2025-03-07 14:13:22] Production.INFO: ProcessCDR(1,14628352,1,1,2) [2025-03-07 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628352', 'tblTempUsageDetail_20' ) start [2025-03-07 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628352', 'tblTempUsageDetail_20' ) end [2025-03-07 14:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:13:27] Production.INFO: ==20933== Releasing lock... [2025-03-07 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:13:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-07 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:14:06 [end_date_ymd] => 2025-03-07 14:14:06 [RateCDR] => 1 ) [2025-03-07 14:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:14:06' and `end` < '2025-03-07 14:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:14:19] Production.INFO: count ==5787 [2025-03-07 14:14:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:14:06 - End Time 2025-03-07 14:14:06 [2025-03-07 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628357', 'tblTempUsageDetail_20' ) start [2025-03-07 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628357', 'tblTempUsageDetail_20' ) end [2025-03-07 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628357', 'tblTempVendorCDR_20' ) start [2025-03-07 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628357', 'tblTempVendorCDR_20' ) end [2025-03-07 14:14:22] Production.INFO: ProcessCDR(1,14628357,1,1,2) [2025-03-07 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628357', 'tblTempUsageDetail_20' ) start [2025-03-07 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628357', 'tblTempUsageDetail_20' ) end [2025-03-07 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:14:27] Production.INFO: ==21003== Releasing lock... [2025-03-07 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:14:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-07 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:15:06 [end_date_ymd] => 2025-03-07 14:15:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:15:06' and `end` < '2025-03-07 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-03-07 14:15:19] Production.INFO: count ==5792 [2025-03-07 14:15:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:15:06 - End Time 2025-03-07 14:15:06 [2025-03-07 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628362', 'tblTempUsageDetail_20' ) start [2025-03-07 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628362', 'tblTempUsageDetail_20' ) end [2025-03-07 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628362', 'tblTempVendorCDR_20' ) start [2025-03-07 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628362', 'tblTempVendorCDR_20' ) end [2025-03-07 14:15:22] Production.INFO: ProcessCDR(1,14628362,1,1,2) [2025-03-07 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628362', 'tblTempUsageDetail_20' ) start [2025-03-07 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628362', 'tblTempUsageDetail_20' ) end [2025-03-07 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:15:27] Production.INFO: ==21075== Releasing lock... [2025-03-07 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:15:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-07 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:16:06 [end_date_ymd] => 2025-03-07 14:16:06 [RateCDR] => 1 ) [2025-03-07 14: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-03-07 11:16:06' and `end` < '2025-03-07 14: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-03-07 14:16:19] Production.INFO: count ==5786 [2025-03-07 14:16:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:16:06 - End Time 2025-03-07 14:16:06 [2025-03-07 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628367', 'tblTempUsageDetail_20' ) start [2025-03-07 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628367', 'tblTempUsageDetail_20' ) end [2025-03-07 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628367', 'tblTempVendorCDR_20' ) start [2025-03-07 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628367', 'tblTempVendorCDR_20' ) end [2025-03-07 14:16:22] Production.INFO: ProcessCDR(1,14628367,1,1,2) [2025-03-07 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628367', 'tblTempUsageDetail_20' ) start [2025-03-07 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628367', 'tblTempUsageDetail_20' ) end [2025-03-07 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:16:27] Production.INFO: ==21146== Releasing lock... [2025-03-07 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:16:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-07 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:17:05 [end_date_ymd] => 2025-03-07 14:17:05 [RateCDR] => 1 ) [2025-03-07 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:17:05' and `end` < '2025-03-07 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:17:18] Production.INFO: count ==5748 [2025-03-07 14:17:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:17:05 - End Time 2025-03-07 14:17:05 [2025-03-07 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628372', 'tblTempUsageDetail_20' ) start [2025-03-07 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628372', 'tblTempUsageDetail_20' ) end [2025-03-07 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628372', 'tblTempVendorCDR_20' ) start [2025-03-07 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628372', 'tblTempVendorCDR_20' ) end [2025-03-07 14:17:22] Production.INFO: ProcessCDR(1,14628372,1,1,2) [2025-03-07 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628372', 'tblTempUsageDetail_20' ) start [2025-03-07 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628372', 'tblTempUsageDetail_20' ) end [2025-03-07 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:17:27] Production.INFO: ==21218== Releasing lock... [2025-03-07 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:17:27] Production.INFO: 71 MB #Memory Used# [2025-03-07 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:18:05 [end_date_ymd] => 2025-03-07 14:18:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:18:05' and `end` < '2025-03-07 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-03-07 14:18:19] Production.INFO: count ==5754 [2025-03-07 14:18:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:18:05 - End Time 2025-03-07 14:18:05 [2025-03-07 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628377', 'tblTempUsageDetail_20' ) start [2025-03-07 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628377', 'tblTempUsageDetail_20' ) end [2025-03-07 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628377', 'tblTempVendorCDR_20' ) start [2025-03-07 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628377', 'tblTempVendorCDR_20' ) end [2025-03-07 14:18:21] Production.INFO: ProcessCDR(1,14628377,1,1,2) [2025-03-07 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628377', 'tblTempUsageDetail_20' ) start [2025-03-07 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628377', 'tblTempUsageDetail_20' ) end [2025-03-07 14:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:18:26] Production.INFO: ==21293== Releasing lock... [2025-03-07 14:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:18:26] Production.INFO: 71 MB #Memory Used# [2025-03-07 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:19:05 [end_date_ymd] => 2025-03-07 14:19:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:19:05' and `end` < '2025-03-07 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-03-07 14:19:18] Production.INFO: count ==5769 [2025-03-07 14:19:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:19:05 - End Time 2025-03-07 14:19:05 [2025-03-07 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628382', 'tblTempUsageDetail_20' ) start [2025-03-07 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628382', 'tblTempUsageDetail_20' ) end [2025-03-07 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628382', 'tblTempVendorCDR_20' ) start [2025-03-07 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628382', 'tblTempVendorCDR_20' ) end [2025-03-07 14:19:22] Production.INFO: ProcessCDR(1,14628382,1,1,2) [2025-03-07 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628382', 'tblTempUsageDetail_20' ) start [2025-03-07 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628382', 'tblTempUsageDetail_20' ) end [2025-03-07 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:19:27] Production.INFO: ==21364== Releasing lock... [2025-03-07 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:19:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-07 14:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:20:07 [end_date_ymd] => 2025-03-07 14:20:07 [RateCDR] => 1 ) [2025-03-07 14: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-03-07 11:20:07' and `end` < '2025-03-07 14: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-03-07 14:20:20] Production.INFO: count ==5754 [2025-03-07 14:20:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:20:07 - End Time 2025-03-07 14:20:07 [2025-03-07 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628388', 'tblTempUsageDetail_20' ) start [2025-03-07 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628388', 'tblTempUsageDetail_20' ) end [2025-03-07 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628388', 'tblTempVendorCDR_20' ) start [2025-03-07 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628388', 'tblTempVendorCDR_20' ) end [2025-03-07 14:20:23] Production.INFO: ProcessCDR(1,14628388,1,1,2) [2025-03-07 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628388', 'tblTempUsageDetail_20' ) start [2025-03-07 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628388', 'tblTempUsageDetail_20' ) end [2025-03-07 14:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:20:26] Production.INFO: ==21436== Releasing lock... [2025-03-07 14:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:20:26] Production.INFO: 71 MB #Memory Used# [2025-03-07 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:21:05 [end_date_ymd] => 2025-03-07 14:21:05 [RateCDR] => 1 ) [2025-03-07 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:21:05' and `end` < '2025-03-07 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:21:18] Production.INFO: count ==5734 [2025-03-07 14:21:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:21:05 - End Time 2025-03-07 14:21:05 [2025-03-07 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628393', 'tblTempUsageDetail_20' ) start [2025-03-07 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628393', 'tblTempUsageDetail_20' ) end [2025-03-07 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628393', 'tblTempVendorCDR_20' ) start [2025-03-07 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628393', 'tblTempVendorCDR_20' ) end [2025-03-07 14:21:21] Production.INFO: ProcessCDR(1,14628393,1,1,2) [2025-03-07 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628393', 'tblTempUsageDetail_20' ) start [2025-03-07 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628393', 'tblTempUsageDetail_20' ) end [2025-03-07 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:21:26] Production.INFO: ==21510== Releasing lock... [2025-03-07 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:21:26] Production.INFO: 71 MB #Memory Used# [2025-03-07 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:22:06 [end_date_ymd] => 2025-03-07 14:22:06 [RateCDR] => 1 ) [2025-03-07 14: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-03-07 11:22:06' and `end` < '2025-03-07 14: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-03-07 14:22:19] Production.INFO: count ==5742 [2025-03-07 14:22:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:22:06 - End Time 2025-03-07 14:22:06 [2025-03-07 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628398', 'tblTempUsageDetail_20' ) start [2025-03-07 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628398', 'tblTempUsageDetail_20' ) end [2025-03-07 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628398', 'tblTempVendorCDR_20' ) start [2025-03-07 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628398', 'tblTempVendorCDR_20' ) end [2025-03-07 14:22:22] Production.INFO: ProcessCDR(1,14628398,1,1,2) [2025-03-07 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628398', 'tblTempUsageDetail_20' ) start [2025-03-07 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628398', 'tblTempUsageDetail_20' ) end [2025-03-07 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:22:27] Production.INFO: ==21579== Releasing lock... [2025-03-07 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:22:27] Production.INFO: 71 MB #Memory Used# [2025-03-07 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:23:05 [end_date_ymd] => 2025-03-07 14:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:23:05' and `end` < '2025-03-07 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-03-07 14:23:19] Production.INFO: count ==5738 [2025-03-07 14:23:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:23:05 - End Time 2025-03-07 14:23:05 [2025-03-07 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628403', 'tblTempUsageDetail_20' ) start [2025-03-07 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628403', 'tblTempUsageDetail_20' ) end [2025-03-07 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628403', 'tblTempVendorCDR_20' ) start [2025-03-07 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628403', 'tblTempVendorCDR_20' ) end [2025-03-07 14:23:21] Production.INFO: ProcessCDR(1,14628403,1,1,2) [2025-03-07 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628403', 'tblTempUsageDetail_20' ) start [2025-03-07 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628403', 'tblTempUsageDetail_20' ) end [2025-03-07 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:23:26] Production.INFO: ==21650== Releasing lock... [2025-03-07 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:23:26] Production.INFO: 71 MB #Memory Used# [2025-03-07 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:24:06 [end_date_ymd] => 2025-03-07 14:24:06 [RateCDR] => 1 ) [2025-03-07 14: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-03-07 11:24:06' and `end` < '2025-03-07 14: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-03-07 14:24:19] Production.INFO: count ==5716 [2025-03-07 14:24:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:24:06 - End Time 2025-03-07 14:24:06 [2025-03-07 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628408', 'tblTempUsageDetail_20' ) start [2025-03-07 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628408', 'tblTempUsageDetail_20' ) end [2025-03-07 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628408', 'tblTempVendorCDR_20' ) start [2025-03-07 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628408', 'tblTempVendorCDR_20' ) end [2025-03-07 14:24:22] Production.INFO: ProcessCDR(1,14628408,1,1,2) [2025-03-07 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628408', 'tblTempUsageDetail_20' ) start [2025-03-07 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628408', 'tblTempUsageDetail_20' ) end [2025-03-07 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:24:27] Production.INFO: ==21722== Releasing lock... [2025-03-07 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:24:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:25:05 [end_date_ymd] => 2025-03-07 14:25:05 [RateCDR] => 1 ) [2025-03-07 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:25:05' and `end` < '2025-03-07 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:25:18] Production.INFO: count ==5714 [2025-03-07 14:25:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:25:05 - End Time 2025-03-07 14:25:05 [2025-03-07 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628413', 'tblTempUsageDetail_20' ) start [2025-03-07 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628413', 'tblTempUsageDetail_20' ) end [2025-03-07 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628413', 'tblTempVendorCDR_20' ) start [2025-03-07 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628413', 'tblTempVendorCDR_20' ) end [2025-03-07 14:25:21] Production.INFO: ProcessCDR(1,14628413,1,1,2) [2025-03-07 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628413', 'tblTempUsageDetail_20' ) start [2025-03-07 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628413', 'tblTempUsageDetail_20' ) end [2025-03-07 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:25:26] Production.INFO: ==21793== Releasing lock... [2025-03-07 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:25:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:26:05 [end_date_ymd] => 2025-03-07 14:26:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:26:05' and `end` < '2025-03-07 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-03-07 14:26:19] Production.INFO: count ==5709 [2025-03-07 14:26:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:26:05 - End Time 2025-03-07 14:26:05 [2025-03-07 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628417', 'tblTempUsageDetail_20' ) start [2025-03-07 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628417', 'tblTempUsageDetail_20' ) end [2025-03-07 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628417', 'tblTempVendorCDR_20' ) start [2025-03-07 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628417', 'tblTempVendorCDR_20' ) end [2025-03-07 14:26:21] Production.INFO: ProcessCDR(1,14628417,1,1,2) [2025-03-07 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628417', 'tblTempUsageDetail_20' ) start [2025-03-07 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628417', 'tblTempUsageDetail_20' ) end [2025-03-07 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:26:26] Production.INFO: ==21902== Releasing lock... [2025-03-07 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:26:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:27:05 [end_date_ymd] => 2025-03-07 14:27:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:27:05' and `end` < '2025-03-07 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-03-07 14:27:19] Production.INFO: count ==5712 [2025-03-07 14:27:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:27:05 - End Time 2025-03-07 14:27:05 [2025-03-07 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628423', 'tblTempUsageDetail_20' ) start [2025-03-07 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628423', 'tblTempUsageDetail_20' ) end [2025-03-07 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628423', 'tblTempVendorCDR_20' ) start [2025-03-07 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628423', 'tblTempVendorCDR_20' ) end [2025-03-07 14:27:22] Production.INFO: ProcessCDR(1,14628423,1,1,2) [2025-03-07 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628423', 'tblTempUsageDetail_20' ) start [2025-03-07 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628423', 'tblTempUsageDetail_20' ) end [2025-03-07 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:27:27] Production.INFO: ==21972== Releasing lock... [2025-03-07 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:27:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:28:06 [end_date_ymd] => 2025-03-07 14:28:06 [RateCDR] => 1 ) [2025-03-07 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:28:06' and `end` < '2025-03-07 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:28:19] Production.INFO: count ==5702 [2025-03-07 14:28:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:28:06 - End Time 2025-03-07 14:28:06 [2025-03-07 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628428', 'tblTempUsageDetail_20' ) start [2025-03-07 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628428', 'tblTempUsageDetail_20' ) end [2025-03-07 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628428', 'tblTempVendorCDR_20' ) start [2025-03-07 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628428', 'tblTempVendorCDR_20' ) end [2025-03-07 14:28:22] Production.INFO: ProcessCDR(1,14628428,1,1,2) [2025-03-07 14:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628428', 'tblTempUsageDetail_20' ) start [2025-03-07 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628428', 'tblTempUsageDetail_20' ) end [2025-03-07 14:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:28:27] Production.INFO: ==22049== Releasing lock... [2025-03-07 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:28:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:29:05 [end_date_ymd] => 2025-03-07 14:29:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:29:05' and `end` < '2025-03-07 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-03-07 14:29:18] Production.INFO: count ==5703 [2025-03-07 14:29:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:29:05 - End Time 2025-03-07 14:29:05 [2025-03-07 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628433', 'tblTempUsageDetail_20' ) start [2025-03-07 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628433', 'tblTempUsageDetail_20' ) end [2025-03-07 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628433', 'tblTempVendorCDR_20' ) start [2025-03-07 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628433', 'tblTempVendorCDR_20' ) end [2025-03-07 14:29:21] Production.INFO: ProcessCDR(1,14628433,1,1,2) [2025-03-07 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628433', 'tblTempUsageDetail_20' ) start [2025-03-07 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628433', 'tblTempUsageDetail_20' ) end [2025-03-07 14:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:29:25] Production.INFO: ==22121== Releasing lock... [2025-03-07 14:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:29:25] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 14:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:30:07 [end_date_ymd] => 2025-03-07 14:30:07 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:30:07' and `end` < '2025-03-07 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-03-07 14:30:20] Production.INFO: count ==5709 [2025-03-07 14:30:23] Production.ERROR: pbx CDR StartTime 2025-03-07 11:30:07 - End Time 2025-03-07 14:30:07 [2025-03-07 14:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628439', 'tblTempUsageDetail_20' ) start [2025-03-07 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628439', 'tblTempUsageDetail_20' ) end [2025-03-07 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628439', 'tblTempVendorCDR_20' ) start [2025-03-07 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628439', 'tblTempVendorCDR_20' ) end [2025-03-07 14:30:23] Production.INFO: ProcessCDR(1,14628439,1,1,2) [2025-03-07 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628439', 'tblTempUsageDetail_20' ) start [2025-03-07 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628439', 'tblTempUsageDetail_20' ) end [2025-03-07 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:30:29] Production.INFO: ==22193== Releasing lock... [2025-03-07 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:30:29] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:31:05 [end_date_ymd] => 2025-03-07 14:31:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:31:05' and `end` < '2025-03-07 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-03-07 14:31:18] Production.INFO: count ==5729 [2025-03-07 14:31:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:31:05 - End Time 2025-03-07 14:31:05 [2025-03-07 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628444', 'tblTempUsageDetail_20' ) start [2025-03-07 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628444', 'tblTempUsageDetail_20' ) end [2025-03-07 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628444', 'tblTempVendorCDR_20' ) start [2025-03-07 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628444', 'tblTempVendorCDR_20' ) end [2025-03-07 14:31:21] Production.INFO: ProcessCDR(1,14628444,1,1,2) [2025-03-07 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628444', 'tblTempUsageDetail_20' ) start [2025-03-07 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628444', 'tblTempUsageDetail_20' ) end [2025-03-07 14:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:31:26] Production.INFO: ==22265== Releasing lock... [2025-03-07 14:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:31:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:32:06 [end_date_ymd] => 2025-03-07 14:32:06 [RateCDR] => 1 ) [2025-03-07 14:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:32:06' and `end` < '2025-03-07 14:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:32:19] Production.INFO: count ==5724 [2025-03-07 14:32:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:32:06 - End Time 2025-03-07 14:32:06 [2025-03-07 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628449', 'tblTempUsageDetail_20' ) start [2025-03-07 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628449', 'tblTempUsageDetail_20' ) end [2025-03-07 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628449', 'tblTempVendorCDR_20' ) start [2025-03-07 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628449', 'tblTempVendorCDR_20' ) end [2025-03-07 14:32:22] Production.INFO: ProcessCDR(1,14628449,1,1,2) [2025-03-07 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628449', 'tblTempUsageDetail_20' ) start [2025-03-07 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628449', 'tblTempUsageDetail_20' ) end [2025-03-07 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:32:27] Production.INFO: ==22341== Releasing lock... [2025-03-07 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:32:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:33:05 [end_date_ymd] => 2025-03-07 14:33:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:33:05' and `end` < '2025-03-07 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-03-07 14:33:18] Production.INFO: count ==5736 [2025-03-07 14:33:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:33:05 - End Time 2025-03-07 14:33:05 [2025-03-07 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628454', 'tblTempUsageDetail_20' ) start [2025-03-07 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628454', 'tblTempUsageDetail_20' ) end [2025-03-07 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628454', 'tblTempVendorCDR_20' ) start [2025-03-07 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628454', 'tblTempVendorCDR_20' ) end [2025-03-07 14:33:21] Production.INFO: ProcessCDR(1,14628454,1,1,2) [2025-03-07 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628454', 'tblTempUsageDetail_20' ) start [2025-03-07 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628454', 'tblTempUsageDetail_20' ) end [2025-03-07 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:33:26] Production.INFO: ==22416== Releasing lock... [2025-03-07 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:33:26] Production.INFO: 71 MB #Memory Used# [2025-03-07 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:34:06 [end_date_ymd] => 2025-03-07 14:34:06 [RateCDR] => 1 ) [2025-03-07 14:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:34:06' and `end` < '2025-03-07 14:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:34:19] Production.INFO: count ==5728 [2025-03-07 14:34:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:34:06 - End Time 2025-03-07 14:34:06 [2025-03-07 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628459', 'tblTempUsageDetail_20' ) start [2025-03-07 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628459', 'tblTempUsageDetail_20' ) end [2025-03-07 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628459', 'tblTempVendorCDR_20' ) start [2025-03-07 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628459', 'tblTempVendorCDR_20' ) end [2025-03-07 14:34:21] Production.INFO: ProcessCDR(1,14628459,1,1,2) [2025-03-07 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628459', 'tblTempUsageDetail_20' ) start [2025-03-07 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628459', 'tblTempUsageDetail_20' ) end [2025-03-07 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:34:27] Production.INFO: ==22489== Releasing lock... [2025-03-07 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:34:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:35:05 [end_date_ymd] => 2025-03-07 14:35:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:35:05' and `end` < '2025-03-07 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-03-07 14:35:18] Production.INFO: count ==5729 [2025-03-07 14:35:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:35:05 - End Time 2025-03-07 14:35:05 [2025-03-07 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628464', 'tblTempUsageDetail_20' ) start [2025-03-07 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628464', 'tblTempUsageDetail_20' ) end [2025-03-07 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628464', 'tblTempVendorCDR_20' ) start [2025-03-07 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628464', 'tblTempVendorCDR_20' ) end [2025-03-07 14:35:21] Production.INFO: ProcessCDR(1,14628464,1,1,2) [2025-03-07 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628464', 'tblTempUsageDetail_20' ) start [2025-03-07 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628464', 'tblTempUsageDetail_20' ) end [2025-03-07 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:35:26] Production.INFO: ==22570== Releasing lock... [2025-03-07 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:35:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:36:05 [end_date_ymd] => 2025-03-07 14:36:05 [RateCDR] => 1 ) [2025-03-07 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:36:05' and `end` < '2025-03-07 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:36:19] Production.INFO: count ==5727 [2025-03-07 14:36:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:36:05 - End Time 2025-03-07 14:36:05 [2025-03-07 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628469', 'tblTempUsageDetail_20' ) start [2025-03-07 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628469', 'tblTempUsageDetail_20' ) end [2025-03-07 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628469', 'tblTempVendorCDR_20' ) start [2025-03-07 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628469', 'tblTempVendorCDR_20' ) end [2025-03-07 14:36:22] Production.INFO: ProcessCDR(1,14628469,1,1,2) [2025-03-07 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628469', 'tblTempUsageDetail_20' ) start [2025-03-07 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628469', 'tblTempUsageDetail_20' ) end [2025-03-07 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:36:26] Production.INFO: ==22642== Releasing lock... [2025-03-07 14:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:36:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:37:05 [end_date_ymd] => 2025-03-07 14:37:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:37:05' and `end` < '2025-03-07 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-03-07 14:37:18] Production.INFO: count ==5904 [2025-03-07 14:37:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:37:05 - End Time 2025-03-07 14:37:05 [2025-03-07 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628474', 'tblTempUsageDetail_20' ) start [2025-03-07 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628474', 'tblTempUsageDetail_20' ) end [2025-03-07 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628474', 'tblTempVendorCDR_20' ) start [2025-03-07 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628474', 'tblTempVendorCDR_20' ) end [2025-03-07 14:37:21] Production.INFO: ProcessCDR(1,14628474,1,1,2) [2025-03-07 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628474', 'tblTempUsageDetail_20' ) start [2025-03-07 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628474', 'tblTempUsageDetail_20' ) end [2025-03-07 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:37:26] Production.INFO: ==22715== Releasing lock... [2025-03-07 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:37:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:38:05 [end_date_ymd] => 2025-03-07 14:38:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:38:05' and `end` < '2025-03-07 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-03-07 14:38:19] Production.INFO: count ==5967 [2025-03-07 14:38:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:38:05 - End Time 2025-03-07 14:38:05 [2025-03-07 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628479', 'tblTempUsageDetail_20' ) start [2025-03-07 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628479', 'tblTempUsageDetail_20' ) end [2025-03-07 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628479', 'tblTempVendorCDR_20' ) start [2025-03-07 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628479', 'tblTempVendorCDR_20' ) end [2025-03-07 14:38:21] Production.INFO: ProcessCDR(1,14628479,1,1,2) [2025-03-07 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628479', 'tblTempUsageDetail_20' ) start [2025-03-07 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628479', 'tblTempUsageDetail_20' ) end [2025-03-07 14:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:38:26] Production.INFO: ==22787== Releasing lock... [2025-03-07 14:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:38:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:39:05 [end_date_ymd] => 2025-03-07 14:39:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:39:05' and `end` < '2025-03-07 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-03-07 14:39:18] Production.INFO: count ==5947 [2025-03-07 14:39:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:39:05 - End Time 2025-03-07 14:39:05 [2025-03-07 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628484', 'tblTempUsageDetail_20' ) start [2025-03-07 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628484', 'tblTempUsageDetail_20' ) end [2025-03-07 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628484', 'tblTempVendorCDR_20' ) start [2025-03-07 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628484', 'tblTempVendorCDR_20' ) end [2025-03-07 14:39:21] Production.INFO: ProcessCDR(1,14628484,1,1,2) [2025-03-07 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628484', 'tblTempUsageDetail_20' ) start [2025-03-07 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628484', 'tblTempUsageDetail_20' ) end [2025-03-07 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:39:26] Production.INFO: ==22857== Releasing lock... [2025-03-07 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:39:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:40:06 [end_date_ymd] => 2025-03-07 14:40:06 [RateCDR] => 1 ) [2025-03-07 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:40:06' and `end` < '2025-03-07 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:40:20] Production.INFO: count ==5919 [2025-03-07 14:40:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:40:06 - End Time 2025-03-07 14:40:06 [2025-03-07 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628490', 'tblTempUsageDetail_20' ) start [2025-03-07 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628490', 'tblTempUsageDetail_20' ) end [2025-03-07 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628490', 'tblTempVendorCDR_20' ) start [2025-03-07 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628490', 'tblTempVendorCDR_20' ) end [2025-03-07 14:40:23] Production.INFO: ProcessCDR(1,14628490,1,1,2) [2025-03-07 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628490', 'tblTempUsageDetail_20' ) start [2025-03-07 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628490', 'tblTempUsageDetail_20' ) end [2025-03-07 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:40:28] Production.INFO: ==22931== Releasing lock... [2025-03-07 14:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:40:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:41:05 [end_date_ymd] => 2025-03-07 14:41:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:41:05' and `end` < '2025-03-07 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-03-07 14:41:18] Production.INFO: count ==5897 [2025-03-07 14:41:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:41:05 - End Time 2025-03-07 14:41:05 [2025-03-07 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628495', 'tblTempUsageDetail_20' ) start [2025-03-07 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628495', 'tblTempUsageDetail_20' ) end [2025-03-07 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628495', 'tblTempVendorCDR_20' ) start [2025-03-07 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628495', 'tblTempVendorCDR_20' ) end [2025-03-07 14:41:21] Production.INFO: ProcessCDR(1,14628495,1,1,2) [2025-03-07 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628495', 'tblTempUsageDetail_20' ) start [2025-03-07 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628495', 'tblTempUsageDetail_20' ) end [2025-03-07 14:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:41:26] Production.INFO: ==23045== Releasing lock... [2025-03-07 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:41:26] Production.INFO: 72 MB #Memory Used# [2025-03-07 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:42:05 [end_date_ymd] => 2025-03-07 14:42:05 [RateCDR] => 1 ) [2025-03-07 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:42:05' and `end` < '2025-03-07 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:42:18] Production.INFO: count ==5950 [2025-03-07 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:42:05 - End Time 2025-03-07 14:42:05 [2025-03-07 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628500', 'tblTempUsageDetail_20' ) start [2025-03-07 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628500', 'tblTempUsageDetail_20' ) end [2025-03-07 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628500', 'tblTempVendorCDR_20' ) start [2025-03-07 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628500', 'tblTempVendorCDR_20' ) end [2025-03-07 14:42:21] Production.INFO: ProcessCDR(1,14628500,1,1,2) [2025-03-07 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628500', 'tblTempUsageDetail_20' ) start [2025-03-07 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628500', 'tblTempUsageDetail_20' ) end [2025-03-07 14:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:42:26] Production.INFO: ==23121== Releasing lock... [2025-03-07 14:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:42:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:43:05 [end_date_ymd] => 2025-03-07 14:43:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:43:05' and `end` < '2025-03-07 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-03-07 14:43:18] Production.INFO: count ==5929 [2025-03-07 14:43:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:43:05 - End Time 2025-03-07 14:43:05 [2025-03-07 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628505', 'tblTempUsageDetail_20' ) start [2025-03-07 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628505', 'tblTempUsageDetail_20' ) end [2025-03-07 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628505', 'tblTempVendorCDR_20' ) start [2025-03-07 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628505', 'tblTempVendorCDR_20' ) end [2025-03-07 14:43:21] Production.INFO: ProcessCDR(1,14628505,1,1,2) [2025-03-07 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628505', 'tblTempUsageDetail_20' ) start [2025-03-07 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628505', 'tblTempUsageDetail_20' ) end [2025-03-07 14:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:43:26] Production.INFO: ==23190== Releasing lock... [2025-03-07 14:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:43:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:44:06 [end_date_ymd] => 2025-03-07 14:44:06 [RateCDR] => 1 ) [2025-03-07 14: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-03-07 11:44:06' and `end` < '2025-03-07 14: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-03-07 14:44:19] Production.INFO: count ==5901 [2025-03-07 14:44:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:44:06 - End Time 2025-03-07 14:44:06 [2025-03-07 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628510', 'tblTempUsageDetail_20' ) start [2025-03-07 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628510', 'tblTempUsageDetail_20' ) end [2025-03-07 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628510', 'tblTempVendorCDR_20' ) start [2025-03-07 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628510', 'tblTempVendorCDR_20' ) end [2025-03-07 14:44:22] Production.INFO: ProcessCDR(1,14628510,1,1,2) [2025-03-07 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628510', 'tblTempUsageDetail_20' ) start [2025-03-07 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628510', 'tblTempUsageDetail_20' ) end [2025-03-07 14:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:44:28] Production.INFO: ==23267== Releasing lock... [2025-03-07 14:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:44:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:45:05 [end_date_ymd] => 2025-03-07 14:45:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:45:05' and `end` < '2025-03-07 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-03-07 14:45:19] Production.INFO: count ==5865 [2025-03-07 14:45:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:45:05 - End Time 2025-03-07 14:45:05 [2025-03-07 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628515', 'tblTempUsageDetail_20' ) start [2025-03-07 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628515', 'tblTempUsageDetail_20' ) end [2025-03-07 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628515', 'tblTempVendorCDR_20' ) start [2025-03-07 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628515', 'tblTempVendorCDR_20' ) end [2025-03-07 14:45:21] Production.INFO: ProcessCDR(1,14628515,1,1,2) [2025-03-07 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628515', 'tblTempUsageDetail_20' ) start [2025-03-07 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628515', 'tblTempUsageDetail_20' ) end [2025-03-07 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:45:27] Production.INFO: ==23343== Releasing lock... [2025-03-07 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:45:27] Production.INFO: 72 MB #Memory Used# [2025-03-07 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:46:05 [end_date_ymd] => 2025-03-07 14:46:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:46:05' and `end` < '2025-03-07 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-03-07 14:46:19] Production.INFO: count ==5887 [2025-03-07 14:46:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:46:05 - End Time 2025-03-07 14:46:05 [2025-03-07 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628520', 'tblTempUsageDetail_20' ) start [2025-03-07 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628520', 'tblTempUsageDetail_20' ) end [2025-03-07 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628520', 'tblTempVendorCDR_20' ) start [2025-03-07 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628520', 'tblTempVendorCDR_20' ) end [2025-03-07 14:46:21] Production.INFO: ProcessCDR(1,14628520,1,1,2) [2025-03-07 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628520', 'tblTempUsageDetail_20' ) start [2025-03-07 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628520', 'tblTempUsageDetail_20' ) end [2025-03-07 14:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:46:27] Production.INFO: ==23418== Releasing lock... [2025-03-07 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:46:27] Production.INFO: 72 MB #Memory Used# [2025-03-07 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:47:05 [end_date_ymd] => 2025-03-07 14:47:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:47:05' and `end` < '2025-03-07 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-03-07 14:47:18] Production.INFO: count ==5900 [2025-03-07 14:47:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:47:05 - End Time 2025-03-07 14:47:05 [2025-03-07 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628525', 'tblTempUsageDetail_20' ) start [2025-03-07 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628525', 'tblTempUsageDetail_20' ) end [2025-03-07 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628525', 'tblTempVendorCDR_20' ) start [2025-03-07 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628525', 'tblTempVendorCDR_20' ) end [2025-03-07 14:47:21] Production.INFO: ProcessCDR(1,14628525,1,1,2) [2025-03-07 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628525', 'tblTempUsageDetail_20' ) start [2025-03-07 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628525', 'tblTempUsageDetail_20' ) end [2025-03-07 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:47:26] Production.INFO: ==23504== Releasing lock... [2025-03-07 14:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:47:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:48:06 [end_date_ymd] => 2025-03-07 14:48:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:48:06' and `end` < '2025-03-07 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-03-07 14:48:19] Production.INFO: count ==5908 [2025-03-07 14:48:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:48:06 - End Time 2025-03-07 14:48:06 [2025-03-07 14:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628530', 'tblTempUsageDetail_20' ) start [2025-03-07 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628530', 'tblTempUsageDetail_20' ) end [2025-03-07 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628530', 'tblTempVendorCDR_20' ) start [2025-03-07 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628530', 'tblTempVendorCDR_20' ) end [2025-03-07 14:48:22] Production.INFO: ProcessCDR(1,14628530,1,1,2) [2025-03-07 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628530', 'tblTempUsageDetail_20' ) start [2025-03-07 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628530', 'tblTempUsageDetail_20' ) end [2025-03-07 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:48:27] Production.INFO: ==23579== Releasing lock... [2025-03-07 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:48:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:49:05 [end_date_ymd] => 2025-03-07 14:49:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:49:05' and `end` < '2025-03-07 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-03-07 14:49:18] Production.INFO: count ==5926 [2025-03-07 14:49:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:49:05 - End Time 2025-03-07 14:49:05 [2025-03-07 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628535', 'tblTempUsageDetail_20' ) start [2025-03-07 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628535', 'tblTempUsageDetail_20' ) end [2025-03-07 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628535', 'tblTempVendorCDR_20' ) start [2025-03-07 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628535', 'tblTempVendorCDR_20' ) end [2025-03-07 14:49:21] Production.INFO: ProcessCDR(1,14628535,1,1,2) [2025-03-07 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628535', 'tblTempUsageDetail_20' ) start [2025-03-07 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628535', 'tblTempUsageDetail_20' ) end [2025-03-07 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:49:26] Production.INFO: ==23660== Releasing lock... [2025-03-07 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:49:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:50:06 [end_date_ymd] => 2025-03-07 14:50:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:50:06' and `end` < '2025-03-07 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-03-07 14:50:20] Production.INFO: count ==5930 [2025-03-07 14:50:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:50:06 - End Time 2025-03-07 14:50:06 [2025-03-07 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628541', 'tblTempUsageDetail_20' ) start [2025-03-07 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628541', 'tblTempUsageDetail_20' ) end [2025-03-07 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628541', 'tblTempVendorCDR_20' ) start [2025-03-07 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628541', 'tblTempVendorCDR_20' ) end [2025-03-07 14:50:23] Production.INFO: ProcessCDR(1,14628541,1,1,2) [2025-03-07 14:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628541', 'tblTempUsageDetail_20' ) start [2025-03-07 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628541', 'tblTempUsageDetail_20' ) end [2025-03-07 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:50:28] Production.INFO: ==23739== Releasing lock... [2025-03-07 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:50:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:51:06 [end_date_ymd] => 2025-03-07 14:51:06 [RateCDR] => 1 ) [2025-03-07 14:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:51:06' and `end` < '2025-03-07 14:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:51:19] Production.INFO: count ==5954 [2025-03-07 14:51:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:51:06 - End Time 2025-03-07 14:51:06 [2025-03-07 14:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628546', 'tblTempUsageDetail_20' ) start [2025-03-07 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628546', 'tblTempUsageDetail_20' ) end [2025-03-07 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628546', 'tblTempVendorCDR_20' ) start [2025-03-07 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628546', 'tblTempVendorCDR_20' ) end [2025-03-07 14:51:22] Production.INFO: ProcessCDR(1,14628546,1,1,2) [2025-03-07 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628546', 'tblTempUsageDetail_20' ) start [2025-03-07 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628546', 'tblTempUsageDetail_20' ) end [2025-03-07 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:51:27] Production.INFO: ==23818== Releasing lock... [2025-03-07 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:51:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:52:05 [end_date_ymd] => 2025-03-07 14:52:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:52:05' and `end` < '2025-03-07 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-03-07 14:52:19] Production.INFO: count ==5957 [2025-03-07 14:52:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:52:05 - End Time 2025-03-07 14:52:05 [2025-03-07 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628551', 'tblTempUsageDetail_20' ) start [2025-03-07 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628551', 'tblTempUsageDetail_20' ) end [2025-03-07 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628551', 'tblTempVendorCDR_20' ) start [2025-03-07 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628551', 'tblTempVendorCDR_20' ) end [2025-03-07 14:52:22] Production.INFO: ProcessCDR(1,14628551,1,1,2) [2025-03-07 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628551', 'tblTempUsageDetail_20' ) start [2025-03-07 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628551', 'tblTempUsageDetail_20' ) end [2025-03-07 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:52:27] Production.INFO: ==23897== Releasing lock... [2025-03-07 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:52:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:53:05 [end_date_ymd] => 2025-03-07 14:53:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:53:05' and `end` < '2025-03-07 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-03-07 14:53:18] Production.INFO: count ==5934 [2025-03-07 14:53:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:53:05 - End Time 2025-03-07 14:53:05 [2025-03-07 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628556', 'tblTempUsageDetail_20' ) start [2025-03-07 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628556', 'tblTempUsageDetail_20' ) end [2025-03-07 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628556', 'tblTempVendorCDR_20' ) start [2025-03-07 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628556', 'tblTempVendorCDR_20' ) end [2025-03-07 14:53:21] Production.INFO: ProcessCDR(1,14628556,1,1,2) [2025-03-07 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628556', 'tblTempUsageDetail_20' ) start [2025-03-07 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628556', 'tblTempUsageDetail_20' ) end [2025-03-07 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:53:26] Production.INFO: ==23980== Releasing lock... [2025-03-07 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:53:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:54:06 [end_date_ymd] => 2025-03-07 14:54:06 [RateCDR] => 1 ) [2025-03-07 14: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-03-07 11:54:06' and `end` < '2025-03-07 14: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-03-07 14:54:19] Production.INFO: count ==5931 [2025-03-07 14:54:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:54:06 - End Time 2025-03-07 14:54:06 [2025-03-07 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628561', 'tblTempUsageDetail_20' ) start [2025-03-07 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628561', 'tblTempUsageDetail_20' ) end [2025-03-07 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628561', 'tblTempVendorCDR_20' ) start [2025-03-07 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628561', 'tblTempVendorCDR_20' ) end [2025-03-07 14:54:22] Production.INFO: ProcessCDR(1,14628561,1,1,2) [2025-03-07 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628561', 'tblTempUsageDetail_20' ) start [2025-03-07 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628561', 'tblTempUsageDetail_20' ) end [2025-03-07 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:54:27] Production.INFO: ==24065== Releasing lock... [2025-03-07 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:54:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:55:05 [end_date_ymd] => 2025-03-07 14:55:05 [RateCDR] => 1 ) [2025-03-07 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:55:05' and `end` < '2025-03-07 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:55:19] Production.INFO: count ==5920 [2025-03-07 14:55:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:55:05 - End Time 2025-03-07 14:55:05 [2025-03-07 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628566', 'tblTempUsageDetail_20' ) start [2025-03-07 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628566', 'tblTempUsageDetail_20' ) end [2025-03-07 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628566', 'tblTempVendorCDR_20' ) start [2025-03-07 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628566', 'tblTempVendorCDR_20' ) end [2025-03-07 14:55:21] Production.INFO: ProcessCDR(1,14628566,1,1,2) [2025-03-07 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628566', 'tblTempUsageDetail_20' ) start [2025-03-07 14:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628566', 'tblTempUsageDetail_20' ) end [2025-03-07 14:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:55:25] Production.INFO: ==24149== Releasing lock... [2025-03-07 14:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:55:25] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:56:06 [end_date_ymd] => 2025-03-07 14:56:06 [RateCDR] => 1 ) [2025-03-07 14: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-03-07 11:56:06' and `end` < '2025-03-07 14: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-03-07 14:56:19] Production.INFO: count ==5929 [2025-03-07 14:56:22] Production.ERROR: pbx CDR StartTime 2025-03-07 11:56:06 - End Time 2025-03-07 14:56:06 [2025-03-07 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628571', 'tblTempUsageDetail_20' ) start [2025-03-07 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628571', 'tblTempUsageDetail_20' ) end [2025-03-07 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628571', 'tblTempVendorCDR_20' ) start [2025-03-07 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628571', 'tblTempVendorCDR_20' ) end [2025-03-07 14:56:22] Production.INFO: ProcessCDR(1,14628571,1,1,2) [2025-03-07 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628571', 'tblTempUsageDetail_20' ) start [2025-03-07 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628571', 'tblTempUsageDetail_20' ) end [2025-03-07 14:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:56:27] Production.INFO: ==24231== Releasing lock... [2025-03-07 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:56:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:57:05 [end_date_ymd] => 2025-03-07 14:57:05 [RateCDR] => 1 ) [2025-03-07 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:57:05' and `end` < '2025-03-07 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:57:18] Production.INFO: count ==5903 [2025-03-07 14:57:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:57:05 - End Time 2025-03-07 14:57:05 [2025-03-07 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628576', 'tblTempUsageDetail_20' ) start [2025-03-07 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628576', 'tblTempUsageDetail_20' ) end [2025-03-07 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628576', 'tblTempVendorCDR_20' ) start [2025-03-07 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628576', 'tblTempVendorCDR_20' ) end [2025-03-07 14:57:21] Production.INFO: ProcessCDR(1,14628576,1,1,2) [2025-03-07 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628576', 'tblTempUsageDetail_20' ) start [2025-03-07 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628576', 'tblTempUsageDetail_20' ) end [2025-03-07 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:57:26] Production.INFO: ==24352== Releasing lock... [2025-03-07 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:57:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:58:05 [end_date_ymd] => 2025-03-07 14:58:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 11:58:05' and `end` < '2025-03-07 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-03-07 14:58:19] Production.INFO: count ==5913 [2025-03-07 14:58:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:58:05 - End Time 2025-03-07 14:58:05 [2025-03-07 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628581', 'tblTempUsageDetail_20' ) start [2025-03-07 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628581', 'tblTempUsageDetail_20' ) end [2025-03-07 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628581', 'tblTempVendorCDR_20' ) start [2025-03-07 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628581', 'tblTempVendorCDR_20' ) end [2025-03-07 14:58:22] Production.INFO: ProcessCDR(1,14628581,1,1,2) [2025-03-07 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628581', 'tblTempUsageDetail_20' ) start [2025-03-07 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628581', 'tblTempUsageDetail_20' ) end [2025-03-07 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:58:27] Production.INFO: ==24439== Releasing lock... [2025-03-07 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:58:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 11:59:05 [end_date_ymd] => 2025-03-07 14:59:05 [RateCDR] => 1 ) [2025-03-07 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 11:59:05' and `end` < '2025-03-07 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 14:59:18] Production.INFO: count ==5900 [2025-03-07 14:59:21] Production.ERROR: pbx CDR StartTime 2025-03-07 11:59:05 - End Time 2025-03-07 14:59:05 [2025-03-07 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628583', 'tblTempUsageDetail_20' ) start [2025-03-07 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628583', 'tblTempUsageDetail_20' ) end [2025-03-07 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628583', 'tblTempVendorCDR_20' ) start [2025-03-07 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628583', 'tblTempVendorCDR_20' ) end [2025-03-07 14:59:21] Production.INFO: ProcessCDR(1,14628583,1,1,2) [2025-03-07 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 14:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628583', 'tblTempUsageDetail_20' ) start [2025-03-07 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628583', 'tblTempUsageDetail_20' ) end [2025-03-07 14:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 14:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 14:59:26] Production.INFO: ==24518== Releasing lock... [2025-03-07 14:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 14:59:26] Production.INFO: 72 MB #Memory Used# [2025-03-07 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:00:06 [end_date_ymd] => 2025-03-07 15:00:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:00:06' and `end` < '2025-03-07 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-03-07 15:00:19] Production.INFO: count ==5894 [2025-03-07 15:00:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:00:06 - End Time 2025-03-07 15:00:06 [2025-03-07 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628592', 'tblTempUsageDetail_20' ) start [2025-03-07 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628592', 'tblTempUsageDetail_20' ) end [2025-03-07 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628592', 'tblTempVendorCDR_20' ) start [2025-03-07 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628592', 'tblTempVendorCDR_20' ) end [2025-03-07 15:00:23] Production.INFO: ProcessCDR(1,14628592,1,1,2) [2025-03-07 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628592', 'tblTempUsageDetail_20' ) start [2025-03-07 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628592', 'tblTempUsageDetail_20' ) end [2025-03-07 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:00:28] Production.INFO: ==24601== Releasing lock... [2025-03-07 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:00:28] Production.INFO: 72 MB #Memory Used# [2025-03-07 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:01:05 [end_date_ymd] => 2025-03-07 15:01:05 [RateCDR] => 1 ) [2025-03-07 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:01:05' and `end` < '2025-03-07 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:01:18] Production.INFO: count ==5907 [2025-03-07 15:01:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:01:05 - End Time 2025-03-07 15:01:05 [2025-03-07 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628597', 'tblTempUsageDetail_20' ) start [2025-03-07 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628597', 'tblTempUsageDetail_20' ) end [2025-03-07 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628597', 'tblTempVendorCDR_20' ) start [2025-03-07 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628597', 'tblTempVendorCDR_20' ) end [2025-03-07 15:01:21] Production.INFO: ProcessCDR(1,14628597,1,1,2) [2025-03-07 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628597', 'tblTempUsageDetail_20' ) start [2025-03-07 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628597', 'tblTempUsageDetail_20' ) end [2025-03-07 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:01:27] Production.INFO: ==24699== Releasing lock... [2025-03-07 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:01:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:02:06 [end_date_ymd] => 2025-03-07 15:02:06 [RateCDR] => 1 ) [2025-03-07 15: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-03-07 12:02:06' and `end` < '2025-03-07 15: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-03-07 15:02:19] Production.INFO: count ==5908 [2025-03-07 15:02:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:02:06 - End Time 2025-03-07 15:02:06 [2025-03-07 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628602', 'tblTempUsageDetail_20' ) start [2025-03-07 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628602', 'tblTempUsageDetail_20' ) end [2025-03-07 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628602', 'tblTempVendorCDR_20' ) start [2025-03-07 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628602', 'tblTempVendorCDR_20' ) end [2025-03-07 15:02:22] Production.INFO: ProcessCDR(1,14628602,1,1,2) [2025-03-07 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628602', 'tblTempUsageDetail_20' ) start [2025-03-07 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628602', 'tblTempUsageDetail_20' ) end [2025-03-07 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:02:27] Production.INFO: ==24866== Releasing lock... [2025-03-07 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:02:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:03:05 [end_date_ymd] => 2025-03-07 15:03:05 [RateCDR] => 1 ) [2025-03-07 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:03:05' and `end` < '2025-03-07 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:03:18] Production.INFO: count ==5922 [2025-03-07 15:03:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:03:05 - End Time 2025-03-07 15:03:05 [2025-03-07 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628607', 'tblTempUsageDetail_20' ) start [2025-03-07 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628607', 'tblTempUsageDetail_20' ) end [2025-03-07 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628607', 'tblTempVendorCDR_20' ) start [2025-03-07 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628607', 'tblTempVendorCDR_20' ) end [2025-03-07 15:03:22] Production.INFO: ProcessCDR(1,14628607,1,1,2) [2025-03-07 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628607', 'tblTempUsageDetail_20' ) start [2025-03-07 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628607', 'tblTempUsageDetail_20' ) end [2025-03-07 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:03:28] Production.INFO: ==24952== Releasing lock... [2025-03-07 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:03:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:04:06 [end_date_ymd] => 2025-03-07 15:04:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:04:06' and `end` < '2025-03-07 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-03-07 15:04:19] Production.INFO: count ==5897 [2025-03-07 15:04:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:04:06 - End Time 2025-03-07 15:04:06 [2025-03-07 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628612', 'tblTempUsageDetail_20' ) start [2025-03-07 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628612', 'tblTempUsageDetail_20' ) end [2025-03-07 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628612', 'tblTempVendorCDR_20' ) start [2025-03-07 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628612', 'tblTempVendorCDR_20' ) end [2025-03-07 15:04:22] Production.INFO: ProcessCDR(1,14628612,1,1,2) [2025-03-07 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628612', 'tblTempUsageDetail_20' ) start [2025-03-07 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628612', 'tblTempUsageDetail_20' ) end [2025-03-07 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:04:28] Production.INFO: ==25036== Releasing lock... [2025-03-07 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:04:28] Production.INFO: 72 MB #Memory Used# [2025-03-07 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:05:06 [end_date_ymd] => 2025-03-07 15:05:06 [RateCDR] => 1 ) [2025-03-07 15:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:05:06' and `end` < '2025-03-07 15:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:05:19] Production.INFO: count ==5896 [2025-03-07 15:05:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:05:06 - End Time 2025-03-07 15:05:06 [2025-03-07 15:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628617', 'tblTempUsageDetail_20' ) start [2025-03-07 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628617', 'tblTempUsageDetail_20' ) end [2025-03-07 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628617', 'tblTempVendorCDR_20' ) start [2025-03-07 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628617', 'tblTempVendorCDR_20' ) end [2025-03-07 15:05:22] Production.INFO: ProcessCDR(1,14628617,1,1,2) [2025-03-07 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628617', 'tblTempUsageDetail_20' ) start [2025-03-07 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628617', 'tblTempUsageDetail_20' ) end [2025-03-07 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:05:28] Production.INFO: ==25194== Releasing lock... [2025-03-07 15:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:05:28] Production.INFO: 72 MB #Memory Used# [2025-03-07 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:06:06 [end_date_ymd] => 2025-03-07 15:06:06 [RateCDR] => 1 ) [2025-03-07 15:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:06:06' and `end` < '2025-03-07 15:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:06:19] Production.INFO: count ==5915 [2025-03-07 15:06:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:06:06 - End Time 2025-03-07 15:06:06 [2025-03-07 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628622', 'tblTempUsageDetail_20' ) start [2025-03-07 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628622', 'tblTempUsageDetail_20' ) end [2025-03-07 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628622', 'tblTempVendorCDR_20' ) start [2025-03-07 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628622', 'tblTempVendorCDR_20' ) end [2025-03-07 15:06:23] Production.INFO: ProcessCDR(1,14628622,1,1,2) [2025-03-07 15:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628622', 'tblTempUsageDetail_20' ) start [2025-03-07 15:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628622', 'tblTempUsageDetail_20' ) end [2025-03-07 15:06:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:06:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:06:29] Production.INFO: ==25277== Releasing lock... [2025-03-07 15:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:06:29] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:07:05 [end_date_ymd] => 2025-03-07 15:07:05 [RateCDR] => 1 ) [2025-03-07 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:07:05' and `end` < '2025-03-07 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:07:18] Production.INFO: count ==5902 [2025-03-07 15:07:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:07:05 - End Time 2025-03-07 15:07:05 [2025-03-07 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628624', 'tblTempUsageDetail_20' ) start [2025-03-07 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628624', 'tblTempUsageDetail_20' ) end [2025-03-07 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628624', 'tblTempVendorCDR_20' ) start [2025-03-07 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628624', 'tblTempVendorCDR_20' ) end [2025-03-07 15:07:22] Production.INFO: ProcessCDR(1,14628624,1,1,2) [2025-03-07 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628624', 'tblTempUsageDetail_20' ) start [2025-03-07 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628624', 'tblTempUsageDetail_20' ) end [2025-03-07 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:07:27] Production.INFO: ==25367== Releasing lock... [2025-03-07 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:07:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:08:05 [end_date_ymd] => 2025-03-07 15:08:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:08:05' and `end` < '2025-03-07 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-03-07 15:08:19] Production.INFO: count ==5872 [2025-03-07 15:08:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:08:05 - End Time 2025-03-07 15:08:05 [2025-03-07 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628632', 'tblTempUsageDetail_20' ) start [2025-03-07 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628632', 'tblTempUsageDetail_20' ) end [2025-03-07 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628632', 'tblTempVendorCDR_20' ) start [2025-03-07 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628632', 'tblTempVendorCDR_20' ) end [2025-03-07 15:08:22] Production.INFO: ProcessCDR(1,14628632,1,1,2) [2025-03-07 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628632', 'tblTempUsageDetail_20' ) start [2025-03-07 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628632', 'tblTempUsageDetail_20' ) end [2025-03-07 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:08:27] Production.INFO: ==25454== Releasing lock... [2025-03-07 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:08:27] Production.INFO: 72 MB #Memory Used# [2025-03-07 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:09:06 [end_date_ymd] => 2025-03-07 15:09:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:09:06' and `end` < '2025-03-07 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-03-07 15:09:19] Production.INFO: count ==5859 [2025-03-07 15:09:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:09:06 - End Time 2025-03-07 15:09:06 [2025-03-07 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628637', 'tblTempUsageDetail_20' ) start [2025-03-07 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628637', 'tblTempUsageDetail_20' ) end [2025-03-07 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628637', 'tblTempVendorCDR_20' ) start [2025-03-07 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628637', 'tblTempVendorCDR_20' ) end [2025-03-07 15:09:22] Production.INFO: ProcessCDR(1,14628637,1,1,2) [2025-03-07 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628637', 'tblTempUsageDetail_20' ) start [2025-03-07 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628637', 'tblTempUsageDetail_20' ) end [2025-03-07 15:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:09:28] Production.INFO: ==25610== Releasing lock... [2025-03-07 15:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:09:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-07 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:10:07 [end_date_ymd] => 2025-03-07 15:10:07 [RateCDR] => 1 ) [2025-03-07 15:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:10:07' and `end` < '2025-03-07 15:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:10:20] Production.INFO: count ==5879 [2025-03-07 15:10:23] Production.ERROR: pbx CDR StartTime 2025-03-07 12:10:07 - End Time 2025-03-07 15:10:07 [2025-03-07 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628642', 'tblTempUsageDetail_20' ) start [2025-03-07 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628642', 'tblTempUsageDetail_20' ) end [2025-03-07 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628642', 'tblTempVendorCDR_20' ) start [2025-03-07 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628642', 'tblTempVendorCDR_20' ) end [2025-03-07 15:10:23] Production.INFO: ProcessCDR(1,14628642,1,1,2) [2025-03-07 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628642', 'tblTempUsageDetail_20' ) start [2025-03-07 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628642', 'tblTempUsageDetail_20' ) end [2025-03-07 15:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:10:29] Production.INFO: ==25698== Releasing lock... [2025-03-07 15:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:10:29] Production.INFO: 72 MB #Memory Used# [2025-03-07 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:11:06 [end_date_ymd] => 2025-03-07 15:11:06 [RateCDR] => 1 ) [2025-03-07 15: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-03-07 12:11:06' and `end` < '2025-03-07 15: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-03-07 15:11:19] Production.INFO: count ==5924 [2025-03-07 15:11:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:11:06 - End Time 2025-03-07 15:11:06 [2025-03-07 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628648', 'tblTempUsageDetail_20' ) start [2025-03-07 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628648', 'tblTempUsageDetail_20' ) end [2025-03-07 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628648', 'tblTempVendorCDR_20' ) start [2025-03-07 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628648', 'tblTempVendorCDR_20' ) end [2025-03-07 15:11:22] Production.INFO: ProcessCDR(1,14628648,1,1,2) [2025-03-07 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628648', 'tblTempUsageDetail_20' ) start [2025-03-07 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628648', 'tblTempUsageDetail_20' ) end [2025-03-07 15:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:11:28] Production.INFO: ==25786== Releasing lock... [2025-03-07 15:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:11:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:12:06 [end_date_ymd] => 2025-03-07 15:12:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:12:06' and `end` < '2025-03-07 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-03-07 15:12:19] Production.INFO: count ==5932 [2025-03-07 15:12:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:12:06 - End Time 2025-03-07 15:12:06 [2025-03-07 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628653', 'tblTempUsageDetail_20' ) start [2025-03-07 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628653', 'tblTempUsageDetail_20' ) end [2025-03-07 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628653', 'tblTempVendorCDR_20' ) start [2025-03-07 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628653', 'tblTempVendorCDR_20' ) end [2025-03-07 15:12:22] Production.INFO: ProcessCDR(1,14628653,1,1,2) [2025-03-07 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628653', 'tblTempUsageDetail_20' ) start [2025-03-07 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628653', 'tblTempUsageDetail_20' ) end [2025-03-07 15:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:12:28] Production.INFO: ==25983== Releasing lock... [2025-03-07 15:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:12:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:13:05 [end_date_ymd] => 2025-03-07 15:13:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:13:05' and `end` < '2025-03-07 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-03-07 15:13:19] Production.INFO: count ==5920 [2025-03-07 15:13:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:13:05 - End Time 2025-03-07 15:13:05 [2025-03-07 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628658', 'tblTempUsageDetail_20' ) start [2025-03-07 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628658', 'tblTempUsageDetail_20' ) end [2025-03-07 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628658', 'tblTempVendorCDR_20' ) start [2025-03-07 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628658', 'tblTempVendorCDR_20' ) end [2025-03-07 15:13:22] Production.INFO: ProcessCDR(1,14628658,1,1,2) [2025-03-07 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628658', 'tblTempUsageDetail_20' ) start [2025-03-07 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628658', 'tblTempUsageDetail_20' ) end [2025-03-07 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:13:27] Production.INFO: ==26063== Releasing lock... [2025-03-07 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:13:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:14:06 [end_date_ymd] => 2025-03-07 15:14:06 [RateCDR] => 1 ) [2025-03-07 15:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:14:06' and `end` < '2025-03-07 15:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:14:20] Production.INFO: count ==5913 [2025-03-07 15:14:23] Production.ERROR: pbx CDR StartTime 2025-03-07 12:14:06 - End Time 2025-03-07 15:14:06 [2025-03-07 15:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628663', 'tblTempUsageDetail_20' ) start [2025-03-07 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628663', 'tblTempUsageDetail_20' ) end [2025-03-07 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628663', 'tblTempVendorCDR_20' ) start [2025-03-07 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628663', 'tblTempVendorCDR_20' ) end [2025-03-07 15:14:23] Production.INFO: ProcessCDR(1,14628663,1,1,2) [2025-03-07 15:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628663', 'tblTempUsageDetail_20' ) start [2025-03-07 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628663', 'tblTempUsageDetail_20' ) end [2025-03-07 15:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:14:28] Production.INFO: ==26143== Releasing lock... [2025-03-07 15:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:14:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:15:06 [end_date_ymd] => 2025-03-07 15:15:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:15:06' and `end` < '2025-03-07 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-03-07 15:15:19] Production.INFO: count ==5908 [2025-03-07 15:15:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:15:06 - End Time 2025-03-07 15:15:06 [2025-03-07 15:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628668', 'tblTempUsageDetail_20' ) start [2025-03-07 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628668', 'tblTempUsageDetail_20' ) end [2025-03-07 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628668', 'tblTempVendorCDR_20' ) start [2025-03-07 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628668', 'tblTempVendorCDR_20' ) end [2025-03-07 15:15:22] Production.INFO: ProcessCDR(1,14628668,1,1,2) [2025-03-07 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628668', 'tblTempUsageDetail_20' ) start [2025-03-07 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628668', 'tblTempUsageDetail_20' ) end [2025-03-07 15:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:15:28] Production.INFO: ==26267== Releasing lock... [2025-03-07 15:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:15:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:16:06 [end_date_ymd] => 2025-03-07 15:16:06 [RateCDR] => 1 ) [2025-03-07 15: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-03-07 12:16:06' and `end` < '2025-03-07 15: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-03-07 15:16:19] Production.INFO: count ==5901 [2025-03-07 15:16:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:16:06 - End Time 2025-03-07 15:16:06 [2025-03-07 15:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628673', 'tblTempUsageDetail_20' ) start [2025-03-07 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628673', 'tblTempUsageDetail_20' ) end [2025-03-07 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628673', 'tblTempVendorCDR_20' ) start [2025-03-07 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628673', 'tblTempVendorCDR_20' ) end [2025-03-07 15:16:22] Production.INFO: ProcessCDR(1,14628673,1,1,2) [2025-03-07 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628673', 'tblTempUsageDetail_20' ) start [2025-03-07 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628673', 'tblTempUsageDetail_20' ) end [2025-03-07 15:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:16:28] Production.INFO: ==26389== Releasing lock... [2025-03-07 15:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:16:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:17:05 [end_date_ymd] => 2025-03-07 15:17:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:17:05' and `end` < '2025-03-07 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-03-07 15:17:18] Production.INFO: count ==5876 [2025-03-07 15:17:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:17:05 - End Time 2025-03-07 15:17:05 [2025-03-07 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628678', 'tblTempUsageDetail_20' ) start [2025-03-07 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628678', 'tblTempUsageDetail_20' ) end [2025-03-07 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628678', 'tblTempVendorCDR_20' ) start [2025-03-07 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628678', 'tblTempVendorCDR_20' ) end [2025-03-07 15:17:22] Production.INFO: ProcessCDR(1,14628678,1,1,2) [2025-03-07 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628678', 'tblTempUsageDetail_20' ) start [2025-03-07 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628678', 'tblTempUsageDetail_20' ) end [2025-03-07 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:17:27] Production.INFO: ==26475== Releasing lock... [2025-03-07 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:17:27] Production.INFO: 72 MB #Memory Used# [2025-03-07 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:18:06 [end_date_ymd] => 2025-03-07 15:18:06 [RateCDR] => 1 ) [2025-03-07 15: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-03-07 12:18:06' and `end` < '2025-03-07 15: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-03-07 15:18:20] Production.INFO: count ==5898 [2025-03-07 15:18:23] Production.ERROR: pbx CDR StartTime 2025-03-07 12:18:06 - End Time 2025-03-07 15:18:06 [2025-03-07 15:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628683', 'tblTempUsageDetail_20' ) start [2025-03-07 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628683', 'tblTempUsageDetail_20' ) end [2025-03-07 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628683', 'tblTempVendorCDR_20' ) start [2025-03-07 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628683', 'tblTempVendorCDR_20' ) end [2025-03-07 15:18:23] Production.INFO: ProcessCDR(1,14628683,1,1,2) [2025-03-07 15:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628683', 'tblTempUsageDetail_20' ) start [2025-03-07 15:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628683', 'tblTempUsageDetail_20' ) end [2025-03-07 15:18:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:18:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:18:29] Production.INFO: ==26560== Releasing lock... [2025-03-07 15:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:18:29] Production.INFO: 72 MB #Memory Used# [2025-03-07 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:19:05 [end_date_ymd] => 2025-03-07 15:19:05 [RateCDR] => 1 ) [2025-03-07 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:19:05' and `end` < '2025-03-07 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:19:19] Production.INFO: count ==5943 [2025-03-07 15:19:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:19:05 - End Time 2025-03-07 15:19:05 [2025-03-07 15:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628688', 'tblTempUsageDetail_20' ) start [2025-03-07 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628688', 'tblTempUsageDetail_20' ) end [2025-03-07 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628688', 'tblTempVendorCDR_20' ) start [2025-03-07 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628688', 'tblTempVendorCDR_20' ) end [2025-03-07 15:19:22] Production.INFO: ProcessCDR(1,14628688,1,1,2) [2025-03-07 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628688', 'tblTempUsageDetail_20' ) start [2025-03-07 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628688', 'tblTempUsageDetail_20' ) end [2025-03-07 15:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:19:28] Production.INFO: ==26645== Releasing lock... [2025-03-07 15:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:19:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:20:07 [end_date_ymd] => 2025-03-07 15:20:07 [RateCDR] => 1 ) [2025-03-07 15: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-03-07 12:20:07' and `end` < '2025-03-07 15: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-03-07 15:20:20] Production.INFO: count ==5938 [2025-03-07 15:20:23] Production.ERROR: pbx CDR StartTime 2025-03-07 12:20:07 - End Time 2025-03-07 15:20:07 [2025-03-07 15:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628694', 'tblTempUsageDetail_20' ) start [2025-03-07 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628694', 'tblTempUsageDetail_20' ) end [2025-03-07 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628694', 'tblTempVendorCDR_20' ) start [2025-03-07 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628694', 'tblTempVendorCDR_20' ) end [2025-03-07 15:20:23] Production.INFO: ProcessCDR(1,14628694,1,1,2) [2025-03-07 15:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628694', 'tblTempUsageDetail_20' ) start [2025-03-07 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628694', 'tblTempUsageDetail_20' ) end [2025-03-07 15:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:20:29] Production.INFO: ==26731== Releasing lock... [2025-03-07 15:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:20:29] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:21:05 [end_date_ymd] => 2025-03-07 15:21:05 [RateCDR] => 1 ) [2025-03-07 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:21:05' and `end` < '2025-03-07 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:21:19] Production.INFO: count ==5976 [2025-03-07 15:21:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:21:05 - End Time 2025-03-07 15:21:05 [2025-03-07 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628699', 'tblTempUsageDetail_20' ) start [2025-03-07 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628699', 'tblTempUsageDetail_20' ) end [2025-03-07 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628699', 'tblTempVendorCDR_20' ) start [2025-03-07 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628699', 'tblTempVendorCDR_20' ) end [2025-03-07 15:21:21] Production.INFO: ProcessCDR(1,14628699,1,1,2) [2025-03-07 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628699', 'tblTempUsageDetail_20' ) start [2025-03-07 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628699', 'tblTempUsageDetail_20' ) end [2025-03-07 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:21:26] Production.INFO: ==26814== Releasing lock... [2025-03-07 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:21:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:22:06 [end_date_ymd] => 2025-03-07 15:22:06 [RateCDR] => 1 ) [2025-03-07 15: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-03-07 12:22:06' and `end` < '2025-03-07 15: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-03-07 15:22:20] Production.INFO: count ==5980 [2025-03-07 15:22:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:22:06 - End Time 2025-03-07 15:22:06 [2025-03-07 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628704', 'tblTempUsageDetail_20' ) start [2025-03-07 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628704', 'tblTempUsageDetail_20' ) end [2025-03-07 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628704', 'tblTempVendorCDR_20' ) start [2025-03-07 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628704', 'tblTempVendorCDR_20' ) end [2025-03-07 15:22:23] Production.INFO: ProcessCDR(1,14628704,1,1,2) [2025-03-07 15:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628704', 'tblTempUsageDetail_20' ) start [2025-03-07 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628704', 'tblTempUsageDetail_20' ) end [2025-03-07 15:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:22:28] Production.INFO: ==26899== Releasing lock... [2025-03-07 15:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:22:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:23:05 [end_date_ymd] => 2025-03-07 15:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:23:05' and `end` < '2025-03-07 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-03-07 15:23:19] Production.INFO: count ==5991 [2025-03-07 15:23:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:23:05 - End Time 2025-03-07 15:23:05 [2025-03-07 15:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628709', 'tblTempUsageDetail_20' ) start [2025-03-07 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628709', 'tblTempUsageDetail_20' ) end [2025-03-07 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628709', 'tblTempVendorCDR_20' ) start [2025-03-07 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628709', 'tblTempVendorCDR_20' ) end [2025-03-07 15:23:22] Production.INFO: ProcessCDR(1,14628709,1,1,2) [2025-03-07 15:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628709', 'tblTempUsageDetail_20' ) start [2025-03-07 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628709', 'tblTempUsageDetail_20' ) end [2025-03-07 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:23:27] Production.INFO: ==26978== Releasing lock... [2025-03-07 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:23:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:24:06 [end_date_ymd] => 2025-03-07 15:24:06 [RateCDR] => 1 ) [2025-03-07 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:24:06' and `end` < '2025-03-07 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:24:19] Production.INFO: count ==5992 [2025-03-07 15:24:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:24:06 - End Time 2025-03-07 15:24:06 [2025-03-07 15:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628714', 'tblTempUsageDetail_20' ) start [2025-03-07 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628714', 'tblTempUsageDetail_20' ) end [2025-03-07 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628714', 'tblTempVendorCDR_20' ) start [2025-03-07 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628714', 'tblTempVendorCDR_20' ) end [2025-03-07 15:24:22] Production.INFO: ProcessCDR(1,14628714,1,1,2) [2025-03-07 15:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628714', 'tblTempUsageDetail_20' ) start [2025-03-07 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628714', 'tblTempUsageDetail_20' ) end [2025-03-07 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:24:27] Production.INFO: ==27054== Releasing lock... [2025-03-07 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:24:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:25:05 [end_date_ymd] => 2025-03-07 15:25:05 [RateCDR] => 1 ) [2025-03-07 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:25:05' and `end` < '2025-03-07 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:25:18] Production.INFO: count ==6003 [2025-03-07 15:25:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:25:05 - End Time 2025-03-07 15:25:05 [2025-03-07 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628719', 'tblTempUsageDetail_20' ) start [2025-03-07 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628719', 'tblTempUsageDetail_20' ) end [2025-03-07 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628719', 'tblTempVendorCDR_20' ) start [2025-03-07 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628719', 'tblTempVendorCDR_20' ) end [2025-03-07 15:25:21] Production.INFO: ProcessCDR(1,14628719,1,1,2) [2025-03-07 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628719', 'tblTempUsageDetail_20' ) start [2025-03-07 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628719', 'tblTempUsageDetail_20' ) end [2025-03-07 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:25:26] Production.INFO: ==27136== Releasing lock... [2025-03-07 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:25:26] Production.INFO: 73 MB #Memory Used# [2025-03-07 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:26:06 [end_date_ymd] => 2025-03-07 15:26:06 [RateCDR] => 1 ) [2025-03-07 15: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-03-07 12:26:06' and `end` < '2025-03-07 15: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-03-07 15:26:19] Production.INFO: count ==5983 [2025-03-07 15:26:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:26:06 - End Time 2025-03-07 15:26:06 [2025-03-07 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628724', 'tblTempUsageDetail_20' ) start [2025-03-07 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628724', 'tblTempUsageDetail_20' ) end [2025-03-07 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628724', 'tblTempVendorCDR_20' ) start [2025-03-07 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628724', 'tblTempVendorCDR_20' ) end [2025-03-07 15:26:22] Production.INFO: ProcessCDR(1,14628724,1,1,2) [2025-03-07 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628724', 'tblTempUsageDetail_20' ) start [2025-03-07 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628724', 'tblTempUsageDetail_20' ) end [2025-03-07 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:26:27] Production.INFO: ==27222== Releasing lock... [2025-03-07 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:26:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:27:05 [end_date_ymd] => 2025-03-07 15:27:05 [RateCDR] => 1 ) [2025-03-07 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:27:05' and `end` < '2025-03-07 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:27:19] Production.INFO: count ==5970 [2025-03-07 15:27:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:27:05 - End Time 2025-03-07 15:27:05 [2025-03-07 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628729', 'tblTempUsageDetail_20' ) start [2025-03-07 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628729', 'tblTempUsageDetail_20' ) end [2025-03-07 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628729', 'tblTempVendorCDR_20' ) start [2025-03-07 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628729', 'tblTempVendorCDR_20' ) end [2025-03-07 15:27:21] Production.INFO: ProcessCDR(1,14628729,1,1,2) [2025-03-07 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628729', 'tblTempUsageDetail_20' ) start [2025-03-07 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628729', 'tblTempUsageDetail_20' ) end [2025-03-07 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:27:26] Production.INFO: ==27304== Releasing lock... [2025-03-07 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:27:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:28:06 [end_date_ymd] => 2025-03-07 15:28:06 [RateCDR] => 1 ) [2025-03-07 15: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-03-07 12:28:06' and `end` < '2025-03-07 15: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-03-07 15:28:20] Production.INFO: count ==5971 [2025-03-07 15:28:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:28:06 - End Time 2025-03-07 15:28:06 [2025-03-07 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628734', 'tblTempUsageDetail_20' ) start [2025-03-07 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628734', 'tblTempUsageDetail_20' ) end [2025-03-07 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628734', 'tblTempVendorCDR_20' ) start [2025-03-07 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628734', 'tblTempVendorCDR_20' ) end [2025-03-07 15:28:23] Production.INFO: ProcessCDR(1,14628734,1,1,2) [2025-03-07 15:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628734', 'tblTempUsageDetail_20' ) start [2025-03-07 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628734', 'tblTempUsageDetail_20' ) end [2025-03-07 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:28:28] Production.INFO: ==27422== Releasing lock... [2025-03-07 15:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:28:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:29:06 [end_date_ymd] => 2025-03-07 15:29:06 [RateCDR] => 1 ) [2025-03-07 15:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:29:06' and `end` < '2025-03-07 15:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:29:19] Production.INFO: count ==5966 [2025-03-07 15:29:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:29:06 - End Time 2025-03-07 15:29:06 [2025-03-07 15:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628739', 'tblTempUsageDetail_20' ) start [2025-03-07 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628739', 'tblTempUsageDetail_20' ) end [2025-03-07 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628739', 'tblTempVendorCDR_20' ) start [2025-03-07 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628739', 'tblTempVendorCDR_20' ) end [2025-03-07 15:29:22] Production.INFO: ProcessCDR(1,14628739,1,1,2) [2025-03-07 15:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628739', 'tblTempUsageDetail_20' ) start [2025-03-07 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628739', 'tblTempUsageDetail_20' ) end [2025-03-07 15:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:29:28] Production.INFO: ==27498== Releasing lock... [2025-03-07 15:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:29:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:30:07 [end_date_ymd] => 2025-03-07 15:30:07 [RateCDR] => 1 ) [2025-03-07 15: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-03-07 12:30:07' and `end` < '2025-03-07 15: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-03-07 15:30:20] Production.INFO: count ==5953 [2025-03-07 15:30:23] Production.ERROR: pbx CDR StartTime 2025-03-07 12:30:07 - End Time 2025-03-07 15:30:07 [2025-03-07 15:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628745', 'tblTempUsageDetail_20' ) start [2025-03-07 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628745', 'tblTempUsageDetail_20' ) end [2025-03-07 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628745', 'tblTempVendorCDR_20' ) start [2025-03-07 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628745', 'tblTempVendorCDR_20' ) end [2025-03-07 15:30:23] Production.INFO: ProcessCDR(1,14628745,1,1,2) [2025-03-07 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628745', 'tblTempUsageDetail_20' ) start [2025-03-07 15:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628745', 'tblTempUsageDetail_20' ) end [2025-03-07 15:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:30:29] Production.INFO: ==27573== Releasing lock... [2025-03-07 15:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:30:29] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:31:05 [end_date_ymd] => 2025-03-07 15:31:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:31:05' and `end` < '2025-03-07 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-03-07 15:31:19] Production.INFO: count ==5942 [2025-03-07 15:31:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:31:05 - End Time 2025-03-07 15:31:05 [2025-03-07 15:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628750', 'tblTempUsageDetail_20' ) start [2025-03-07 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628750', 'tblTempUsageDetail_20' ) end [2025-03-07 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628750', 'tblTempVendorCDR_20' ) start [2025-03-07 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628750', 'tblTempVendorCDR_20' ) end [2025-03-07 15:31:22] Production.INFO: ProcessCDR(1,14628750,1,1,2) [2025-03-07 15:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628750', 'tblTempUsageDetail_20' ) start [2025-03-07 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628750', 'tblTempUsageDetail_20' ) end [2025-03-07 15:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:31:27] Production.INFO: ==27654== Releasing lock... [2025-03-07 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:31:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:32:06 [end_date_ymd] => 2025-03-07 15:32:06 [RateCDR] => 1 ) [2025-03-07 15:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:32:06' and `end` < '2025-03-07 15:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:32:20] Production.INFO: count ==5920 [2025-03-07 15:32:23] Production.ERROR: pbx CDR StartTime 2025-03-07 12:32:06 - End Time 2025-03-07 15:32:06 [2025-03-07 15:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628755', 'tblTempUsageDetail_20' ) start [2025-03-07 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628755', 'tblTempUsageDetail_20' ) end [2025-03-07 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628755', 'tblTempVendorCDR_20' ) start [2025-03-07 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628755', 'tblTempVendorCDR_20' ) end [2025-03-07 15:32:23] Production.INFO: ProcessCDR(1,14628755,1,1,2) [2025-03-07 15:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628755', 'tblTempUsageDetail_20' ) start [2025-03-07 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628755', 'tblTempUsageDetail_20' ) end [2025-03-07 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:32:28] Production.INFO: ==27735== Releasing lock... [2025-03-07 15:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:32:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:33:06 [end_date_ymd] => 2025-03-07 15:33:06 [RateCDR] => 1 ) [2025-03-07 15:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:33:06' and `end` < '2025-03-07 15:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:33:19] Production.INFO: count ==5924 [2025-03-07 15:33:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:33:06 - End Time 2025-03-07 15:33:06 [2025-03-07 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628760', 'tblTempUsageDetail_20' ) start [2025-03-07 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628760', 'tblTempUsageDetail_20' ) end [2025-03-07 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628760', 'tblTempVendorCDR_20' ) start [2025-03-07 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628760', 'tblTempVendorCDR_20' ) end [2025-03-07 15:33:22] Production.INFO: ProcessCDR(1,14628760,1,1,2) [2025-03-07 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628760', 'tblTempUsageDetail_20' ) start [2025-03-07 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628760', 'tblTempUsageDetail_20' ) end [2025-03-07 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:33:27] Production.INFO: ==27809== Releasing lock... [2025-03-07 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:33:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:34:05 [end_date_ymd] => 2025-03-07 15:34:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:34:05' and `end` < '2025-03-07 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-03-07 15:34:18] Production.INFO: count ==5932 [2025-03-07 15:34:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:34:05 - End Time 2025-03-07 15:34:05 [2025-03-07 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628765', 'tblTempUsageDetail_20' ) start [2025-03-07 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628765', 'tblTempUsageDetail_20' ) end [2025-03-07 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628765', 'tblTempVendorCDR_20' ) start [2025-03-07 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628765', 'tblTempVendorCDR_20' ) end [2025-03-07 15:34:21] Production.INFO: ProcessCDR(1,14628765,1,1,2) [2025-03-07 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628765', 'tblTempUsageDetail_20' ) start [2025-03-07 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628765', 'tblTempUsageDetail_20' ) end [2025-03-07 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:34:26] Production.INFO: ==27885== Releasing lock... [2025-03-07 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:34:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:35:05 [end_date_ymd] => 2025-03-07 15:35:05 [RateCDR] => 1 ) [2025-03-07 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:35:05' and `end` < '2025-03-07 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:35:19] Production.INFO: count ==5926 [2025-03-07 15:35:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:35:05 - End Time 2025-03-07 15:35:05 [2025-03-07 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628770', 'tblTempUsageDetail_20' ) start [2025-03-07 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628770', 'tblTempUsageDetail_20' ) end [2025-03-07 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628770', 'tblTempVendorCDR_20' ) start [2025-03-07 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628770', 'tblTempVendorCDR_20' ) end [2025-03-07 15:35:22] Production.INFO: ProcessCDR(1,14628770,1,1,2) [2025-03-07 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628770', 'tblTempUsageDetail_20' ) start [2025-03-07 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628770', 'tblTempUsageDetail_20' ) end [2025-03-07 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:35:27] Production.INFO: ==27961== Releasing lock... [2025-03-07 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:35:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:36:06 [end_date_ymd] => 2025-03-07 15:36:06 [RateCDR] => 1 ) [2025-03-07 15: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-03-07 12:36:06' and `end` < '2025-03-07 15: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-03-07 15:36:19] Production.INFO: count ==5928 [2025-03-07 15:36:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:36:06 - End Time 2025-03-07 15:36:06 [2025-03-07 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628775', 'tblTempUsageDetail_20' ) start [2025-03-07 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628775', 'tblTempUsageDetail_20' ) end [2025-03-07 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628775', 'tblTempVendorCDR_20' ) start [2025-03-07 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628775', 'tblTempVendorCDR_20' ) end [2025-03-07 15:36:22] Production.INFO: ProcessCDR(1,14628775,1,1,2) [2025-03-07 15:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628775', 'tblTempUsageDetail_20' ) start [2025-03-07 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628775', 'tblTempUsageDetail_20' ) end [2025-03-07 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:36:27] Production.INFO: ==28034== Releasing lock... [2025-03-07 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:36:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:37:06 [end_date_ymd] => 2025-03-07 15:37:06 [RateCDR] => 1 ) [2025-03-07 15:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:37:06' and `end` < '2025-03-07 15:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:37:19] Production.INFO: count ==5933 [2025-03-07 15:37:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:37:06 - End Time 2025-03-07 15:37:06 [2025-03-07 15:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628780', 'tblTempUsageDetail_20' ) start [2025-03-07 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628780', 'tblTempUsageDetail_20' ) end [2025-03-07 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628780', 'tblTempVendorCDR_20' ) start [2025-03-07 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628780', 'tblTempVendorCDR_20' ) end [2025-03-07 15:37:22] Production.INFO: ProcessCDR(1,14628780,1,1,2) [2025-03-07 15:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628780', 'tblTempUsageDetail_20' ) start [2025-03-07 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628780', 'tblTempUsageDetail_20' ) end [2025-03-07 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:37:27] Production.INFO: ==28105== Releasing lock... [2025-03-07 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:37:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:38:06 [end_date_ymd] => 2025-03-07 15:38:06 [RateCDR] => 1 ) [2025-03-07 15: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-03-07 12:38:06' and `end` < '2025-03-07 15: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-03-07 15:38:19] Production.INFO: count ==5936 [2025-03-07 15:38:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:38:06 - End Time 2025-03-07 15:38:06 [2025-03-07 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628785', 'tblTempUsageDetail_20' ) start [2025-03-07 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628785', 'tblTempUsageDetail_20' ) end [2025-03-07 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628785', 'tblTempVendorCDR_20' ) start [2025-03-07 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628785', 'tblTempVendorCDR_20' ) end [2025-03-07 15:38:22] Production.INFO: ProcessCDR(1,14628785,1,1,2) [2025-03-07 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628785', 'tblTempUsageDetail_20' ) start [2025-03-07 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628785', 'tblTempUsageDetail_20' ) end [2025-03-07 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:38:27] Production.INFO: ==28178== Releasing lock... [2025-03-07 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:38:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:39:05 [end_date_ymd] => 2025-03-07 15:39:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:39:05' and `end` < '2025-03-07 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-03-07 15:39:18] Production.INFO: count ==5936 [2025-03-07 15:39:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:39:05 - End Time 2025-03-07 15:39:05 [2025-03-07 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628790', 'tblTempUsageDetail_20' ) start [2025-03-07 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628790', 'tblTempUsageDetail_20' ) end [2025-03-07 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628790', 'tblTempVendorCDR_20' ) start [2025-03-07 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628790', 'tblTempVendorCDR_20' ) end [2025-03-07 15:39:21] Production.INFO: ProcessCDR(1,14628790,1,1,2) [2025-03-07 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628790', 'tblTempUsageDetail_20' ) start [2025-03-07 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628790', 'tblTempUsageDetail_20' ) end [2025-03-07 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:39:26] Production.INFO: ==28251== Releasing lock... [2025-03-07 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:39:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:40:07 [end_date_ymd] => 2025-03-07 15:40:07 [RateCDR] => 1 ) [2025-03-07 15: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-03-07 12:40:07' and `end` < '2025-03-07 15: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-03-07 15:40:21] Production.INFO: count ==5948 [2025-03-07 15:40:23] Production.ERROR: pbx CDR StartTime 2025-03-07 12:40:07 - End Time 2025-03-07 15:40:07 [2025-03-07 15:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628796', 'tblTempUsageDetail_20' ) start [2025-03-07 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628796', 'tblTempUsageDetail_20' ) end [2025-03-07 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628796', 'tblTempVendorCDR_20' ) start [2025-03-07 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628796', 'tblTempVendorCDR_20' ) end [2025-03-07 15:40:23] Production.INFO: ProcessCDR(1,14628796,1,1,2) [2025-03-07 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628796', 'tblTempUsageDetail_20' ) start [2025-03-07 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628796', 'tblTempUsageDetail_20' ) end [2025-03-07 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:40:28] Production.INFO: ==28325== Releasing lock... [2025-03-07 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:40:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:41:05 [end_date_ymd] => 2025-03-07 15:41:05 [RateCDR] => 1 ) [2025-03-07 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:41:05' and `end` < '2025-03-07 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:41:18] Production.INFO: count ==5974 [2025-03-07 15:41:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:41:05 - End Time 2025-03-07 15:41:05 [2025-03-07 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628801', 'tblTempUsageDetail_20' ) start [2025-03-07 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628801', 'tblTempUsageDetail_20' ) end [2025-03-07 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628801', 'tblTempVendorCDR_20' ) start [2025-03-07 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628801', 'tblTempVendorCDR_20' ) end [2025-03-07 15:41:21] Production.INFO: ProcessCDR(1,14628801,1,1,2) [2025-03-07 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628801', 'tblTempUsageDetail_20' ) start [2025-03-07 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628801', 'tblTempUsageDetail_20' ) end [2025-03-07 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:41:26] Production.INFO: ==28401== Releasing lock... [2025-03-07 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:41:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:42:06 [end_date_ymd] => 2025-03-07 15:42:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:42:06' and `end` < '2025-03-07 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-03-07 15:42:19] Production.INFO: count ==5957 [2025-03-07 15:42:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:42:06 - End Time 2025-03-07 15:42:06 [2025-03-07 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628806', 'tblTempUsageDetail_20' ) start [2025-03-07 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628806', 'tblTempUsageDetail_20' ) end [2025-03-07 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628806', 'tblTempVendorCDR_20' ) start [2025-03-07 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628806', 'tblTempVendorCDR_20' ) end [2025-03-07 15:42:22] Production.INFO: ProcessCDR(1,14628806,1,1,2) [2025-03-07 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628806', 'tblTempUsageDetail_20' ) start [2025-03-07 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628806', 'tblTempUsageDetail_20' ) end [2025-03-07 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:42:27] Production.INFO: ==28474== Releasing lock... [2025-03-07 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:42:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:43:05 [end_date_ymd] => 2025-03-07 15:43:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:43:05' and `end` < '2025-03-07 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-03-07 15:43:18] Production.INFO: count ==5956 [2025-03-07 15:43:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:43:05 - End Time 2025-03-07 15:43:05 [2025-03-07 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628811', 'tblTempUsageDetail_20' ) start [2025-03-07 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628811', 'tblTempUsageDetail_20' ) end [2025-03-07 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628811', 'tblTempVendorCDR_20' ) start [2025-03-07 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628811', 'tblTempVendorCDR_20' ) end [2025-03-07 15:43:21] Production.INFO: ProcessCDR(1,14628811,1,1,2) [2025-03-07 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628811', 'tblTempUsageDetail_20' ) start [2025-03-07 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628811', 'tblTempUsageDetail_20' ) end [2025-03-07 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:43:26] Production.INFO: ==28586== Releasing lock... [2025-03-07 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:43:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:44:06 [end_date_ymd] => 2025-03-07 15:44:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:44:06' and `end` < '2025-03-07 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-03-07 15:44:19] Production.INFO: count ==5975 [2025-03-07 15:44:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:44:06 - End Time 2025-03-07 15:44:06 [2025-03-07 15:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628816', 'tblTempUsageDetail_20' ) start [2025-03-07 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628816', 'tblTempUsageDetail_20' ) end [2025-03-07 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628816', 'tblTempVendorCDR_20' ) start [2025-03-07 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628816', 'tblTempVendorCDR_20' ) end [2025-03-07 15:44:22] Production.INFO: ProcessCDR(1,14628816,1,1,2) [2025-03-07 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628816', 'tblTempUsageDetail_20' ) start [2025-03-07 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628816', 'tblTempUsageDetail_20' ) end [2025-03-07 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:44:27] Production.INFO: ==28658== Releasing lock... [2025-03-07 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:44:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:45:06 [end_date_ymd] => 2025-03-07 15:45:06 [RateCDR] => 1 ) [2025-03-07 15: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-03-07 12:45:06' and `end` < '2025-03-07 15: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-03-07 15:45:19] Production.INFO: count ==5972 [2025-03-07 15:45:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:45:06 - End Time 2025-03-07 15:45:06 [2025-03-07 15:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628821', 'tblTempUsageDetail_20' ) start [2025-03-07 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628821', 'tblTempUsageDetail_20' ) end [2025-03-07 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628821', 'tblTempVendorCDR_20' ) start [2025-03-07 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628821', 'tblTempVendorCDR_20' ) end [2025-03-07 15:45:22] Production.INFO: ProcessCDR(1,14628821,1,1,2) [2025-03-07 15:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628821', 'tblTempUsageDetail_20' ) start [2025-03-07 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628821', 'tblTempUsageDetail_20' ) end [2025-03-07 15:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:45:27] Production.INFO: ==28736== Releasing lock... [2025-03-07 15:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:45:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:46:05 [end_date_ymd] => 2025-03-07 15:46:05 [RateCDR] => 1 ) [2025-03-07 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:46:05' and `end` < '2025-03-07 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:46:18] Production.INFO: count ==5968 [2025-03-07 15:46:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:46:05 - End Time 2025-03-07 15:46:05 [2025-03-07 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628826', 'tblTempUsageDetail_20' ) start [2025-03-07 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628826', 'tblTempUsageDetail_20' ) end [2025-03-07 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628826', 'tblTempVendorCDR_20' ) start [2025-03-07 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628826', 'tblTempVendorCDR_20' ) end [2025-03-07 15:46:21] Production.INFO: ProcessCDR(1,14628826,1,1,2) [2025-03-07 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628826', 'tblTempUsageDetail_20' ) start [2025-03-07 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628826', 'tblTempUsageDetail_20' ) end [2025-03-07 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:46:27] Production.INFO: ==28808== Releasing lock... [2025-03-07 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:46:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:47:05 [end_date_ymd] => 2025-03-07 15:47:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:47:05' and `end` < '2025-03-07 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-03-07 15:47:19] Production.INFO: count ==5958 [2025-03-07 15:47:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:47:05 - End Time 2025-03-07 15:47:05 [2025-03-07 15:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628831', 'tblTempUsageDetail_20' ) start [2025-03-07 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628831', 'tblTempUsageDetail_20' ) end [2025-03-07 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628831', 'tblTempVendorCDR_20' ) start [2025-03-07 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628831', 'tblTempVendorCDR_20' ) end [2025-03-07 15:47:22] Production.INFO: ProcessCDR(1,14628831,1,1,2) [2025-03-07 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628831', 'tblTempUsageDetail_20' ) start [2025-03-07 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628831', 'tblTempUsageDetail_20' ) end [2025-03-07 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:47:27] Production.INFO: ==28884== Releasing lock... [2025-03-07 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:47:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:48:05 [end_date_ymd] => 2025-03-07 15:48:05 [RateCDR] => 1 ) [2025-03-07 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:48:05' and `end` < '2025-03-07 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:48:19] Production.INFO: count ==5963 [2025-03-07 15:48:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:48:05 - End Time 2025-03-07 15:48:05 [2025-03-07 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628836', 'tblTempUsageDetail_20' ) start [2025-03-07 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628836', 'tblTempUsageDetail_20' ) end [2025-03-07 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628836', 'tblTempVendorCDR_20' ) start [2025-03-07 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628836', 'tblTempVendorCDR_20' ) end [2025-03-07 15:48:22] Production.INFO: ProcessCDR(1,14628836,1,1,2) [2025-03-07 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628836', 'tblTempUsageDetail_20' ) start [2025-03-07 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628836', 'tblTempUsageDetail_20' ) end [2025-03-07 15:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:48:26] Production.INFO: ==28957== Releasing lock... [2025-03-07 15:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:48:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:49:05 [end_date_ymd] => 2025-03-07 15:49:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:49:05' and `end` < '2025-03-07 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-03-07 15:49:18] Production.INFO: count ==5945 [2025-03-07 15:49:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:49:05 - End Time 2025-03-07 15:49:05 [2025-03-07 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628841', 'tblTempUsageDetail_20' ) start [2025-03-07 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628841', 'tblTempUsageDetail_20' ) end [2025-03-07 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628841', 'tblTempVendorCDR_20' ) start [2025-03-07 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628841', 'tblTempVendorCDR_20' ) end [2025-03-07 15:49:21] Production.INFO: ProcessCDR(1,14628841,1,1,2) [2025-03-07 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628841', 'tblTempUsageDetail_20' ) start [2025-03-07 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628841', 'tblTempUsageDetail_20' ) end [2025-03-07 15:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:49:26] Production.INFO: ==29027== Releasing lock... [2025-03-07 15:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:49:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:50:06 [end_date_ymd] => 2025-03-07 15:50:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:50:06' and `end` < '2025-03-07 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-03-07 15:50:22] Production.INFO: count ==5967 [2025-03-07 15:50:25] Production.ERROR: pbx CDR StartTime 2025-03-07 12:50:06 - End Time 2025-03-07 15:50:06 [2025-03-07 15:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628847', 'tblTempUsageDetail_20' ) start [2025-03-07 15:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628847', 'tblTempUsageDetail_20' ) end [2025-03-07 15:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628847', 'tblTempVendorCDR_20' ) start [2025-03-07 15:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628847', 'tblTempVendorCDR_20' ) end [2025-03-07 15:50:25] Production.INFO: ProcessCDR(1,14628847,1,1,2) [2025-03-07 15:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628847', 'tblTempUsageDetail_20' ) start [2025-03-07 15:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628847', 'tblTempUsageDetail_20' ) end [2025-03-07 15:50:31] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:50:31] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:50:31] Production.INFO: ==29101== Releasing lock... [2025-03-07 15:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:50:31] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:51:05 [end_date_ymd] => 2025-03-07 15:51:05 [RateCDR] => 1 ) [2025-03-07 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:51:05' and `end` < '2025-03-07 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:51:20] Production.INFO: count ==5990 [2025-03-07 15:51:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:51:05 - End Time 2025-03-07 15:51:05 [2025-03-07 15:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628852', 'tblTempUsageDetail_20' ) start [2025-03-07 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628852', 'tblTempUsageDetail_20' ) end [2025-03-07 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628852', 'tblTempVendorCDR_20' ) start [2025-03-07 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628852', 'tblTempVendorCDR_20' ) end [2025-03-07 15:51:22] Production.INFO: ProcessCDR(1,14628852,1,1,2) [2025-03-07 15:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628852', 'tblTempUsageDetail_20' ) start [2025-03-07 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628852', 'tblTempUsageDetail_20' ) end [2025-03-07 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:51:27] Production.INFO: ==29175== Releasing lock... [2025-03-07 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:51:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:52:05 [end_date_ymd] => 2025-03-07 15:52:05 [RateCDR] => 1 ) [2025-03-07 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:52:05' and `end` < '2025-03-07 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:52:19] Production.INFO: count ==5967 [2025-03-07 15:52:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:52:05 - End Time 2025-03-07 15:52:05 [2025-03-07 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628857', 'tblTempUsageDetail_20' ) start [2025-03-07 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628857', 'tblTempUsageDetail_20' ) end [2025-03-07 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628857', 'tblTempVendorCDR_20' ) start [2025-03-07 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628857', 'tblTempVendorCDR_20' ) end [2025-03-07 15:52:22] Production.INFO: ProcessCDR(1,14628857,1,1,2) [2025-03-07 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628857', 'tblTempUsageDetail_20' ) start [2025-03-07 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628857', 'tblTempUsageDetail_20' ) end [2025-03-07 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:52:27] Production.INFO: ==29251== Releasing lock... [2025-03-07 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:52:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:53:05 [end_date_ymd] => 2025-03-07 15:53:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:53:05' and `end` < '2025-03-07 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-03-07 15:53:19] Production.INFO: count ==5984 [2025-03-07 15:53:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:53:05 - End Time 2025-03-07 15:53:05 [2025-03-07 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628862', 'tblTempUsageDetail_20' ) start [2025-03-07 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628862', 'tblTempUsageDetail_20' ) end [2025-03-07 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628862', 'tblTempVendorCDR_20' ) start [2025-03-07 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628862', 'tblTempVendorCDR_20' ) end [2025-03-07 15:53:21] Production.INFO: ProcessCDR(1,14628862,1,1,2) [2025-03-07 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628862', 'tblTempUsageDetail_20' ) start [2025-03-07 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628862', 'tblTempUsageDetail_20' ) end [2025-03-07 15:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:53:27] Production.INFO: ==29322== Releasing lock... [2025-03-07 15:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:53:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:54:06 [end_date_ymd] => 2025-03-07 15:54:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:54:06' and `end` < '2025-03-07 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-03-07 15:54:19] Production.INFO: count ==5963 [2025-03-07 15:54:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:54:06 - End Time 2025-03-07 15:54:06 [2025-03-07 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628867', 'tblTempUsageDetail_20' ) start [2025-03-07 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628867', 'tblTempUsageDetail_20' ) end [2025-03-07 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628867', 'tblTempVendorCDR_20' ) start [2025-03-07 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628867', 'tblTempVendorCDR_20' ) end [2025-03-07 15:54:22] Production.INFO: ProcessCDR(1,14628867,1,1,2) [2025-03-07 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628867', 'tblTempUsageDetail_20' ) start [2025-03-07 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628867', 'tblTempUsageDetail_20' ) end [2025-03-07 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:54:27] Production.INFO: ==29392== Releasing lock... [2025-03-07 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:54:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:55:06 [end_date_ymd] => 2025-03-07 15:55:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:55:06' and `end` < '2025-03-07 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-03-07 15:55:19] Production.INFO: count ==5951 [2025-03-07 15:55:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:55:06 - End Time 2025-03-07 15:55:06 [2025-03-07 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628872', 'tblTempUsageDetail_20' ) start [2025-03-07 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628872', 'tblTempUsageDetail_20' ) end [2025-03-07 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628872', 'tblTempVendorCDR_20' ) start [2025-03-07 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628872', 'tblTempVendorCDR_20' ) end [2025-03-07 15:55:22] Production.INFO: ProcessCDR(1,14628872,1,1,2) [2025-03-07 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628872', 'tblTempUsageDetail_20' ) start [2025-03-07 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628872', 'tblTempUsageDetail_20' ) end [2025-03-07 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:55:27] Production.INFO: ==29462== Releasing lock... [2025-03-07 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:55:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:56:06 [end_date_ymd] => 2025-03-07 15:56:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:56:06' and `end` < '2025-03-07 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-03-07 15:56:19] Production.INFO: count ==5949 [2025-03-07 15:56:22] Production.ERROR: pbx CDR StartTime 2025-03-07 12:56:06 - End Time 2025-03-07 15:56:06 [2025-03-07 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628877', 'tblTempUsageDetail_20' ) start [2025-03-07 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628877', 'tblTempUsageDetail_20' ) end [2025-03-07 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628877', 'tblTempVendorCDR_20' ) start [2025-03-07 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628877', 'tblTempVendorCDR_20' ) end [2025-03-07 15:56:22] Production.INFO: ProcessCDR(1,14628877,1,1,2) [2025-03-07 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628877', 'tblTempUsageDetail_20' ) start [2025-03-07 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628877', 'tblTempUsageDetail_20' ) end [2025-03-07 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:56:27] Production.INFO: ==29535== Releasing lock... [2025-03-07 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:56:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:57:05 [end_date_ymd] => 2025-03-07 15:57:05 [RateCDR] => 1 ) [2025-03-07 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:57:05' and `end` < '2025-03-07 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:57:19] Production.INFO: count ==5948 [2025-03-07 15:57:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:57:05 - End Time 2025-03-07 15:57:05 [2025-03-07 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628882', 'tblTempUsageDetail_20' ) start [2025-03-07 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628882', 'tblTempUsageDetail_20' ) end [2025-03-07 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628882', 'tblTempVendorCDR_20' ) start [2025-03-07 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628882', 'tblTempVendorCDR_20' ) end [2025-03-07 15:57:22] Production.INFO: ProcessCDR(1,14628882,1,1,2) [2025-03-07 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628882', 'tblTempUsageDetail_20' ) start [2025-03-07 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628882', 'tblTempUsageDetail_20' ) end [2025-03-07 15:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:57:27] Production.INFO: ==29607== Releasing lock... [2025-03-07 15:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:57:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:58:05 [end_date_ymd] => 2025-03-07 15:58:05 [RateCDR] => 1 ) [2025-03-07 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 12:58:05' and `end` < '2025-03-07 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 15:58:19] Production.INFO: count ==5944 [2025-03-07 15:58:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:58:05 - End Time 2025-03-07 15:58:05 [2025-03-07 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628887', 'tblTempUsageDetail_20' ) start [2025-03-07 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628887', 'tblTempUsageDetail_20' ) end [2025-03-07 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628887', 'tblTempVendorCDR_20' ) start [2025-03-07 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628887', 'tblTempVendorCDR_20' ) end [2025-03-07 15:58:22] Production.INFO: ProcessCDR(1,14628887,1,1,2) [2025-03-07 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628887', 'tblTempUsageDetail_20' ) start [2025-03-07 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628887', 'tblTempUsageDetail_20' ) end [2025-03-07 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:58:27] Production.INFO: ==29677== Releasing lock... [2025-03-07 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:58:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 12:59:05 [end_date_ymd] => 2025-03-07 15:59:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 12:59:05' and `end` < '2025-03-07 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-03-07 15:59:18] Production.INFO: count ==5925 [2025-03-07 15:59:21] Production.ERROR: pbx CDR StartTime 2025-03-07 12:59:05 - End Time 2025-03-07 15:59:05 [2025-03-07 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628892', 'tblTempUsageDetail_20' ) start [2025-03-07 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628892', 'tblTempUsageDetail_20' ) end [2025-03-07 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628892', 'tblTempVendorCDR_20' ) start [2025-03-07 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628892', 'tblTempVendorCDR_20' ) end [2025-03-07 15:59:21] Production.INFO: ProcessCDR(1,14628892,1,1,2) [2025-03-07 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 15:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628892', 'tblTempUsageDetail_20' ) start [2025-03-07 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628892', 'tblTempUsageDetail_20' ) end [2025-03-07 15:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 15:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 15:59:24] Production.INFO: ==29786== Releasing lock... [2025-03-07 15:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 15:59:24] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 16:00:08] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:00:08 [end_date_ymd] => 2025-03-07 16:00:08 [RateCDR] => 1 ) [2025-03-07 16:00:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:00:08' and `end` < '2025-03-07 16:00:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:00:21] Production.INFO: count ==5928 [2025-03-07 16:00:24] Production.ERROR: pbx CDR StartTime 2025-03-07 13:00:08 - End Time 2025-03-07 16:00:08 [2025-03-07 16:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628898', 'tblTempUsageDetail_20' ) start [2025-03-07 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628898', 'tblTempUsageDetail_20' ) end [2025-03-07 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628898', 'tblTempVendorCDR_20' ) start [2025-03-07 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628898', 'tblTempVendorCDR_20' ) end [2025-03-07 16:00:24] Production.INFO: ProcessCDR(1,14628898,1,1,2) [2025-03-07 16:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628898', 'tblTempUsageDetail_20' ) start [2025-03-07 16:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628898', 'tblTempUsageDetail_20' ) end [2025-03-07 16:00:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:00:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:00:30] Production.INFO: ==29860== Releasing lock... [2025-03-07 16:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:00:30] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:01:06 [end_date_ymd] => 2025-03-07 16:01:06 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:01:06' and `end` < '2025-03-07 16: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-03-07 16:01:19] Production.INFO: count ==5964 [2025-03-07 16:01:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:01:06 - End Time 2025-03-07 16:01:06 [2025-03-07 16:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628903', 'tblTempUsageDetail_20' ) start [2025-03-07 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628903', 'tblTempUsageDetail_20' ) end [2025-03-07 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628903', 'tblTempVendorCDR_20' ) start [2025-03-07 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628903', 'tblTempVendorCDR_20' ) end [2025-03-07 16:01:22] Production.INFO: ProcessCDR(1,14628903,1,1,2) [2025-03-07 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628903', 'tblTempUsageDetail_20' ) start [2025-03-07 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628903', 'tblTempUsageDetail_20' ) end [2025-03-07 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:01:27] Production.INFO: ==29945== Releasing lock... [2025-03-07 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:01:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:02:06 [end_date_ymd] => 2025-03-07 16:02:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:02:06' and `end` < '2025-03-07 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-03-07 16:02:19] Production.INFO: count ==5959 [2025-03-07 16:02:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:02:06 - End Time 2025-03-07 16:02:06 [2025-03-07 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628908', 'tblTempUsageDetail_20' ) start [2025-03-07 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628908', 'tblTempUsageDetail_20' ) end [2025-03-07 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628908', 'tblTempVendorCDR_20' ) start [2025-03-07 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628908', 'tblTempVendorCDR_20' ) end [2025-03-07 16:02:23] Production.INFO: ProcessCDR(1,14628908,1,1,2) [2025-03-07 16:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628908', 'tblTempUsageDetail_20' ) start [2025-03-07 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628908', 'tblTempUsageDetail_20' ) end [2025-03-07 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:02:27] Production.INFO: ==30023== Releasing lock... [2025-03-07 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:02:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:03:06 [end_date_ymd] => 2025-03-07 16:03:06 [RateCDR] => 1 ) [2025-03-07 16:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:03:06' and `end` < '2025-03-07 16:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:03:20] Production.INFO: count ==5944 [2025-03-07 16:03:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:03:06 - End Time 2025-03-07 16:03:06 [2025-03-07 16:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628913', 'tblTempUsageDetail_20' ) start [2025-03-07 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628913', 'tblTempUsageDetail_20' ) end [2025-03-07 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628913', 'tblTempVendorCDR_20' ) start [2025-03-07 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628913', 'tblTempVendorCDR_20' ) end [2025-03-07 16:03:23] Production.INFO: ProcessCDR(1,14628913,1,1,2) [2025-03-07 16:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628913', 'tblTempUsageDetail_20' ) start [2025-03-07 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628913', 'tblTempUsageDetail_20' ) end [2025-03-07 16:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:03:28] Production.INFO: ==30093== Releasing lock... [2025-03-07 16:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:03:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:04:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:04:07 [end_date_ymd] => 2025-03-07 16:04:07 [RateCDR] => 1 ) [2025-03-07 16:04: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-03-07 13:04:07' and `end` < '2025-03-07 16:04: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-03-07 16:04:20] Production.INFO: count ==5958 [2025-03-07 16:04:23] Production.ERROR: pbx CDR StartTime 2025-03-07 13:04:07 - End Time 2025-03-07 16:04:07 [2025-03-07 16:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628918', 'tblTempUsageDetail_20' ) start [2025-03-07 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628918', 'tblTempUsageDetail_20' ) end [2025-03-07 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628918', 'tblTempVendorCDR_20' ) start [2025-03-07 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628918', 'tblTempVendorCDR_20' ) end [2025-03-07 16:04:23] Production.INFO: ProcessCDR(1,14628918,1,1,2) [2025-03-07 16:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628918', 'tblTempUsageDetail_20' ) start [2025-03-07 16:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628918', 'tblTempUsageDetail_20' ) end [2025-03-07 16:04:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:04:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:04:29] Production.INFO: ==30165== Releasing lock... [2025-03-07 16:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:04:29] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:05:06 [end_date_ymd] => 2025-03-07 16:05:06 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:05:06' and `end` < '2025-03-07 16: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-03-07 16:05:19] Production.INFO: count ==5954 [2025-03-07 16:05:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:05:06 - End Time 2025-03-07 16:05:06 [2025-03-07 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628923', 'tblTempUsageDetail_20' ) start [2025-03-07 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628923', 'tblTempUsageDetail_20' ) end [2025-03-07 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628923', 'tblTempVendorCDR_20' ) start [2025-03-07 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628923', 'tblTempVendorCDR_20' ) end [2025-03-07 16:05:22] Production.INFO: ProcessCDR(1,14628923,1,1,2) [2025-03-07 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628923', 'tblTempUsageDetail_20' ) start [2025-03-07 16:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628923', 'tblTempUsageDetail_20' ) end [2025-03-07 16:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:05:28] Production.INFO: ==30240== Releasing lock... [2025-03-07 16:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:05:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:06:06 [end_date_ymd] => 2025-03-07 16:06:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:06:06' and `end` < '2025-03-07 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-03-07 16:06:19] Production.INFO: count ==5954 [2025-03-07 16:06:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:06:06 - End Time 2025-03-07 16:06:06 [2025-03-07 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628928', 'tblTempUsageDetail_20' ) start [2025-03-07 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628928', 'tblTempUsageDetail_20' ) end [2025-03-07 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628928', 'tblTempVendorCDR_20' ) start [2025-03-07 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628928', 'tblTempVendorCDR_20' ) end [2025-03-07 16:06:22] Production.INFO: ProcessCDR(1,14628928,1,1,2) [2025-03-07 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628928', 'tblTempUsageDetail_20' ) start [2025-03-07 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628928', 'tblTempUsageDetail_20' ) end [2025-03-07 16:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:06:28] Production.INFO: ==30311== Releasing lock... [2025-03-07 16:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:06:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:07:06 [end_date_ymd] => 2025-03-07 16:07:06 [RateCDR] => 1 ) [2025-03-07 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:07:06' and `end` < '2025-03-07 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:07:19] Production.INFO: count ==5962 [2025-03-07 16:07:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:07:06 - End Time 2025-03-07 16:07:06 [2025-03-07 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628933', 'tblTempUsageDetail_20' ) start [2025-03-07 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628933', 'tblTempUsageDetail_20' ) end [2025-03-07 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628933', 'tblTempVendorCDR_20' ) start [2025-03-07 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628933', 'tblTempVendorCDR_20' ) end [2025-03-07 16:07:22] Production.INFO: ProcessCDR(1,14628933,1,1,2) [2025-03-07 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628933', 'tblTempUsageDetail_20' ) start [2025-03-07 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628933', 'tblTempUsageDetail_20' ) end [2025-03-07 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:07:27] Production.INFO: ==30381== Releasing lock... [2025-03-07 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:07:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:08:05 [end_date_ymd] => 2025-03-07 16:08:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:08:05' and `end` < '2025-03-07 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-03-07 16:08:19] Production.INFO: count ==5952 [2025-03-07 16:08:21] Production.ERROR: pbx CDR StartTime 2025-03-07 13:08:05 - End Time 2025-03-07 16:08:05 [2025-03-07 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628938', 'tblTempUsageDetail_20' ) start [2025-03-07 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628938', 'tblTempUsageDetail_20' ) end [2025-03-07 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628938', 'tblTempVendorCDR_20' ) start [2025-03-07 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628938', 'tblTempVendorCDR_20' ) end [2025-03-07 16:08:22] Production.INFO: ProcessCDR(1,14628938,1,1,2) [2025-03-07 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628938', 'tblTempUsageDetail_20' ) start [2025-03-07 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628938', 'tblTempUsageDetail_20' ) end [2025-03-07 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:08:27] Production.INFO: ==30454== Releasing lock... [2025-03-07 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:08:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:09:06 [end_date_ymd] => 2025-03-07 16:09:06 [RateCDR] => 1 ) [2025-03-07 16:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:09:06' and `end` < '2025-03-07 16:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:09:19] Production.INFO: count ==5979 [2025-03-07 16:09:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:09:06 - End Time 2025-03-07 16:09:06 [2025-03-07 16:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628943', 'tblTempUsageDetail_20' ) start [2025-03-07 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628943', 'tblTempUsageDetail_20' ) end [2025-03-07 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628943', 'tblTempVendorCDR_20' ) start [2025-03-07 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628943', 'tblTempVendorCDR_20' ) end [2025-03-07 16:09:22] Production.INFO: ProcessCDR(1,14628943,1,1,2) [2025-03-07 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628943', 'tblTempUsageDetail_20' ) start [2025-03-07 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628943', 'tblTempUsageDetail_20' ) end [2025-03-07 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:09:27] Production.INFO: ==30525== Releasing lock... [2025-03-07 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:09:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:10:07 [end_date_ymd] => 2025-03-07 16:10:07 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:10:07' and `end` < '2025-03-07 16: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-03-07 16:10:20] Production.INFO: count ==5975 [2025-03-07 16:10:23] Production.ERROR: pbx CDR StartTime 2025-03-07 13:10:07 - End Time 2025-03-07 16:10:07 [2025-03-07 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628949', 'tblTempUsageDetail_20' ) start [2025-03-07 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628949', 'tblTempUsageDetail_20' ) end [2025-03-07 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628949', 'tblTempVendorCDR_20' ) start [2025-03-07 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628949', 'tblTempVendorCDR_20' ) end [2025-03-07 16:10:24] Production.INFO: ProcessCDR(1,14628949,1,1,2) [2025-03-07 16:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628949', 'tblTempUsageDetail_20' ) start [2025-03-07 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628949', 'tblTempUsageDetail_20' ) end [2025-03-07 16:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:10:29] Production.INFO: ==30595== Releasing lock... [2025-03-07 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:10:29] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:11:06 [end_date_ymd] => 2025-03-07 16:11:06 [RateCDR] => 1 ) [2025-03-07 16:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:11:06' and `end` < '2025-03-07 16:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:11:20] Production.INFO: count ==5992 [2025-03-07 16:11:23] Production.ERROR: pbx CDR StartTime 2025-03-07 13:11:06 - End Time 2025-03-07 16:11:06 [2025-03-07 16:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628954', 'tblTempUsageDetail_20' ) start [2025-03-07 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628954', 'tblTempUsageDetail_20' ) end [2025-03-07 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628954', 'tblTempVendorCDR_20' ) start [2025-03-07 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628954', 'tblTempVendorCDR_20' ) end [2025-03-07 16:11:23] Production.INFO: ProcessCDR(1,14628954,1,1,2) [2025-03-07 16:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628954', 'tblTempUsageDetail_20' ) start [2025-03-07 16:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628954', 'tblTempUsageDetail_20' ) end [2025-03-07 16:11:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:11:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:11:29] Production.INFO: ==30670== Releasing lock... [2025-03-07 16:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:11:29] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:12:06 [end_date_ymd] => 2025-03-07 16:12:06 [RateCDR] => 1 ) [2025-03-07 16:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:12:06' and `end` < '2025-03-07 16:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:12:19] Production.INFO: count ==5993 [2025-03-07 16:12:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:12:06 - End Time 2025-03-07 16:12:06 [2025-03-07 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628959', 'tblTempUsageDetail_20' ) start [2025-03-07 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628959', 'tblTempUsageDetail_20' ) end [2025-03-07 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628959', 'tblTempVendorCDR_20' ) start [2025-03-07 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628959', 'tblTempVendorCDR_20' ) end [2025-03-07 16:12:22] Production.INFO: ProcessCDR(1,14628959,1,1,2) [2025-03-07 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628959', 'tblTempUsageDetail_20' ) start [2025-03-07 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628959', 'tblTempUsageDetail_20' ) end [2025-03-07 16:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:12:28] Production.INFO: ==30741== Releasing lock... [2025-03-07 16:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:12:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:13:06 [end_date_ymd] => 2025-03-07 16:13:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:13:06' and `end` < '2025-03-07 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-03-07 16:13:19] Production.INFO: count ==5982 [2025-03-07 16:13:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:13:06 - End Time 2025-03-07 16:13:06 [2025-03-07 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628964', 'tblTempUsageDetail_20' ) start [2025-03-07 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628964', 'tblTempUsageDetail_20' ) end [2025-03-07 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628964', 'tblTempVendorCDR_20' ) start [2025-03-07 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628964', 'tblTempVendorCDR_20' ) end [2025-03-07 16:13:22] Production.INFO: ProcessCDR(1,14628964,1,1,2) [2025-03-07 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628964', 'tblTempUsageDetail_20' ) start [2025-03-07 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628964', 'tblTempUsageDetail_20' ) end [2025-03-07 16:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:13:28] Production.INFO: ==30812== Releasing lock... [2025-03-07 16:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:13:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:14:05 [end_date_ymd] => 2025-03-07 16:14:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:14:05' and `end` < '2025-03-07 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-03-07 16:14:19] Production.INFO: count ==5987 [2025-03-07 16:14:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:14:05 - End Time 2025-03-07 16:14:05 [2025-03-07 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628969', 'tblTempUsageDetail_20' ) start [2025-03-07 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628969', 'tblTempUsageDetail_20' ) end [2025-03-07 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628969', 'tblTempVendorCDR_20' ) start [2025-03-07 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628969', 'tblTempVendorCDR_20' ) end [2025-03-07 16:14:22] Production.INFO: ProcessCDR(1,14628969,1,1,2) [2025-03-07 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628969', 'tblTempUsageDetail_20' ) start [2025-03-07 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628969', 'tblTempUsageDetail_20' ) end [2025-03-07 16:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:14:28] Production.INFO: ==30924== Releasing lock... [2025-03-07 16:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:14:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:15:06 [end_date_ymd] => 2025-03-07 16:15:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:15:06' and `end` < '2025-03-07 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-03-07 16:15:19] Production.INFO: count ==5974 [2025-03-07 16:15:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:15:06 - End Time 2025-03-07 16:15:06 [2025-03-07 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628974', 'tblTempUsageDetail_20' ) start [2025-03-07 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628974', 'tblTempUsageDetail_20' ) end [2025-03-07 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628974', 'tblTempVendorCDR_20' ) start [2025-03-07 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628974', 'tblTempVendorCDR_20' ) end [2025-03-07 16:15:23] Production.INFO: ProcessCDR(1,14628974,1,1,2) [2025-03-07 16:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628974', 'tblTempUsageDetail_20' ) start [2025-03-07 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628974', 'tblTempUsageDetail_20' ) end [2025-03-07 16:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:15:28] Production.INFO: ==30996== Releasing lock... [2025-03-07 16:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:15:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:16:06 [end_date_ymd] => 2025-03-07 16:16:06 [RateCDR] => 1 ) [2025-03-07 16:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:16:06' and `end` < '2025-03-07 16:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:16:19] Production.INFO: count ==5948 [2025-03-07 16:16:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:16:06 - End Time 2025-03-07 16:16:06 [2025-03-07 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628979', 'tblTempUsageDetail_20' ) start [2025-03-07 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628979', 'tblTempUsageDetail_20' ) end [2025-03-07 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628979', 'tblTempVendorCDR_20' ) start [2025-03-07 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628979', 'tblTempVendorCDR_20' ) end [2025-03-07 16:16:22] Production.INFO: ProcessCDR(1,14628979,1,1,2) [2025-03-07 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628979', 'tblTempUsageDetail_20' ) start [2025-03-07 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628979', 'tblTempUsageDetail_20' ) end [2025-03-07 16:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:16:28] Production.INFO: ==31070== Releasing lock... [2025-03-07 16:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:16:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:17:05 [end_date_ymd] => 2025-03-07 16:17:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:17:05' and `end` < '2025-03-07 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-03-07 16:17:19] Production.INFO: count ==5959 [2025-03-07 16:17:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:17:05 - End Time 2025-03-07 16:17:05 [2025-03-07 16:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628984', 'tblTempUsageDetail_20' ) start [2025-03-07 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628984', 'tblTempUsageDetail_20' ) end [2025-03-07 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628984', 'tblTempVendorCDR_20' ) start [2025-03-07 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628984', 'tblTempVendorCDR_20' ) end [2025-03-07 16:17:22] Production.INFO: ProcessCDR(1,14628984,1,1,2) [2025-03-07 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628984', 'tblTempUsageDetail_20' ) start [2025-03-07 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628984', 'tblTempUsageDetail_20' ) end [2025-03-07 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:17:27] Production.INFO: ==31142== Releasing lock... [2025-03-07 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:17:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:18:06 [end_date_ymd] => 2025-03-07 16:18:06 [RateCDR] => 1 ) [2025-03-07 16:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:18:06' and `end` < '2025-03-07 16:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:18:20] Production.INFO: count ==5949 [2025-03-07 16:18:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:18:06 - End Time 2025-03-07 16:18:06 [2025-03-07 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628989', 'tblTempUsageDetail_20' ) start [2025-03-07 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628989', 'tblTempUsageDetail_20' ) end [2025-03-07 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628989', 'tblTempVendorCDR_20' ) start [2025-03-07 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628989', 'tblTempVendorCDR_20' ) end [2025-03-07 16:18:23] Production.INFO: ProcessCDR(1,14628989,1,1,2) [2025-03-07 16:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628989', 'tblTempUsageDetail_20' ) start [2025-03-07 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628989', 'tblTempUsageDetail_20' ) end [2025-03-07 16:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:18:28] Production.INFO: ==31225== Releasing lock... [2025-03-07 16:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:18:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:19:06 [end_date_ymd] => 2025-03-07 16:19:06 [RateCDR] => 1 ) [2025-03-07 16:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:19:06' and `end` < '2025-03-07 16:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:19:19] Production.INFO: count ==5944 [2025-03-07 16:19:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:19:06 - End Time 2025-03-07 16:19:06 [2025-03-07 16:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628994', 'tblTempUsageDetail_20' ) start [2025-03-07 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14628994', 'tblTempUsageDetail_20' ) end [2025-03-07 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628994', 'tblTempVendorCDR_20' ) start [2025-03-07 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14628994', 'tblTempVendorCDR_20' ) end [2025-03-07 16:19:22] Production.INFO: ProcessCDR(1,14628994,1,1,2) [2025-03-07 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14628994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14628994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14628994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14628994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628994', 'tblTempUsageDetail_20' ) start [2025-03-07 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14628994', 'tblTempUsageDetail_20' ) end [2025-03-07 16:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:19:28] Production.INFO: ==31296== Releasing lock... [2025-03-07 16:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:19:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:20:07 [end_date_ymd] => 2025-03-07 16:20:07 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:20:07' and `end` < '2025-03-07 16: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-03-07 16:20:20] Production.INFO: count ==5944 [2025-03-07 16:20:23] Production.ERROR: pbx CDR StartTime 2025-03-07 13:20:07 - End Time 2025-03-07 16:20:07 [2025-03-07 16:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629000', 'tblTempUsageDetail_20' ) start [2025-03-07 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629000', 'tblTempUsageDetail_20' ) end [2025-03-07 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629000', 'tblTempVendorCDR_20' ) start [2025-03-07 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629000', 'tblTempVendorCDR_20' ) end [2025-03-07 16:20:23] Production.INFO: ProcessCDR(1,14629000,1,1,2) [2025-03-07 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629000', 'tblTempUsageDetail_20' ) start [2025-03-07 16:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629000', 'tblTempUsageDetail_20' ) end [2025-03-07 16:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:20:29] Production.INFO: ==31371== Releasing lock... [2025-03-07 16:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:20:29] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:21:06 [end_date_ymd] => 2025-03-07 16:21:06 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:21:06' and `end` < '2025-03-07 16: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-03-07 16:21:20] Production.INFO: count ==5956 [2025-03-07 16:21:23] Production.ERROR: pbx CDR StartTime 2025-03-07 13:21:06 - End Time 2025-03-07 16:21:06 [2025-03-07 16:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629005', 'tblTempUsageDetail_20' ) start [2025-03-07 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629005', 'tblTempUsageDetail_20' ) end [2025-03-07 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629005', 'tblTempVendorCDR_20' ) start [2025-03-07 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629005', 'tblTempVendorCDR_20' ) end [2025-03-07 16:21:23] Production.INFO: ProcessCDR(1,14629005,1,1,2) [2025-03-07 16:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629005', 'tblTempUsageDetail_20' ) start [2025-03-07 16:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629005', 'tblTempUsageDetail_20' ) end [2025-03-07 16:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:21:28] Production.INFO: ==31443== Releasing lock... [2025-03-07 16:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:21:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:22:06 [end_date_ymd] => 2025-03-07 16:22:06 [RateCDR] => 1 ) [2025-03-07 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:22:06' and `end` < '2025-03-07 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:22:19] Production.INFO: count ==5996 [2025-03-07 16:22:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:22:06 - End Time 2025-03-07 16:22:06 [2025-03-07 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629010', 'tblTempUsageDetail_20' ) start [2025-03-07 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629010', 'tblTempUsageDetail_20' ) end [2025-03-07 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629010', 'tblTempVendorCDR_20' ) start [2025-03-07 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629010', 'tblTempVendorCDR_20' ) end [2025-03-07 16:22:23] Production.INFO: ProcessCDR(1,14629010,1,1,2) [2025-03-07 16:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629010', 'tblTempUsageDetail_20' ) start [2025-03-07 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629010', 'tblTempUsageDetail_20' ) end [2025-03-07 16:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:22:28] Production.INFO: ==31514== Releasing lock... [2025-03-07 16:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:22:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:23:05 [end_date_ymd] => 2025-03-07 16:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:23:05' and `end` < '2025-03-07 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-03-07 16:23:19] Production.INFO: count ==5998 [2025-03-07 16:23:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:23:05 - End Time 2025-03-07 16:23:05 [2025-03-07 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629015', 'tblTempUsageDetail_20' ) start [2025-03-07 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629015', 'tblTempUsageDetail_20' ) end [2025-03-07 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629015', 'tblTempVendorCDR_20' ) start [2025-03-07 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629015', 'tblTempVendorCDR_20' ) end [2025-03-07 16:23:22] Production.INFO: ProcessCDR(1,14629015,1,1,2) [2025-03-07 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629015', 'tblTempUsageDetail_20' ) start [2025-03-07 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629015', 'tblTempUsageDetail_20' ) end [2025-03-07 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:23:27] Production.INFO: ==31586== Releasing lock... [2025-03-07 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:23:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:24:06 [end_date_ymd] => 2025-03-07 16:24:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:24:06' and `end` < '2025-03-07 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-03-07 16:24:20] Production.INFO: count ==6059 [2025-03-07 16:24:23] Production.ERROR: pbx CDR StartTime 2025-03-07 13:24:06 - End Time 2025-03-07 16:24:06 [2025-03-07 16:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629020', 'tblTempUsageDetail_20' ) start [2025-03-07 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629020', 'tblTempUsageDetail_20' ) end [2025-03-07 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629020', 'tblTempVendorCDR_20' ) start [2025-03-07 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629020', 'tblTempVendorCDR_20' ) end [2025-03-07 16:24:23] Production.INFO: ProcessCDR(1,14629020,1,1,2) [2025-03-07 16:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629020', 'tblTempUsageDetail_20' ) start [2025-03-07 16:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629020', 'tblTempUsageDetail_20' ) end [2025-03-07 16:24:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:24:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:24:29] Production.INFO: ==31662== Releasing lock... [2025-03-07 16:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:24:29] Production.INFO: 73.25 MB #Memory Used# [2025-03-07 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:25:06 [end_date_ymd] => 2025-03-07 16:25:06 [RateCDR] => 1 ) [2025-03-07 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:25:06' and `end` < '2025-03-07 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:25:19] Production.INFO: count ==6071 [2025-03-07 16:25:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:25:06 - End Time 2025-03-07 16:25:06 [2025-03-07 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629025', 'tblTempUsageDetail_20' ) start [2025-03-07 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629025', 'tblTempUsageDetail_20' ) end [2025-03-07 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629025', 'tblTempVendorCDR_20' ) start [2025-03-07 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629025', 'tblTempVendorCDR_20' ) end [2025-03-07 16:25:22] Production.INFO: ProcessCDR(1,14629025,1,1,2) [2025-03-07 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629025', 'tblTempUsageDetail_20' ) start [2025-03-07 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629025', 'tblTempUsageDetail_20' ) end [2025-03-07 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:25:26] Production.INFO: ==31737== Releasing lock... [2025-03-07 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:25:26] Production.INFO: 73.5 MB #Memory Used# [2025-03-07 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:26:06 [end_date_ymd] => 2025-03-07 16:26:06 [RateCDR] => 1 ) [2025-03-07 16:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:26:06' and `end` < '2025-03-07 16:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:26:19] Production.INFO: count ==6074 [2025-03-07 16:26:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:26:06 - End Time 2025-03-07 16:26:06 [2025-03-07 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629030', 'tblTempUsageDetail_20' ) start [2025-03-07 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629030', 'tblTempUsageDetail_20' ) end [2025-03-07 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629030', 'tblTempVendorCDR_20' ) start [2025-03-07 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629030', 'tblTempVendorCDR_20' ) end [2025-03-07 16:26:22] Production.INFO: ProcessCDR(1,14629030,1,1,2) [2025-03-07 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629030', 'tblTempUsageDetail_20' ) start [2025-03-07 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629030', 'tblTempUsageDetail_20' ) end [2025-03-07 16:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:26:28] Production.INFO: ==31809== Releasing lock... [2025-03-07 16:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:26:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-07 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:27:06 [end_date_ymd] => 2025-03-07 16:27:06 [RateCDR] => 1 ) [2025-03-07 16:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:27:06' and `end` < '2025-03-07 16:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:27:19] Production.INFO: count ==6067 [2025-03-07 16:27:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:27:06 - End Time 2025-03-07 16:27:06 [2025-03-07 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629035', 'tblTempUsageDetail_20' ) start [2025-03-07 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629035', 'tblTempUsageDetail_20' ) end [2025-03-07 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629035', 'tblTempVendorCDR_20' ) start [2025-03-07 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629035', 'tblTempVendorCDR_20' ) end [2025-03-07 16:27:22] Production.INFO: ProcessCDR(1,14629035,1,1,2) [2025-03-07 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629035', 'tblTempUsageDetail_20' ) start [2025-03-07 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629035', 'tblTempUsageDetail_20' ) end [2025-03-07 16:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:27:28] Production.INFO: ==31881== Releasing lock... [2025-03-07 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:27:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-07 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:28:06 [end_date_ymd] => 2025-03-07 16:28:06 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:28:06' and `end` < '2025-03-07 16: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-03-07 16:28:19] Production.INFO: count ==6042 [2025-03-07 16:28:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:28:06 - End Time 2025-03-07 16:28:06 [2025-03-07 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629040', 'tblTempUsageDetail_20' ) start [2025-03-07 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629040', 'tblTempUsageDetail_20' ) end [2025-03-07 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629040', 'tblTempVendorCDR_20' ) start [2025-03-07 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629040', 'tblTempVendorCDR_20' ) end [2025-03-07 16:28:22] Production.INFO: ProcessCDR(1,14629040,1,1,2) [2025-03-07 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629040', 'tblTempUsageDetail_20' ) start [2025-03-07 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629040', 'tblTempUsageDetail_20' ) end [2025-03-07 16:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:28:28] Production.INFO: ==31950== Releasing lock... [2025-03-07 16:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:28:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-07 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:29:06 [end_date_ymd] => 2025-03-07 16:29:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:29:06' and `end` < '2025-03-07 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-03-07 16:29:20] Production.INFO: count ==5998 [2025-03-07 16:29:23] Production.ERROR: pbx CDR StartTime 2025-03-07 13:29:06 - End Time 2025-03-07 16:29:06 [2025-03-07 16:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629045', 'tblTempUsageDetail_20' ) start [2025-03-07 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629045', 'tblTempUsageDetail_20' ) end [2025-03-07 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629045', 'tblTempVendorCDR_20' ) start [2025-03-07 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629045', 'tblTempVendorCDR_20' ) end [2025-03-07 16:29:23] Production.INFO: ProcessCDR(1,14629045,1,1,2) [2025-03-07 16:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629045', 'tblTempUsageDetail_20' ) start [2025-03-07 16:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629045', 'tblTempUsageDetail_20' ) end [2025-03-07 16:29:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:29:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:29:29] Production.INFO: ==32062== Releasing lock... [2025-03-07 16:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:29:29] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 16:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:30:07 [end_date_ymd] => 2025-03-07 16:30:07 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:30:07' and `end` < '2025-03-07 16: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-03-07 16:30:20] Production.INFO: count ==5934 [2025-03-07 16:30:23] Production.ERROR: pbx CDR StartTime 2025-03-07 13:30:07 - End Time 2025-03-07 16:30:07 [2025-03-07 16:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629051', 'tblTempUsageDetail_20' ) start [2025-03-07 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629051', 'tblTempUsageDetail_20' ) end [2025-03-07 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629051', 'tblTempVendorCDR_20' ) start [2025-03-07 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629051', 'tblTempVendorCDR_20' ) end [2025-03-07 16:30:23] Production.INFO: ProcessCDR(1,14629051,1,1,2) [2025-03-07 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629051', 'tblTempUsageDetail_20' ) start [2025-03-07 16:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629051', 'tblTempUsageDetail_20' ) end [2025-03-07 16:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:30:29] Production.INFO: ==32138== Releasing lock... [2025-03-07 16:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:30:29] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:31:06 [end_date_ymd] => 2025-03-07 16:31:06 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:31:06' and `end` < '2025-03-07 16: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-03-07 16:31:19] Production.INFO: count ==5961 [2025-03-07 16:31:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:31:06 - End Time 2025-03-07 16:31:06 [2025-03-07 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629056', 'tblTempUsageDetail_20' ) start [2025-03-07 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629056', 'tblTempUsageDetail_20' ) end [2025-03-07 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629056', 'tblTempVendorCDR_20' ) start [2025-03-07 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629056', 'tblTempVendorCDR_20' ) end [2025-03-07 16:31:22] Production.INFO: ProcessCDR(1,14629056,1,1,2) [2025-03-07 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629056', 'tblTempUsageDetail_20' ) start [2025-03-07 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629056', 'tblTempUsageDetail_20' ) end [2025-03-07 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:31:27] Production.INFO: ==32212== Releasing lock... [2025-03-07 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:31:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:32:05 [end_date_ymd] => 2025-03-07 16:32:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:32:05' and `end` < '2025-03-07 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-03-07 16:32:19] Production.INFO: count ==5945 [2025-03-07 16:32:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:32:05 - End Time 2025-03-07 16:32:05 [2025-03-07 16:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629061', 'tblTempUsageDetail_20' ) start [2025-03-07 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629061', 'tblTempUsageDetail_20' ) end [2025-03-07 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629061', 'tblTempVendorCDR_20' ) start [2025-03-07 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629061', 'tblTempVendorCDR_20' ) end [2025-03-07 16:32:22] Production.INFO: ProcessCDR(1,14629061,1,1,2) [2025-03-07 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629061', 'tblTempUsageDetail_20' ) start [2025-03-07 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629061', 'tblTempUsageDetail_20' ) end [2025-03-07 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:32:27] Production.INFO: ==32288== Releasing lock... [2025-03-07 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:32:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:33:05 [end_date_ymd] => 2025-03-07 16:33:05 [RateCDR] => 1 ) [2025-03-07 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:33:05' and `end` < '2025-03-07 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:33:18] Production.INFO: count ==5961 [2025-03-07 16:33:21] Production.ERROR: pbx CDR StartTime 2025-03-07 13:33:05 - End Time 2025-03-07 16:33:05 [2025-03-07 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629066', 'tblTempUsageDetail_20' ) start [2025-03-07 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629066', 'tblTempUsageDetail_20' ) end [2025-03-07 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629066', 'tblTempVendorCDR_20' ) start [2025-03-07 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629066', 'tblTempVendorCDR_20' ) end [2025-03-07 16:33:21] Production.INFO: ProcessCDR(1,14629066,1,1,2) [2025-03-07 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629066', 'tblTempUsageDetail_20' ) start [2025-03-07 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629066', 'tblTempUsageDetail_20' ) end [2025-03-07 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:33:27] Production.INFO: ==32362== Releasing lock... [2025-03-07 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:33:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:34:05 [end_date_ymd] => 2025-03-07 16:34:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:34:05' and `end` < '2025-03-07 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-03-07 16:34:19] Production.INFO: count ==5911 [2025-03-07 16:34:21] Production.ERROR: pbx CDR StartTime 2025-03-07 13:34:05 - End Time 2025-03-07 16:34:05 [2025-03-07 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629071', 'tblTempUsageDetail_20' ) start [2025-03-07 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629071', 'tblTempUsageDetail_20' ) end [2025-03-07 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629071', 'tblTempVendorCDR_20' ) start [2025-03-07 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629071', 'tblTempVendorCDR_20' ) end [2025-03-07 16:34:22] Production.INFO: ProcessCDR(1,14629071,1,1,2) [2025-03-07 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629071', 'tblTempUsageDetail_20' ) start [2025-03-07 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629071', 'tblTempUsageDetail_20' ) end [2025-03-07 16:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:34:25] Production.INFO: ==32436== Releasing lock... [2025-03-07 16:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:34:25] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:35:06 [end_date_ymd] => 2025-03-07 16:35:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:35:06' and `end` < '2025-03-07 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-03-07 16:35:20] Production.INFO: count ==5855 [2025-03-07 16:35:23] Production.ERROR: pbx CDR StartTime 2025-03-07 13:35:06 - End Time 2025-03-07 16:35:06 [2025-03-07 16:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629076', 'tblTempUsageDetail_20' ) start [2025-03-07 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629076', 'tblTempUsageDetail_20' ) end [2025-03-07 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629076', 'tblTempVendorCDR_20' ) start [2025-03-07 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629076', 'tblTempVendorCDR_20' ) end [2025-03-07 16:35:23] Production.INFO: ProcessCDR(1,14629076,1,1,2) [2025-03-07 16:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629076', 'tblTempUsageDetail_20' ) start [2025-03-07 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629076', 'tblTempUsageDetail_20' ) end [2025-03-07 16:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:35:28] Production.INFO: ==32507== Releasing lock... [2025-03-07 16:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:35:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-07 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:36:06 [end_date_ymd] => 2025-03-07 16:36:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:36:06' and `end` < '2025-03-07 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-03-07 16:36:19] Production.INFO: count ==5784 [2025-03-07 16:36:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:36:06 - End Time 2025-03-07 16:36:06 [2025-03-07 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629081', 'tblTempUsageDetail_20' ) start [2025-03-07 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629081', 'tblTempUsageDetail_20' ) end [2025-03-07 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629081', 'tblTempVendorCDR_20' ) start [2025-03-07 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629081', 'tblTempVendorCDR_20' ) end [2025-03-07 16:36:22] Production.INFO: ProcessCDR(1,14629081,1,1,2) [2025-03-07 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629081', 'tblTempUsageDetail_20' ) start [2025-03-07 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629081', 'tblTempUsageDetail_20' ) end [2025-03-07 16:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:36:28] Production.INFO: ==32578== Releasing lock... [2025-03-07 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:36:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-07 16:37:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:37:07 [end_date_ymd] => 2025-03-07 16:37:07 [RateCDR] => 1 ) [2025-03-07 16:37: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-03-07 13:37:07' and `end` < '2025-03-07 16:37: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-03-07 16:37:20] Production.INFO: count ==5745 [2025-03-07 16:37:24] Production.ERROR: pbx CDR StartTime 2025-03-07 13:37:07 - End Time 2025-03-07 16:37:07 [2025-03-07 16:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629086', 'tblTempUsageDetail_20' ) start [2025-03-07 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629086', 'tblTempUsageDetail_20' ) end [2025-03-07 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629086', 'tblTempVendorCDR_20' ) start [2025-03-07 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629086', 'tblTempVendorCDR_20' ) end [2025-03-07 16:37:25] Production.INFO: ProcessCDR(1,14629086,1,1,2) [2025-03-07 16:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629086', 'tblTempUsageDetail_20' ) start [2025-03-07 16:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629086', 'tblTempUsageDetail_20' ) end [2025-03-07 16:37:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:37:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:37:30] Production.INFO: ==32659== Releasing lock... [2025-03-07 16:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:37:30] Production.INFO: 71 MB #Memory Used# [2025-03-07 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:38:06 [end_date_ymd] => 2025-03-07 16:38:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:38:06' and `end` < '2025-03-07 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-03-07 16:38:20] Production.INFO: count ==5706 [2025-03-07 16:38:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:38:06 - End Time 2025-03-07 16:38:06 [2025-03-07 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629091', 'tblTempUsageDetail_20' ) start [2025-03-07 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629091', 'tblTempUsageDetail_20' ) end [2025-03-07 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629091', 'tblTempVendorCDR_20' ) start [2025-03-07 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629091', 'tblTempVendorCDR_20' ) end [2025-03-07 16:38:23] Production.INFO: ProcessCDR(1,14629091,1,1,2) [2025-03-07 16:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629091', 'tblTempUsageDetail_20' ) start [2025-03-07 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629091', 'tblTempUsageDetail_20' ) end [2025-03-07 16:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:38:28] Production.INFO: ==32733== Releasing lock... [2025-03-07 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:38:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 16:39:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:39:06 [end_date_ymd] => 2025-03-07 16:39:06 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:39:06' and `end` < '2025-03-07 16: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-03-07 16:39:20] Production.INFO: count ==5656 [2025-03-07 16:39:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:39:06 - End Time 2025-03-07 16:39:06 [2025-03-07 16:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629096', 'tblTempUsageDetail_20' ) start [2025-03-07 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629096', 'tblTempUsageDetail_20' ) end [2025-03-07 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629096', 'tblTempVendorCDR_20' ) start [2025-03-07 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629096', 'tblTempVendorCDR_20' ) end [2025-03-07 16:39:23] Production.INFO: ProcessCDR(1,14629096,1,1,2) [2025-03-07 16:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629096', 'tblTempUsageDetail_20' ) start [2025-03-07 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629096', 'tblTempUsageDetail_20' ) end [2025-03-07 16:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:39:28] Production.INFO: ==359== Releasing lock... [2025-03-07 16:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:39:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-07 16:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:40:07 [end_date_ymd] => 2025-03-07 16:40:07 [RateCDR] => 1 ) [2025-03-07 16:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:40:07' and `end` < '2025-03-07 16:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:40:20] Production.INFO: count ==5594 [2025-03-07 16:40:23] Production.ERROR: pbx CDR StartTime 2025-03-07 13:40:07 - End Time 2025-03-07 16:40:07 [2025-03-07 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629102', 'tblTempUsageDetail_20' ) start [2025-03-07 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629102', 'tblTempUsageDetail_20' ) end [2025-03-07 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629102', 'tblTempVendorCDR_20' ) start [2025-03-07 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629102', 'tblTempVendorCDR_20' ) end [2025-03-07 16:40:23] Production.INFO: ProcessCDR(1,14629102,1,1,2) [2025-03-07 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629102', 'tblTempUsageDetail_20' ) start [2025-03-07 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629102', 'tblTempUsageDetail_20' ) end [2025-03-07 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:40:28] Production.INFO: ==441== Releasing lock... [2025-03-07 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:40:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-07 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:41:05 [end_date_ymd] => 2025-03-07 16:41:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:41:05' and `end` < '2025-03-07 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-03-07 16:41:18] Production.INFO: count ==5560 [2025-03-07 16:41:21] Production.ERROR: pbx CDR StartTime 2025-03-07 13:41:05 - End Time 2025-03-07 16:41:05 [2025-03-07 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629107', 'tblTempUsageDetail_20' ) start [2025-03-07 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629107', 'tblTempUsageDetail_20' ) end [2025-03-07 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629107', 'tblTempVendorCDR_20' ) start [2025-03-07 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629107', 'tblTempVendorCDR_20' ) end [2025-03-07 16:41:21] Production.INFO: ProcessCDR(1,14629107,1,1,2) [2025-03-07 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629107', 'tblTempUsageDetail_20' ) start [2025-03-07 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629107', 'tblTempUsageDetail_20' ) end [2025-03-07 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:41:27] Production.INFO: ==521== Releasing lock... [2025-03-07 16:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:41:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-07 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:42:05 [end_date_ymd] => 2025-03-07 16:42:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:42:05' and `end` < '2025-03-07 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-03-07 16:42:18] Production.INFO: count ==5528 [2025-03-07 16:42:21] Production.ERROR: pbx CDR StartTime 2025-03-07 13:42:05 - End Time 2025-03-07 16:42:05 [2025-03-07 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629112', 'tblTempUsageDetail_20' ) start [2025-03-07 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629112', 'tblTempUsageDetail_20' ) end [2025-03-07 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629112', 'tblTempVendorCDR_20' ) start [2025-03-07 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629112', 'tblTempVendorCDR_20' ) end [2025-03-07 16:42:21] Production.INFO: ProcessCDR(1,14629112,1,1,2) [2025-03-07 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629112', 'tblTempUsageDetail_20' ) start [2025-03-07 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629112', 'tblTempUsageDetail_20' ) end [2025-03-07 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:42:26] Production.INFO: ==597== Releasing lock... [2025-03-07 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:42:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-07 16:43:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:43:07 [end_date_ymd] => 2025-03-07 16:43:07 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:43:07' and `end` < '2025-03-07 16: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-03-07 16:43:20] Production.INFO: count ==5529 [2025-03-07 16:43:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:43:07 - End Time 2025-03-07 16:43:07 [2025-03-07 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629117', 'tblTempUsageDetail_20' ) start [2025-03-07 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629117', 'tblTempUsageDetail_20' ) end [2025-03-07 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629117', 'tblTempVendorCDR_20' ) start [2025-03-07 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629117', 'tblTempVendorCDR_20' ) end [2025-03-07 16:43:23] Production.INFO: ProcessCDR(1,14629117,1,1,2) [2025-03-07 16:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629117', 'tblTempUsageDetail_20' ) start [2025-03-07 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629117', 'tblTempUsageDetail_20' ) end [2025-03-07 16:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:43:27] Production.INFO: ==704== Releasing lock... [2025-03-07 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:43:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-07 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:44:06 [end_date_ymd] => 2025-03-07 16:44:06 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:44:06' and `end` < '2025-03-07 16: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-03-07 16:44:19] Production.INFO: count ==5535 [2025-03-07 16:44:21] Production.ERROR: pbx CDR StartTime 2025-03-07 13:44:06 - End Time 2025-03-07 16:44:06 [2025-03-07 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629122', 'tblTempUsageDetail_20' ) start [2025-03-07 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629122', 'tblTempUsageDetail_20' ) end [2025-03-07 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629122', 'tblTempVendorCDR_20' ) start [2025-03-07 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629122', 'tblTempVendorCDR_20' ) end [2025-03-07 16:44:22] Production.INFO: ProcessCDR(1,14629122,1,1,2) [2025-03-07 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629122', 'tblTempUsageDetail_20' ) start [2025-03-07 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629122', 'tblTempUsageDetail_20' ) end [2025-03-07 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:44:28] Production.INFO: ==787== Releasing lock... [2025-03-07 16:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:44:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-07 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:45:05 [end_date_ymd] => 2025-03-07 16:45:05 [RateCDR] => 1 ) [2025-03-07 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:45:05' and `end` < '2025-03-07 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:45:19] Production.INFO: count ==5511 [2025-03-07 16:45:21] Production.ERROR: pbx CDR StartTime 2025-03-07 13:45:05 - End Time 2025-03-07 16:45:05 [2025-03-07 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629127', 'tblTempUsageDetail_20' ) start [2025-03-07 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629127', 'tblTempUsageDetail_20' ) end [2025-03-07 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629127', 'tblTempVendorCDR_20' ) start [2025-03-07 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629127', 'tblTempVendorCDR_20' ) end [2025-03-07 16:45:21] Production.INFO: ProcessCDR(1,14629127,1,1,2) [2025-03-07 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629127', 'tblTempUsageDetail_20' ) start [2025-03-07 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629127', 'tblTempUsageDetail_20' ) end [2025-03-07 16:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:45:25] Production.INFO: ==905== Releasing lock... [2025-03-07 16:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:45:25] Production.INFO: 69.25 MB #Memory Used# [2025-03-07 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:46:06 [end_date_ymd] => 2025-03-07 16:46:06 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:46:06' and `end` < '2025-03-07 16: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-03-07 16:46:19] Production.INFO: count ==5490 [2025-03-07 16:46:21] Production.ERROR: pbx CDR StartTime 2025-03-07 13:46:06 - End Time 2025-03-07 16:46:06 [2025-03-07 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629132', 'tblTempUsageDetail_20' ) start [2025-03-07 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629132', 'tblTempUsageDetail_20' ) end [2025-03-07 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629132', 'tblTempVendorCDR_20' ) start [2025-03-07 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629132', 'tblTempVendorCDR_20' ) end [2025-03-07 16:46:22] Production.INFO: ProcessCDR(1,14629132,1,1,2) [2025-03-07 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629132', 'tblTempUsageDetail_20' ) start [2025-03-07 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629132', 'tblTempUsageDetail_20' ) end [2025-03-07 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:46:27] Production.INFO: ==978== Releasing lock... [2025-03-07 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:46:27] Production.INFO: 69 MB #Memory Used# [2025-03-07 16:47:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:47:07 [end_date_ymd] => 2025-03-07 16:47:07 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:47:07' and `end` < '2025-03-07 16: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-03-07 16:47:20] Production.INFO: count ==5489 [2025-03-07 16:47:23] Production.ERROR: pbx CDR StartTime 2025-03-07 13:47:07 - End Time 2025-03-07 16:47:07 [2025-03-07 16:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629137', 'tblTempUsageDetail_20' ) start [2025-03-07 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629137', 'tblTempUsageDetail_20' ) end [2025-03-07 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629137', 'tblTempVendorCDR_20' ) start [2025-03-07 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629137', 'tblTempVendorCDR_20' ) end [2025-03-07 16:47:23] Production.INFO: ProcessCDR(1,14629137,1,1,2) [2025-03-07 16:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629137', 'tblTempUsageDetail_20' ) start [2025-03-07 16:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629137', 'tblTempUsageDetail_20' ) end [2025-03-07 16:47:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:47:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:47:29] Production.INFO: ==1057== Releasing lock... [2025-03-07 16:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:47:29] Production.INFO: 69 MB #Memory Used# [2025-03-07 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:48:05 [end_date_ymd] => 2025-03-07 16:48:05 [RateCDR] => 1 ) [2025-03-07 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:48:05' and `end` < '2025-03-07 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:48:19] Production.INFO: count ==5490 [2025-03-07 16:48:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:48:05 - End Time 2025-03-07 16:48:05 [2025-03-07 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629142', 'tblTempUsageDetail_20' ) start [2025-03-07 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629142', 'tblTempUsageDetail_20' ) end [2025-03-07 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629142', 'tblTempVendorCDR_20' ) start [2025-03-07 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629142', 'tblTempVendorCDR_20' ) end [2025-03-07 16:48:22] Production.INFO: ProcessCDR(1,14629142,1,1,2) [2025-03-07 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629142', 'tblTempUsageDetail_20' ) start [2025-03-07 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629142', 'tblTempUsageDetail_20' ) end [2025-03-07 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:48:28] Production.INFO: ==1133== Releasing lock... [2025-03-07 16:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:48:28] Production.INFO: 69 MB #Memory Used# [2025-03-07 16:49:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:49:07 [end_date_ymd] => 2025-03-07 16:49:07 [RateCDR] => 1 ) [2025-03-07 16:49: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-03-07 13:49:07' and `end` < '2025-03-07 16:49: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-03-07 16:49:20] Production.INFO: count ==5507 [2025-03-07 16:49:23] Production.ERROR: pbx CDR StartTime 2025-03-07 13:49:07 - End Time 2025-03-07 16:49:07 [2025-03-07 16:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629147', 'tblTempUsageDetail_20' ) start [2025-03-07 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629147', 'tblTempUsageDetail_20' ) end [2025-03-07 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629147', 'tblTempVendorCDR_20' ) start [2025-03-07 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629147', 'tblTempVendorCDR_20' ) end [2025-03-07 16:49:23] Production.INFO: ProcessCDR(1,14629147,1,1,2) [2025-03-07 16:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629147', 'tblTempUsageDetail_20' ) start [2025-03-07 16:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629147', 'tblTempUsageDetail_20' ) end [2025-03-07 16:49:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:49:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:49:29] Production.INFO: ==1217== Releasing lock... [2025-03-07 16:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:49:29] Production.INFO: 69.25 MB #Memory Used# [2025-03-07 16:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:50:07 [end_date_ymd] => 2025-03-07 16:50:07 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:50:07' and `end` < '2025-03-07 16: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-03-07 16:50:20] Production.INFO: count ==5515 [2025-03-07 16:50:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:50:07 - End Time 2025-03-07 16:50:07 [2025-03-07 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629153', 'tblTempUsageDetail_20' ) start [2025-03-07 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629153', 'tblTempUsageDetail_20' ) end [2025-03-07 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629153', 'tblTempVendorCDR_20' ) start [2025-03-07 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629153', 'tblTempVendorCDR_20' ) end [2025-03-07 16:50:23] Production.INFO: ProcessCDR(1,14629153,1,1,2) [2025-03-07 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629153', 'tblTempUsageDetail_20' ) start [2025-03-07 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629153', 'tblTempUsageDetail_20' ) end [2025-03-07 16:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:50:28] Production.INFO: ==1308== Releasing lock... [2025-03-07 16:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:50:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-07 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:51:05 [end_date_ymd] => 2025-03-07 16:51:05 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:51:05' and `end` < '2025-03-07 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-03-07 16:51:19] Production.INFO: count ==5551 [2025-03-07 16:51:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:51:05 - End Time 2025-03-07 16:51:05 [2025-03-07 16:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629158', 'tblTempUsageDetail_20' ) start [2025-03-07 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629158', 'tblTempUsageDetail_20' ) end [2025-03-07 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629158', 'tblTempVendorCDR_20' ) start [2025-03-07 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629158', 'tblTempVendorCDR_20' ) end [2025-03-07 16:51:22] Production.INFO: ProcessCDR(1,14629158,1,1,2) [2025-03-07 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629158', 'tblTempUsageDetail_20' ) start [2025-03-07 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629158', 'tblTempUsageDetail_20' ) end [2025-03-07 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:51:28] Production.INFO: ==1384== Releasing lock... [2025-03-07 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:51:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-07 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:52:06 [end_date_ymd] => 2025-03-07 16:52:06 [RateCDR] => 1 ) [2025-03-07 16:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:52:06' and `end` < '2025-03-07 16:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:52:20] Production.INFO: count ==5570 [2025-03-07 16:52:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:52:06 - End Time 2025-03-07 16:52:06 [2025-03-07 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629163', 'tblTempUsageDetail_20' ) start [2025-03-07 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629163', 'tblTempUsageDetail_20' ) end [2025-03-07 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629163', 'tblTempVendorCDR_20' ) start [2025-03-07 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629163', 'tblTempVendorCDR_20' ) end [2025-03-07 16:52:22] Production.INFO: ProcessCDR(1,14629163,1,1,2) [2025-03-07 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629163', 'tblTempUsageDetail_20' ) start [2025-03-07 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629163', 'tblTempUsageDetail_20' ) end [2025-03-07 16:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:52:28] Production.INFO: ==1458== Releasing lock... [2025-03-07 16:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:52:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-07 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:53:05 [end_date_ymd] => 2025-03-07 16:53:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:53:05' and `end` < '2025-03-07 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-03-07 16:53:19] Production.INFO: count ==5538 [2025-03-07 16:53:21] Production.ERROR: pbx CDR StartTime 2025-03-07 13:53:05 - End Time 2025-03-07 16:53:05 [2025-03-07 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629168', 'tblTempUsageDetail_20' ) start [2025-03-07 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629168', 'tblTempUsageDetail_20' ) end [2025-03-07 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629168', 'tblTempVendorCDR_20' ) start [2025-03-07 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629168', 'tblTempVendorCDR_20' ) end [2025-03-07 16:53:21] Production.INFO: ProcessCDR(1,14629168,1,1,2) [2025-03-07 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629168', 'tblTempUsageDetail_20' ) start [2025-03-07 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629168', 'tblTempUsageDetail_20' ) end [2025-03-07 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:53:27] Production.INFO: ==1567== Releasing lock... [2025-03-07 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:53:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-07 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:54:06 [end_date_ymd] => 2025-03-07 16:54:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:54:06' and `end` < '2025-03-07 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-03-07 16:54:19] Production.INFO: count ==5552 [2025-03-07 16:54:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:54:06 - End Time 2025-03-07 16:54:06 [2025-03-07 16:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629173', 'tblTempUsageDetail_20' ) start [2025-03-07 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629173', 'tblTempUsageDetail_20' ) end [2025-03-07 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629173', 'tblTempVendorCDR_20' ) start [2025-03-07 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629173', 'tblTempVendorCDR_20' ) end [2025-03-07 16:54:22] Production.INFO: ProcessCDR(1,14629173,1,1,2) [2025-03-07 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629173', 'tblTempUsageDetail_20' ) start [2025-03-07 16:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629173', 'tblTempUsageDetail_20' ) end [2025-03-07 16:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:54:28] Production.INFO: ==1645== Releasing lock... [2025-03-07 16:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:54:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-07 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:55:05 [end_date_ymd] => 2025-03-07 16:55:05 [RateCDR] => 1 ) [2025-03-07 16: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-03-07 13:55:05' and `end` < '2025-03-07 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-03-07 16:55:19] Production.INFO: count ==5536 [2025-03-07 16:55:21] Production.ERROR: pbx CDR StartTime 2025-03-07 13:55:05 - End Time 2025-03-07 16:55:05 [2025-03-07 16:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629178', 'tblTempUsageDetail_20' ) start [2025-03-07 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629178', 'tblTempUsageDetail_20' ) end [2025-03-07 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629178', 'tblTempVendorCDR_20' ) start [2025-03-07 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629178', 'tblTempVendorCDR_20' ) end [2025-03-07 16:55:21] Production.INFO: ProcessCDR(1,14629178,1,1,2) [2025-03-07 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629178', 'tblTempUsageDetail_20' ) start [2025-03-07 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629178', 'tblTempUsageDetail_20' ) end [2025-03-07 16:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:55:27] Production.INFO: ==1719== Releasing lock... [2025-03-07 16:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:55:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-07 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:56:06 [end_date_ymd] => 2025-03-07 16:56:06 [RateCDR] => 1 ) [2025-03-07 16:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:56:06' and `end` < '2025-03-07 16:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:56:19] Production.INFO: count ==5513 [2025-03-07 16:56:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:56:06 - End Time 2025-03-07 16:56:06 [2025-03-07 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629183', 'tblTempUsageDetail_20' ) start [2025-03-07 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629183', 'tblTempUsageDetail_20' ) end [2025-03-07 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629183', 'tblTempVendorCDR_20' ) start [2025-03-07 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629183', 'tblTempVendorCDR_20' ) end [2025-03-07 16:56:22] Production.INFO: ProcessCDR(1,14629183,1,1,2) [2025-03-07 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629183', 'tblTempUsageDetail_20' ) start [2025-03-07 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629183', 'tblTempUsageDetail_20' ) end [2025-03-07 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:56:28] Production.INFO: ==1794== Releasing lock... [2025-03-07 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:56:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-07 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:57:05 [end_date_ymd] => 2025-03-07 16:57:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:57:05' and `end` < '2025-03-07 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-03-07 16:57:19] Production.INFO: count ==5498 [2025-03-07 16:57:21] Production.ERROR: pbx CDR StartTime 2025-03-07 13:57:05 - End Time 2025-03-07 16:57:05 [2025-03-07 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629188', 'tblTempUsageDetail_20' ) start [2025-03-07 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629188', 'tblTempUsageDetail_20' ) end [2025-03-07 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629188', 'tblTempVendorCDR_20' ) start [2025-03-07 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629188', 'tblTempVendorCDR_20' ) end [2025-03-07 16:57:21] Production.INFO: ProcessCDR(1,14629188,1,1,2) [2025-03-07 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629188', 'tblTempUsageDetail_20' ) start [2025-03-07 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629188', 'tblTempUsageDetail_20' ) end [2025-03-07 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:57:27] Production.INFO: ==1871== Releasing lock... [2025-03-07 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:57:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-07 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:58:06 [end_date_ymd] => 2025-03-07 16:58:06 [RateCDR] => 1 ) [2025-03-07 16:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 13:58:06' and `end` < '2025-03-07 16:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 16:58:19] Production.INFO: count ==5468 [2025-03-07 16:58:22] Production.ERROR: pbx CDR StartTime 2025-03-07 13:58:06 - End Time 2025-03-07 16:58:06 [2025-03-07 16:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629193', 'tblTempUsageDetail_20' ) start [2025-03-07 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629193', 'tblTempUsageDetail_20' ) end [2025-03-07 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629193', 'tblTempVendorCDR_20' ) start [2025-03-07 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629193', 'tblTempVendorCDR_20' ) end [2025-03-07 16:58:22] Production.INFO: ProcessCDR(1,14629193,1,1,2) [2025-03-07 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629193', 'tblTempUsageDetail_20' ) start [2025-03-07 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629193', 'tblTempUsageDetail_20' ) end [2025-03-07 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:58:27] Production.INFO: ==1949== Releasing lock... [2025-03-07 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:58:27] Production.INFO: 69 MB #Memory Used# [2025-03-07 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 13:59:05 [end_date_ymd] => 2025-03-07 16:59:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 13:59:05' and `end` < '2025-03-07 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-03-07 16:59:19] Production.INFO: count ==5410 [2025-03-07 16:59:21] Production.ERROR: pbx CDR StartTime 2025-03-07 13:59:05 - End Time 2025-03-07 16:59:05 [2025-03-07 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629198', 'tblTempUsageDetail_20' ) start [2025-03-07 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629198', 'tblTempUsageDetail_20' ) end [2025-03-07 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629198', 'tblTempVendorCDR_20' ) start [2025-03-07 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629198', 'tblTempVendorCDR_20' ) end [2025-03-07 16:59:22] Production.INFO: ProcessCDR(1,14629198,1,1,2) [2025-03-07 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629198', 'tblTempUsageDetail_20' ) start [2025-03-07 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629198', 'tblTempUsageDetail_20' ) end [2025-03-07 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 16:59:27] Production.INFO: ==2024== Releasing lock... [2025-03-07 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 16:59:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-07 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:00:06 [end_date_ymd] => 2025-03-07 17:00:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:00:06' and `end` < '2025-03-07 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-03-07 17:00:20] Production.INFO: count ==5354 [2025-03-07 17:00:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:00:06 - End Time 2025-03-07 17:00:06 [2025-03-07 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629204', 'tblTempUsageDetail_20' ) start [2025-03-07 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629204', 'tblTempUsageDetail_20' ) end [2025-03-07 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629204', 'tblTempVendorCDR_20' ) start [2025-03-07 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629204', 'tblTempVendorCDR_20' ) end [2025-03-07 17:00:22] Production.INFO: ProcessCDR(1,14629204,1,1,2) [2025-03-07 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629204', 'tblTempUsageDetail_20' ) start [2025-03-07 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629204', 'tblTempUsageDetail_20' ) end [2025-03-07 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:00:28] Production.INFO: ==2139== Releasing lock... [2025-03-07 17:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:00:28] Production.INFO: 68 MB #Memory Used# [2025-03-07 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:01:05 [end_date_ymd] => 2025-03-07 17:01:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:01:05' and `end` < '2025-03-07 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-03-07 17:01:19] Production.INFO: count ==5295 [2025-03-07 17:01:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:01:05 - End Time 2025-03-07 17:01:05 [2025-03-07 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629209', 'tblTempUsageDetail_20' ) start [2025-03-07 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629209', 'tblTempUsageDetail_20' ) end [2025-03-07 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629209', 'tblTempVendorCDR_20' ) start [2025-03-07 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629209', 'tblTempVendorCDR_20' ) end [2025-03-07 17:01:21] Production.INFO: ProcessCDR(1,14629209,1,1,2) [2025-03-07 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629209', 'tblTempUsageDetail_20' ) start [2025-03-07 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629209', 'tblTempUsageDetail_20' ) end [2025-03-07 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:01:27] Production.INFO: ==2230== Releasing lock... [2025-03-07 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:01:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-07 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:02:06 [end_date_ymd] => 2025-03-07 17:02:06 [RateCDR] => 1 ) [2025-03-07 17:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:02:06' and `end` < '2025-03-07 17:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:02:20] Production.INFO: count ==5223 [2025-03-07 17:02:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:02:06 - End Time 2025-03-07 17:02:06 [2025-03-07 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629214', 'tblTempUsageDetail_20' ) start [2025-03-07 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629214', 'tblTempUsageDetail_20' ) end [2025-03-07 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629214', 'tblTempVendorCDR_20' ) start [2025-03-07 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629214', 'tblTempVendorCDR_20' ) end [2025-03-07 17:02:22] Production.INFO: ProcessCDR(1,14629214,1,1,2) [2025-03-07 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629214', 'tblTempUsageDetail_20' ) start [2025-03-07 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629214', 'tblTempUsageDetail_20' ) end [2025-03-07 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:02:27] Production.INFO: ==2307== Releasing lock... [2025-03-07 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:02:27] Production.INFO: 67 MB #Memory Used# [2025-03-07 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:03:05 [end_date_ymd] => 2025-03-07 17:03:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:03:05' and `end` < '2025-03-07 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-03-07 17:03:19] Production.INFO: count ==5169 [2025-03-07 17:03:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:03:05 - End Time 2025-03-07 17:03:05 [2025-03-07 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629219', 'tblTempUsageDetail_20' ) start [2025-03-07 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629219', 'tblTempUsageDetail_20' ) end [2025-03-07 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629219', 'tblTempVendorCDR_20' ) start [2025-03-07 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629219', 'tblTempVendorCDR_20' ) end [2025-03-07 17:03:21] Production.INFO: ProcessCDR(1,14629219,1,1,2) [2025-03-07 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629219', 'tblTempUsageDetail_20' ) start [2025-03-07 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629219', 'tblTempUsageDetail_20' ) end [2025-03-07 17:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:03:25] Production.INFO: ==2383== Releasing lock... [2025-03-07 17:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:03:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-07 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:04:06 [end_date_ymd] => 2025-03-07 17:04:06 [RateCDR] => 1 ) [2025-03-07 17: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-03-07 14:04:06' and `end` < '2025-03-07 17: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-03-07 17:04:19] Production.INFO: count ==5114 [2025-03-07 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:04:06 - End Time 2025-03-07 17:04:06 [2025-03-07 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629224', 'tblTempUsageDetail_20' ) start [2025-03-07 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629224', 'tblTempUsageDetail_20' ) end [2025-03-07 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629224', 'tblTempVendorCDR_20' ) start [2025-03-07 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629224', 'tblTempVendorCDR_20' ) end [2025-03-07 17:04:21] Production.INFO: ProcessCDR(1,14629224,1,1,2) [2025-03-07 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629224', 'tblTempUsageDetail_20' ) start [2025-03-07 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629224', 'tblTempUsageDetail_20' ) end [2025-03-07 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:04:27] Production.INFO: ==2459== Releasing lock... [2025-03-07 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:04:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-07 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:05:06 [end_date_ymd] => 2025-03-07 17:05:06 [RateCDR] => 1 ) [2025-03-07 17: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-03-07 14:05:06' and `end` < '2025-03-07 17: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-03-07 17:05:19] Production.INFO: count ==5086 [2025-03-07 17:05:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:05:06 - End Time 2025-03-07 17:05:06 [2025-03-07 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629229', 'tblTempUsageDetail_20' ) start [2025-03-07 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629229', 'tblTempUsageDetail_20' ) end [2025-03-07 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629229', 'tblTempVendorCDR_20' ) start [2025-03-07 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629229', 'tblTempVendorCDR_20' ) end [2025-03-07 17:05:21] Production.INFO: ProcessCDR(1,14629229,1,1,2) [2025-03-07 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629229', 'tblTempUsageDetail_20' ) start [2025-03-07 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629229', 'tblTempUsageDetail_20' ) end [2025-03-07 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:05:27] Production.INFO: ==2537== Releasing lock... [2025-03-07 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:05:27] Production.INFO: 66 MB #Memory Used# [2025-03-07 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:06:06 [end_date_ymd] => 2025-03-07 17:06:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:06:06' and `end` < '2025-03-07 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-03-07 17:06:19] Production.INFO: count ==5074 [2025-03-07 17:06:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:06:06 - End Time 2025-03-07 17:06:06 [2025-03-07 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629234', 'tblTempUsageDetail_20' ) start [2025-03-07 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629234', 'tblTempUsageDetail_20' ) end [2025-03-07 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629234', 'tblTempVendorCDR_20' ) start [2025-03-07 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629234', 'tblTempVendorCDR_20' ) end [2025-03-07 17:06:21] Production.INFO: ProcessCDR(1,14629234,1,1,2) [2025-03-07 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629234', 'tblTempUsageDetail_20' ) start [2025-03-07 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629234', 'tblTempUsageDetail_20' ) end [2025-03-07 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:06:25] Production.INFO: ==2616== Releasing lock... [2025-03-07 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:06:25] Production.INFO: 66 MB #Memory Used# [2025-03-07 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:07:06 [end_date_ymd] => 2025-03-07 17:07:06 [RateCDR] => 1 ) [2025-03-07 17:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:07:06' and `end` < '2025-03-07 17:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:07:19] Production.INFO: count ==5054 [2025-03-07 17:07:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:07:06 - End Time 2025-03-07 17:07:06 [2025-03-07 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629239', 'tblTempUsageDetail_20' ) start [2025-03-07 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629239', 'tblTempUsageDetail_20' ) end [2025-03-07 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629239', 'tblTempVendorCDR_20' ) start [2025-03-07 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629239', 'tblTempVendorCDR_20' ) end [2025-03-07 17:07:21] Production.INFO: ProcessCDR(1,14629239,1,1,2) [2025-03-07 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629239', 'tblTempUsageDetail_20' ) start [2025-03-07 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629239', 'tblTempUsageDetail_20' ) end [2025-03-07 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:07:27] Production.INFO: ==2691== Releasing lock... [2025-03-07 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:07:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-07 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:08:06 [end_date_ymd] => 2025-03-07 17:08:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:08:06' and `end` < '2025-03-07 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-03-07 17:08:19] Production.INFO: count ==5055 [2025-03-07 17:08:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:08:06 - End Time 2025-03-07 17:08:06 [2025-03-07 17:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629244', 'tblTempUsageDetail_20' ) start [2025-03-07 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629244', 'tblTempUsageDetail_20' ) end [2025-03-07 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629244', 'tblTempVendorCDR_20' ) start [2025-03-07 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629244', 'tblTempVendorCDR_20' ) end [2025-03-07 17:08:22] Production.INFO: ProcessCDR(1,14629244,1,1,2) [2025-03-07 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629244', 'tblTempUsageDetail_20' ) start [2025-03-07 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629244', 'tblTempUsageDetail_20' ) end [2025-03-07 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:08:27] Production.INFO: ==2767== Releasing lock... [2025-03-07 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:08:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-07 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:09:06 [end_date_ymd] => 2025-03-07 17:09:06 [RateCDR] => 1 ) [2025-03-07 17:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:09:06' and `end` < '2025-03-07 17:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:09:19] Production.INFO: count ==5080 [2025-03-07 17:09:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:09:06 - End Time 2025-03-07 17:09:06 [2025-03-07 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629249', 'tblTempUsageDetail_20' ) start [2025-03-07 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629249', 'tblTempUsageDetail_20' ) end [2025-03-07 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629249', 'tblTempVendorCDR_20' ) start [2025-03-07 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629249', 'tblTempVendorCDR_20' ) end [2025-03-07 17:09:21] Production.INFO: ProcessCDR(1,14629249,1,1,2) [2025-03-07 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629249', 'tblTempUsageDetail_20' ) start [2025-03-07 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629249', 'tblTempUsageDetail_20' ) end [2025-03-07 17:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:09:27] Production.INFO: ==2844== Releasing lock... [2025-03-07 17:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:09:27] Production.INFO: 66 MB #Memory Used# [2025-03-07 17:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:10:07 [end_date_ymd] => 2025-03-07 17:10:07 [RateCDR] => 1 ) [2025-03-07 17: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-03-07 14:10:07' and `end` < '2025-03-07 17: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-03-07 17:10:20] Production.INFO: count ==5110 [2025-03-07 17:10:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:10:07 - End Time 2025-03-07 17:10:07 [2025-03-07 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629255', 'tblTempUsageDetail_20' ) start [2025-03-07 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629255', 'tblTempUsageDetail_20' ) end [2025-03-07 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629255', 'tblTempVendorCDR_20' ) start [2025-03-07 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629255', 'tblTempVendorCDR_20' ) end [2025-03-07 17:10:23] Production.INFO: ProcessCDR(1,14629255,1,1,2) [2025-03-07 17:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629255', 'tblTempUsageDetail_20' ) start [2025-03-07 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629255', 'tblTempUsageDetail_20' ) end [2025-03-07 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:10:26] Production.INFO: ==2922== Releasing lock... [2025-03-07 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:10:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-07 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:11:05 [end_date_ymd] => 2025-03-07 17:11:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:11:05' and `end` < '2025-03-07 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-03-07 17:11:05] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-03-07 17:11:05] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 17:11:06] Production.ERROR: **Email Sent Status 1 [2025-03-07 17:11:06] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 17:11:06] Production.INFO: ==2999== Releasing lock... [2025-03-07 17:11:06] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:11:06] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:12:06 [end_date_ymd] => 2025-03-07 17:12:06 [RateCDR] => 1 ) [2025-03-07 17: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-03-07 14:12:06' and `end` < '2025-03-07 17: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-03-07 17:12:36] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2025-03-07 17:12:36] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 17:12:36] Production.ERROR: **Email Sent Status 1 [2025-03-07 17:12:36] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 17:12:36] Production.INFO: ==3074== Releasing lock... [2025-03-07 17:12:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:12:36] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 17:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:13:04 [end_date_ymd] => 2025-03-07 17:13:04 [RateCDR] => 1 ) [2025-03-07 17:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:13:04' and `end` < '2025-03-07 17:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:13:34] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2025-03-07 17:13:34] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 17:13:35] Production.ERROR: **Email Sent Status 1 [2025-03-07 17:13:35] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 17:13:35] Production.INFO: ==3145== Releasing lock... [2025-03-07 17:13:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:13:35] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:14:05 [end_date_ymd] => 2025-03-07 17:14:05 [RateCDR] => 1 ) [2025-03-07 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:14:05' and `end` < '2025-03-07 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:14:35] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2025-03-07 17:14:35] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 17:14:35] Production.ERROR: **Email Sent Status 1 [2025-03-07 17:14:35] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 17:14:35] Production.INFO: ==3229== Releasing lock... [2025-03-07 17:14:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:14:35] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 17:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:15:04 [end_date_ymd] => 2025-03-07 17:15:04 [RateCDR] => 1 ) [2025-03-07 17: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-03-07 14:15:04' and `end` < '2025-03-07 17: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-03-07 17:15:19] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-03-07 17:15:19] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 17:15:20] Production.ERROR: **Email Sent Status 1 [2025-03-07 17:15:20] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 17:15:20] Production.INFO: ==3305== Releasing lock... [2025-03-07 17:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:15:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 17:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:16:04 [end_date_ymd] => 2025-03-07 17:16:04 [RateCDR] => 1 ) [2025-03-07 17:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:16:04' and `end` < '2025-03-07 17:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:18:37] Production.INFO: count ==5100 [2025-03-07 17:18:40] Production.ERROR: pbx CDR StartTime 2025-03-07 14:16:04 - End Time 2025-03-07 17:16:04 [2025-03-07 17:18:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:18:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629285', 'tblTempUsageDetail_20' ) start [2025-03-07 17:18:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629285', 'tblTempUsageDetail_20' ) end [2025-03-07 17:18:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629285', 'tblTempVendorCDR_20' ) start [2025-03-07 17:18:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629285', 'tblTempVendorCDR_20' ) end [2025-03-07 17:18:40] Production.INFO: ProcessCDR(1,14629285,1,1,2) [2025-03-07 17:18:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:18:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:18:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:18:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:18:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629285', 'tblTempUsageDetail_20' ) start [2025-03-07 17:18:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629285', 'tblTempUsageDetail_20' ) end [2025-03-07 17:18:45] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:18:45] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:18:45] Production.INFO: ==3417== Releasing lock... [2025-03-07 17:18:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:18:45] Production.INFO: 66.25 MB #Memory Used# [2025-03-07 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:19:05 [end_date_ymd] => 2025-03-07 17:19:05 [RateCDR] => 1 ) [2025-03-07 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:19:05' and `end` < '2025-03-07 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:19:19] Production.INFO: count ==5097 [2025-03-07 17:19:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:19:05 - End Time 2025-03-07 17:19:05 [2025-03-07 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629298', 'tblTempUsageDetail_20' ) start [2025-03-07 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629298', 'tblTempUsageDetail_20' ) end [2025-03-07 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629298', 'tblTempVendorCDR_20' ) start [2025-03-07 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629298', 'tblTempVendorCDR_20' ) end [2025-03-07 17:19:21] Production.INFO: ProcessCDR(1,14629298,1,1,2) [2025-03-07 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629298', 'tblTempUsageDetail_20' ) start [2025-03-07 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629298', 'tblTempUsageDetail_20' ) end [2025-03-07 17:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:19:27] Production.INFO: ==3628== Releasing lock... [2025-03-07 17:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:19:27] Production.INFO: 66 MB #Memory Used# [2025-03-07 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:20:06 [end_date_ymd] => 2025-03-07 17:20:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:20:06' and `end` < '2025-03-07 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-03-07 17:20:21] Production.INFO: count ==5217 [2025-03-07 17:20:24] Production.ERROR: pbx CDR StartTime 2025-03-07 14:20:06 - End Time 2025-03-07 17:20:06 [2025-03-07 17:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629303', 'tblTempUsageDetail_20' ) start [2025-03-07 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629303', 'tblTempUsageDetail_20' ) end [2025-03-07 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629303', 'tblTempVendorCDR_20' ) start [2025-03-07 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629303', 'tblTempVendorCDR_20' ) end [2025-03-07 17:20:24] Production.INFO: ProcessCDR(1,14629303,1,1,2) [2025-03-07 17:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629303', 'tblTempUsageDetail_20' ) start [2025-03-07 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629303', 'tblTempUsageDetail_20' ) end [2025-03-07 17:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:20:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:20:30] Production.INFO: ==3703== Releasing lock... [2025-03-07 17:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:20:30] Production.INFO: 67 MB #Memory Used# [2025-03-07 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:21:06 [end_date_ymd] => 2025-03-07 17:21:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:21:06' and `end` < '2025-03-07 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-03-07 17:21:19] Production.INFO: count ==5420 [2025-03-07 17:21:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:21:06 - End Time 2025-03-07 17:21:06 [2025-03-07 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629309', 'tblTempUsageDetail_20' ) start [2025-03-07 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629309', 'tblTempUsageDetail_20' ) end [2025-03-07 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629309', 'tblTempVendorCDR_20' ) start [2025-03-07 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629309', 'tblTempVendorCDR_20' ) end [2025-03-07 17:21:22] Production.INFO: ProcessCDR(1,14629309,1,1,2) [2025-03-07 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629309', 'tblTempUsageDetail_20' ) start [2025-03-07 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629309', 'tblTempUsageDetail_20' ) end [2025-03-07 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:21:27] Production.INFO: ==3778== Releasing lock... [2025-03-07 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:21:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-07 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:22:06 [end_date_ymd] => 2025-03-07 17:22:06 [RateCDR] => 1 ) [2025-03-07 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:22:06' and `end` < '2025-03-07 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:22:19] Production.INFO: count ==5614 [2025-03-07 17:22:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:22:06 - End Time 2025-03-07 17:22:06 [2025-03-07 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629314', 'tblTempUsageDetail_20' ) start [2025-03-07 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629314', 'tblTempUsageDetail_20' ) end [2025-03-07 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629314', 'tblTempVendorCDR_20' ) start [2025-03-07 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629314', 'tblTempVendorCDR_20' ) end [2025-03-07 17:22:21] Production.INFO: ProcessCDR(1,14629314,1,1,2) [2025-03-07 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629314', 'tblTempUsageDetail_20' ) start [2025-03-07 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629314', 'tblTempUsageDetail_20' ) end [2025-03-07 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:22:27] Production.INFO: ==3852== Releasing lock... [2025-03-07 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:22:27] Production.INFO: 70 MB #Memory Used# [2025-03-07 17:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:23:06 [end_date_ymd] => 2025-03-07 17:23:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:23:06' and `end` < '2025-03-07 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-03-07 17:23:20] Production.INFO: count ==5801 [2025-03-07 17:23:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:23:06 - End Time 2025-03-07 17:23:06 [2025-03-07 17:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629319', 'tblTempUsageDetail_20' ) start [2025-03-07 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629319', 'tblTempUsageDetail_20' ) end [2025-03-07 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629319', 'tblTempVendorCDR_20' ) start [2025-03-07 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629319', 'tblTempVendorCDR_20' ) end [2025-03-07 17:23:23] Production.INFO: ProcessCDR(1,14629319,1,1,2) [2025-03-07 17:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629319', 'tblTempUsageDetail_20' ) start [2025-03-07 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629319', 'tblTempUsageDetail_20' ) end [2025-03-07 17:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:23:28] Production.INFO: ==3928== Releasing lock... [2025-03-07 17:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:23:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-07 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:24:06 [end_date_ymd] => 2025-03-07 17:24:06 [RateCDR] => 1 ) [2025-03-07 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:24:06' and `end` < '2025-03-07 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:24:06] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-03-07 17:24:06] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 17:24:07] Production.ERROR: **Email Sent Status 1 [2025-03-07 17:24:07] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 17:24:07] Production.INFO: ==3998== Releasing lock... [2025-03-07 17:24:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:24:07] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:25:06 [end_date_ymd] => 2025-03-07 17:25:06 [RateCDR] => 1 ) [2025-03-07 17: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-03-07 14:25:06' and `end` < '2025-03-07 17: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-03-07 17:25:06] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-03-07 17:25:06] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 17:25:07] Production.ERROR: **Email Sent Status 1 [2025-03-07 17:25:07] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 17:25:07] Production.INFO: ==4073== Releasing lock... [2025-03-07 17:25:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:25:07] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 17:26:20] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:26:20 [end_date_ymd] => 2025-03-07 17:26:20 [RateCDR] => 1 ) [2025-03-07 17: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-03-07 14:26:20' and `end` < '2025-03-07 17: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-03-07 17:26:20] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-03-07 17:26:20] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 17:26:20] Production.ERROR: **Email Sent Status 1 [2025-03-07 17:26:20] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 17:26:21] Production.INFO: ==4160== Releasing lock... [2025-03-07 17:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 17:27:33] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:27:33 [end_date_ymd] => 2025-03-07 17:27:33 [RateCDR] => 1 ) [2025-03-07 17:27:33] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:27:33' and `end` < '2025-03-07 17:27:33' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:27:33] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-03-07 17:27:34] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 17:27:35] Production.ERROR: **Email Sent Status 1 [2025-03-07 17:27:35] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 17:27:38] Production.INFO: ==4244== Releasing lock... [2025-03-07 17:27:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:27:38] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 17:28:21] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:28:21 [end_date_ymd] => 2025-03-07 17:28:21 [RateCDR] => 1 ) [2025-03-07 17:28:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:28:21' and `end` < '2025-03-07 17:28:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:28:21] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-03-07 17:28:24] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 17:28:25] Production.ERROR: **Email Sent Status 1 [2025-03-07 17:28:25] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 17:28:27] Production.INFO: ==4304== Releasing lock... [2025-03-07 17:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:28:27] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 17:29:21] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:29:21 [end_date_ymd] => 2025-03-07 17:29:21 [RateCDR] => 1 ) [2025-03-07 17:29:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:29:21' and `end` < '2025-03-07 17:29:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:29:51] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2025-03-07 17:29:53] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 17:29:56] Production.ERROR: **Email Sent Status 1 [2025-03-07 17:29:56] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 17:29:58] Production.INFO: ==4377== Releasing lock... [2025-03-07 17:29:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:29:58] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 17:30:24] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:30:24 [end_date_ymd] => 2025-03-07 17:30:24 [RateCDR] => 1 ) [2025-03-07 17:30:24] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:30:24' and `end` < '2025-03-07 17:30:24' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:30:54] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2025-03-07 17:30:56] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 17:30:57] Production.ERROR: **Email Sent Status 1 [2025-03-07 17:30:57] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 17:30:58] Production.INFO: ==4451== Releasing lock... [2025-03-07 17:30:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:30:58] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 17:31:18] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:31:18 [end_date_ymd] => 2025-03-07 17:31:18 [RateCDR] => 1 ) [2025-03-07 17:31:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:31:18' and `end` < '2025-03-07 17:31:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:31:48] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2025-03-07 17:31:50] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 17:31:51] Production.ERROR: **Email Sent Status 1 [2025-03-07 17:31:51] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 17:31:54] Production.INFO: ==4563== Releasing lock... [2025-03-07 17:31:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:31:54] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 17:32:29] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:32:29 [end_date_ymd] => 2025-03-07 17:32:29 [RateCDR] => 1 ) [2025-03-07 17:32:29] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:32:29' and `end` < '2025-03-07 17:32:29' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:32:29] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-03-07 17:32:29] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 17:32:30] Production.ERROR: **Email Sent Status 1 [2025-03-07 17:32:30] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 17:32:31] Production.INFO: ==4646== Releasing lock... [2025-03-07 17:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:32:31] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:33:06 [end_date_ymd] => 2025-03-07 17:33:06 [RateCDR] => 1 ) [2025-03-07 17: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-03-07 14:33:06' and `end` < '2025-03-07 17: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-03-07 17:36:05] Production.INFO: count ==5623 [2025-03-07 17:36:11] Production.ERROR: pbx CDR StartTime 2025-03-07 14:33:06 - End Time 2025-03-07 17:33:06 [2025-03-07 17:36:11] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:36:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629366', 'tblTempUsageDetail_20' ) start [2025-03-07 17:36:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629366', 'tblTempUsageDetail_20' ) end [2025-03-07 17:36:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629366', 'tblTempVendorCDR_20' ) start [2025-03-07 17:36:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629366', 'tblTempVendorCDR_20' ) end [2025-03-07 17:36:11] Production.INFO: ProcessCDR(1,14629366,1,1,2) [2025-03-07 17:36:11] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:36:15] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:36:15] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:36:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:36:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629366', 'tblTempUsageDetail_20' ) start [2025-03-07 17:36:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629366', 'tblTempUsageDetail_20' ) end [2025-03-07 17:36:18] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:36:18] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:36:18] Production.INFO: ==4725== Releasing lock... [2025-03-07 17:36:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:36:18] Production.INFO: 70 MB #Memory Used# [2025-03-07 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:37:05 [end_date_ymd] => 2025-03-07 17:37:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:37:05' and `end` < '2025-03-07 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-03-07 17:37:21] Production.INFO: count ==5651 [2025-03-07 17:37:23] Production.ERROR: pbx CDR StartTime 2025-03-07 14:37:05 - End Time 2025-03-07 17:37:05 [2025-03-07 17:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629383', 'tblTempUsageDetail_20' ) start [2025-03-07 17:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629383', 'tblTempUsageDetail_20' ) end [2025-03-07 17:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629383', 'tblTempVendorCDR_20' ) start [2025-03-07 17:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629383', 'tblTempVendorCDR_20' ) end [2025-03-07 17:37:24] Production.INFO: ProcessCDR(1,14629383,1,1,2) [2025-03-07 17:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629383', 'tblTempUsageDetail_20' ) start [2025-03-07 17:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629383', 'tblTempUsageDetail_20' ) end [2025-03-07 17:37:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:37:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:37:30] Production.INFO: ==5025== Releasing lock... [2025-03-07 17:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:37:30] Production.INFO: 70.25 MB #Memory Used# [2025-03-07 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:38:05 [end_date_ymd] => 2025-03-07 17:38:05 [RateCDR] => 1 ) [2025-03-07 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:38:05' and `end` < '2025-03-07 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:38:18] Production.INFO: count ==5751 [2025-03-07 17:38:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:38:05 - End Time 2025-03-07 17:38:05 [2025-03-07 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629388', 'tblTempUsageDetail_20' ) start [2025-03-07 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629388', 'tblTempUsageDetail_20' ) end [2025-03-07 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629388', 'tblTempVendorCDR_20' ) start [2025-03-07 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629388', 'tblTempVendorCDR_20' ) end [2025-03-07 17:38:21] Production.INFO: ProcessCDR(1,14629388,1,1,2) [2025-03-07 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629388', 'tblTempUsageDetail_20' ) start [2025-03-07 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629388', 'tblTempUsageDetail_20' ) end [2025-03-07 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:38:27] Production.INFO: ==5100== Releasing lock... [2025-03-07 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:38:27] Production.INFO: 71 MB #Memory Used# [2025-03-07 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:39:05 [end_date_ymd] => 2025-03-07 17:39:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:39:05' and `end` < '2025-03-07 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-03-07 17:39:19] Production.INFO: count ==5746 [2025-03-07 17:39:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:39:05 - End Time 2025-03-07 17:39:05 [2025-03-07 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629393', 'tblTempUsageDetail_20' ) start [2025-03-07 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629393', 'tblTempUsageDetail_20' ) end [2025-03-07 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629393', 'tblTempVendorCDR_20' ) start [2025-03-07 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629393', 'tblTempVendorCDR_20' ) end [2025-03-07 17:39:22] Production.INFO: ProcessCDR(1,14629393,1,1,2) [2025-03-07 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629393', 'tblTempUsageDetail_20' ) start [2025-03-07 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629393', 'tblTempUsageDetail_20' ) end [2025-03-07 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:39:27] Production.INFO: ==5180== Releasing lock... [2025-03-07 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:39:27] Production.INFO: 71 MB #Memory Used# [2025-03-07 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:40:06 [end_date_ymd] => 2025-03-07 17:40:06 [RateCDR] => 1 ) [2025-03-07 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:40:06' and `end` < '2025-03-07 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:40:20] Production.INFO: count ==5717 [2025-03-07 17:40:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:40:06 - End Time 2025-03-07 17:40:06 [2025-03-07 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629399', 'tblTempUsageDetail_20' ) start [2025-03-07 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629399', 'tblTempUsageDetail_20' ) end [2025-03-07 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629399', 'tblTempVendorCDR_20' ) start [2025-03-07 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629399', 'tblTempVendorCDR_20' ) end [2025-03-07 17:40:22] Production.INFO: ProcessCDR(1,14629399,1,1,2) [2025-03-07 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629399', 'tblTempUsageDetail_20' ) start [2025-03-07 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629399', 'tblTempUsageDetail_20' ) end [2025-03-07 17:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:40:28] Production.INFO: ==5257== Releasing lock... [2025-03-07 17:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:40:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:41:06 [end_date_ymd] => 2025-03-07 17:41:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:41:06' and `end` < '2025-03-07 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-03-07 17:41:20] Production.INFO: count ==5743 [2025-03-07 17:41:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:41:06 - End Time 2025-03-07 17:41:06 [2025-03-07 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629404', 'tblTempUsageDetail_20' ) start [2025-03-07 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629404', 'tblTempUsageDetail_20' ) end [2025-03-07 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629404', 'tblTempVendorCDR_20' ) start [2025-03-07 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629404', 'tblTempVendorCDR_20' ) end [2025-03-07 17:41:22] Production.INFO: ProcessCDR(1,14629404,1,1,2) [2025-03-07 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629404', 'tblTempUsageDetail_20' ) start [2025-03-07 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629404', 'tblTempUsageDetail_20' ) end [2025-03-07 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:41:26] Production.INFO: ==5337== Releasing lock... [2025-03-07 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:41:26] Production.INFO: 71 MB #Memory Used# [2025-03-07 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:42:05 [end_date_ymd] => 2025-03-07 17:42:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:42:05' and `end` < '2025-03-07 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-03-07 17:42:18] Production.INFO: count ==5891 [2025-03-07 17:42:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:42:05 - End Time 2025-03-07 17:42:05 [2025-03-07 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629409', 'tblTempUsageDetail_20' ) start [2025-03-07 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629409', 'tblTempUsageDetail_20' ) end [2025-03-07 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629409', 'tblTempVendorCDR_20' ) start [2025-03-07 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629409', 'tblTempVendorCDR_20' ) end [2025-03-07 17:42:21] Production.INFO: ProcessCDR(1,14629409,1,1,2) [2025-03-07 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629409', 'tblTempUsageDetail_20' ) start [2025-03-07 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629409', 'tblTempUsageDetail_20' ) end [2025-03-07 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:42:25] Production.INFO: ==5418== Releasing lock... [2025-03-07 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:42:25] Production.INFO: 72 MB #Memory Used# [2025-03-07 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:43:06 [end_date_ymd] => 2025-03-07 17:43:06 [RateCDR] => 1 ) [2025-03-07 17:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:43:06' and `end` < '2025-03-07 17:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:43:19] Production.INFO: count ==5892 [2025-03-07 17:43:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:43:06 - End Time 2025-03-07 17:43:06 [2025-03-07 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629414', 'tblTempUsageDetail_20' ) start [2025-03-07 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629414', 'tblTempUsageDetail_20' ) end [2025-03-07 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629414', 'tblTempVendorCDR_20' ) start [2025-03-07 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629414', 'tblTempVendorCDR_20' ) end [2025-03-07 17:43:21] Production.INFO: ProcessCDR(1,14629414,1,1,2) [2025-03-07 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629414', 'tblTempUsageDetail_20' ) start [2025-03-07 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629414', 'tblTempUsageDetail_20' ) end [2025-03-07 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:43:27] Production.INFO: ==5496== Releasing lock... [2025-03-07 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:43:27] Production.INFO: 72 MB #Memory Used# [2025-03-07 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:44:05 [end_date_ymd] => 2025-03-07 17:44:05 [RateCDR] => 1 ) [2025-03-07 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:44:05' and `end` < '2025-03-07 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:44:18] Production.INFO: count ==5899 [2025-03-07 17:44:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:44:05 - End Time 2025-03-07 17:44:05 [2025-03-07 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629416', 'tblTempUsageDetail_20' ) start [2025-03-07 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629416', 'tblTempUsageDetail_20' ) end [2025-03-07 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629416', 'tblTempVendorCDR_20' ) start [2025-03-07 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629416', 'tblTempVendorCDR_20' ) end [2025-03-07 17:44:21] Production.INFO: ProcessCDR(1,14629416,1,1,2) [2025-03-07 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629416', 'tblTempUsageDetail_20' ) start [2025-03-07 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629416', 'tblTempUsageDetail_20' ) end [2025-03-07 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:44:27] Production.INFO: ==5575== Releasing lock... [2025-03-07 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:44:27] Production.INFO: 72 MB #Memory Used# [2025-03-07 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:45:06 [end_date_ymd] => 2025-03-07 17:45:06 [RateCDR] => 1 ) [2025-03-07 17: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-03-07 14:45:06' and `end` < '2025-03-07 17: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-03-07 17:45:19] Production.INFO: count ==5905 [2025-03-07 17:45:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:45:06 - End Time 2025-03-07 17:45:06 [2025-03-07 17:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629424', 'tblTempUsageDetail_20' ) start [2025-03-07 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629424', 'tblTempUsageDetail_20' ) end [2025-03-07 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629424', 'tblTempVendorCDR_20' ) start [2025-03-07 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629424', 'tblTempVendorCDR_20' ) end [2025-03-07 17:45:22] Production.INFO: ProcessCDR(1,14629424,1,1,2) [2025-03-07 17:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629424', 'tblTempUsageDetail_20' ) start [2025-03-07 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629424', 'tblTempUsageDetail_20' ) end [2025-03-07 17:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:45:27] Production.INFO: ==5661== Releasing lock... [2025-03-07 17:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:45:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:46:06 [end_date_ymd] => 2025-03-07 17:46:06 [RateCDR] => 1 ) [2025-03-07 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:46:06' and `end` < '2025-03-07 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:46:19] Production.INFO: count ==5931 [2025-03-07 17:46:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:46:06 - End Time 2025-03-07 17:46:06 [2025-03-07 17:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629429', 'tblTempUsageDetail_20' ) start [2025-03-07 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629429', 'tblTempUsageDetail_20' ) end [2025-03-07 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629429', 'tblTempVendorCDR_20' ) start [2025-03-07 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629429', 'tblTempVendorCDR_20' ) end [2025-03-07 17:46:22] Production.INFO: ProcessCDR(1,14629429,1,1,2) [2025-03-07 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629429', 'tblTempUsageDetail_20' ) start [2025-03-07 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629429', 'tblTempUsageDetail_20' ) end [2025-03-07 17:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:46:27] Production.INFO: ==5742== Releasing lock... [2025-03-07 17:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:46:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-07 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:47:06 [end_date_ymd] => 2025-03-07 17:47:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:47:06' and `end` < '2025-03-07 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-03-07 17:47:19] Production.INFO: count ==5939 [2025-03-07 17:47:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:47:06 - End Time 2025-03-07 17:47:06 [2025-03-07 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629434', 'tblTempUsageDetail_20' ) start [2025-03-07 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629434', 'tblTempUsageDetail_20' ) end [2025-03-07 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629434', 'tblTempVendorCDR_20' ) start [2025-03-07 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629434', 'tblTempVendorCDR_20' ) end [2025-03-07 17:47:21] Production.INFO: ProcessCDR(1,14629434,1,1,2) [2025-03-07 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629434', 'tblTempUsageDetail_20' ) start [2025-03-07 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629434', 'tblTempUsageDetail_20' ) end [2025-03-07 17:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:47:27] Production.INFO: ==5861== Releasing lock... [2025-03-07 17:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:47:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-07 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:48:06 [end_date_ymd] => 2025-03-07 17:48:06 [RateCDR] => 1 ) [2025-03-07 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:48:06' and `end` < '2025-03-07 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:48:20] Production.INFO: count ==5971 [2025-03-07 17:48:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:48:06 - End Time 2025-03-07 17:48:06 [2025-03-07 17:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629439', 'tblTempUsageDetail_20' ) start [2025-03-07 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629439', 'tblTempUsageDetail_20' ) end [2025-03-07 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629439', 'tblTempVendorCDR_20' ) start [2025-03-07 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629439', 'tblTempVendorCDR_20' ) end [2025-03-07 17:48:22] Production.INFO: ProcessCDR(1,14629439,1,1,2) [2025-03-07 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629439', 'tblTempUsageDetail_20' ) start [2025-03-07 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629439', 'tblTempUsageDetail_20' ) end [2025-03-07 17:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:48:28] Production.INFO: ==5945== Releasing lock... [2025-03-07 17:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:48:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:49:06 [end_date_ymd] => 2025-03-07 17:49:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:49:06' and `end` < '2025-03-07 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-03-07 17:49:19] Production.INFO: count ==5972 [2025-03-07 17:49:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:49:06 - End Time 2025-03-07 17:49:06 [2025-03-07 17:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629444', 'tblTempUsageDetail_20' ) start [2025-03-07 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629444', 'tblTempUsageDetail_20' ) end [2025-03-07 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629444', 'tblTempVendorCDR_20' ) start [2025-03-07 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629444', 'tblTempVendorCDR_20' ) end [2025-03-07 17:49:22] Production.INFO: ProcessCDR(1,14629444,1,1,2) [2025-03-07 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629444', 'tblTempUsageDetail_20' ) start [2025-03-07 17:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629444', 'tblTempUsageDetail_20' ) end [2025-03-07 17:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:49:28] Production.INFO: ==6024== Releasing lock... [2025-03-07 17:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:49:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-07 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:50:06 [end_date_ymd] => 2025-03-07 17:50:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:50:06' and `end` < '2025-03-07 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-03-07 17:50:20] Production.INFO: count ==6038 [2025-03-07 17:50:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:50:06 - End Time 2025-03-07 17:50:06 [2025-03-07 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629449', 'tblTempUsageDetail_20' ) start [2025-03-07 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629449', 'tblTempUsageDetail_20' ) end [2025-03-07 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629449', 'tblTempVendorCDR_20' ) start [2025-03-07 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629449', 'tblTempVendorCDR_20' ) end [2025-03-07 17:50:23] Production.INFO: ProcessCDR(1,14629449,1,1,2) [2025-03-07 17:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629449', 'tblTempUsageDetail_20' ) start [2025-03-07 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629449', 'tblTempUsageDetail_20' ) end [2025-03-07 17:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:50:29] Production.INFO: ==6101== Releasing lock... [2025-03-07 17:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:50:29] Production.INFO: 73.25 MB #Memory Used# [2025-03-07 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:51:05 [end_date_ymd] => 2025-03-07 17:51:05 [RateCDR] => 1 ) [2025-03-07 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:51:05' and `end` < '2025-03-07 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:51:18] Production.INFO: count ==6116 [2025-03-07 17:51:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:51:05 - End Time 2025-03-07 17:51:05 [2025-03-07 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629455', 'tblTempUsageDetail_20' ) start [2025-03-07 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629455', 'tblTempUsageDetail_20' ) end [2025-03-07 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629455', 'tblTempVendorCDR_20' ) start [2025-03-07 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629455', 'tblTempVendorCDR_20' ) end [2025-03-07 17:51:21] Production.INFO: ProcessCDR(1,14629455,1,1,2) [2025-03-07 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629455', 'tblTempUsageDetail_20' ) start [2025-03-07 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629455', 'tblTempUsageDetail_20' ) end [2025-03-07 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:51:25] Production.INFO: ==6179== Releasing lock... [2025-03-07 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:51:25] Production.INFO: 73.75 MB #Memory Used# [2025-03-07 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:52:05 [end_date_ymd] => 2025-03-07 17:52:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:52:05' and `end` < '2025-03-07 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-03-07 17:52:18] Production.INFO: count ==6110 [2025-03-07 17:52:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:52:05 - End Time 2025-03-07 17:52:05 [2025-03-07 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629460', 'tblTempUsageDetail_20' ) start [2025-03-07 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629460', 'tblTempUsageDetail_20' ) end [2025-03-07 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629460', 'tblTempVendorCDR_20' ) start [2025-03-07 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629460', 'tblTempVendorCDR_20' ) end [2025-03-07 17:52:21] Production.INFO: ProcessCDR(1,14629460,1,1,2) [2025-03-07 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629460', 'tblTempUsageDetail_20' ) start [2025-03-07 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629460', 'tblTempUsageDetail_20' ) end [2025-03-07 17:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:52:27] Production.INFO: ==6250== Releasing lock... [2025-03-07 17:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:52:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-07 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:53:06 [end_date_ymd] => 2025-03-07 17:53:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:53:06' and `end` < '2025-03-07 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-03-07 17:53:19] Production.INFO: count ==6151 [2025-03-07 17:53:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:53:06 - End Time 2025-03-07 17:53:06 [2025-03-07 17:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629465', 'tblTempUsageDetail_20' ) start [2025-03-07 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629465', 'tblTempUsageDetail_20' ) end [2025-03-07 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629465', 'tblTempVendorCDR_20' ) start [2025-03-07 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629465', 'tblTempVendorCDR_20' ) end [2025-03-07 17:53:22] Production.INFO: ProcessCDR(1,14629465,1,1,2) [2025-03-07 17:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629465', 'tblTempUsageDetail_20' ) start [2025-03-07 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629465', 'tblTempUsageDetail_20' ) end [2025-03-07 17:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:53:27] Production.INFO: ==6329== Releasing lock... [2025-03-07 17:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:53:27] Production.INFO: 74 MB #Memory Used# [2025-03-07 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:54:05 [end_date_ymd] => 2025-03-07 17:54:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:54:05' and `end` < '2025-03-07 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-03-07 17:54:18] Production.INFO: count ==6211 [2025-03-07 17:54:21] Production.ERROR: pbx CDR StartTime 2025-03-07 14:54:05 - End Time 2025-03-07 17:54:05 [2025-03-07 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629470', 'tblTempUsageDetail_20' ) start [2025-03-07 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629470', 'tblTempUsageDetail_20' ) end [2025-03-07 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629470', 'tblTempVendorCDR_20' ) start [2025-03-07 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629470', 'tblTempVendorCDR_20' ) end [2025-03-07 17:54:22] Production.INFO: ProcessCDR(1,14629470,1,1,2) [2025-03-07 17:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629470', 'tblTempUsageDetail_20' ) start [2025-03-07 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629470', 'tblTempUsageDetail_20' ) end [2025-03-07 17:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:54:27] Production.INFO: ==6412== Releasing lock... [2025-03-07 17:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:54:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-07 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:55:05 [end_date_ymd] => 2025-03-07 17:55:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 14:55:05' and `end` < '2025-03-07 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-03-07 17:55:19] Production.INFO: count ==6343 [2025-03-07 17:55:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:55:05 - End Time 2025-03-07 17:55:05 [2025-03-07 17:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629475', 'tblTempUsageDetail_20' ) start [2025-03-07 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629475', 'tblTempUsageDetail_20' ) end [2025-03-07 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629475', 'tblTempVendorCDR_20' ) start [2025-03-07 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629475', 'tblTempVendorCDR_20' ) end [2025-03-07 17:55:22] Production.INFO: ProcessCDR(1,14629475,1,1,2) [2025-03-07 17:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629475', 'tblTempUsageDetail_20' ) start [2025-03-07 17:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629475', 'tblTempUsageDetail_20' ) end [2025-03-07 17:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:55:28] Production.INFO: ==6486== Releasing lock... [2025-03-07 17:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:55:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-07 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:56:06 [end_date_ymd] => 2025-03-07 17:56:06 [RateCDR] => 1 ) [2025-03-07 17:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:56:06' and `end` < '2025-03-07 17:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:56:19] Production.INFO: count ==6387 [2025-03-07 17:56:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:56:06 - End Time 2025-03-07 17:56:06 [2025-03-07 17:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629480', 'tblTempUsageDetail_20' ) start [2025-03-07 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629480', 'tblTempUsageDetail_20' ) end [2025-03-07 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629480', 'tblTempVendorCDR_20' ) start [2025-03-07 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629480', 'tblTempVendorCDR_20' ) end [2025-03-07 17:56:23] Production.INFO: ProcessCDR(1,14629480,1,1,2) [2025-03-07 17:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629480', 'tblTempUsageDetail_20' ) start [2025-03-07 17:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629480', 'tblTempUsageDetail_20' ) end [2025-03-07 17:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:56:28] Production.INFO: ==6568== Releasing lock... [2025-03-07 17:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:56:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-07 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:57:06 [end_date_ymd] => 2025-03-07 17:57:06 [RateCDR] => 1 ) [2025-03-07 17: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-03-07 14:57:06' and `end` < '2025-03-07 17: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-03-07 17:57:19] Production.INFO: count ==6435 [2025-03-07 17:57:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:57:06 - End Time 2025-03-07 17:57:06 [2025-03-07 17:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629485', 'tblTempUsageDetail_20' ) start [2025-03-07 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629485', 'tblTempUsageDetail_20' ) end [2025-03-07 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629485', 'tblTempVendorCDR_20' ) start [2025-03-07 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629485', 'tblTempVendorCDR_20' ) end [2025-03-07 17:57:22] Production.INFO: ProcessCDR(1,14629485,1,1,2) [2025-03-07 17:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629485', 'tblTempUsageDetail_20' ) start [2025-03-07 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629485', 'tblTempUsageDetail_20' ) end [2025-03-07 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:57:26] Production.INFO: ==6650== Releasing lock... [2025-03-07 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:57:26] Production.INFO: 76 MB #Memory Used# [2025-03-07 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:58:05 [end_date_ymd] => 2025-03-07 17:58:05 [RateCDR] => 1 ) [2025-03-07 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 14:58:05' and `end` < '2025-03-07 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 17:58:19] Production.INFO: count ==6499 [2025-03-07 17:58:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:58:05 - End Time 2025-03-07 17:58:05 [2025-03-07 17:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629490', 'tblTempUsageDetail_20' ) start [2025-03-07 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629490', 'tblTempUsageDetail_20' ) end [2025-03-07 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629490', 'tblTempVendorCDR_20' ) start [2025-03-07 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629490', 'tblTempVendorCDR_20' ) end [2025-03-07 17:58:22] Production.INFO: ProcessCDR(1,14629490,1,1,2) [2025-03-07 17:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629490', 'tblTempUsageDetail_20' ) start [2025-03-07 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629490', 'tblTempUsageDetail_20' ) end [2025-03-07 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:58:26] Production.INFO: ==6734== Releasing lock... [2025-03-07 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:58:26] Production.INFO: 76.5 MB #Memory Used# [2025-03-07 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 14:59:06 [end_date_ymd] => 2025-03-07 17:59:06 [RateCDR] => 1 ) [2025-03-07 17: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-03-07 14:59:06' and `end` < '2025-03-07 17: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-03-07 17:59:19] Production.INFO: count ==6509 [2025-03-07 17:59:22] Production.ERROR: pbx CDR StartTime 2025-03-07 14:59:06 - End Time 2025-03-07 17:59:06 [2025-03-07 17:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629495', 'tblTempUsageDetail_20' ) start [2025-03-07 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629495', 'tblTempUsageDetail_20' ) end [2025-03-07 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629495', 'tblTempVendorCDR_20' ) start [2025-03-07 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629495', 'tblTempVendorCDR_20' ) end [2025-03-07 17:59:22] Production.INFO: ProcessCDR(1,14629495,1,1,2) [2025-03-07 17:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 17:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 17:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629495', 'tblTempUsageDetail_20' ) start [2025-03-07 17:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629495', 'tblTempUsageDetail_20' ) end [2025-03-07 17:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 17:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 17:59:28] Production.INFO: ==6813== Releasing lock... [2025-03-07 17:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 17:59:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-07 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:00:06 [end_date_ymd] => 2025-03-07 18:00:06 [RateCDR] => 1 ) [2025-03-07 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:00:06' and `end` < '2025-03-07 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:00:19] Production.INFO: count ==6531 [2025-03-07 18:00:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:00:06 - End Time 2025-03-07 18:00:06 [2025-03-07 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629500', 'tblTempUsageDetail_20' ) start [2025-03-07 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629500', 'tblTempUsageDetail_20' ) end [2025-03-07 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629500', 'tblTempVendorCDR_20' ) start [2025-03-07 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629500', 'tblTempVendorCDR_20' ) end [2025-03-07 18:00:23] Production.INFO: ProcessCDR(1,14629500,1,1,2) [2025-03-07 18:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629500', 'tblTempUsageDetail_20' ) start [2025-03-07 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629500', 'tblTempUsageDetail_20' ) end [2025-03-07 18:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:00:28] Production.INFO: ==6899== Releasing lock... [2025-03-07 18:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:00:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-07 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:01:06 [end_date_ymd] => 2025-03-07 18:01:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:01:06' and `end` < '2025-03-07 18: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-03-07 18:01:20] Production.INFO: count ==6551 [2025-03-07 18:01:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:01:06 - End Time 2025-03-07 18:01:06 [2025-03-07 18:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629506', 'tblTempUsageDetail_20' ) start [2025-03-07 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629506', 'tblTempUsageDetail_20' ) end [2025-03-07 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629506', 'tblTempVendorCDR_20' ) start [2025-03-07 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629506', 'tblTempVendorCDR_20' ) end [2025-03-07 18:01:23] Production.INFO: ProcessCDR(1,14629506,1,1,2) [2025-03-07 18:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629506', 'tblTempUsageDetail_20' ) start [2025-03-07 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629506', 'tblTempUsageDetail_20' ) end [2025-03-07 18:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:01:27] Production.INFO: ==7008== Releasing lock... [2025-03-07 18:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:01:27] Production.INFO: 77 MB #Memory Used# [2025-03-07 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:02:05 [end_date_ymd] => 2025-03-07 18:02:05 [RateCDR] => 1 ) [2025-03-07 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:02:05' and `end` < '2025-03-07 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:02:19] Production.INFO: count ==6554 [2025-03-07 18:02:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:02:05 - End Time 2025-03-07 18:02:05 [2025-03-07 18:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629511', 'tblTempUsageDetail_20' ) start [2025-03-07 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629511', 'tblTempUsageDetail_20' ) end [2025-03-07 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629511', 'tblTempVendorCDR_20' ) start [2025-03-07 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629511', 'tblTempVendorCDR_20' ) end [2025-03-07 18:02:22] Production.INFO: ProcessCDR(1,14629511,1,1,2) [2025-03-07 18:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629511', 'tblTempUsageDetail_20' ) start [2025-03-07 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629511', 'tblTempUsageDetail_20' ) end [2025-03-07 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:02:26] Production.INFO: ==7134== Releasing lock... [2025-03-07 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:02:26] Production.INFO: 77 MB #Memory Used# [2025-03-07 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:03:06 [end_date_ymd] => 2025-03-07 18:03:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:03:06' and `end` < '2025-03-07 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-03-07 18:03:20] Production.INFO: count ==6538 [2025-03-07 18:03:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:03:06 - End Time 2025-03-07 18:03:06 [2025-03-07 18:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629516', 'tblTempUsageDetail_20' ) start [2025-03-07 18:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629516', 'tblTempUsageDetail_20' ) end [2025-03-07 18:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629516', 'tblTempVendorCDR_20' ) start [2025-03-07 18:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629516', 'tblTempVendorCDR_20' ) end [2025-03-07 18:03:23] Production.INFO: ProcessCDR(1,14629516,1,1,2) [2025-03-07 18:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629516', 'tblTempUsageDetail_20' ) start [2025-03-07 18:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629516', 'tblTempUsageDetail_20' ) end [2025-03-07 18:03:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:03:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:03:29] Production.INFO: ==7223== Releasing lock... [2025-03-07 18:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:03:29] Production.INFO: 76.75 MB #Memory Used# [2025-03-07 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:04:06 [end_date_ymd] => 2025-03-07 18:04:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:04:06' and `end` < '2025-03-07 18:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:04:19] Production.INFO: count ==6567 [2025-03-07 18:04:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:04:06 - End Time 2025-03-07 18:04:06 [2025-03-07 18:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629521', 'tblTempUsageDetail_20' ) start [2025-03-07 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629521', 'tblTempUsageDetail_20' ) end [2025-03-07 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629521', 'tblTempVendorCDR_20' ) start [2025-03-07 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629521', 'tblTempVendorCDR_20' ) end [2025-03-07 18:04:23] Production.INFO: ProcessCDR(1,14629521,1,1,2) [2025-03-07 18:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629521', 'tblTempUsageDetail_20' ) start [2025-03-07 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629521', 'tblTempUsageDetail_20' ) end [2025-03-07 18:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:04:26] Production.INFO: ==7320== Releasing lock... [2025-03-07 18:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:04:26] Production.INFO: 77 MB #Memory Used# [2025-03-07 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:05:06 [end_date_ymd] => 2025-03-07 18:05:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:05:06' and `end` < '2025-03-07 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-03-07 18:05:19] Production.INFO: count ==6586 [2025-03-07 18:05:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:05:06 - End Time 2025-03-07 18:05:06 [2025-03-07 18:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629526', 'tblTempUsageDetail_20' ) start [2025-03-07 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629526', 'tblTempUsageDetail_20' ) end [2025-03-07 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629526', 'tblTempVendorCDR_20' ) start [2025-03-07 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629526', 'tblTempVendorCDR_20' ) end [2025-03-07 18:05:22] Production.INFO: ProcessCDR(1,14629526,1,1,2) [2025-03-07 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629526', 'tblTempUsageDetail_20' ) start [2025-03-07 18:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629526', 'tblTempUsageDetail_20' ) end [2025-03-07 18:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:05:28] Production.INFO: ==7433== Releasing lock... [2025-03-07 18:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:05:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-07 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:06:05 [end_date_ymd] => 2025-03-07 18:06:05 [RateCDR] => 1 ) [2025-03-07 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:06:05' and `end` < '2025-03-07 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:06:19] Production.INFO: count ==6611 [2025-03-07 18:06:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:06:05 - End Time 2025-03-07 18:06:05 [2025-03-07 18:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629531', 'tblTempUsageDetail_20' ) start [2025-03-07 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629531', 'tblTempUsageDetail_20' ) end [2025-03-07 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629531', 'tblTempVendorCDR_20' ) start [2025-03-07 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629531', 'tblTempVendorCDR_20' ) end [2025-03-07 18:06:22] Production.INFO: ProcessCDR(1,14629531,1,1,2) [2025-03-07 18:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629531', 'tblTempUsageDetail_20' ) start [2025-03-07 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629531', 'tblTempUsageDetail_20' ) end [2025-03-07 18:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:06:28] Production.INFO: ==7534== Releasing lock... [2025-03-07 18:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:06:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-07 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:07:06 [end_date_ymd] => 2025-03-07 18:07:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:07:06' and `end` < '2025-03-07 18: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-03-07 18:07:19] Production.INFO: count ==6643 [2025-03-07 18:07:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:07:06 - End Time 2025-03-07 18:07:06 [2025-03-07 18:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629536', 'tblTempUsageDetail_20' ) start [2025-03-07 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629536', 'tblTempUsageDetail_20' ) end [2025-03-07 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629536', 'tblTempVendorCDR_20' ) start [2025-03-07 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629536', 'tblTempVendorCDR_20' ) end [2025-03-07 18:07:22] Production.INFO: ProcessCDR(1,14629536,1,1,2) [2025-03-07 18:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629536', 'tblTempUsageDetail_20' ) start [2025-03-07 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629536', 'tblTempUsageDetail_20' ) end [2025-03-07 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:07:26] Production.INFO: ==7630== Releasing lock... [2025-03-07 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:07:26] Production.INFO: 77.75 MB #Memory Used# [2025-03-07 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:08:05 [end_date_ymd] => 2025-03-07 18:08:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:08:05' and `end` < '2025-03-07 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-03-07 18:08:18] Production.INFO: count ==6652 [2025-03-07 18:08:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:08:05 - End Time 2025-03-07 18:08:05 [2025-03-07 18:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629541', 'tblTempUsageDetail_20' ) start [2025-03-07 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629541', 'tblTempUsageDetail_20' ) end [2025-03-07 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629541', 'tblTempVendorCDR_20' ) start [2025-03-07 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629541', 'tblTempVendorCDR_20' ) end [2025-03-07 18:08:22] Production.INFO: ProcessCDR(1,14629541,1,1,2) [2025-03-07 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629541', 'tblTempUsageDetail_20' ) start [2025-03-07 18:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629541', 'tblTempUsageDetail_20' ) end [2025-03-07 18:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:08:28] Production.INFO: ==7728== Releasing lock... [2025-03-07 18:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:08:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-07 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:09:05 [end_date_ymd] => 2025-03-07 18:09:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:09:05' and `end` < '2025-03-07 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-03-07 18:09:18] Production.INFO: count ==6672 [2025-03-07 18:09:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:09:05 - End Time 2025-03-07 18:09:05 [2025-03-07 18:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629546', 'tblTempUsageDetail_20' ) start [2025-03-07 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629546', 'tblTempUsageDetail_20' ) end [2025-03-07 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629546', 'tblTempVendorCDR_20' ) start [2025-03-07 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629546', 'tblTempVendorCDR_20' ) end [2025-03-07 18:09:22] Production.INFO: ProcessCDR(1,14629546,1,1,2) [2025-03-07 18:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629546', 'tblTempUsageDetail_20' ) start [2025-03-07 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629546', 'tblTempUsageDetail_20' ) end [2025-03-07 18:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:09:27] Production.INFO: ==7817== Releasing lock... [2025-03-07 18:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:09:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-07 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:10:06 [end_date_ymd] => 2025-03-07 18:10:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:10:06' and `end` < '2025-03-07 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-03-07 18:10:20] Production.INFO: count ==6659 [2025-03-07 18:10:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:10:06 - End Time 2025-03-07 18:10:06 [2025-03-07 18:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629551', 'tblTempUsageDetail_20' ) start [2025-03-07 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629551', 'tblTempUsageDetail_20' ) end [2025-03-07 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629551', 'tblTempVendorCDR_20' ) start [2025-03-07 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629551', 'tblTempVendorCDR_20' ) end [2025-03-07 18:10:23] Production.INFO: ProcessCDR(1,14629551,1,1,2) [2025-03-07 18:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629551', 'tblTempUsageDetail_20' ) start [2025-03-07 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629551', 'tblTempUsageDetail_20' ) end [2025-03-07 18:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:10:28] Production.INFO: ==7906== Releasing lock... [2025-03-07 18:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:10:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-07 18:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:11:06 [end_date_ymd] => 2025-03-07 18:11:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:11:06' and `end` < '2025-03-07 18: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-03-07 18:11:19] Production.INFO: count ==6732 [2025-03-07 18:11:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:11:06 - End Time 2025-03-07 18:11:06 [2025-03-07 18:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629557', 'tblTempUsageDetail_20' ) start [2025-03-07 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629557', 'tblTempUsageDetail_20' ) end [2025-03-07 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629557', 'tblTempVendorCDR_20' ) start [2025-03-07 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629557', 'tblTempVendorCDR_20' ) end [2025-03-07 18:11:23] Production.INFO: ProcessCDR(1,14629557,1,1,2) [2025-03-07 18:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629557', 'tblTempUsageDetail_20' ) start [2025-03-07 18:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629557', 'tblTempUsageDetail_20' ) end [2025-03-07 18:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:11:28] Production.INFO: ==7990== Releasing lock... [2025-03-07 18:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:11:28] Production.INFO: 78.25 MB #Memory Used# [2025-03-07 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:12:05 [end_date_ymd] => 2025-03-07 18:12:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:12:05' and `end` < '2025-03-07 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-03-07 18:12:19] Production.INFO: count ==6720 [2025-03-07 18:12:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:12:05 - End Time 2025-03-07 18:12:05 [2025-03-07 18:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629562', 'tblTempUsageDetail_20' ) start [2025-03-07 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629562', 'tblTempUsageDetail_20' ) end [2025-03-07 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629562', 'tblTempVendorCDR_20' ) start [2025-03-07 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629562', 'tblTempVendorCDR_20' ) end [2025-03-07 18:12:22] Production.INFO: ProcessCDR(1,14629562,1,1,2) [2025-03-07 18:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629562', 'tblTempUsageDetail_20' ) start [2025-03-07 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629562', 'tblTempUsageDetail_20' ) end [2025-03-07 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:12:27] Production.INFO: ==8075== Releasing lock... [2025-03-07 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:12:27] Production.INFO: 78.25 MB #Memory Used# [2025-03-07 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:13:06 [end_date_ymd] => 2025-03-07 18:13:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:13:06' and `end` < '2025-03-07 18: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-03-07 18:13:19] Production.INFO: count ==6775 [2025-03-07 18:13:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:13:06 - End Time 2025-03-07 18:13:06 [2025-03-07 18:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629567', 'tblTempUsageDetail_20' ) start [2025-03-07 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629567', 'tblTempUsageDetail_20' ) end [2025-03-07 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629567', 'tblTempVendorCDR_20' ) start [2025-03-07 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629567', 'tblTempVendorCDR_20' ) end [2025-03-07 18:13:23] Production.INFO: ProcessCDR(1,14629567,1,1,2) [2025-03-07 18:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629567', 'tblTempUsageDetail_20' ) start [2025-03-07 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629567', 'tblTempUsageDetail_20' ) end [2025-03-07 18:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:13:27] Production.INFO: ==8168== Releasing lock... [2025-03-07 18:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:13:27] Production.INFO: 78.75 MB #Memory Used# [2025-03-07 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:14:06 [end_date_ymd] => 2025-03-07 18:14:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:14:06' and `end` < '2025-03-07 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-03-07 18:14:19] Production.INFO: count ==6792 [2025-03-07 18:14:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:14:06 - End Time 2025-03-07 18:14:06 [2025-03-07 18:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629572', 'tblTempUsageDetail_20' ) start [2025-03-07 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629572', 'tblTempUsageDetail_20' ) end [2025-03-07 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629572', 'tblTempVendorCDR_20' ) start [2025-03-07 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629572', 'tblTempVendorCDR_20' ) end [2025-03-07 18:14:22] Production.INFO: ProcessCDR(1,14629572,1,1,2) [2025-03-07 18:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629572', 'tblTempUsageDetail_20' ) start [2025-03-07 18:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629572', 'tblTempUsageDetail_20' ) end [2025-03-07 18:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:14:28] Production.INFO: ==8250== Releasing lock... [2025-03-07 18:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:14:28] Production.INFO: 78.75 MB #Memory Used# [2025-03-07 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:15:06 [end_date_ymd] => 2025-03-07 18:15:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:15:06' and `end` < '2025-03-07 18: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-03-07 18:15:20] Production.INFO: count ==6849 [2025-03-07 18:15:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:15:06 - End Time 2025-03-07 18:15:06 [2025-03-07 18:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629577', 'tblTempUsageDetail_20' ) start [2025-03-07 18:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629577', 'tblTempUsageDetail_20' ) end [2025-03-07 18:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629577', 'tblTempVendorCDR_20' ) start [2025-03-07 18:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629577', 'tblTempVendorCDR_20' ) end [2025-03-07 18:15:23] Production.INFO: ProcessCDR(1,14629577,1,1,2) [2025-03-07 18:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629577', 'tblTempUsageDetail_20' ) start [2025-03-07 18:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629577', 'tblTempUsageDetail_20' ) end [2025-03-07 18:15:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:15:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:15:29] Production.INFO: ==8333== Releasing lock... [2025-03-07 18:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:15:29] Production.INFO: 79.25 MB #Memory Used# [2025-03-07 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:16:05 [end_date_ymd] => 2025-03-07 18:16:05 [RateCDR] => 1 ) [2025-03-07 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:16:05' and `end` < '2025-03-07 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:16:19] Production.INFO: count ==6865 [2025-03-07 18:16:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:16:05 - End Time 2025-03-07 18:16:05 [2025-03-07 18:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629582', 'tblTempUsageDetail_20' ) start [2025-03-07 18:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629582', 'tblTempUsageDetail_20' ) end [2025-03-07 18:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629582', 'tblTempVendorCDR_20' ) start [2025-03-07 18:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629582', 'tblTempVendorCDR_20' ) end [2025-03-07 18:16:23] Production.INFO: ProcessCDR(1,14629582,1,1,2) [2025-03-07 18:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629582', 'tblTempUsageDetail_20' ) start [2025-03-07 18:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629582', 'tblTempUsageDetail_20' ) end [2025-03-07 18:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:16:28] Production.INFO: ==8418== Releasing lock... [2025-03-07 18:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:16:28] Production.INFO: 79.25 MB #Memory Used# [2025-03-07 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:17:06 [end_date_ymd] => 2025-03-07 18:17:06 [RateCDR] => 1 ) [2025-03-07 18:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:17:06' and `end` < '2025-03-07 18:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:17:19] Production.INFO: count ==6892 [2025-03-07 18:17:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:17:06 - End Time 2025-03-07 18:17:06 [2025-03-07 18:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629587', 'tblTempUsageDetail_20' ) start [2025-03-07 18:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629587', 'tblTempUsageDetail_20' ) end [2025-03-07 18:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629587', 'tblTempVendorCDR_20' ) start [2025-03-07 18:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629587', 'tblTempVendorCDR_20' ) end [2025-03-07 18:17:23] Production.INFO: ProcessCDR(1,14629587,1,1,2) [2025-03-07 18:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629587', 'tblTempUsageDetail_20' ) start [2025-03-07 18:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629587', 'tblTempUsageDetail_20' ) end [2025-03-07 18:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:17:27] Production.INFO: ==8503== Releasing lock... [2025-03-07 18:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:17:27] Production.INFO: 79.5 MB #Memory Used# [2025-03-07 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:18:05 [end_date_ymd] => 2025-03-07 18:18:05 [RateCDR] => 1 ) [2025-03-07 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:18:05' and `end` < '2025-03-07 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:18:19] Production.INFO: count ==6863 [2025-03-07 18:18:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:18:05 - End Time 2025-03-07 18:18:05 [2025-03-07 18:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629592', 'tblTempUsageDetail_20' ) start [2025-03-07 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629592', 'tblTempUsageDetail_20' ) end [2025-03-07 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629592', 'tblTempVendorCDR_20' ) start [2025-03-07 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629592', 'tblTempVendorCDR_20' ) end [2025-03-07 18:18:23] Production.INFO: ProcessCDR(1,14629592,1,1,2) [2025-03-07 18:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629592', 'tblTempUsageDetail_20' ) start [2025-03-07 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629592', 'tblTempUsageDetail_20' ) end [2025-03-07 18:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:18:27] Production.INFO: ==8627== Releasing lock... [2025-03-07 18:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:18:27] Production.INFO: 79.25 MB #Memory Used# [2025-03-07 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:19:06 [end_date_ymd] => 2025-03-07 18:19:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:19:06' and `end` < '2025-03-07 18: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-03-07 18:19:18] Production.INFO: count ==0 [2025-03-07 18:19:18] Production.ERROR: pbx CDR StartTime 2025-03-07 15:19:06 - End Time 2025-03-07 18:19:06 [2025-03-07 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629597', 'tblTempUsageDetail_20' ) start [2025-03-07 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629597', 'tblTempUsageDetail_20' ) end [2025-03-07 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629597', 'tblTempVendorCDR_20' ) start [2025-03-07 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629597', 'tblTempVendorCDR_20' ) end [2025-03-07 18:19:18] Production.INFO: ProcessCDR(1,14629597,1,1,2) [2025-03-07 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629597', 'tblTempUsageDetail_20' ) start [2025-03-07 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629597', 'tblTempUsageDetail_20' ) end [2025-03-07 18:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:19:22] Production.INFO: ==8709== Releasing lock... [2025-03-07 18:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:19:22] Production.INFO: 27.5 MB #Memory Used# [2025-03-07 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:20:06 [end_date_ymd] => 2025-03-07 18:20:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:20:06' and `end` < '2025-03-07 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-03-07 18:20:06] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-03-07 18:20:06] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-07 18:20:07] Production.ERROR: **Email Sent Status 1 [2025-03-07 18:20:07] Production.ERROR: **Email Sent message Email has been sent [2025-03-07 18:20:07] Production.INFO: ==8796== Releasing lock... [2025-03-07 18:20:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:20:07] Production.INFO: 29.5 MB #Memory Used# [2025-03-07 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:21:06 [end_date_ymd] => 2025-03-07 18:21:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:21:06' and `end` < '2025-03-07 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-03-07 18:21:36] Production.INFO: count ==6690 [2025-03-07 18:21:40] Production.ERROR: pbx CDR StartTime 2025-03-07 15:21:06 - End Time 2025-03-07 18:21:06 [2025-03-07 18:21:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:21:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629608', 'tblTempUsageDetail_20' ) start [2025-03-07 18:21:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629608', 'tblTempUsageDetail_20' ) end [2025-03-07 18:21:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629608', 'tblTempVendorCDR_20' ) start [2025-03-07 18:21:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629608', 'tblTempVendorCDR_20' ) end [2025-03-07 18:21:40] Production.INFO: ProcessCDR(1,14629608,1,1,2) [2025-03-07 18:21:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:21:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:21:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:21:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:21:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629608', 'tblTempUsageDetail_20' ) start [2025-03-07 18:21:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629608', 'tblTempUsageDetail_20' ) end [2025-03-07 18:21:46] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:21:46] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:21:46] Production.INFO: ==8882== Releasing lock... [2025-03-07 18:21:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:21:46] Production.INFO: 78 MB #Memory Used# [2025-03-07 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:22:05 [end_date_ymd] => 2025-03-07 18:22:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:22:05' and `end` < '2025-03-07 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-03-07 18:22:19] Production.INFO: count ==6699 [2025-03-07 18:22:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:22:05 - End Time 2025-03-07 18:22:05 [2025-03-07 18:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629613', 'tblTempUsageDetail_20' ) start [2025-03-07 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629613', 'tblTempUsageDetail_20' ) end [2025-03-07 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629613', 'tblTempVendorCDR_20' ) start [2025-03-07 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629613', 'tblTempVendorCDR_20' ) end [2025-03-07 18:22:22] Production.INFO: ProcessCDR(1,14629613,1,1,2) [2025-03-07 18:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629613', 'tblTempUsageDetail_20' ) start [2025-03-07 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629613', 'tblTempUsageDetail_20' ) end [2025-03-07 18:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:22:27] Production.INFO: ==8971== Releasing lock... [2025-03-07 18:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:22:27] Production.INFO: 78 MB #Memory Used# [2025-03-07 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:23:06 [end_date_ymd] => 2025-03-07 18:23:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:23:06' and `end` < '2025-03-07 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-03-07 18:23:19] Production.INFO: count ==6688 [2025-03-07 18:23:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:23:06 - End Time 2025-03-07 18:23:06 [2025-03-07 18:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629618', 'tblTempUsageDetail_20' ) start [2025-03-07 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629618', 'tblTempUsageDetail_20' ) end [2025-03-07 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629618', 'tblTempVendorCDR_20' ) start [2025-03-07 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629618', 'tblTempVendorCDR_20' ) end [2025-03-07 18:23:23] Production.INFO: ProcessCDR(1,14629618,1,1,2) [2025-03-07 18:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629618', 'tblTempUsageDetail_20' ) start [2025-03-07 18:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629618', 'tblTempUsageDetail_20' ) end [2025-03-07 18:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:23:28] Production.INFO: ==9055== Releasing lock... [2025-03-07 18:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:23:28] Production.INFO: 78 MB #Memory Used# [2025-03-07 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:24:06 [end_date_ymd] => 2025-03-07 18:24:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:24:06' and `end` < '2025-03-07 18: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-03-07 18:24:19] Production.INFO: count ==6708 [2025-03-07 18:24:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:24:06 - End Time 2025-03-07 18:24:06 [2025-03-07 18:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629623', 'tblTempUsageDetail_20' ) start [2025-03-07 18:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629623', 'tblTempUsageDetail_20' ) end [2025-03-07 18:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629623', 'tblTempVendorCDR_20' ) start [2025-03-07 18:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629623', 'tblTempVendorCDR_20' ) end [2025-03-07 18:24:23] Production.INFO: ProcessCDR(1,14629623,1,1,2) [2025-03-07 18:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629623', 'tblTempUsageDetail_20' ) start [2025-03-07 18:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629623', 'tblTempUsageDetail_20' ) end [2025-03-07 18:24:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:24:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:24:29] Production.INFO: ==9143== Releasing lock... [2025-03-07 18:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:24:29] Production.INFO: 78.25 MB #Memory Used# [2025-03-07 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:25:06 [end_date_ymd] => 2025-03-07 18:25:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:25:06' and `end` < '2025-03-07 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-03-07 18:25:20] Production.INFO: count ==6712 [2025-03-07 18:25:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:25:06 - End Time 2025-03-07 18:25:06 [2025-03-07 18:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629628', 'tblTempUsageDetail_20' ) start [2025-03-07 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629628', 'tblTempUsageDetail_20' ) end [2025-03-07 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629628', 'tblTempVendorCDR_20' ) start [2025-03-07 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629628', 'tblTempVendorCDR_20' ) end [2025-03-07 18:25:24] Production.INFO: ProcessCDR(1,14629628,1,1,2) [2025-03-07 18:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629628', 'tblTempUsageDetail_20' ) start [2025-03-07 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629628', 'tblTempUsageDetail_20' ) end [2025-03-07 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:25:29] Production.INFO: ==9230== Releasing lock... [2025-03-07 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:25:29] Production.INFO: 78.25 MB #Memory Used# [2025-03-07 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:26:05 [end_date_ymd] => 2025-03-07 18:26:05 [RateCDR] => 1 ) [2025-03-07 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:26:05' and `end` < '2025-03-07 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:26:19] Production.INFO: count ==6775 [2025-03-07 18:26:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:26:05 - End Time 2025-03-07 18:26:05 [2025-03-07 18:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629633', 'tblTempUsageDetail_20' ) start [2025-03-07 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629633', 'tblTempUsageDetail_20' ) end [2025-03-07 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629633', 'tblTempVendorCDR_20' ) start [2025-03-07 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629633', 'tblTempVendorCDR_20' ) end [2025-03-07 18:26:22] Production.INFO: ProcessCDR(1,14629633,1,1,2) [2025-03-07 18:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629633', 'tblTempUsageDetail_20' ) start [2025-03-07 18:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629633', 'tblTempUsageDetail_20' ) end [2025-03-07 18:26:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:26:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:26:29] Production.INFO: ==9312== Releasing lock... [2025-03-07 18:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:26:29] Production.INFO: 78.5 MB #Memory Used# [2025-03-07 18:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:27:06 [end_date_ymd] => 2025-03-07 18:27:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:27:06' and `end` < '2025-03-07 18: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-03-07 18:27:19] Production.INFO: count ==6770 [2025-03-07 18:27:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:27:06 - End Time 2025-03-07 18:27:06 [2025-03-07 18:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629638', 'tblTempUsageDetail_20' ) start [2025-03-07 18:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629638', 'tblTempUsageDetail_20' ) end [2025-03-07 18:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629638', 'tblTempVendorCDR_20' ) start [2025-03-07 18:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629638', 'tblTempVendorCDR_20' ) end [2025-03-07 18:27:23] Production.INFO: ProcessCDR(1,14629638,1,1,2) [2025-03-07 18:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629638', 'tblTempUsageDetail_20' ) start [2025-03-07 18:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629638', 'tblTempUsageDetail_20' ) end [2025-03-07 18:27:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:27:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:27:29] Production.INFO: ==9389== Releasing lock... [2025-03-07 18:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:27:29] Production.INFO: 78.5 MB #Memory Used# [2025-03-07 18:28:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:28:07 [end_date_ymd] => 2025-03-07 18:28:07 [RateCDR] => 1 ) [2025-03-07 18:28: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-03-07 15:28:07' and `end` < '2025-03-07 18:28: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-03-07 18:28:20] Production.INFO: count ==6887 [2025-03-07 18:28:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:28:07 - End Time 2025-03-07 18:28:07 [2025-03-07 18:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629643', 'tblTempUsageDetail_20' ) start [2025-03-07 18:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629643', 'tblTempUsageDetail_20' ) end [2025-03-07 18:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629643', 'tblTempVendorCDR_20' ) start [2025-03-07 18:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629643', 'tblTempVendorCDR_20' ) end [2025-03-07 18:28:23] Production.INFO: ProcessCDR(1,14629643,1,1,2) [2025-03-07 18:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629643', 'tblTempUsageDetail_20' ) start [2025-03-07 18:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629643', 'tblTempUsageDetail_20' ) end [2025-03-07 18:28:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:28:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:28:30] Production.INFO: ==9471== Releasing lock... [2025-03-07 18:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:28:30] Production.INFO: 79.5 MB #Memory Used# [2025-03-07 18:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:29:06 [end_date_ymd] => 2025-03-07 18:29:06 [RateCDR] => 1 ) [2025-03-07 18:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:29:06' and `end` < '2025-03-07 18:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:29:19] Production.INFO: count ==6890 [2025-03-07 18:29:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:29:06 - End Time 2025-03-07 18:29:06 [2025-03-07 18:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629648', 'tblTempUsageDetail_20' ) start [2025-03-07 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629648', 'tblTempUsageDetail_20' ) end [2025-03-07 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629648', 'tblTempVendorCDR_20' ) start [2025-03-07 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629648', 'tblTempVendorCDR_20' ) end [2025-03-07 18:29:23] Production.INFO: ProcessCDR(1,14629648,1,1,2) [2025-03-07 18:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629648', 'tblTempUsageDetail_20' ) start [2025-03-07 18:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629648', 'tblTempUsageDetail_20' ) end [2025-03-07 18:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:29:28] Production.INFO: ==9555== Releasing lock... [2025-03-07 18:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:29:28] Production.INFO: 79.5 MB #Memory Used# [2025-03-07 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:30:06 [end_date_ymd] => 2025-03-07 18:30:06 [RateCDR] => 1 ) [2025-03-07 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:30:06' and `end` < '2025-03-07 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:30:20] Production.INFO: count ==6921 [2025-03-07 18:30:24] Production.ERROR: pbx CDR StartTime 2025-03-07 15:30:06 - End Time 2025-03-07 18:30:06 [2025-03-07 18:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629654', 'tblTempUsageDetail_20' ) start [2025-03-07 18:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629654', 'tblTempUsageDetail_20' ) end [2025-03-07 18:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629654', 'tblTempVendorCDR_20' ) start [2025-03-07 18:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629654', 'tblTempVendorCDR_20' ) end [2025-03-07 18:30:24] Production.INFO: ProcessCDR(1,14629654,1,1,2) [2025-03-07 18:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629654', 'tblTempUsageDetail_20' ) start [2025-03-07 18:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629654', 'tblTempUsageDetail_20' ) end [2025-03-07 18:30:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:30:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:30:30] Production.INFO: ==9658== Releasing lock... [2025-03-07 18:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:30:30] Production.INFO: 79.75 MB #Memory Used# [2025-03-07 18:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:31:06 [end_date_ymd] => 2025-03-07 18:31:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:31:06' and `end` < '2025-03-07 18: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-03-07 18:31:19] Production.INFO: count ==6939 [2025-03-07 18:31:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:31:06 - End Time 2025-03-07 18:31:06 [2025-03-07 18:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629659', 'tblTempUsageDetail_20' ) start [2025-03-07 18:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629659', 'tblTempUsageDetail_20' ) end [2025-03-07 18:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629659', 'tblTempVendorCDR_20' ) start [2025-03-07 18:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629659', 'tblTempVendorCDR_20' ) end [2025-03-07 18:31:23] Production.INFO: ProcessCDR(1,14629659,1,1,2) [2025-03-07 18:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629659', 'tblTempUsageDetail_20' ) start [2025-03-07 18:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629659', 'tblTempUsageDetail_20' ) end [2025-03-07 18:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:31:28] Production.INFO: ==9739== Releasing lock... [2025-03-07 18:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:31:28] Production.INFO: 79.75 MB #Memory Used# [2025-03-07 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:32:05 [end_date_ymd] => 2025-03-07 18:32:05 [RateCDR] => 1 ) [2025-03-07 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:32:05' and `end` < '2025-03-07 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:32:19] Production.INFO: count ==7088 [2025-03-07 18:32:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:32:05 - End Time 2025-03-07 18:32:05 [2025-03-07 18:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629664', 'tblTempUsageDetail_20' ) start [2025-03-07 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629664', 'tblTempUsageDetail_20' ) end [2025-03-07 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629664', 'tblTempVendorCDR_20' ) start [2025-03-07 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629664', 'tblTempVendorCDR_20' ) end [2025-03-07 18:32:23] Production.INFO: ProcessCDR(1,14629664,1,1,2) [2025-03-07 18:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629664', 'tblTempUsageDetail_20' ) start [2025-03-07 18:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629664', 'tblTempUsageDetail_20' ) end [2025-03-07 18:32:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:32:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:32:29] Production.INFO: ==9818== Releasing lock... [2025-03-07 18:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:32:29] Production.INFO: 81.5 MB #Memory Used# [2025-03-07 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:33:05 [end_date_ymd] => 2025-03-07 18:33:05 [RateCDR] => 1 ) [2025-03-07 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:33:05' and `end` < '2025-03-07 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:33:19] Production.INFO: count ==7264 [2025-03-07 18:33:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:33:05 - End Time 2025-03-07 18:33:05 [2025-03-07 18:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629669', 'tblTempUsageDetail_20' ) start [2025-03-07 18:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629669', 'tblTempUsageDetail_20' ) end [2025-03-07 18:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629669', 'tblTempVendorCDR_20' ) start [2025-03-07 18:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629669', 'tblTempVendorCDR_20' ) end [2025-03-07 18:33:23] Production.INFO: ProcessCDR(1,14629669,1,1,2) [2025-03-07 18:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629669', 'tblTempUsageDetail_20' ) start [2025-03-07 18:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629669', 'tblTempUsageDetail_20' ) end [2025-03-07 18:33:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:33:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:33:30] Production.INFO: ==9935== Releasing lock... [2025-03-07 18:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:33:30] Production.INFO: 82.75 MB #Memory Used# [2025-03-07 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:34:06 [end_date_ymd] => 2025-03-07 18:34:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:34:06' and `end` < '2025-03-07 18: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-03-07 18:34:19] Production.INFO: count ==7478 [2025-03-07 18:34:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:34:06 - End Time 2025-03-07 18:34:06 [2025-03-07 18:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629674', 'tblTempUsageDetail_20' ) start [2025-03-07 18:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629674', 'tblTempUsageDetail_20' ) end [2025-03-07 18:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629674', 'tblTempVendorCDR_20' ) start [2025-03-07 18:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629674', 'tblTempVendorCDR_20' ) end [2025-03-07 18:34:23] Production.INFO: ProcessCDR(1,14629674,1,1,2) [2025-03-07 18:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629674', 'tblTempUsageDetail_20' ) start [2025-03-07 18:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629674', 'tblTempUsageDetail_20' ) end [2025-03-07 18:34:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:34:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:34:30] Production.INFO: ==10011== Releasing lock... [2025-03-07 18:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:34:30] Production.INFO: 84.25 MB #Memory Used# [2025-03-07 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:35:06 [end_date_ymd] => 2025-03-07 18:35:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:35:06' and `end` < '2025-03-07 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-03-07 18:35:20] Production.INFO: count ==7473 [2025-03-07 18:35:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:35:06 - End Time 2025-03-07 18:35:06 [2025-03-07 18:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629679', 'tblTempUsageDetail_20' ) start [2025-03-07 18:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629679', 'tblTempUsageDetail_20' ) end [2025-03-07 18:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629679', 'tblTempVendorCDR_20' ) start [2025-03-07 18:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629679', 'tblTempVendorCDR_20' ) end [2025-03-07 18:35:24] Production.INFO: ProcessCDR(1,14629679,1,1,2) [2025-03-07 18:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629679', 'tblTempUsageDetail_20' ) start [2025-03-07 18:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629679', 'tblTempUsageDetail_20' ) end [2025-03-07 18:35:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:35:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:35:29] Production.INFO: ==10092== Releasing lock... [2025-03-07 18:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:35:29] Production.INFO: 84.25 MB #Memory Used# [2025-03-07 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:36:05 [end_date_ymd] => 2025-03-07 18:36:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:36:05' and `end` < '2025-03-07 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-03-07 18:36:18] Production.INFO: count ==7555 [2025-03-07 18:36:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:36:05 - End Time 2025-03-07 18:36:05 [2025-03-07 18:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629684', 'tblTempUsageDetail_20' ) start [2025-03-07 18:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629684', 'tblTempUsageDetail_20' ) end [2025-03-07 18:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629684', 'tblTempVendorCDR_20' ) start [2025-03-07 18:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629684', 'tblTempVendorCDR_20' ) end [2025-03-07 18:36:23] Production.INFO: ProcessCDR(1,14629684,1,1,2) [2025-03-07 18:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629684', 'tblTempUsageDetail_20' ) start [2025-03-07 18:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629684', 'tblTempUsageDetail_20' ) end [2025-03-07 18:36:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:36:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:36:29] Production.INFO: ==10166== Releasing lock... [2025-03-07 18:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:36:29] Production.INFO: 85 MB #Memory Used# [2025-03-07 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:37:06 [end_date_ymd] => 2025-03-07 18:37:06 [RateCDR] => 1 ) [2025-03-07 18:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:37:06' and `end` < '2025-03-07 18:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:37:19] Production.INFO: count ==7558 [2025-03-07 18:37:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:37:06 - End Time 2025-03-07 18:37:06 [2025-03-07 18:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629689', 'tblTempUsageDetail_20' ) start [2025-03-07 18:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629689', 'tblTempUsageDetail_20' ) end [2025-03-07 18:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629689', 'tblTempVendorCDR_20' ) start [2025-03-07 18:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629689', 'tblTempVendorCDR_20' ) end [2025-03-07 18:37:23] Production.INFO: ProcessCDR(1,14629689,1,1,2) [2025-03-07 18:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629689', 'tblTempUsageDetail_20' ) start [2025-03-07 18:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629689', 'tblTempUsageDetail_20' ) end [2025-03-07 18:37:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:37:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:37:29] Production.INFO: ==10243== Releasing lock... [2025-03-07 18:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:37:29] Production.INFO: 85 MB #Memory Used# [2025-03-07 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:38:05 [end_date_ymd] => 2025-03-07 18:38:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:38:05' and `end` < '2025-03-07 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-03-07 18:38:19] Production.INFO: count ==7583 [2025-03-07 18:38:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:38:05 - End Time 2025-03-07 18:38:05 [2025-03-07 18:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629694', 'tblTempUsageDetail_20' ) start [2025-03-07 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629694', 'tblTempUsageDetail_20' ) end [2025-03-07 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629694', 'tblTempVendorCDR_20' ) start [2025-03-07 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629694', 'tblTempVendorCDR_20' ) end [2025-03-07 18:38:23] Production.INFO: ProcessCDR(1,14629694,1,1,2) [2025-03-07 18:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629694', 'tblTempUsageDetail_20' ) start [2025-03-07 18:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629694', 'tblTempUsageDetail_20' ) end [2025-03-07 18:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:38:28] Production.INFO: ==10325== Releasing lock... [2025-03-07 18:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:38:28] Production.INFO: 85.25 MB #Memory Used# [2025-03-07 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:39:06 [end_date_ymd] => 2025-03-07 18:39:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:39:06' and `end` < '2025-03-07 18: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-03-07 18:39:20] Production.INFO: count ==7626 [2025-03-07 18:39:24] Production.ERROR: pbx CDR StartTime 2025-03-07 15:39:06 - End Time 2025-03-07 18:39:06 [2025-03-07 18:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629699', 'tblTempUsageDetail_20' ) start [2025-03-07 18:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629699', 'tblTempUsageDetail_20' ) end [2025-03-07 18:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629699', 'tblTempVendorCDR_20' ) start [2025-03-07 18:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629699', 'tblTempVendorCDR_20' ) end [2025-03-07 18:39:24] Production.INFO: ProcessCDR(1,14629699,1,1,2) [2025-03-07 18:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629699', 'tblTempUsageDetail_20' ) start [2025-03-07 18:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629699', 'tblTempUsageDetail_20' ) end [2025-03-07 18:39:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:39:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:39:30] Production.INFO: ==10404== Releasing lock... [2025-03-07 18:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:39:30] Production.INFO: 85.5 MB #Memory Used# [2025-03-07 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:40:06 [end_date_ymd] => 2025-03-07 18:40:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:40:06' and `end` < '2025-03-07 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-03-07 18:40:20] Production.INFO: count ==7640 [2025-03-07 18:40:24] Production.ERROR: pbx CDR StartTime 2025-03-07 15:40:06 - End Time 2025-03-07 18:40:06 [2025-03-07 18:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629705', 'tblTempUsageDetail_20' ) start [2025-03-07 18:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629705', 'tblTempUsageDetail_20' ) end [2025-03-07 18:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629705', 'tblTempVendorCDR_20' ) start [2025-03-07 18:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629705', 'tblTempVendorCDR_20' ) end [2025-03-07 18:40:24] Production.INFO: ProcessCDR(1,14629705,1,1,2) [2025-03-07 18:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629705', 'tblTempUsageDetail_20' ) start [2025-03-07 18:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629705', 'tblTempUsageDetail_20' ) end [2025-03-07 18:40:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:40:29] Production.INFO: ==10491== Releasing lock... [2025-03-07 18:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:40:29] Production.INFO: 85.5 MB #Memory Used# [2025-03-07 18:41:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:41:07 [end_date_ymd] => 2025-03-07 18:41:07 [RateCDR] => 1 ) [2025-03-07 18:41: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-03-07 15:41:07' and `end` < '2025-03-07 18:41: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-03-07 18:41:20] Production.INFO: count ==7665 [2025-03-07 18:41:24] Production.ERROR: pbx CDR StartTime 2025-03-07 15:41:07 - End Time 2025-03-07 18:41:07 [2025-03-07 18:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629710', 'tblTempUsageDetail_20' ) start [2025-03-07 18:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629710', 'tblTempUsageDetail_20' ) end [2025-03-07 18:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629710', 'tblTempVendorCDR_20' ) start [2025-03-07 18:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629710', 'tblTempVendorCDR_20' ) end [2025-03-07 18:41:25] Production.INFO: ProcessCDR(1,14629710,1,1,2) [2025-03-07 18:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629710', 'tblTempUsageDetail_20' ) start [2025-03-07 18:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629710', 'tblTempUsageDetail_20' ) end [2025-03-07 18:41:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:41:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:41:30] Production.INFO: ==10570== Releasing lock... [2025-03-07 18:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:41:30] Production.INFO: 85.75 MB #Memory Used# [2025-03-07 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:42:06 [end_date_ymd] => 2025-03-07 18:42:06 [RateCDR] => 1 ) [2025-03-07 18:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:42:06' and `end` < '2025-03-07 18:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:42:19] Production.INFO: count ==7698 [2025-03-07 18:42:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:42:06 - End Time 2025-03-07 18:42:06 [2025-03-07 18:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629715', 'tblTempUsageDetail_20' ) start [2025-03-07 18:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629715', 'tblTempUsageDetail_20' ) end [2025-03-07 18:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629715', 'tblTempVendorCDR_20' ) start [2025-03-07 18:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629715', 'tblTempVendorCDR_20' ) end [2025-03-07 18:42:23] Production.INFO: ProcessCDR(1,14629715,1,1,2) [2025-03-07 18:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629715', 'tblTempUsageDetail_20' ) start [2025-03-07 18:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629715', 'tblTempUsageDetail_20' ) end [2025-03-07 18:42:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:42:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:42:29] Production.INFO: ==10640== Releasing lock... [2025-03-07 18:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:42:29] Production.INFO: 86 MB #Memory Used# [2025-03-07 18:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:43:06 [end_date_ymd] => 2025-03-07 18:43:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:43:06' and `end` < '2025-03-07 18: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-03-07 18:43:19] Production.INFO: count ==7718 [2025-03-07 18:43:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:43:06 - End Time 2025-03-07 18:43:06 [2025-03-07 18:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629720', 'tblTempUsageDetail_20' ) start [2025-03-07 18:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629720', 'tblTempUsageDetail_20' ) end [2025-03-07 18:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629720', 'tblTempVendorCDR_20' ) start [2025-03-07 18:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629720', 'tblTempVendorCDR_20' ) end [2025-03-07 18:43:23] Production.INFO: ProcessCDR(1,14629720,1,1,2) [2025-03-07 18:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629720', 'tblTempUsageDetail_20' ) start [2025-03-07 18:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629720', 'tblTempUsageDetail_20' ) end [2025-03-07 18:43:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:43:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:43:29] Production.INFO: ==10725== Releasing lock... [2025-03-07 18:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:43:29] Production.INFO: 86.25 MB #Memory Used# [2025-03-07 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:44:06 [end_date_ymd] => 2025-03-07 18:44:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:44:06' and `end` < '2025-03-07 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-03-07 18:44:19] Production.INFO: count ==7739 [2025-03-07 18:44:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:44:06 - End Time 2025-03-07 18:44:06 [2025-03-07 18:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629725', 'tblTempUsageDetail_20' ) start [2025-03-07 18:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629725', 'tblTempUsageDetail_20' ) end [2025-03-07 18:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629725', 'tblTempVendorCDR_20' ) start [2025-03-07 18:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629725', 'tblTempVendorCDR_20' ) end [2025-03-07 18:44:23] Production.INFO: ProcessCDR(1,14629725,1,1,2) [2025-03-07 18:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629725', 'tblTempUsageDetail_20' ) start [2025-03-07 18:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629725', 'tblTempUsageDetail_20' ) end [2025-03-07 18:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:44:27] Production.INFO: ==10796== Releasing lock... [2025-03-07 18:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:44:27] Production.INFO: 86.25 MB #Memory Used# [2025-03-07 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:45:05 [end_date_ymd] => 2025-03-07 18:45:05 [RateCDR] => 1 ) [2025-03-07 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:45:05' and `end` < '2025-03-07 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:45:19] Production.INFO: count ==7732 [2025-03-07 18:45:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:45:05 - End Time 2025-03-07 18:45:05 [2025-03-07 18:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629730', 'tblTempUsageDetail_20' ) start [2025-03-07 18:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629730', 'tblTempUsageDetail_20' ) end [2025-03-07 18:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629730', 'tblTempVendorCDR_20' ) start [2025-03-07 18:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629730', 'tblTempVendorCDR_20' ) end [2025-03-07 18:45:23] Production.INFO: ProcessCDR(1,14629730,1,1,2) [2025-03-07 18:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629730', 'tblTempUsageDetail_20' ) start [2025-03-07 18:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629730', 'tblTempUsageDetail_20' ) end [2025-03-07 18:45:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:45:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:45:29] Production.INFO: ==10875== Releasing lock... [2025-03-07 18:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:45:29] Production.INFO: 86.25 MB #Memory Used# [2025-03-07 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:46:05 [end_date_ymd] => 2025-03-07 18:46:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:46:05' and `end` < '2025-03-07 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-03-07 18:46:19] Production.INFO: count ==7761 [2025-03-07 18:46:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:46:05 - End Time 2025-03-07 18:46:05 [2025-03-07 18:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629735', 'tblTempUsageDetail_20' ) start [2025-03-07 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629735', 'tblTempUsageDetail_20' ) end [2025-03-07 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629735', 'tblTempVendorCDR_20' ) start [2025-03-07 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629735', 'tblTempVendorCDR_20' ) end [2025-03-07 18:46:24] Production.INFO: ProcessCDR(1,14629735,1,1,2) [2025-03-07 18:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629735', 'tblTempUsageDetail_20' ) start [2025-03-07 18:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629735', 'tblTempUsageDetail_20' ) end [2025-03-07 18:46:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:46:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:46:30] Production.INFO: ==10952== Releasing lock... [2025-03-07 18:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:46:30] Production.INFO: 86.5 MB #Memory Used# [2025-03-07 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:47:05 [end_date_ymd] => 2025-03-07 18:47:05 [RateCDR] => 1 ) [2025-03-07 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:47:05' and `end` < '2025-03-07 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:47:18] Production.INFO: count ==7828 [2025-03-07 18:47:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:47:05 - End Time 2025-03-07 18:47:05 [2025-03-07 18:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629740', 'tblTempUsageDetail_20' ) start [2025-03-07 18:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629740', 'tblTempUsageDetail_20' ) end [2025-03-07 18:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629740', 'tblTempVendorCDR_20' ) start [2025-03-07 18:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629740', 'tblTempVendorCDR_20' ) end [2025-03-07 18:47:23] Production.INFO: ProcessCDR(1,14629740,1,1,2) [2025-03-07 18:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629740', 'tblTempUsageDetail_20' ) start [2025-03-07 18:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629740', 'tblTempUsageDetail_20' ) end [2025-03-07 18:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:47:27] Production.INFO: ==11028== Releasing lock... [2025-03-07 18:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:47:27] Production.INFO: 87 MB #Memory Used# [2025-03-07 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:48:06 [end_date_ymd] => 2025-03-07 18:48:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:48:06' and `end` < '2025-03-07 18: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-03-07 18:48:20] Production.INFO: count ==7841 [2025-03-07 18:48:24] Production.ERROR: pbx CDR StartTime 2025-03-07 15:48:06 - End Time 2025-03-07 18:48:06 [2025-03-07 18:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629745', 'tblTempUsageDetail_20' ) start [2025-03-07 18:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629745', 'tblTempUsageDetail_20' ) end [2025-03-07 18:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629745', 'tblTempVendorCDR_20' ) start [2025-03-07 18:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629745', 'tblTempVendorCDR_20' ) end [2025-03-07 18:48:24] Production.INFO: ProcessCDR(1,14629745,1,1,2) [2025-03-07 18:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629745', 'tblTempUsageDetail_20' ) start [2025-03-07 18:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629745', 'tblTempUsageDetail_20' ) end [2025-03-07 18:48:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:48:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:48:29] Production.INFO: ==11142== Releasing lock... [2025-03-07 18:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:48:29] Production.INFO: 87 MB #Memory Used# [2025-03-07 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:49:05 [end_date_ymd] => 2025-03-07 18:49:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:49:05' and `end` < '2025-03-07 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-03-07 18:49:18] Production.INFO: count ==7902 [2025-03-07 18:49:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:49:05 - End Time 2025-03-07 18:49:05 [2025-03-07 18:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629750', 'tblTempUsageDetail_20' ) start [2025-03-07 18:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629750', 'tblTempUsageDetail_20' ) end [2025-03-07 18:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629750', 'tblTempVendorCDR_20' ) start [2025-03-07 18:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629750', 'tblTempVendorCDR_20' ) end [2025-03-07 18:49:23] Production.INFO: ProcessCDR(1,14629750,1,1,2) [2025-03-07 18:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629750', 'tblTempUsageDetail_20' ) start [2025-03-07 18:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629750', 'tblTempUsageDetail_20' ) end [2025-03-07 18:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:49:28] Production.INFO: ==11212== Releasing lock... [2025-03-07 18:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:49:28] Production.INFO: 87.5 MB #Memory Used# [2025-03-07 18:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:50:07 [end_date_ymd] => 2025-03-07 18:50:07 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:50:07' and `end` < '2025-03-07 18: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-03-07 18:50:20] Production.INFO: count ==7925 [2025-03-07 18:50:24] Production.ERROR: pbx CDR StartTime 2025-03-07 15:50:07 - End Time 2025-03-07 18:50:07 [2025-03-07 18:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629756', 'tblTempUsageDetail_20' ) start [2025-03-07 18:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629756', 'tblTempUsageDetail_20' ) end [2025-03-07 18:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629756', 'tblTempVendorCDR_20' ) start [2025-03-07 18:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629756', 'tblTempVendorCDR_20' ) end [2025-03-07 18:50:24] Production.INFO: ProcessCDR(1,14629756,1,1,2) [2025-03-07 18:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629756', 'tblTempUsageDetail_20' ) start [2025-03-07 18:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629756', 'tblTempUsageDetail_20' ) end [2025-03-07 18:50:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:50:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:50:30] Production.INFO: ==11292== Releasing lock... [2025-03-07 18:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:50:30] Production.INFO: 87.75 MB #Memory Used# [2025-03-07 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:51:05 [end_date_ymd] => 2025-03-07 18:51:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:51:05' and `end` < '2025-03-07 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-03-07 18:51:18] Production.INFO: count ==7822 [2025-03-07 18:51:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:51:05 - End Time 2025-03-07 18:51:05 [2025-03-07 18:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629761', 'tblTempUsageDetail_20' ) start [2025-03-07 18:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629761', 'tblTempUsageDetail_20' ) end [2025-03-07 18:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629761', 'tblTempVendorCDR_20' ) start [2025-03-07 18:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629761', 'tblTempVendorCDR_20' ) end [2025-03-07 18:51:23] Production.INFO: ProcessCDR(1,14629761,1,1,2) [2025-03-07 18:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629761', 'tblTempUsageDetail_20' ) start [2025-03-07 18:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629761', 'tblTempUsageDetail_20' ) end [2025-03-07 18:51:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:51:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:51:29] Production.INFO: ==11365== Releasing lock... [2025-03-07 18:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:51:29] Production.INFO: 87 MB #Memory Used# [2025-03-07 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:52:06 [end_date_ymd] => 2025-03-07 18:52:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:52:06' and `end` < '2025-03-07 18: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-03-07 18:52:19] Production.INFO: count ==7813 [2025-03-07 18:52:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:52:06 - End Time 2025-03-07 18:52:06 [2025-03-07 18:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629766', 'tblTempUsageDetail_20' ) start [2025-03-07 18:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629766', 'tblTempUsageDetail_20' ) end [2025-03-07 18:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629766', 'tblTempVendorCDR_20' ) start [2025-03-07 18:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629766', 'tblTempVendorCDR_20' ) end [2025-03-07 18:52:24] Production.INFO: ProcessCDR(1,14629766,1,1,2) [2025-03-07 18:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629766', 'tblTempUsageDetail_20' ) start [2025-03-07 18:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629766', 'tblTempUsageDetail_20' ) end [2025-03-07 18:52:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:52:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:52:29] Production.INFO: ==11458== Releasing lock... [2025-03-07 18:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:52:29] Production.INFO: 86.75 MB #Memory Used# [2025-03-07 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:53:05 [end_date_ymd] => 2025-03-07 18:53:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:53:05' and `end` < '2025-03-07 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-03-07 18:53:19] Production.INFO: count ==7821 [2025-03-07 18:53:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:53:05 - End Time 2025-03-07 18:53:05 [2025-03-07 18:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629771', 'tblTempUsageDetail_20' ) start [2025-03-07 18:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629771', 'tblTempUsageDetail_20' ) end [2025-03-07 18:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629771', 'tblTempVendorCDR_20' ) start [2025-03-07 18:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629771', 'tblTempVendorCDR_20' ) end [2025-03-07 18:53:23] Production.INFO: ProcessCDR(1,14629771,1,1,2) [2025-03-07 18:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629771', 'tblTempUsageDetail_20' ) start [2025-03-07 18:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629771', 'tblTempUsageDetail_20' ) end [2025-03-07 18:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:53:27] Production.INFO: ==11530== Releasing lock... [2025-03-07 18:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:53:27] Production.INFO: 87 MB #Memory Used# [2025-03-07 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:54:05 [end_date_ymd] => 2025-03-07 18:54:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 15:54:05' and `end` < '2025-03-07 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-03-07 18:54:18] Production.INFO: count ==7872 [2025-03-07 18:54:22] Production.ERROR: pbx CDR StartTime 2025-03-07 15:54:05 - End Time 2025-03-07 18:54:05 [2025-03-07 18:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629773', 'tblTempUsageDetail_20' ) start [2025-03-07 18:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629773', 'tblTempUsageDetail_20' ) end [2025-03-07 18:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629773', 'tblTempVendorCDR_20' ) start [2025-03-07 18:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629773', 'tblTempVendorCDR_20' ) end [2025-03-07 18:54:22] Production.INFO: ProcessCDR(1,14629773,1,1,2) [2025-03-07 18:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629773', 'tblTempUsageDetail_20' ) start [2025-03-07 18:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629773', 'tblTempUsageDetail_20' ) end [2025-03-07 18:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:54:28] Production.INFO: ==11603== Releasing lock... [2025-03-07 18:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:54:28] Production.INFO: 87.25 MB #Memory Used# [2025-03-07 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:55:05 [end_date_ymd] => 2025-03-07 18:55:05 [RateCDR] => 1 ) [2025-03-07 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:55:05' and `end` < '2025-03-07 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:55:19] Production.INFO: count ==7861 [2025-03-07 18:55:23] Production.ERROR: pbx CDR StartTime 2025-03-07 15:55:05 - End Time 2025-03-07 18:55:05 [2025-03-07 18:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629781', 'tblTempUsageDetail_20' ) start [2025-03-07 18:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629781', 'tblTempUsageDetail_20' ) end [2025-03-07 18:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629781', 'tblTempVendorCDR_20' ) start [2025-03-07 18:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629781', 'tblTempVendorCDR_20' ) end [2025-03-07 18:55:24] Production.INFO: ProcessCDR(1,14629781,1,1,2) [2025-03-07 18:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629781', 'tblTempUsageDetail_20' ) start [2025-03-07 18:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629781', 'tblTempUsageDetail_20' ) end [2025-03-07 18:55:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:55:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:55:29] Production.INFO: ==11674== Releasing lock... [2025-03-07 18:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:55:29] Production.INFO: 87.25 MB #Memory Used# [2025-03-07 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:56:06 [end_date_ymd] => 2025-03-07 18:56:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:56:06' and `end` < '2025-03-07 18: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-03-07 18:56:20] Production.INFO: count ==7881 [2025-03-07 18:56:24] Production.ERROR: pbx CDR StartTime 2025-03-07 15:56:06 - End Time 2025-03-07 18:56:06 [2025-03-07 18:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629786', 'tblTempUsageDetail_20' ) start [2025-03-07 18:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629786', 'tblTempUsageDetail_20' ) end [2025-03-07 18:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629786', 'tblTempVendorCDR_20' ) start [2025-03-07 18:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629786', 'tblTempVendorCDR_20' ) end [2025-03-07 18:56:24] Production.INFO: ProcessCDR(1,14629786,1,1,2) [2025-03-07 18:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629786', 'tblTempUsageDetail_20' ) start [2025-03-07 18:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629786', 'tblTempUsageDetail_20' ) end [2025-03-07 18:56:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:56:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:56:30] Production.INFO: ==11747== Releasing lock... [2025-03-07 18:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:56:30] Production.INFO: 87.25 MB #Memory Used# [2025-03-07 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:57:05 [end_date_ymd] => 2025-03-07 18:57:05 [RateCDR] => 1 ) [2025-03-07 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 15:57:05' and `end` < '2025-03-07 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 18:57:20] Production.INFO: count ==7863 [2025-03-07 18:57:24] Production.ERROR: pbx CDR StartTime 2025-03-07 15:57:05 - End Time 2025-03-07 18:57:05 [2025-03-07 18:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629791', 'tblTempUsageDetail_20' ) start [2025-03-07 18:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629791', 'tblTempUsageDetail_20' ) end [2025-03-07 18:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629791', 'tblTempVendorCDR_20' ) start [2025-03-07 18:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629791', 'tblTempVendorCDR_20' ) end [2025-03-07 18:57:24] Production.INFO: ProcessCDR(1,14629791,1,1,2) [2025-03-07 18:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629791', 'tblTempUsageDetail_20' ) start [2025-03-07 18:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629791', 'tblTempUsageDetail_20' ) end [2025-03-07 18:57:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:57:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:57:29] Production.INFO: ==11820== Releasing lock... [2025-03-07 18:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:57:29] Production.INFO: 87.25 MB #Memory Used# [2025-03-07 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:58:06 [end_date_ymd] => 2025-03-07 18:58:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:58:06' and `end` < '2025-03-07 18: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-03-07 18:58:20] Production.INFO: count ==7855 [2025-03-07 18:58:24] Production.ERROR: pbx CDR StartTime 2025-03-07 15:58:06 - End Time 2025-03-07 18:58:06 [2025-03-07 18:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629796', 'tblTempUsageDetail_20' ) start [2025-03-07 18:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629796', 'tblTempUsageDetail_20' ) end [2025-03-07 18:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629796', 'tblTempVendorCDR_20' ) start [2025-03-07 18:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629796', 'tblTempVendorCDR_20' ) end [2025-03-07 18:58:25] Production.INFO: ProcessCDR(1,14629796,1,1,2) [2025-03-07 18:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629796', 'tblTempUsageDetail_20' ) start [2025-03-07 18:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629796', 'tblTempUsageDetail_20' ) end [2025-03-07 18:58:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:58:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:58:30] Production.INFO: ==11895== Releasing lock... [2025-03-07 18:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:58:30] Production.INFO: 87.25 MB #Memory Used# [2025-03-07 18:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 15:59:06 [end_date_ymd] => 2025-03-07 18:59:06 [RateCDR] => 1 ) [2025-03-07 18: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-03-07 15:59:06' and `end` < '2025-03-07 18: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-03-07 18:59:20] Production.INFO: count ==7857 [2025-03-07 18:59:24] Production.ERROR: pbx CDR StartTime 2025-03-07 15:59:06 - End Time 2025-03-07 18:59:06 [2025-03-07 18:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 18:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629801', 'tblTempUsageDetail_20' ) start [2025-03-07 18:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629801', 'tblTempUsageDetail_20' ) end [2025-03-07 18:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629801', 'tblTempVendorCDR_20' ) start [2025-03-07 18:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629801', 'tblTempVendorCDR_20' ) end [2025-03-07 18:59:24] Production.INFO: ProcessCDR(1,14629801,1,1,2) [2025-03-07 18:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 18:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 18:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629801', 'tblTempUsageDetail_20' ) start [2025-03-07 18:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629801', 'tblTempUsageDetail_20' ) end [2025-03-07 18:59:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 18:59:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 18:59:29] Production.INFO: ==11973== Releasing lock... [2025-03-07 18:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 18:59:29] Production.INFO: 87.25 MB #Memory Used# [2025-03-07 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:00:07 [end_date_ymd] => 2025-03-07 19:00:07 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:00:07' and `end` < '2025-03-07 19: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-03-07 19:00:21] Production.INFO: count ==7888 [2025-03-07 19:00:25] Production.ERROR: pbx CDR StartTime 2025-03-07 16:00:07 - End Time 2025-03-07 19:00:07 [2025-03-07 19:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629807', 'tblTempUsageDetail_20' ) start [2025-03-07 19:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629807', 'tblTempUsageDetail_20' ) end [2025-03-07 19:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629807', 'tblTempVendorCDR_20' ) start [2025-03-07 19:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629807', 'tblTempVendorCDR_20' ) end [2025-03-07 19:00:26] Production.INFO: ProcessCDR(1,14629807,1,1,2) [2025-03-07 19:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629807', 'tblTempUsageDetail_20' ) start [2025-03-07 19:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629807', 'tblTempUsageDetail_20' ) end [2025-03-07 19:00:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:00:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:00:30] Production.INFO: ==12046== Releasing lock... [2025-03-07 19:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:00:30] Production.INFO: 87.5 MB #Memory Used# [2025-03-07 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:01:06 [end_date_ymd] => 2025-03-07 19:01:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:01:06' and `end` < '2025-03-07 19: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-03-07 19:01:19] Production.INFO: count ==7893 [2025-03-07 19:01:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:01:06 - End Time 2025-03-07 19:01:06 [2025-03-07 19:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629812', 'tblTempUsageDetail_20' ) start [2025-03-07 19:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629812', 'tblTempUsageDetail_20' ) end [2025-03-07 19:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629812', 'tblTempVendorCDR_20' ) start [2025-03-07 19:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629812', 'tblTempVendorCDR_20' ) end [2025-03-07 19:01:23] Production.INFO: ProcessCDR(1,14629812,1,1,2) [2025-03-07 19:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629812', 'tblTempUsageDetail_20' ) start [2025-03-07 19:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629812', 'tblTempUsageDetail_20' ) end [2025-03-07 19:01:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:01:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:01:29] Production.INFO: ==12211== Releasing lock... [2025-03-07 19:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:01:29] Production.INFO: 87.5 MB #Memory Used# [2025-03-07 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:02:06 [end_date_ymd] => 2025-03-07 19:02:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:02:06' and `end` < '2025-03-07 19: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-03-07 19:02:20] Production.INFO: count ==7991 [2025-03-07 19:02:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:02:06 - End Time 2025-03-07 19:02:06 [2025-03-07 19:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629817', 'tblTempUsageDetail_20' ) start [2025-03-07 19:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629817', 'tblTempUsageDetail_20' ) end [2025-03-07 19:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629817', 'tblTempVendorCDR_20' ) start [2025-03-07 19:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629817', 'tblTempVendorCDR_20' ) end [2025-03-07 19:02:24] Production.INFO: ProcessCDR(1,14629817,1,1,2) [2025-03-07 19:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629817', 'tblTempUsageDetail_20' ) start [2025-03-07 19:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629817', 'tblTempUsageDetail_20' ) end [2025-03-07 19:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:02:28] Production.INFO: ==12297== Releasing lock... [2025-03-07 19:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:02:28] Production.INFO: 88.25 MB #Memory Used# [2025-03-07 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:03:06 [end_date_ymd] => 2025-03-07 19:03:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:03:06' and `end` < '2025-03-07 19: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-03-07 19:03:19] Production.INFO: count ==7996 [2025-03-07 19:03:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:03:06 - End Time 2025-03-07 19:03:06 [2025-03-07 19:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629822', 'tblTempUsageDetail_20' ) start [2025-03-07 19:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629822', 'tblTempUsageDetail_20' ) end [2025-03-07 19:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629822', 'tblTempVendorCDR_20' ) start [2025-03-07 19:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629822', 'tblTempVendorCDR_20' ) end [2025-03-07 19:03:24] Production.INFO: ProcessCDR(1,14629822,1,1,2) [2025-03-07 19:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629822', 'tblTempUsageDetail_20' ) start [2025-03-07 19:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629822', 'tblTempUsageDetail_20' ) end [2025-03-07 19:03:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:03:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:03:29] Production.INFO: ==12369== Releasing lock... [2025-03-07 19:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:03:29] Production.INFO: 88.25 MB #Memory Used# [2025-03-07 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:04:05 [end_date_ymd] => 2025-03-07 19:04:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:04:05' and `end` < '2025-03-07 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-03-07 19:04:19] Production.INFO: count ==8008 [2025-03-07 19:04:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:04:05 - End Time 2025-03-07 19:04:05 [2025-03-07 19:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629827', 'tblTempUsageDetail_20' ) start [2025-03-07 19:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629827', 'tblTempUsageDetail_20' ) end [2025-03-07 19:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629827', 'tblTempVendorCDR_20' ) start [2025-03-07 19:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629827', 'tblTempVendorCDR_20' ) end [2025-03-07 19:04:24] Production.INFO: ProcessCDR(1,14629827,1,1,2) [2025-03-07 19:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629827', 'tblTempUsageDetail_20' ) start [2025-03-07 19:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629827', 'tblTempUsageDetail_20' ) end [2025-03-07 19:04:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:04:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:04:29] Production.INFO: ==12479== Releasing lock... [2025-03-07 19:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:04:29] Production.INFO: 88.25 MB #Memory Used# [2025-03-07 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:05:06 [end_date_ymd] => 2025-03-07 19:05:06 [RateCDR] => 1 ) [2025-03-07 19:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 16:05:06' and `end` < '2025-03-07 19:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 19:05:20] Production.INFO: count ==8001 [2025-03-07 19:05:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:05:06 - End Time 2025-03-07 19:05:06 [2025-03-07 19:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629832', 'tblTempUsageDetail_20' ) start [2025-03-07 19:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629832', 'tblTempUsageDetail_20' ) end [2025-03-07 19:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629832', 'tblTempVendorCDR_20' ) start [2025-03-07 19:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629832', 'tblTempVendorCDR_20' ) end [2025-03-07 19:05:25] Production.INFO: ProcessCDR(1,14629832,1,1,2) [2025-03-07 19:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629832', 'tblTempUsageDetail_20' ) start [2025-03-07 19:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629832', 'tblTempUsageDetail_20' ) end [2025-03-07 19:05:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:05:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:05:30] Production.INFO: ==12627== Releasing lock... [2025-03-07 19:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:05:30] Production.INFO: 88.25 MB #Memory Used# [2025-03-07 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:06:06 [end_date_ymd] => 2025-03-07 19:06:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:06:06' and `end` < '2025-03-07 19: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-03-07 19:06:20] Production.INFO: count ==8092 [2025-03-07 19:06:25] Production.ERROR: pbx CDR StartTime 2025-03-07 16:06:06 - End Time 2025-03-07 19:06:06 [2025-03-07 19:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629837', 'tblTempUsageDetail_20' ) start [2025-03-07 19:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629837', 'tblTempUsageDetail_20' ) end [2025-03-07 19:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629837', 'tblTempVendorCDR_20' ) start [2025-03-07 19:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629837', 'tblTempVendorCDR_20' ) end [2025-03-07 19:06:25] Production.INFO: ProcessCDR(1,14629837,1,1,2) [2025-03-07 19:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629837', 'tblTempUsageDetail_20' ) start [2025-03-07 19:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629837', 'tblTempUsageDetail_20' ) end [2025-03-07 19:06:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:06:31] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:06:31] Production.INFO: ==12697== Releasing lock... [2025-03-07 19:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:06:31] Production.INFO: 89 MB #Memory Used# [2025-03-07 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:07:05 [end_date_ymd] => 2025-03-07 19:07:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:07:05' and `end` < '2025-03-07 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-03-07 19:07:20] Production.INFO: count ==8085 [2025-03-07 19:07:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:07:05 - End Time 2025-03-07 19:07:05 [2025-03-07 19:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629842', 'tblTempUsageDetail_20' ) start [2025-03-07 19:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629842', 'tblTempUsageDetail_20' ) end [2025-03-07 19:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629842', 'tblTempVendorCDR_20' ) start [2025-03-07 19:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629842', 'tblTempVendorCDR_20' ) end [2025-03-07 19:07:24] Production.INFO: ProcessCDR(1,14629842,1,1,2) [2025-03-07 19:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629842', 'tblTempUsageDetail_20' ) start [2025-03-07 19:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629842', 'tblTempUsageDetail_20' ) end [2025-03-07 19:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:07:28] Production.INFO: ==12770== Releasing lock... [2025-03-07 19:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:07:28] Production.INFO: 89 MB #Memory Used# [2025-03-07 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:08:06 [end_date_ymd] => 2025-03-07 19:08:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:08:06' and `end` < '2025-03-07 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-03-07 19:08:20] Production.INFO: count ==8045 [2025-03-07 19:08:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:08:06 - End Time 2025-03-07 19:08:06 [2025-03-07 19:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629847', 'tblTempUsageDetail_20' ) start [2025-03-07 19:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629847', 'tblTempUsageDetail_20' ) end [2025-03-07 19:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629847', 'tblTempVendorCDR_20' ) start [2025-03-07 19:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629847', 'tblTempVendorCDR_20' ) end [2025-03-07 19:08:24] Production.INFO: ProcessCDR(1,14629847,1,1,2) [2025-03-07 19:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629847', 'tblTempUsageDetail_20' ) start [2025-03-07 19:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629847', 'tblTempUsageDetail_20' ) end [2025-03-07 19:08:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:08:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:08:29] Production.INFO: ==12918== Releasing lock... [2025-03-07 19:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:08:29] Production.INFO: 88.5 MB #Memory Used# [2025-03-07 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:09:05 [end_date_ymd] => 2025-03-07 19:09:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:09:05' and `end` < '2025-03-07 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-03-07 19:09:19] Production.INFO: count ==8086 [2025-03-07 19:09:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:09:05 - End Time 2025-03-07 19:09:05 [2025-03-07 19:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629852', 'tblTempUsageDetail_20' ) start [2025-03-07 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629852', 'tblTempUsageDetail_20' ) end [2025-03-07 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629852', 'tblTempVendorCDR_20' ) start [2025-03-07 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629852', 'tblTempVendorCDR_20' ) end [2025-03-07 19:09:23] Production.INFO: ProcessCDR(1,14629852,1,1,2) [2025-03-07 19:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629852', 'tblTempUsageDetail_20' ) start [2025-03-07 19:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629852', 'tblTempUsageDetail_20' ) end [2025-03-07 19:09:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:09:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:09:29] Production.INFO: ==12988== Releasing lock... [2025-03-07 19:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:09:29] Production.INFO: 89 MB #Memory Used# [2025-03-07 19:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:10:07 [end_date_ymd] => 2025-03-07 19:10:07 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:10:07' and `end` < '2025-03-07 19: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-03-07 19:10:21] Production.INFO: count ==8084 [2025-03-07 19:10:25] Production.ERROR: pbx CDR StartTime 2025-03-07 16:10:07 - End Time 2025-03-07 19:10:07 [2025-03-07 19:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629858', 'tblTempUsageDetail_20' ) start [2025-03-07 19:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629858', 'tblTempUsageDetail_20' ) end [2025-03-07 19:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629858', 'tblTempVendorCDR_20' ) start [2025-03-07 19:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629858', 'tblTempVendorCDR_20' ) end [2025-03-07 19:10:26] Production.INFO: ProcessCDR(1,14629858,1,1,2) [2025-03-07 19:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629858', 'tblTempUsageDetail_20' ) start [2025-03-07 19:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629858', 'tblTempUsageDetail_20' ) end [2025-03-07 19:10:31] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:10:31] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:10:31] Production.INFO: ==13064== Releasing lock... [2025-03-07 19:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:10:31] Production.INFO: 89 MB #Memory Used# [2025-03-07 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:11:06 [end_date_ymd] => 2025-03-07 19:11:06 [RateCDR] => 1 ) [2025-03-07 19:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 16:11:06' and `end` < '2025-03-07 19:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 19:11:20] Production.INFO: count ==8058 [2025-03-07 19:11:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:11:06 - End Time 2025-03-07 19:11:06 [2025-03-07 19:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629863', 'tblTempUsageDetail_20' ) start [2025-03-07 19:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629863', 'tblTempUsageDetail_20' ) end [2025-03-07 19:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629863', 'tblTempVendorCDR_20' ) start [2025-03-07 19:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629863', 'tblTempVendorCDR_20' ) end [2025-03-07 19:11:24] Production.INFO: ProcessCDR(1,14629863,1,1,2) [2025-03-07 19:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629863', 'tblTempUsageDetail_20' ) start [2025-03-07 19:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629863', 'tblTempUsageDetail_20' ) end [2025-03-07 19:11:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:11:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:11:30] Production.INFO: ==13139== Releasing lock... [2025-03-07 19:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:11:30] Production.INFO: 88.75 MB #Memory Used# [2025-03-07 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:12:06 [end_date_ymd] => 2025-03-07 19:12:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:12:06' and `end` < '2025-03-07 19: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-03-07 19:12:20] Production.INFO: count ==8076 [2025-03-07 19:12:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:12:06 - End Time 2025-03-07 19:12:06 [2025-03-07 19:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629868', 'tblTempUsageDetail_20' ) start [2025-03-07 19:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629868', 'tblTempUsageDetail_20' ) end [2025-03-07 19:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629868', 'tblTempVendorCDR_20' ) start [2025-03-07 19:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629868', 'tblTempVendorCDR_20' ) end [2025-03-07 19:12:24] Production.INFO: ProcessCDR(1,14629868,1,1,2) [2025-03-07 19:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629868', 'tblTempUsageDetail_20' ) start [2025-03-07 19:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629868', 'tblTempUsageDetail_20' ) end [2025-03-07 19:12:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:12:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:12:30] Production.INFO: ==13288== Releasing lock... [2025-03-07 19:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:12:30] Production.INFO: 88.75 MB #Memory Used# [2025-03-07 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:13:05 [end_date_ymd] => 2025-03-07 19:13:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:13:05' and `end` < '2025-03-07 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-03-07 19:13:18] Production.INFO: count ==8076 [2025-03-07 19:13:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:13:05 - End Time 2025-03-07 19:13:05 [2025-03-07 19:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629873', 'tblTempUsageDetail_20' ) start [2025-03-07 19:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629873', 'tblTempUsageDetail_20' ) end [2025-03-07 19:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629873', 'tblTempVendorCDR_20' ) start [2025-03-07 19:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629873', 'tblTempVendorCDR_20' ) end [2025-03-07 19:13:23] Production.INFO: ProcessCDR(1,14629873,1,1,2) [2025-03-07 19:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629873', 'tblTempUsageDetail_20' ) start [2025-03-07 19:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629873', 'tblTempUsageDetail_20' ) end [2025-03-07 19:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:13:28] Production.INFO: ==13363== Releasing lock... [2025-03-07 19:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:13:28] Production.INFO: 88.75 MB #Memory Used# [2025-03-07 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:14:06 [end_date_ymd] => 2025-03-07 19:14:06 [RateCDR] => 1 ) [2025-03-07 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 16:14:06' and `end` < '2025-03-07 19:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 19:14:19] Production.INFO: count ==8078 [2025-03-07 19:14:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:14:06 - End Time 2025-03-07 19:14:06 [2025-03-07 19:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629878', 'tblTempUsageDetail_20' ) start [2025-03-07 19:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629878', 'tblTempUsageDetail_20' ) end [2025-03-07 19:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629878', 'tblTempVendorCDR_20' ) start [2025-03-07 19:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629878', 'tblTempVendorCDR_20' ) end [2025-03-07 19:14:24] Production.INFO: ProcessCDR(1,14629878,1,1,2) [2025-03-07 19:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629878', 'tblTempUsageDetail_20' ) start [2025-03-07 19:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629878', 'tblTempUsageDetail_20' ) end [2025-03-07 19:14:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:14:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:14:29] Production.INFO: ==13432== Releasing lock... [2025-03-07 19:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:14:29] Production.INFO: 88.75 MB #Memory Used# [2025-03-07 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:15:05 [end_date_ymd] => 2025-03-07 19:15:05 [RateCDR] => 1 ) [2025-03-07 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 16:15:05' and `end` < '2025-03-07 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 19:15:19] Production.INFO: count ==8085 [2025-03-07 19:15:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:15:05 - End Time 2025-03-07 19:15:05 [2025-03-07 19:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629883', 'tblTempUsageDetail_20' ) start [2025-03-07 19:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629883', 'tblTempUsageDetail_20' ) end [2025-03-07 19:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629883', 'tblTempVendorCDR_20' ) start [2025-03-07 19:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629883', 'tblTempVendorCDR_20' ) end [2025-03-07 19:15:23] Production.INFO: ProcessCDR(1,14629883,1,1,2) [2025-03-07 19:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629883', 'tblTempUsageDetail_20' ) start [2025-03-07 19:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629883', 'tblTempUsageDetail_20' ) end [2025-03-07 19:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:15:28] Production.INFO: ==13582== Releasing lock... [2025-03-07 19:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:15:28] Production.INFO: 89 MB #Memory Used# [2025-03-07 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:16:06 [end_date_ymd] => 2025-03-07 19:16:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:16:06' and `end` < '2025-03-07 19: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-03-07 19:16:20] Production.INFO: count ==8118 [2025-03-07 19:16:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:16:06 - End Time 2025-03-07 19:16:06 [2025-03-07 19:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629888', 'tblTempUsageDetail_20' ) start [2025-03-07 19:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629888', 'tblTempUsageDetail_20' ) end [2025-03-07 19:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629888', 'tblTempVendorCDR_20' ) start [2025-03-07 19:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629888', 'tblTempVendorCDR_20' ) end [2025-03-07 19:16:24] Production.INFO: ProcessCDR(1,14629888,1,1,2) [2025-03-07 19:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629888', 'tblTempUsageDetail_20' ) start [2025-03-07 19:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629888', 'tblTempUsageDetail_20' ) end [2025-03-07 19:16:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:16:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:16:29] Production.INFO: ==13651== Releasing lock... [2025-03-07 19:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:16:29] Production.INFO: 89.25 MB #Memory Used# [2025-03-07 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:17:05 [end_date_ymd] => 2025-03-07 19:17:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:17:05' and `end` < '2025-03-07 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-03-07 19:17:18] Production.INFO: count ==8179 [2025-03-07 19:17:22] Production.ERROR: pbx CDR StartTime 2025-03-07 16:17:05 - End Time 2025-03-07 19:17:05 [2025-03-07 19:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629893', 'tblTempUsageDetail_20' ) start [2025-03-07 19:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629893', 'tblTempUsageDetail_20' ) end [2025-03-07 19:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629893', 'tblTempVendorCDR_20' ) start [2025-03-07 19:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629893', 'tblTempVendorCDR_20' ) end [2025-03-07 19:17:23] Production.INFO: ProcessCDR(1,14629893,1,1,2) [2025-03-07 19:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629893', 'tblTempUsageDetail_20' ) start [2025-03-07 19:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629893', 'tblTempUsageDetail_20' ) end [2025-03-07 19:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:17:27] Production.INFO: ==13731== Releasing lock... [2025-03-07 19:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:17:27] Production.INFO: 89.5 MB #Memory Used# [2025-03-07 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:18:06 [end_date_ymd] => 2025-03-07 19:18:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:18:06' and `end` < '2025-03-07 19: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-03-07 19:18:19] Production.INFO: count ==8196 [2025-03-07 19:18:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:18:06 - End Time 2025-03-07 19:18:06 [2025-03-07 19:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629898', 'tblTempUsageDetail_20' ) start [2025-03-07 19:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629898', 'tblTempUsageDetail_20' ) end [2025-03-07 19:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629898', 'tblTempVendorCDR_20' ) start [2025-03-07 19:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629898', 'tblTempVendorCDR_20' ) end [2025-03-07 19:18:24] Production.INFO: ProcessCDR(1,14629898,1,1,2) [2025-03-07 19:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629898', 'tblTempUsageDetail_20' ) start [2025-03-07 19:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629898', 'tblTempUsageDetail_20' ) end [2025-03-07 19:18:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:18:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:18:29] Production.INFO: ==13805== Releasing lock... [2025-03-07 19:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:18:29] Production.INFO: 89.75 MB #Memory Used# [2025-03-07 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:19:05 [end_date_ymd] => 2025-03-07 19:19:05 [RateCDR] => 1 ) [2025-03-07 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 16:19:05' and `end` < '2025-03-07 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 19:19:19] Production.INFO: count ==8193 [2025-03-07 19:19:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:19:05 - End Time 2025-03-07 19:19:05 [2025-03-07 19:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629903', 'tblTempUsageDetail_20' ) start [2025-03-07 19:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629903', 'tblTempUsageDetail_20' ) end [2025-03-07 19:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629903', 'tblTempVendorCDR_20' ) start [2025-03-07 19:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629903', 'tblTempVendorCDR_20' ) end [2025-03-07 19:19:23] Production.INFO: ProcessCDR(1,14629903,1,1,2) [2025-03-07 19:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629903', 'tblTempUsageDetail_20' ) start [2025-03-07 19:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629903', 'tblTempUsageDetail_20' ) end [2025-03-07 19:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:19:27] Production.INFO: ==13922== Releasing lock... [2025-03-07 19:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:19:27] Production.INFO: 89.75 MB #Memory Used# [2025-03-07 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:20:06 [end_date_ymd] => 2025-03-07 19:20:06 [RateCDR] => 1 ) [2025-03-07 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 16:20:06' and `end` < '2025-03-07 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 19:20:20] Production.INFO: count ==8211 [2025-03-07 19:20:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:20:06 - End Time 2025-03-07 19:20:06 [2025-03-07 19:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629908', 'tblTempUsageDetail_20' ) start [2025-03-07 19:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629908', 'tblTempUsageDetail_20' ) end [2025-03-07 19:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629908', 'tblTempVendorCDR_20' ) start [2025-03-07 19:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629908', 'tblTempVendorCDR_20' ) end [2025-03-07 19:20:25] Production.INFO: ProcessCDR(1,14629908,1,1,2) [2025-03-07 19:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629908', 'tblTempUsageDetail_20' ) start [2025-03-07 19:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629908', 'tblTempUsageDetail_20' ) end [2025-03-07 19:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:20:28] Production.INFO: ==13995== Releasing lock... [2025-03-07 19:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:20:28] Production.INFO: 90 MB #Memory Used# [2025-03-07 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:21:05 [end_date_ymd] => 2025-03-07 19:21:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:21:05' and `end` < '2025-03-07 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-03-07 19:21:19] Production.INFO: count ==8195 [2025-03-07 19:21:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:21:05 - End Time 2025-03-07 19:21:05 [2025-03-07 19:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629914', 'tblTempUsageDetail_20' ) start [2025-03-07 19:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629914', 'tblTempUsageDetail_20' ) end [2025-03-07 19:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629914', 'tblTempVendorCDR_20' ) start [2025-03-07 19:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629914', 'tblTempVendorCDR_20' ) end [2025-03-07 19:21:23] Production.INFO: ProcessCDR(1,14629914,1,1,2) [2025-03-07 19:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629914', 'tblTempUsageDetail_20' ) start [2025-03-07 19:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629914', 'tblTempUsageDetail_20' ) end [2025-03-07 19:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:21:27] Production.INFO: ==14079== Releasing lock... [2025-03-07 19:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:21:27] Production.INFO: 89.75 MB #Memory Used# [2025-03-07 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:22:06 [end_date_ymd] => 2025-03-07 19:22:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:22:06' and `end` < '2025-03-07 19: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-03-07 19:22:19] Production.INFO: count ==8135 [2025-03-07 19:22:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:22:06 - End Time 2025-03-07 19:22:06 [2025-03-07 19:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629919', 'tblTempUsageDetail_20' ) start [2025-03-07 19:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629919', 'tblTempUsageDetail_20' ) end [2025-03-07 19:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629919', 'tblTempVendorCDR_20' ) start [2025-03-07 19:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629919', 'tblTempVendorCDR_20' ) end [2025-03-07 19:22:24] Production.INFO: ProcessCDR(1,14629919,1,1,2) [2025-03-07 19:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629919', 'tblTempUsageDetail_20' ) start [2025-03-07 19:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629919', 'tblTempUsageDetail_20' ) end [2025-03-07 19:22:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:22:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:22:29] Production.INFO: ==14150== Releasing lock... [2025-03-07 19:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:22:29] Production.INFO: 89.25 MB #Memory Used# [2025-03-07 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:23:06 [end_date_ymd] => 2025-03-07 19:23:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:23:06' and `end` < '2025-03-07 19: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-03-07 19:23:19] Production.INFO: count ==8143 [2025-03-07 19:23:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:23:06 - End Time 2025-03-07 19:23:06 [2025-03-07 19:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629924', 'tblTempUsageDetail_20' ) start [2025-03-07 19:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629924', 'tblTempUsageDetail_20' ) end [2025-03-07 19:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629924', 'tblTempVendorCDR_20' ) start [2025-03-07 19:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629924', 'tblTempVendorCDR_20' ) end [2025-03-07 19:23:24] Production.INFO: ProcessCDR(1,14629924,1,1,2) [2025-03-07 19:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629924', 'tblTempUsageDetail_20' ) start [2025-03-07 19:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629924', 'tblTempUsageDetail_20' ) end [2025-03-07 19:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:23:28] Production.INFO: ==14220== Releasing lock... [2025-03-07 19:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:23:28] Production.INFO: 89.25 MB #Memory Used# [2025-03-07 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:24:06 [end_date_ymd] => 2025-03-07 19:24:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:24:06' and `end` < '2025-03-07 19: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-03-07 19:24:19] Production.INFO: count ==8126 [2025-03-07 19:24:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:24:06 - End Time 2025-03-07 19:24:06 [2025-03-07 19:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629929', 'tblTempUsageDetail_20' ) start [2025-03-07 19:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629929', 'tblTempUsageDetail_20' ) end [2025-03-07 19:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629929', 'tblTempVendorCDR_20' ) start [2025-03-07 19:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629929', 'tblTempVendorCDR_20' ) end [2025-03-07 19:24:24] Production.INFO: ProcessCDR(1,14629929,1,1,2) [2025-03-07 19:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629929', 'tblTempUsageDetail_20' ) start [2025-03-07 19:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629929', 'tblTempUsageDetail_20' ) end [2025-03-07 19:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:24:27] Production.INFO: ==14290== Releasing lock... [2025-03-07 19:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:24:27] Production.INFO: 89.25 MB #Memory Used# [2025-03-07 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:25:06 [end_date_ymd] => 2025-03-07 19:25:06 [RateCDR] => 1 ) [2025-03-07 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 16:25:06' and `end` < '2025-03-07 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 19:25:19] Production.INFO: count ==8268 [2025-03-07 19:25:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:25:06 - End Time 2025-03-07 19:25:06 [2025-03-07 19:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629934', 'tblTempUsageDetail_20' ) start [2025-03-07 19:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629934', 'tblTempUsageDetail_20' ) end [2025-03-07 19:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629934', 'tblTempVendorCDR_20' ) start [2025-03-07 19:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629934', 'tblTempVendorCDR_20' ) end [2025-03-07 19:25:24] Production.INFO: ProcessCDR(1,14629934,1,1,2) [2025-03-07 19:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629934', 'tblTempUsageDetail_20' ) start [2025-03-07 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629934', 'tblTempUsageDetail_20' ) end [2025-03-07 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:25:28] Production.INFO: ==14362== Releasing lock... [2025-03-07 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:25:28] Production.INFO: 90.25 MB #Memory Used# [2025-03-07 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:26:06 [end_date_ymd] => 2025-03-07 19:26:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:26:06' and `end` < '2025-03-07 19: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-03-07 19:26:18] Production.INFO: count ==8262 [2025-03-07 19:26:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:26:06 - End Time 2025-03-07 19:26:06 [2025-03-07 19:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629939', 'tblTempUsageDetail_20' ) start [2025-03-07 19:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629939', 'tblTempUsageDetail_20' ) end [2025-03-07 19:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629939', 'tblTempVendorCDR_20' ) start [2025-03-07 19:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629939', 'tblTempVendorCDR_20' ) end [2025-03-07 19:26:23] Production.INFO: ProcessCDR(1,14629939,1,1,2) [2025-03-07 19:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629939', 'tblTempUsageDetail_20' ) start [2025-03-07 19:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629939', 'tblTempUsageDetail_20' ) end [2025-03-07 19:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:26:27] Production.INFO: ==14433== Releasing lock... [2025-03-07 19:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:26:27] Production.INFO: 90.25 MB #Memory Used# [2025-03-07 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:27:06 [end_date_ymd] => 2025-03-07 19:27:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:27:06' and `end` < '2025-03-07 19: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-03-07 19:27:20] Production.INFO: count ==8261 [2025-03-07 19:27:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:27:06 - End Time 2025-03-07 19:27:06 [2025-03-07 19:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629944', 'tblTempUsageDetail_20' ) start [2025-03-07 19:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629944', 'tblTempUsageDetail_20' ) end [2025-03-07 19:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629944', 'tblTempVendorCDR_20' ) start [2025-03-07 19:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629944', 'tblTempVendorCDR_20' ) end [2025-03-07 19:27:24] Production.INFO: ProcessCDR(1,14629944,1,1,2) [2025-03-07 19:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629944', 'tblTempUsageDetail_20' ) start [2025-03-07 19:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629944', 'tblTempUsageDetail_20' ) end [2025-03-07 19:27:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:27:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:27:30] Production.INFO: ==14506== Releasing lock... [2025-03-07 19:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:27:30] Production.INFO: 90.25 MB #Memory Used# [2025-03-07 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:28:05 [end_date_ymd] => 2025-03-07 19:28:05 [RateCDR] => 1 ) [2025-03-07 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 16:28:05' and `end` < '2025-03-07 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 19:28:19] Production.INFO: count ==8313 [2025-03-07 19:28:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:28:05 - End Time 2025-03-07 19:28:05 [2025-03-07 19:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629949', 'tblTempUsageDetail_20' ) start [2025-03-07 19:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629949', 'tblTempUsageDetail_20' ) end [2025-03-07 19:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629949', 'tblTempVendorCDR_20' ) start [2025-03-07 19:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629949', 'tblTempVendorCDR_20' ) end [2025-03-07 19:28:23] Production.INFO: ProcessCDR(1,14629949,1,1,2) [2025-03-07 19:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629949', 'tblTempUsageDetail_20' ) start [2025-03-07 19:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629949', 'tblTempUsageDetail_20' ) end [2025-03-07 19:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:28:27] Production.INFO: ==14576== Releasing lock... [2025-03-07 19:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:28:27] Production.INFO: 90.75 MB #Memory Used# [2025-03-07 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:29:06 [end_date_ymd] => 2025-03-07 19:29:06 [RateCDR] => 1 ) [2025-03-07 19:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 16:29:06' and `end` < '2025-03-07 19:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 19:29:19] Production.INFO: count ==8403 [2025-03-07 19:29:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:29:06 - End Time 2025-03-07 19:29:06 [2025-03-07 19:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629954', 'tblTempUsageDetail_20' ) start [2025-03-07 19:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629954', 'tblTempUsageDetail_20' ) end [2025-03-07 19:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629954', 'tblTempVendorCDR_20' ) start [2025-03-07 19:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629954', 'tblTempVendorCDR_20' ) end [2025-03-07 19:29:23] Production.INFO: ProcessCDR(1,14629954,1,1,2) [2025-03-07 19:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629954', 'tblTempUsageDetail_20' ) start [2025-03-07 19:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629954', 'tblTempUsageDetail_20' ) end [2025-03-07 19:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:29:27] Production.INFO: ==14648== Releasing lock... [2025-03-07 19:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:29:27] Production.INFO: 91.5 MB #Memory Used# [2025-03-07 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:30:06 [end_date_ymd] => 2025-03-07 19:30:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:30:06' and `end` < '2025-03-07 19: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-03-07 19:30:20] Production.INFO: count ==8407 [2025-03-07 19:30:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:30:06 - End Time 2025-03-07 19:30:06 [2025-03-07 19:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629960', 'tblTempUsageDetail_20' ) start [2025-03-07 19:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629960', 'tblTempUsageDetail_20' ) end [2025-03-07 19:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629960', 'tblTempVendorCDR_20' ) start [2025-03-07 19:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629960', 'tblTempVendorCDR_20' ) end [2025-03-07 19:30:24] Production.INFO: ProcessCDR(1,14629960,1,1,2) [2025-03-07 19:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629960', 'tblTempUsageDetail_20' ) start [2025-03-07 19:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629960', 'tblTempUsageDetail_20' ) end [2025-03-07 19:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:30:28] Production.INFO: ==14722== Releasing lock... [2025-03-07 19:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:30:28] Production.INFO: 91.5 MB #Memory Used# [2025-03-07 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:31:06 [end_date_ymd] => 2025-03-07 19:31:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:31:06' and `end` < '2025-03-07 19: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-03-07 19:31:20] Production.INFO: count ==8368 [2025-03-07 19:31:25] Production.ERROR: pbx CDR StartTime 2025-03-07 16:31:06 - End Time 2025-03-07 19:31:06 [2025-03-07 19:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629965', 'tblTempUsageDetail_20' ) start [2025-03-07 19:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629965', 'tblTempUsageDetail_20' ) end [2025-03-07 19:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629965', 'tblTempVendorCDR_20' ) start [2025-03-07 19:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629965', 'tblTempVendorCDR_20' ) end [2025-03-07 19:31:25] Production.INFO: ProcessCDR(1,14629965,1,1,2) [2025-03-07 19:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629965', 'tblTempUsageDetail_20' ) start [2025-03-07 19:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629965', 'tblTempUsageDetail_20' ) end [2025-03-07 19:31:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:31:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:31:29] Production.INFO: ==14802== Releasing lock... [2025-03-07 19:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:31:29] Production.INFO: 91 MB #Memory Used# [2025-03-07 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:32:06 [end_date_ymd] => 2025-03-07 19:32:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:32:06' and `end` < '2025-03-07 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-03-07 19:32:20] Production.INFO: count ==8404 [2025-03-07 19:32:25] Production.ERROR: pbx CDR StartTime 2025-03-07 16:32:06 - End Time 2025-03-07 19:32:06 [2025-03-07 19:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629970', 'tblTempUsageDetail_20' ) start [2025-03-07 19:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629970', 'tblTempUsageDetail_20' ) end [2025-03-07 19:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629970', 'tblTempVendorCDR_20' ) start [2025-03-07 19:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629970', 'tblTempVendorCDR_20' ) end [2025-03-07 19:32:25] Production.INFO: ProcessCDR(1,14629970,1,1,2) [2025-03-07 19:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629970', 'tblTempUsageDetail_20' ) start [2025-03-07 19:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629970', 'tblTempUsageDetail_20' ) end [2025-03-07 19:32:30] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:32:30] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:32:30] Production.INFO: ==14877== Releasing lock... [2025-03-07 19:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:32:30] Production.INFO: 91.5 MB #Memory Used# [2025-03-07 19:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:33:06 [end_date_ymd] => 2025-03-07 19:33:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:33:06' and `end` < '2025-03-07 19: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-03-07 19:33:20] Production.INFO: count ==8389 [2025-03-07 19:33:25] Production.ERROR: pbx CDR StartTime 2025-03-07 16:33:06 - End Time 2025-03-07 19:33:06 [2025-03-07 19:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629975', 'tblTempUsageDetail_20' ) start [2025-03-07 19:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629975', 'tblTempUsageDetail_20' ) end [2025-03-07 19:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629975', 'tblTempVendorCDR_20' ) start [2025-03-07 19:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629975', 'tblTempVendorCDR_20' ) end [2025-03-07 19:33:25] Production.INFO: ProcessCDR(1,14629975,1,1,2) [2025-03-07 19:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629975', 'tblTempUsageDetail_20' ) start [2025-03-07 19:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629975', 'tblTempUsageDetail_20' ) end [2025-03-07 19:33:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:33:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:33:29] Production.INFO: ==14948== Releasing lock... [2025-03-07 19:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:33:29] Production.INFO: 91.25 MB #Memory Used# [2025-03-07 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:34:05 [end_date_ymd] => 2025-03-07 19:34:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:34:05' and `end` < '2025-03-07 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-03-07 19:34:20] Production.INFO: count ==8400 [2025-03-07 19:34:24] Production.ERROR: pbx CDR StartTime 2025-03-07 16:34:05 - End Time 2025-03-07 19:34:05 [2025-03-07 19:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629980', 'tblTempUsageDetail_20' ) start [2025-03-07 19:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629980', 'tblTempUsageDetail_20' ) end [2025-03-07 19:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629980', 'tblTempVendorCDR_20' ) start [2025-03-07 19:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629980', 'tblTempVendorCDR_20' ) end [2025-03-07 19:34:24] Production.INFO: ProcessCDR(1,14629980,1,1,2) [2025-03-07 19:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629980', 'tblTempUsageDetail_20' ) start [2025-03-07 19:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629980', 'tblTempUsageDetail_20' ) end [2025-03-07 19:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:34:28] Production.INFO: ==15018== Releasing lock... [2025-03-07 19:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:34:28] Production.INFO: 91.25 MB #Memory Used# [2025-03-07 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:35:06 [end_date_ymd] => 2025-03-07 19:35:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:35:06' and `end` < '2025-03-07 19: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-03-07 19:35:19] Production.INFO: count ==8412 [2025-03-07 19:35:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:35:06 - End Time 2025-03-07 19:35:06 [2025-03-07 19:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629985', 'tblTempUsageDetail_20' ) start [2025-03-07 19:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629985', 'tblTempUsageDetail_20' ) end [2025-03-07 19:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629985', 'tblTempVendorCDR_20' ) start [2025-03-07 19:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629985', 'tblTempVendorCDR_20' ) end [2025-03-07 19:35:23] Production.INFO: ProcessCDR(1,14629985,1,1,2) [2025-03-07 19:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629985', 'tblTempUsageDetail_20' ) start [2025-03-07 19:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629985', 'tblTempUsageDetail_20' ) end [2025-03-07 19:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:35:27] Production.INFO: ==15135== Releasing lock... [2025-03-07 19:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:35:27] Production.INFO: 91.5 MB #Memory Used# [2025-03-07 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:36:06 [end_date_ymd] => 2025-03-07 19:36:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:36:06' and `end` < '2025-03-07 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-03-07 19:36:18] Production.INFO: count ==8439 [2025-03-07 19:36:22] Production.ERROR: pbx CDR StartTime 2025-03-07 16:36:06 - End Time 2025-03-07 19:36:06 [2025-03-07 19:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629990', 'tblTempUsageDetail_20' ) start [2025-03-07 19:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629990', 'tblTempUsageDetail_20' ) end [2025-03-07 19:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629990', 'tblTempVendorCDR_20' ) start [2025-03-07 19:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629990', 'tblTempVendorCDR_20' ) end [2025-03-07 19:36:23] Production.INFO: ProcessCDR(1,14629990,1,1,2) [2025-03-07 19:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629990', 'tblTempUsageDetail_20' ) start [2025-03-07 19:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629990', 'tblTempUsageDetail_20' ) end [2025-03-07 19:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:36:28] Production.INFO: ==15207== Releasing lock... [2025-03-07 19:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:36:28] Production.INFO: 91.75 MB #Memory Used# [2025-03-07 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:37:06 [end_date_ymd] => 2025-03-07 19:37:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:37:06' and `end` < '2025-03-07 19: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-03-07 19:37:19] Production.INFO: count ==8431 [2025-03-07 19:37:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:37:06 - End Time 2025-03-07 19:37:06 [2025-03-07 19:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629995', 'tblTempUsageDetail_20' ) start [2025-03-07 19:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14629995', 'tblTempUsageDetail_20' ) end [2025-03-07 19:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629995', 'tblTempVendorCDR_20' ) start [2025-03-07 19:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14629995', 'tblTempVendorCDR_20' ) end [2025-03-07 19:37:23] Production.INFO: ProcessCDR(1,14629995,1,1,2) [2025-03-07 19:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14629995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14629995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14629995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14629995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629995', 'tblTempUsageDetail_20' ) start [2025-03-07 19:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14629995', 'tblTempUsageDetail_20' ) end [2025-03-07 19:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:37:27] Production.INFO: ==15277== Releasing lock... [2025-03-07 19:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:37:27] Production.INFO: 91.5 MB #Memory Used# [2025-03-07 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:38:05 [end_date_ymd] => 2025-03-07 19:38:05 [RateCDR] => 1 ) [2025-03-07 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 16:38:05' and `end` < '2025-03-07 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 19:38:19] Production.INFO: count ==8441 [2025-03-07 19:38:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:38:05 - End Time 2025-03-07 19:38:05 [2025-03-07 19:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630000', 'tblTempUsageDetail_20' ) start [2025-03-07 19:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630000', 'tblTempUsageDetail_20' ) end [2025-03-07 19:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630000', 'tblTempVendorCDR_20' ) start [2025-03-07 19:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630000', 'tblTempVendorCDR_20' ) end [2025-03-07 19:38:23] Production.INFO: ProcessCDR(1,14630000,1,1,2) [2025-03-07 19:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630000', 'tblTempUsageDetail_20' ) start [2025-03-07 19:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630000', 'tblTempUsageDetail_20' ) end [2025-03-07 19:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:38:28] Production.INFO: ==15354== Releasing lock... [2025-03-07 19:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:38:28] Production.INFO: 91.75 MB #Memory Used# [2025-03-07 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:39:05 [end_date_ymd] => 2025-03-07 19:39:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:39:05' and `end` < '2025-03-07 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-03-07 19:39:18] Production.INFO: count ==8512 [2025-03-07 19:39:22] Production.ERROR: pbx CDR StartTime 2025-03-07 16:39:05 - End Time 2025-03-07 19:39:05 [2025-03-07 19:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630005', 'tblTempUsageDetail_20' ) start [2025-03-07 19:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630005', 'tblTempUsageDetail_20' ) end [2025-03-07 19:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630005', 'tblTempVendorCDR_20' ) start [2025-03-07 19:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630005', 'tblTempVendorCDR_20' ) end [2025-03-07 19:39:22] Production.INFO: ProcessCDR(1,14630005,1,1,2) [2025-03-07 19:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630005', 'tblTempUsageDetail_20' ) start [2025-03-07 19:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630005', 'tblTempUsageDetail_20' ) end [2025-03-07 19:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:39:27] Production.INFO: ==15430== Releasing lock... [2025-03-07 19:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:39:27] Production.INFO: 92.25 MB #Memory Used# [2025-03-07 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:40:06 [end_date_ymd] => 2025-03-07 19:40:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:40:06' and `end` < '2025-03-07 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-03-07 19:40:19] Production.INFO: count ==8529 [2025-03-07 19:40:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:40:06 - End Time 2025-03-07 19:40:06 [2025-03-07 19:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630011', 'tblTempUsageDetail_20' ) start [2025-03-07 19:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630011', 'tblTempUsageDetail_20' ) end [2025-03-07 19:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630011', 'tblTempVendorCDR_20' ) start [2025-03-07 19:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630011', 'tblTempVendorCDR_20' ) end [2025-03-07 19:40:23] Production.INFO: ProcessCDR(1,14630011,1,1,2) [2025-03-07 19:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630011', 'tblTempUsageDetail_20' ) start [2025-03-07 19:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630011', 'tblTempUsageDetail_20' ) end [2025-03-07 19:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:40:27] Production.INFO: ==15506== Releasing lock... [2025-03-07 19:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:40:27] Production.INFO: 92.25 MB #Memory Used# [2025-03-07 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:41:04 [end_date_ymd] => 2025-03-07 19:41:04 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:41:04' and `end` < '2025-03-07 19: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-03-07 19:41:18] Production.INFO: count ==8522 [2025-03-07 19:41:22] Production.ERROR: pbx CDR StartTime 2025-03-07 16:41:04 - End Time 2025-03-07 19:41:04 [2025-03-07 19:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630016', 'tblTempUsageDetail_20' ) start [2025-03-07 19:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630016', 'tblTempUsageDetail_20' ) end [2025-03-07 19:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630016', 'tblTempVendorCDR_20' ) start [2025-03-07 19:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630016', 'tblTempVendorCDR_20' ) end [2025-03-07 19:41:22] Production.INFO: ProcessCDR(1,14630016,1,1,2) [2025-03-07 19:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630016', 'tblTempUsageDetail_20' ) start [2025-03-07 19:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630016', 'tblTempUsageDetail_20' ) end [2025-03-07 19:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:41:26] Production.INFO: ==15583== Releasing lock... [2025-03-07 19:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:41:26] Production.INFO: 92.25 MB #Memory Used# [2025-03-07 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:42:05 [end_date_ymd] => 2025-03-07 19:42:05 [RateCDR] => 1 ) [2025-03-07 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 16:42:05' and `end` < '2025-03-07 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 19:42:18] Production.INFO: count ==8535 [2025-03-07 19:42:22] Production.ERROR: pbx CDR StartTime 2025-03-07 16:42:05 - End Time 2025-03-07 19:42:05 [2025-03-07 19:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630021', 'tblTempUsageDetail_20' ) start [2025-03-07 19:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630021', 'tblTempUsageDetail_20' ) end [2025-03-07 19:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630021', 'tblTempVendorCDR_20' ) start [2025-03-07 19:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630021', 'tblTempVendorCDR_20' ) end [2025-03-07 19:42:23] Production.INFO: ProcessCDR(1,14630021,1,1,2) [2025-03-07 19:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630021', 'tblTempUsageDetail_20' ) start [2025-03-07 19:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630021', 'tblTempUsageDetail_20' ) end [2025-03-07 19:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:42:26] Production.INFO: ==15654== Releasing lock... [2025-03-07 19:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:42:26] Production.INFO: 92.25 MB #Memory Used# [2025-03-07 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:43:06 [end_date_ymd] => 2025-03-07 19:43:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:43:06' and `end` < '2025-03-07 19: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-03-07 19:43:19] Production.INFO: count ==8542 [2025-03-07 19:43:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:43:06 - End Time 2025-03-07 19:43:06 [2025-03-07 19:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630026', 'tblTempUsageDetail_20' ) start [2025-03-07 19:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630026', 'tblTempUsageDetail_20' ) end [2025-03-07 19:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630026', 'tblTempVendorCDR_20' ) start [2025-03-07 19:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630026', 'tblTempVendorCDR_20' ) end [2025-03-07 19:43:24] Production.INFO: ProcessCDR(1,14630026,1,1,2) [2025-03-07 19:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630026', 'tblTempUsageDetail_20' ) start [2025-03-07 19:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630026', 'tblTempUsageDetail_20' ) end [2025-03-07 19:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:43:28] Production.INFO: ==15725== Releasing lock... [2025-03-07 19:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:43:28] Production.INFO: 92.5 MB #Memory Used# [2025-03-07 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:44:05 [end_date_ymd] => 2025-03-07 19:44:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:44:05' and `end` < '2025-03-07 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-03-07 19:44:18] Production.INFO: count ==8540 [2025-03-07 19:44:22] Production.ERROR: pbx CDR StartTime 2025-03-07 16:44:05 - End Time 2025-03-07 19:44:05 [2025-03-07 19:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630031', 'tblTempUsageDetail_20' ) start [2025-03-07 19:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630031', 'tblTempUsageDetail_20' ) end [2025-03-07 19:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630031', 'tblTempVendorCDR_20' ) start [2025-03-07 19:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630031', 'tblTempVendorCDR_20' ) end [2025-03-07 19:44:23] Production.INFO: ProcessCDR(1,14630031,1,1,2) [2025-03-07 19:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630031', 'tblTempUsageDetail_20' ) start [2025-03-07 19:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630031', 'tblTempUsageDetail_20' ) end [2025-03-07 19:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:44:26] Production.INFO: ==15797== Releasing lock... [2025-03-07 19:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:44:26] Production.INFO: 92.5 MB #Memory Used# [2025-03-07 19:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:45:06 [end_date_ymd] => 2025-03-07 19:45:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:45:06' and `end` < '2025-03-07 19: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-03-07 19:45:19] Production.INFO: count ==8543 [2025-03-07 19:45:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:45:06 - End Time 2025-03-07 19:45:06 [2025-03-07 19:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630036', 'tblTempUsageDetail_20' ) start [2025-03-07 19:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630036', 'tblTempUsageDetail_20' ) end [2025-03-07 19:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630036', 'tblTempVendorCDR_20' ) start [2025-03-07 19:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630036', 'tblTempVendorCDR_20' ) end [2025-03-07 19:45:24] Production.INFO: ProcessCDR(1,14630036,1,1,2) [2025-03-07 19:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630036', 'tblTempUsageDetail_20' ) start [2025-03-07 19:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630036', 'tblTempUsageDetail_20' ) end [2025-03-07 19:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:45:27] Production.INFO: ==15868== Releasing lock... [2025-03-07 19:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:45:27] Production.INFO: 92.5 MB #Memory Used# [2025-03-07 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:46:05 [end_date_ymd] => 2025-03-07 19:46:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:46:05' and `end` < '2025-03-07 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-03-07 19:46:19] Production.INFO: count ==8540 [2025-03-07 19:46:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:46:05 - End Time 2025-03-07 19:46:05 [2025-03-07 19:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630041', 'tblTempUsageDetail_20' ) start [2025-03-07 19:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630041', 'tblTempUsageDetail_20' ) end [2025-03-07 19:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630041', 'tblTempVendorCDR_20' ) start [2025-03-07 19:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630041', 'tblTempVendorCDR_20' ) end [2025-03-07 19:46:24] Production.INFO: ProcessCDR(1,14630041,1,1,2) [2025-03-07 19:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630041', 'tblTempUsageDetail_20' ) start [2025-03-07 19:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630041', 'tblTempUsageDetail_20' ) end [2025-03-07 19:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:46:28] Production.INFO: ==15938== Releasing lock... [2025-03-07 19:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:46:28] Production.INFO: 92.5 MB #Memory Used# [2025-03-07 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:47:06 [end_date_ymd] => 2025-03-07 19:47:06 [RateCDR] => 1 ) [2025-03-07 19:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 16:47:06' and `end` < '2025-03-07 19: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-03-07 19:47:19] Production.INFO: count ==8536 [2025-03-07 19:47:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:47:06 - End Time 2025-03-07 19:47:06 [2025-03-07 19:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630046', 'tblTempUsageDetail_20' ) start [2025-03-07 19:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630046', 'tblTempUsageDetail_20' ) end [2025-03-07 19:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630046', 'tblTempVendorCDR_20' ) start [2025-03-07 19:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630046', 'tblTempVendorCDR_20' ) end [2025-03-07 19:47:23] Production.INFO: ProcessCDR(1,14630046,1,1,2) [2025-03-07 19:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630046', 'tblTempUsageDetail_20' ) start [2025-03-07 19:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630046', 'tblTempUsageDetail_20' ) end [2025-03-07 19:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:47:28] Production.INFO: ==16011== Releasing lock... [2025-03-07 19:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:47:28] Production.INFO: 92.25 MB #Memory Used# [2025-03-07 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:48:05 [end_date_ymd] => 2025-03-07 19:48:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:48:05' and `end` < '2025-03-07 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-03-07 19:48:18] Production.INFO: count ==8532 [2025-03-07 19:48:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:48:05 - End Time 2025-03-07 19:48:05 [2025-03-07 19:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630051', 'tblTempUsageDetail_20' ) start [2025-03-07 19:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630051', 'tblTempUsageDetail_20' ) end [2025-03-07 19:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630051', 'tblTempVendorCDR_20' ) start [2025-03-07 19:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630051', 'tblTempVendorCDR_20' ) end [2025-03-07 19:48:23] Production.INFO: ProcessCDR(1,14630051,1,1,2) [2025-03-07 19:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630051', 'tblTempUsageDetail_20' ) start [2025-03-07 19:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630051', 'tblTempUsageDetail_20' ) end [2025-03-07 19:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:48:26] Production.INFO: ==16089== Releasing lock... [2025-03-07 19:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:48:26] Production.INFO: 92.25 MB #Memory Used# [2025-03-07 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:49:06 [end_date_ymd] => 2025-03-07 19:49:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:49:06' and `end` < '2025-03-07 19: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-03-07 19:49:18] Production.INFO: count ==8529 [2025-03-07 19:49:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:49:06 - End Time 2025-03-07 19:49:06 [2025-03-07 19:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630056', 'tblTempUsageDetail_20' ) start [2025-03-07 19:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630056', 'tblTempUsageDetail_20' ) end [2025-03-07 19:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630056', 'tblTempVendorCDR_20' ) start [2025-03-07 19:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630056', 'tblTempVendorCDR_20' ) end [2025-03-07 19:49:23] Production.INFO: ProcessCDR(1,14630056,1,1,2) [2025-03-07 19:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630056', 'tblTempUsageDetail_20' ) start [2025-03-07 19:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630056', 'tblTempUsageDetail_20' ) end [2025-03-07 19:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:49:26] Production.INFO: ==16159== Releasing lock... [2025-03-07 19:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:49:26] Production.INFO: 92.25 MB #Memory Used# [2025-03-07 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:50:06 [end_date_ymd] => 2025-03-07 19:50:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:50:06' and `end` < '2025-03-07 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-03-07 19:50:19] Production.INFO: count ==8524 [2025-03-07 19:50:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:50:06 - End Time 2025-03-07 19:50:06 [2025-03-07 19:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630062', 'tblTempUsageDetail_20' ) start [2025-03-07 19:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630062', 'tblTempUsageDetail_20' ) end [2025-03-07 19:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630062', 'tblTempVendorCDR_20' ) start [2025-03-07 19:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630062', 'tblTempVendorCDR_20' ) end [2025-03-07 19:50:23] Production.INFO: ProcessCDR(1,14630062,1,1,2) [2025-03-07 19:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630062', 'tblTempUsageDetail_20' ) start [2025-03-07 19:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630062', 'tblTempUsageDetail_20' ) end [2025-03-07 19:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:50:27] Production.INFO: ==16272== Releasing lock... [2025-03-07 19:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:50:27] Production.INFO: 92.25 MB #Memory Used# [2025-03-07 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:51:06 [end_date_ymd] => 2025-03-07 19:51:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:51:06' and `end` < '2025-03-07 19: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-03-07 19:51:19] Production.INFO: count ==8418 [2025-03-07 19:51:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:51:06 - End Time 2025-03-07 19:51:06 [2025-03-07 19:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630067', 'tblTempUsageDetail_20' ) start [2025-03-07 19:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630067', 'tblTempUsageDetail_20' ) end [2025-03-07 19:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630067', 'tblTempVendorCDR_20' ) start [2025-03-07 19:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630067', 'tblTempVendorCDR_20' ) end [2025-03-07 19:51:23] Production.INFO: ProcessCDR(1,14630067,1,1,2) [2025-03-07 19:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630067', 'tblTempUsageDetail_20' ) start [2025-03-07 19:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630067', 'tblTempUsageDetail_20' ) end [2025-03-07 19:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:51:27] Production.INFO: ==16346== Releasing lock... [2025-03-07 19:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:51:27] Production.INFO: 91.5 MB #Memory Used# [2025-03-07 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:52:05 [end_date_ymd] => 2025-03-07 19:52:05 [RateCDR] => 1 ) [2025-03-07 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 16:52:05' and `end` < '2025-03-07 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 19:52:18] Production.INFO: count ==8465 [2025-03-07 19:52:22] Production.ERROR: pbx CDR StartTime 2025-03-07 16:52:05 - End Time 2025-03-07 19:52:05 [2025-03-07 19:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630072', 'tblTempUsageDetail_20' ) start [2025-03-07 19:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630072', 'tblTempUsageDetail_20' ) end [2025-03-07 19:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630072', 'tblTempVendorCDR_20' ) start [2025-03-07 19:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630072', 'tblTempVendorCDR_20' ) end [2025-03-07 19:52:22] Production.INFO: ProcessCDR(1,14630072,1,1,2) [2025-03-07 19:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630072', 'tblTempUsageDetail_20' ) start [2025-03-07 19:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630072', 'tblTempUsageDetail_20' ) end [2025-03-07 19:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:52:26] Production.INFO: ==16424== Releasing lock... [2025-03-07 19:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:52:26] Production.INFO: 91.75 MB #Memory Used# [2025-03-07 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:53:06 [end_date_ymd] => 2025-03-07 19:53:06 [RateCDR] => 1 ) [2025-03-07 19:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 16:53:06' and `end` < '2025-03-07 19:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 19:53:19] Production.INFO: count ==8456 [2025-03-07 19:53:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:53:06 - End Time 2025-03-07 19:53:06 [2025-03-07 19:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630077', 'tblTempUsageDetail_20' ) start [2025-03-07 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630077', 'tblTempUsageDetail_20' ) end [2025-03-07 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630077', 'tblTempVendorCDR_20' ) start [2025-03-07 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630077', 'tblTempVendorCDR_20' ) end [2025-03-07 19:53:23] Production.INFO: ProcessCDR(1,14630077,1,1,2) [2025-03-07 19:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630077', 'tblTempUsageDetail_20' ) start [2025-03-07 19:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630077', 'tblTempUsageDetail_20' ) end [2025-03-07 19:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:53:26] Production.INFO: ==16494== Releasing lock... [2025-03-07 19:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:53:26] Production.INFO: 91.75 MB #Memory Used# [2025-03-07 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:54:06 [end_date_ymd] => 2025-03-07 19:54:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:54:06' and `end` < '2025-03-07 19: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-03-07 19:54:19] Production.INFO: count ==8451 [2025-03-07 19:54:22] Production.ERROR: pbx CDR StartTime 2025-03-07 16:54:06 - End Time 2025-03-07 19:54:06 [2025-03-07 19:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630082', 'tblTempUsageDetail_20' ) start [2025-03-07 19:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630082', 'tblTempUsageDetail_20' ) end [2025-03-07 19:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630082', 'tblTempVendorCDR_20' ) start [2025-03-07 19:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630082', 'tblTempVendorCDR_20' ) end [2025-03-07 19:54:23] Production.INFO: ProcessCDR(1,14630082,1,1,2) [2025-03-07 19:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630082', 'tblTempUsageDetail_20' ) start [2025-03-07 19:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630082', 'tblTempUsageDetail_20' ) end [2025-03-07 19:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:54:28] Production.INFO: ==16597== Releasing lock... [2025-03-07 19:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:54:28] Production.INFO: 91.75 MB #Memory Used# [2025-03-07 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:55:05 [end_date_ymd] => 2025-03-07 19:55:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:55:05' and `end` < '2025-03-07 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-03-07 19:55:18] Production.INFO: count ==8440 [2025-03-07 19:55:22] Production.ERROR: pbx CDR StartTime 2025-03-07 16:55:05 - End Time 2025-03-07 19:55:05 [2025-03-07 19:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630087', 'tblTempUsageDetail_20' ) start [2025-03-07 19:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630087', 'tblTempUsageDetail_20' ) end [2025-03-07 19:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630087', 'tblTempVendorCDR_20' ) start [2025-03-07 19:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630087', 'tblTempVendorCDR_20' ) end [2025-03-07 19:55:22] Production.INFO: ProcessCDR(1,14630087,1,1,2) [2025-03-07 19:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630087', 'tblTempUsageDetail_20' ) start [2025-03-07 19:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630087', 'tblTempUsageDetail_20' ) end [2025-03-07 19:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:55:26] Production.INFO: ==16668== Releasing lock... [2025-03-07 19:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:55:26] Production.INFO: 91.75 MB #Memory Used# [2025-03-07 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:56:06 [end_date_ymd] => 2025-03-07 19:56:06 [RateCDR] => 1 ) [2025-03-07 19: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-03-07 16:56:06' and `end` < '2025-03-07 19: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-03-07 19:56:18] Production.INFO: count ==8474 [2025-03-07 19:56:23] Production.ERROR: pbx CDR StartTime 2025-03-07 16:56:06 - End Time 2025-03-07 19:56:06 [2025-03-07 19:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630092', 'tblTempUsageDetail_20' ) start [2025-03-07 19:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630092', 'tblTempUsageDetail_20' ) end [2025-03-07 19:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630092', 'tblTempVendorCDR_20' ) start [2025-03-07 19:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630092', 'tblTempVendorCDR_20' ) end [2025-03-07 19:56:23] Production.INFO: ProcessCDR(1,14630092,1,1,2) [2025-03-07 19:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630092', 'tblTempUsageDetail_20' ) start [2025-03-07 19:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630092', 'tblTempUsageDetail_20' ) end [2025-03-07 19:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:56:26] Production.INFO: ==16740== Releasing lock... [2025-03-07 19:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:56:26] Production.INFO: 92 MB #Memory Used# [2025-03-07 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:57:05 [end_date_ymd] => 2025-03-07 19:57:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:57:05' and `end` < '2025-03-07 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-03-07 19:57:18] Production.INFO: count ==8480 [2025-03-07 19:57:22] Production.ERROR: pbx CDR StartTime 2025-03-07 16:57:05 - End Time 2025-03-07 19:57:05 [2025-03-07 19:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630097', 'tblTempUsageDetail_20' ) start [2025-03-07 19:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630097', 'tblTempUsageDetail_20' ) end [2025-03-07 19:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630097', 'tblTempVendorCDR_20' ) start [2025-03-07 19:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630097', 'tblTempVendorCDR_20' ) end [2025-03-07 19:57:22] Production.INFO: ProcessCDR(1,14630097,1,1,2) [2025-03-07 19:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630097', 'tblTempUsageDetail_20' ) start [2025-03-07 19:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630097', 'tblTempUsageDetail_20' ) end [2025-03-07 19:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:57:27] Production.INFO: ==16815== Releasing lock... [2025-03-07 19:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:57:27] Production.INFO: 92 MB #Memory Used# [2025-03-07 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:58:05 [end_date_ymd] => 2025-03-07 19:58:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:58:05' and `end` < '2025-03-07 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-03-07 19:58:18] Production.INFO: count ==8502 [2025-03-07 19:58:22] Production.ERROR: pbx CDR StartTime 2025-03-07 16:58:05 - End Time 2025-03-07 19:58:05 [2025-03-07 19:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630102', 'tblTempUsageDetail_20' ) start [2025-03-07 19:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630102', 'tblTempUsageDetail_20' ) end [2025-03-07 19:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630102', 'tblTempVendorCDR_20' ) start [2025-03-07 19:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630102', 'tblTempVendorCDR_20' ) end [2025-03-07 19:58:23] Production.INFO: ProcessCDR(1,14630102,1,1,2) [2025-03-07 19:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630102', 'tblTempUsageDetail_20' ) start [2025-03-07 19:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630102', 'tblTempUsageDetail_20' ) end [2025-03-07 19:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:58:28] Production.INFO: ==16885== Releasing lock... [2025-03-07 19:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:58:28] Production.INFO: 92 MB #Memory Used# [2025-03-07 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 16:59:05 [end_date_ymd] => 2025-03-07 19:59:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 16:59:05' and `end` < '2025-03-07 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-03-07 19:59:18] Production.INFO: count ==8515 [2025-03-07 19:59:22] Production.ERROR: pbx CDR StartTime 2025-03-07 16:59:05 - End Time 2025-03-07 19:59:05 [2025-03-07 19:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 19:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630107', 'tblTempUsageDetail_20' ) start [2025-03-07 19:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630107', 'tblTempUsageDetail_20' ) end [2025-03-07 19:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630107', 'tblTempVendorCDR_20' ) start [2025-03-07 19:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630107', 'tblTempVendorCDR_20' ) end [2025-03-07 19:59:22] Production.INFO: ProcessCDR(1,14630107,1,1,2) [2025-03-07 19:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 19:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 19:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630107', 'tblTempUsageDetail_20' ) start [2025-03-07 19:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630107', 'tblTempUsageDetail_20' ) end [2025-03-07 19:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 19:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 19:59:26] Production.INFO: ==16960== Releasing lock... [2025-03-07 19:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 19:59:26] Production.INFO: 92.25 MB #Memory Used# [2025-03-07 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:00:06 [end_date_ymd] => 2025-03-07 20:00:06 [RateCDR] => 1 ) [2025-03-07 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 17:00:06' and `end` < '2025-03-07 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 20:00:19] Production.INFO: count ==8532 [2025-03-07 20:00:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:00:06 - End Time 2025-03-07 20:00:06 [2025-03-07 20:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630112', 'tblTempUsageDetail_20' ) start [2025-03-07 20:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630112', 'tblTempUsageDetail_20' ) end [2025-03-07 20:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630112', 'tblTempVendorCDR_20' ) start [2025-03-07 20:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630112', 'tblTempVendorCDR_20' ) end [2025-03-07 20:00:24] Production.INFO: ProcessCDR(1,14630112,1,1,2) [2025-03-07 20:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630112', 'tblTempUsageDetail_20' ) start [2025-03-07 20:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630112', 'tblTempUsageDetail_20' ) end [2025-03-07 20:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:00:27] Production.INFO: ==17071== Releasing lock... [2025-03-07 20:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:00:27] Production.INFO: 92.25 MB #Memory Used# [2025-03-07 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:01:05 [end_date_ymd] => 2025-03-07 20:01:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:01:05' and `end` < '2025-03-07 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-03-07 20:01:19] Production.INFO: count ==8525 [2025-03-07 20:01:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:01:05 - End Time 2025-03-07 20:01:05 [2025-03-07 20:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630118', 'tblTempUsageDetail_20' ) start [2025-03-07 20:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630118', 'tblTempUsageDetail_20' ) end [2025-03-07 20:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630118', 'tblTempVendorCDR_20' ) start [2025-03-07 20:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630118', 'tblTempVendorCDR_20' ) end [2025-03-07 20:01:23] Production.INFO: ProcessCDR(1,14630118,1,1,2) [2025-03-07 20:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630118', 'tblTempUsageDetail_20' ) start [2025-03-07 20:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630118', 'tblTempUsageDetail_20' ) end [2025-03-07 20:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:01:27] Production.INFO: ==17168== Releasing lock... [2025-03-07 20:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:01:27] Production.INFO: 92.25 MB #Memory Used# [2025-03-07 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:02:05 [end_date_ymd] => 2025-03-07 20:02:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:02:05' and `end` < '2025-03-07 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-03-07 20:02:18] Production.INFO: count ==8537 [2025-03-07 20:02:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:02:05 - End Time 2025-03-07 20:02:05 [2025-03-07 20:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630123', 'tblTempUsageDetail_20' ) start [2025-03-07 20:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630123', 'tblTempUsageDetail_20' ) end [2025-03-07 20:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630123', 'tblTempVendorCDR_20' ) start [2025-03-07 20:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630123', 'tblTempVendorCDR_20' ) end [2025-03-07 20:02:23] Production.INFO: ProcessCDR(1,14630123,1,1,2) [2025-03-07 20:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630123', 'tblTempUsageDetail_20' ) start [2025-03-07 20:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630123', 'tblTempUsageDetail_20' ) end [2025-03-07 20:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:02:26] Production.INFO: ==17242== Releasing lock... [2025-03-07 20:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:02:26] Production.INFO: 92.25 MB #Memory Used# [2025-03-07 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:03:06 [end_date_ymd] => 2025-03-07 20:03:06 [RateCDR] => 1 ) [2025-03-07 20:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 17:03:06' and `end` < '2025-03-07 20:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 20:03:19] Production.INFO: count ==8553 [2025-03-07 20:03:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:03:06 - End Time 2025-03-07 20:03:06 [2025-03-07 20:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630128', 'tblTempUsageDetail_20' ) start [2025-03-07 20:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630128', 'tblTempUsageDetail_20' ) end [2025-03-07 20:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630128', 'tblTempVendorCDR_20' ) start [2025-03-07 20:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630128', 'tblTempVendorCDR_20' ) end [2025-03-07 20:03:23] Production.INFO: ProcessCDR(1,14630128,1,1,2) [2025-03-07 20:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630128', 'tblTempUsageDetail_20' ) start [2025-03-07 20:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630128', 'tblTempUsageDetail_20' ) end [2025-03-07 20:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:03:28] Production.INFO: ==17313== Releasing lock... [2025-03-07 20:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:03:28] Production.INFO: 92.5 MB #Memory Used# [2025-03-07 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:04:05 [end_date_ymd] => 2025-03-07 20:04:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:04:05' and `end` < '2025-03-07 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-03-07 20:04:19] Production.INFO: count ==8561 [2025-03-07 20:04:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:04:05 - End Time 2025-03-07 20:04:05 [2025-03-07 20:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630133', 'tblTempUsageDetail_20' ) start [2025-03-07 20:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630133', 'tblTempUsageDetail_20' ) end [2025-03-07 20:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630133', 'tblTempVendorCDR_20' ) start [2025-03-07 20:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630133', 'tblTempVendorCDR_20' ) end [2025-03-07 20:04:23] Production.INFO: ProcessCDR(1,14630133,1,1,2) [2025-03-07 20:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630133', 'tblTempUsageDetail_20' ) start [2025-03-07 20:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630133', 'tblTempUsageDetail_20' ) end [2025-03-07 20:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:04:28] Production.INFO: ==17383== Releasing lock... [2025-03-07 20:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:04:28] Production.INFO: 92.5 MB #Memory Used# [2025-03-07 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:05:06 [end_date_ymd] => 2025-03-07 20:05:06 [RateCDR] => 1 ) [2025-03-07 20:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 17:05:06' and `end` < '2025-03-07 20:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 20:05:19] Production.INFO: count ==8561 [2025-03-07 20:05:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:05:06 - End Time 2025-03-07 20:05:06 [2025-03-07 20:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630138', 'tblTempUsageDetail_20' ) start [2025-03-07 20:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630138', 'tblTempUsageDetail_20' ) end [2025-03-07 20:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630138', 'tblTempVendorCDR_20' ) start [2025-03-07 20:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630138', 'tblTempVendorCDR_20' ) end [2025-03-07 20:05:23] Production.INFO: ProcessCDR(1,14630138,1,1,2) [2025-03-07 20:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630138', 'tblTempUsageDetail_20' ) start [2025-03-07 20:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630138', 'tblTempUsageDetail_20' ) end [2025-03-07 20:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:05:28] Production.INFO: ==17453== Releasing lock... [2025-03-07 20:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:05:28] Production.INFO: 92.5 MB #Memory Used# [2025-03-07 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:06:05 [end_date_ymd] => 2025-03-07 20:06:05 [RateCDR] => 1 ) [2025-03-07 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 17:06:05' and `end` < '2025-03-07 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 20:06:18] Production.INFO: count ==8572 [2025-03-07 20:06:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:06:05 - End Time 2025-03-07 20:06:05 [2025-03-07 20:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630143', 'tblTempUsageDetail_20' ) start [2025-03-07 20:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630143', 'tblTempUsageDetail_20' ) end [2025-03-07 20:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630143', 'tblTempVendorCDR_20' ) start [2025-03-07 20:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630143', 'tblTempVendorCDR_20' ) end [2025-03-07 20:06:23] Production.INFO: ProcessCDR(1,14630143,1,1,2) [2025-03-07 20:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630143', 'tblTempUsageDetail_20' ) start [2025-03-07 20:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630143', 'tblTempUsageDetail_20' ) end [2025-03-07 20:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:06:27] Production.INFO: ==17565== Releasing lock... [2025-03-07 20:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:06:27] Production.INFO: 92.5 MB #Memory Used# [2025-03-07 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:07:05 [end_date_ymd] => 2025-03-07 20:07:05 [RateCDR] => 1 ) [2025-03-07 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 17:07:05' and `end` < '2025-03-07 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-03-07 20:07:18] Production.INFO: count ==8573 [2025-03-07 20:07:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:07:05 - End Time 2025-03-07 20:07:05 [2025-03-07 20:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630148', 'tblTempUsageDetail_20' ) start [2025-03-07 20:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630148', 'tblTempUsageDetail_20' ) end [2025-03-07 20:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630148', 'tblTempVendorCDR_20' ) start [2025-03-07 20:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630148', 'tblTempVendorCDR_20' ) end [2025-03-07 20:07:23] Production.INFO: ProcessCDR(1,14630148,1,1,2) [2025-03-07 20:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630148', 'tblTempUsageDetail_20' ) start [2025-03-07 20:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630148', 'tblTempUsageDetail_20' ) end [2025-03-07 20:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:07:26] Production.INFO: ==17636== Releasing lock... [2025-03-07 20:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:07:26] Production.INFO: 92.75 MB #Memory Used# [2025-03-07 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:08:05 [end_date_ymd] => 2025-03-07 20:08:05 [RateCDR] => 1 ) [2025-03-07 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 17:08:05' and `end` < '2025-03-07 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 20:08:18] Production.INFO: count ==8578 [2025-03-07 20:08:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:08:05 - End Time 2025-03-07 20:08:05 [2025-03-07 20:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630153', 'tblTempUsageDetail_20' ) start [2025-03-07 20:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630153', 'tblTempUsageDetail_20' ) end [2025-03-07 20:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630153', 'tblTempVendorCDR_20' ) start [2025-03-07 20:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630153', 'tblTempVendorCDR_20' ) end [2025-03-07 20:08:23] Production.INFO: ProcessCDR(1,14630153,1,1,2) [2025-03-07 20:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630153', 'tblTempUsageDetail_20' ) start [2025-03-07 20:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630153', 'tblTempUsageDetail_20' ) end [2025-03-07 20:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:08:26] Production.INFO: ==17709== Releasing lock... [2025-03-07 20:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:08:26] Production.INFO: 92.75 MB #Memory Used# [2025-03-07 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:09:06 [end_date_ymd] => 2025-03-07 20:09:06 [RateCDR] => 1 ) [2025-03-07 20: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-03-07 17:09:06' and `end` < '2025-03-07 20: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-03-07 20:09:18] Production.INFO: count ==8569 [2025-03-07 20:09:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:09:06 - End Time 2025-03-07 20:09:06 [2025-03-07 20:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630158', 'tblTempUsageDetail_20' ) start [2025-03-07 20:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630158', 'tblTempUsageDetail_20' ) end [2025-03-07 20:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630158', 'tblTempVendorCDR_20' ) start [2025-03-07 20:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630158', 'tblTempVendorCDR_20' ) end [2025-03-07 20:09:23] Production.INFO: ProcessCDR(1,14630158,1,1,2) [2025-03-07 20:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630158', 'tblTempUsageDetail_20' ) start [2025-03-07 20:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630158', 'tblTempUsageDetail_20' ) end [2025-03-07 20:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:09:27] Production.INFO: ==17781== Releasing lock... [2025-03-07 20:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:09:27] Production.INFO: 92.5 MB #Memory Used# [2025-03-07 20:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:10:07 [end_date_ymd] => 2025-03-07 20:10:07 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:10:07' and `end` < '2025-03-07 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-03-07 20:10:20] Production.INFO: count ==8540 [2025-03-07 20:10:24] Production.ERROR: pbx CDR StartTime 2025-03-07 17:10:07 - End Time 2025-03-07 20:10:07 [2025-03-07 20:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630164', 'tblTempUsageDetail_20' ) start [2025-03-07 20:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630164', 'tblTempUsageDetail_20' ) end [2025-03-07 20:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630164', 'tblTempVendorCDR_20' ) start [2025-03-07 20:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630164', 'tblTempVendorCDR_20' ) end [2025-03-07 20:10:24] Production.INFO: ProcessCDR(1,14630164,1,1,2) [2025-03-07 20:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630164', 'tblTempUsageDetail_20' ) start [2025-03-07 20:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630164', 'tblTempUsageDetail_20' ) end [2025-03-07 20:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:10:29] Production.INFO: ==17855== Releasing lock... [2025-03-07 20:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:10:29] Production.INFO: 92.5 MB #Memory Used# [2025-03-07 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:11:05 [end_date_ymd] => 2025-03-07 20:11:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:11:05' and `end` < '2025-03-07 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-03-07 20:11:19] Production.INFO: count ==8470 [2025-03-07 20:11:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:11:05 - End Time 2025-03-07 20:11:05 [2025-03-07 20:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630169', 'tblTempUsageDetail_20' ) start [2025-03-07 20:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630169', 'tblTempUsageDetail_20' ) end [2025-03-07 20:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630169', 'tblTempVendorCDR_20' ) start [2025-03-07 20:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630169', 'tblTempVendorCDR_20' ) end [2025-03-07 20:11:23] Production.INFO: ProcessCDR(1,14630169,1,1,2) [2025-03-07 20:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630169', 'tblTempUsageDetail_20' ) start [2025-03-07 20:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630169', 'tblTempUsageDetail_20' ) end [2025-03-07 20:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:11:28] Production.INFO: ==17931== Releasing lock... [2025-03-07 20:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:11:28] Production.INFO: 91.75 MB #Memory Used# [2025-03-07 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:12:06 [end_date_ymd] => 2025-03-07 20:12:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:12:06' and `end` < '2025-03-07 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-03-07 20:12:19] Production.INFO: count ==8484 [2025-03-07 20:12:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:12:06 - End Time 2025-03-07 20:12:06 [2025-03-07 20:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630174', 'tblTempUsageDetail_20' ) start [2025-03-07 20:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630174', 'tblTempUsageDetail_20' ) end [2025-03-07 20:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630174', 'tblTempVendorCDR_20' ) start [2025-03-07 20:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630174', 'tblTempVendorCDR_20' ) end [2025-03-07 20:12:23] Production.INFO: ProcessCDR(1,14630174,1,1,2) [2025-03-07 20:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630174', 'tblTempUsageDetail_20' ) start [2025-03-07 20:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630174', 'tblTempUsageDetail_20' ) end [2025-03-07 20:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:12:27] Production.INFO: ==18010== Releasing lock... [2025-03-07 20:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:12:27] Production.INFO: 92 MB #Memory Used# [2025-03-07 20:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:13:06 [end_date_ymd] => 2025-03-07 20:13:06 [RateCDR] => 1 ) [2025-03-07 20: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-03-07 17:13:06' and `end` < '2025-03-07 20: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-03-07 20:13:19] Production.INFO: count ==8498 [2025-03-07 20:13:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:13:06 - End Time 2025-03-07 20:13:06 [2025-03-07 20:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630179', 'tblTempUsageDetail_20' ) start [2025-03-07 20:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630179', 'tblTempUsageDetail_20' ) end [2025-03-07 20:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630179', 'tblTempVendorCDR_20' ) start [2025-03-07 20:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630179', 'tblTempVendorCDR_20' ) end [2025-03-07 20:13:24] Production.INFO: ProcessCDR(1,14630179,1,1,2) [2025-03-07 20:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630179', 'tblTempUsageDetail_20' ) start [2025-03-07 20:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630179', 'tblTempUsageDetail_20' ) end [2025-03-07 20:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:13:27] Production.INFO: ==18084== Releasing lock... [2025-03-07 20:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:13:27] Production.INFO: 92 MB #Memory Used# [2025-03-07 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:14:06 [end_date_ymd] => 2025-03-07 20:14:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:14:06' and `end` < '2025-03-07 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-03-07 20:14:19] Production.INFO: count ==8642 [2025-03-07 20:14:24] Production.ERROR: pbx CDR StartTime 2025-03-07 17:14:06 - End Time 2025-03-07 20:14:06 [2025-03-07 20:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630184', 'tblTempUsageDetail_20' ) start [2025-03-07 20:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630184', 'tblTempUsageDetail_20' ) end [2025-03-07 20:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630184', 'tblTempVendorCDR_20' ) start [2025-03-07 20:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630184', 'tblTempVendorCDR_20' ) end [2025-03-07 20:14:24] Production.INFO: ProcessCDR(1,14630184,1,1,2) [2025-03-07 20:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630184', 'tblTempUsageDetail_20' ) start [2025-03-07 20:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630184', 'tblTempUsageDetail_20' ) end [2025-03-07 20:14:29] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:14:29] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:14:29] Production.INFO: ==18154== Releasing lock... [2025-03-07 20:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:14:29] Production.INFO: 93.25 MB #Memory Used# [2025-03-07 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:15:06 [end_date_ymd] => 2025-03-07 20:15:06 [RateCDR] => 1 ) [2025-03-07 20: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-03-07 17:15:06' and `end` < '2025-03-07 20: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-03-07 20:15:18] Production.INFO: count ==8653 [2025-03-07 20:15:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:15:06 - End Time 2025-03-07 20:15:06 [2025-03-07 20:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630189', 'tblTempUsageDetail_20' ) start [2025-03-07 20:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630189', 'tblTempUsageDetail_20' ) end [2025-03-07 20:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630189', 'tblTempVendorCDR_20' ) start [2025-03-07 20:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630189', 'tblTempVendorCDR_20' ) end [2025-03-07 20:15:23] Production.INFO: ProcessCDR(1,14630189,1,1,2) [2025-03-07 20:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630189', 'tblTempUsageDetail_20' ) start [2025-03-07 20:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630189', 'tblTempUsageDetail_20' ) end [2025-03-07 20:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:15:28] Production.INFO: ==18226== Releasing lock... [2025-03-07 20:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:15:28] Production.INFO: 93.25 MB #Memory Used# [2025-03-07 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:16:05 [end_date_ymd] => 2025-03-07 20:16:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:16:05' and `end` < '2025-03-07 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-03-07 20:16:18] Production.INFO: count ==8663 [2025-03-07 20:16:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:16:05 - End Time 2025-03-07 20:16:05 [2025-03-07 20:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630194', 'tblTempUsageDetail_20' ) start [2025-03-07 20:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630194', 'tblTempUsageDetail_20' ) end [2025-03-07 20:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630194', 'tblTempVendorCDR_20' ) start [2025-03-07 20:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630194', 'tblTempVendorCDR_20' ) end [2025-03-07 20:16:23] Production.INFO: ProcessCDR(1,14630194,1,1,2) [2025-03-07 20:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630194', 'tblTempUsageDetail_20' ) start [2025-03-07 20:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630194', 'tblTempUsageDetail_20' ) end [2025-03-07 20:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:16:26] Production.INFO: ==18297== Releasing lock... [2025-03-07 20:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:16:26] Production.INFO: 93.25 MB #Memory Used# [2025-03-07 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:17:06 [end_date_ymd] => 2025-03-07 20:17:06 [RateCDR] => 1 ) [2025-03-07 20:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 17:17:06' and `end` < '2025-03-07 20:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 20:17:18] Production.INFO: count ==8668 [2025-03-07 20:17:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:17:06 - End Time 2025-03-07 20:17:06 [2025-03-07 20:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630199', 'tblTempUsageDetail_20' ) start [2025-03-07 20:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630199', 'tblTempUsageDetail_20' ) end [2025-03-07 20:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630199', 'tblTempVendorCDR_20' ) start [2025-03-07 20:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630199', 'tblTempVendorCDR_20' ) end [2025-03-07 20:17:23] Production.INFO: ProcessCDR(1,14630199,1,1,2) [2025-03-07 20:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630199', 'tblTempUsageDetail_20' ) start [2025-03-07 20:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630199', 'tblTempUsageDetail_20' ) end [2025-03-07 20:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:17:26] Production.INFO: ==18384== Releasing lock... [2025-03-07 20:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:17:26] Production.INFO: 93.25 MB #Memory Used# [2025-03-07 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:18:05 [end_date_ymd] => 2025-03-07 20:18:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:18:05' and `end` < '2025-03-07 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-03-07 20:18:18] Production.INFO: count ==8559 [2025-03-07 20:18:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:18:05 - End Time 2025-03-07 20:18:05 [2025-03-07 20:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630204', 'tblTempUsageDetail_20' ) start [2025-03-07 20:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630204', 'tblTempUsageDetail_20' ) end [2025-03-07 20:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630204', 'tblTempVendorCDR_20' ) start [2025-03-07 20:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630204', 'tblTempVendorCDR_20' ) end [2025-03-07 20:18:23] Production.INFO: ProcessCDR(1,14630204,1,1,2) [2025-03-07 20:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630204', 'tblTempUsageDetail_20' ) start [2025-03-07 20:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630204', 'tblTempUsageDetail_20' ) end [2025-03-07 20:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:18:26] Production.INFO: ==18469== Releasing lock... [2025-03-07 20:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:18:26] Production.INFO: 92.5 MB #Memory Used# [2025-03-07 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:19:05 [end_date_ymd] => 2025-03-07 20:19:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:19:05' and `end` < '2025-03-07 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-03-07 20:19:18] Production.INFO: count ==8363 [2025-03-07 20:19:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:19:05 - End Time 2025-03-07 20:19:05 [2025-03-07 20:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630209', 'tblTempUsageDetail_20' ) start [2025-03-07 20:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630209', 'tblTempUsageDetail_20' ) end [2025-03-07 20:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630209', 'tblTempVendorCDR_20' ) start [2025-03-07 20:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630209', 'tblTempVendorCDR_20' ) end [2025-03-07 20:19:23] Production.INFO: ProcessCDR(1,14630209,1,1,2) [2025-03-07 20:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630209', 'tblTempUsageDetail_20' ) start [2025-03-07 20:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630209', 'tblTempUsageDetail_20' ) end [2025-03-07 20:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:19:26] Production.INFO: ==18541== Releasing lock... [2025-03-07 20:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:19:26] Production.INFO: 91 MB #Memory Used# [2025-03-07 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:20:06 [end_date_ymd] => 2025-03-07 20:20:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:20:06' and `end` < '2025-03-07 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-03-07 20:20:19] Production.INFO: count ==8216 [2025-03-07 20:20:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:20:06 - End Time 2025-03-07 20:20:06 [2025-03-07 20:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630215', 'tblTempUsageDetail_20' ) start [2025-03-07 20:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630215', 'tblTempUsageDetail_20' ) end [2025-03-07 20:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630215', 'tblTempVendorCDR_20' ) start [2025-03-07 20:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630215', 'tblTempVendorCDR_20' ) end [2025-03-07 20:20:23] Production.INFO: ProcessCDR(1,14630215,1,1,2) [2025-03-07 20:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630215', 'tblTempUsageDetail_20' ) start [2025-03-07 20:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630215', 'tblTempUsageDetail_20' ) end [2025-03-07 20:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:20:28] Production.INFO: ==18614== Releasing lock... [2025-03-07 20:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:20:28] Production.INFO: 90 MB #Memory Used# [2025-03-07 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:21:05 [end_date_ymd] => 2025-03-07 20:21:05 [RateCDR] => 1 ) [2025-03-07 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 17:21:05' and `end` < '2025-03-07 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 20:21:18] Production.INFO: count ==8047 [2025-03-07 20:21:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:21:05 - End Time 2025-03-07 20:21:05 [2025-03-07 20:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630220', 'tblTempUsageDetail_20' ) start [2025-03-07 20:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630220', 'tblTempUsageDetail_20' ) end [2025-03-07 20:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630220', 'tblTempVendorCDR_20' ) start [2025-03-07 20:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630220', 'tblTempVendorCDR_20' ) end [2025-03-07 20:21:22] Production.INFO: ProcessCDR(1,14630220,1,1,2) [2025-03-07 20:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630220', 'tblTempUsageDetail_20' ) start [2025-03-07 20:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630220', 'tblTempUsageDetail_20' ) end [2025-03-07 20:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:21:26] Production.INFO: ==18725== Releasing lock... [2025-03-07 20:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:21:26] Production.INFO: 88.5 MB #Memory Used# [2025-03-07 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:22:05 [end_date_ymd] => 2025-03-07 20:22:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:22:05' and `end` < '2025-03-07 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-03-07 20:22:18] Production.INFO: count ==7969 [2025-03-07 20:22:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:22:05 - End Time 2025-03-07 20:22:05 [2025-03-07 20:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630225', 'tblTempUsageDetail_20' ) start [2025-03-07 20:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630225', 'tblTempUsageDetail_20' ) end [2025-03-07 20:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630225', 'tblTempVendorCDR_20' ) start [2025-03-07 20:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630225', 'tblTempVendorCDR_20' ) end [2025-03-07 20:22:22] Production.INFO: ProcessCDR(1,14630225,1,1,2) [2025-03-07 20:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630225', 'tblTempUsageDetail_20' ) start [2025-03-07 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630225', 'tblTempUsageDetail_20' ) end [2025-03-07 20:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:22:25] Production.INFO: ==18800== Releasing lock... [2025-03-07 20:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:22:25] Production.INFO: 88 MB #Memory Used# [2025-03-07 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:23:05 [end_date_ymd] => 2025-03-07 20:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:23:05' and `end` < '2025-03-07 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-03-07 20:23:18] Production.INFO: count ==7939 [2025-03-07 20:23:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:23:05 - End Time 2025-03-07 20:23:05 [2025-03-07 20:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630230', 'tblTempUsageDetail_20' ) start [2025-03-07 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630230', 'tblTempUsageDetail_20' ) end [2025-03-07 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630230', 'tblTempVendorCDR_20' ) start [2025-03-07 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630230', 'tblTempVendorCDR_20' ) end [2025-03-07 20:23:22] Production.INFO: ProcessCDR(1,14630230,1,1,2) [2025-03-07 20:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630230', 'tblTempUsageDetail_20' ) start [2025-03-07 20:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630230', 'tblTempUsageDetail_20' ) end [2025-03-07 20:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:23:26] Production.INFO: ==18871== Releasing lock... [2025-03-07 20:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:23:26] Production.INFO: 87.75 MB #Memory Used# [2025-03-07 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:24:05 [end_date_ymd] => 2025-03-07 20:24:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:24:05' and `end` < '2025-03-07 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-03-07 20:24:18] Production.INFO: count ==7948 [2025-03-07 20:24:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:24:05 - End Time 2025-03-07 20:24:05 [2025-03-07 20:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630235', 'tblTempUsageDetail_20' ) start [2025-03-07 20:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630235', 'tblTempUsageDetail_20' ) end [2025-03-07 20:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630235', 'tblTempVendorCDR_20' ) start [2025-03-07 20:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630235', 'tblTempVendorCDR_20' ) end [2025-03-07 20:24:22] Production.INFO: ProcessCDR(1,14630235,1,1,2) [2025-03-07 20:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630235', 'tblTempUsageDetail_20' ) start [2025-03-07 20:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630235', 'tblTempUsageDetail_20' ) end [2025-03-07 20:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:24:26] Production.INFO: ==18942== Releasing lock... [2025-03-07 20:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:24:26] Production.INFO: 87.75 MB #Memory Used# [2025-03-07 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:25:05 [end_date_ymd] => 2025-03-07 20:25:05 [RateCDR] => 1 ) [2025-03-07 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 17:25:05' and `end` < '2025-03-07 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 20:25:18] Production.INFO: count ==7958 [2025-03-07 20:25:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:25:05 - End Time 2025-03-07 20:25:05 [2025-03-07 20:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630240', 'tblTempUsageDetail_20' ) start [2025-03-07 20:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630240', 'tblTempUsageDetail_20' ) end [2025-03-07 20:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630240', 'tblTempVendorCDR_20' ) start [2025-03-07 20:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630240', 'tblTempVendorCDR_20' ) end [2025-03-07 20:25:23] Production.INFO: ProcessCDR(1,14630240,1,1,2) [2025-03-07 20:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630240', 'tblTempUsageDetail_20' ) start [2025-03-07 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630240', 'tblTempUsageDetail_20' ) end [2025-03-07 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:25:26] Production.INFO: ==19014== Releasing lock... [2025-03-07 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:25:26] Production.INFO: 88 MB #Memory Used# [2025-03-07 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:26:05 [end_date_ymd] => 2025-03-07 20:26:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:26:05' and `end` < '2025-03-07 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-03-07 20:26:18] Production.INFO: count ==7977 [2025-03-07 20:26:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:26:05 - End Time 2025-03-07 20:26:05 [2025-03-07 20:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630245', 'tblTempUsageDetail_20' ) start [2025-03-07 20:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630245', 'tblTempUsageDetail_20' ) end [2025-03-07 20:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630245', 'tblTempVendorCDR_20' ) start [2025-03-07 20:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630245', 'tblTempVendorCDR_20' ) end [2025-03-07 20:26:23] Production.INFO: ProcessCDR(1,14630245,1,1,2) [2025-03-07 20:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630245', 'tblTempUsageDetail_20' ) start [2025-03-07 20:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630245', 'tblTempUsageDetail_20' ) end [2025-03-07 20:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:26:26] Production.INFO: ==19091== Releasing lock... [2025-03-07 20:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:26:26] Production.INFO: 88 MB #Memory Used# [2025-03-07 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:27:05 [end_date_ymd] => 2025-03-07 20:27:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:27:05' and `end` < '2025-03-07 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-03-07 20:27:18] Production.INFO: count ==8026 [2025-03-07 20:27:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:27:05 - End Time 2025-03-07 20:27:05 [2025-03-07 20:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630250', 'tblTempUsageDetail_20' ) start [2025-03-07 20:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630250', 'tblTempUsageDetail_20' ) end [2025-03-07 20:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630250', 'tblTempVendorCDR_20' ) start [2025-03-07 20:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630250', 'tblTempVendorCDR_20' ) end [2025-03-07 20:27:22] Production.INFO: ProcessCDR(1,14630250,1,1,2) [2025-03-07 20:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630250', 'tblTempUsageDetail_20' ) start [2025-03-07 20:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630250', 'tblTempUsageDetail_20' ) end [2025-03-07 20:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:27:27] Production.INFO: ==19162== Releasing lock... [2025-03-07 20:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:27:27] Production.INFO: 88.5 MB #Memory Used# [2025-03-07 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:28:05 [end_date_ymd] => 2025-03-07 20:28:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:28:05' and `end` < '2025-03-07 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-03-07 20:28:18] Production.INFO: count ==8040 [2025-03-07 20:28:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:28:05 - End Time 2025-03-07 20:28:05 [2025-03-07 20:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630255', 'tblTempUsageDetail_20' ) start [2025-03-07 20:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630255', 'tblTempUsageDetail_20' ) end [2025-03-07 20:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630255', 'tblTempVendorCDR_20' ) start [2025-03-07 20:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630255', 'tblTempVendorCDR_20' ) end [2025-03-07 20:28:22] Production.INFO: ProcessCDR(1,14630255,1,1,2) [2025-03-07 20:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630255', 'tblTempUsageDetail_20' ) start [2025-03-07 20:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630255', 'tblTempUsageDetail_20' ) end [2025-03-07 20:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:28:25] Production.INFO: ==19238== Releasing lock... [2025-03-07 20:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:28:25] Production.INFO: 88.5 MB #Memory Used# [2025-03-07 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:29:05 [end_date_ymd] => 2025-03-07 20:29:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:29:05' and `end` < '2025-03-07 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-03-07 20:29:18] Production.INFO: count ==8051 [2025-03-07 20:29:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:29:05 - End Time 2025-03-07 20:29:05 [2025-03-07 20:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630260', 'tblTempUsageDetail_20' ) start [2025-03-07 20:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630260', 'tblTempUsageDetail_20' ) end [2025-03-07 20:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630260', 'tblTempVendorCDR_20' ) start [2025-03-07 20:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630260', 'tblTempVendorCDR_20' ) end [2025-03-07 20:29:22] Production.INFO: ProcessCDR(1,14630260,1,1,2) [2025-03-07 20:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630260', 'tblTempUsageDetail_20' ) start [2025-03-07 20:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630260', 'tblTempUsageDetail_20' ) end [2025-03-07 20:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:29:27] Production.INFO: ==19310== Releasing lock... [2025-03-07 20:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:29:27] Production.INFO: 88.5 MB #Memory Used# [2025-03-07 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:30:06 [end_date_ymd] => 2025-03-07 20:30:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:30:06' and `end` < '2025-03-07 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-03-07 20:30:18] Production.INFO: count ==8068 [2025-03-07 20:30:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:30:06 - End Time 2025-03-07 20:30:06 [2025-03-07 20:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630266', 'tblTempUsageDetail_20' ) start [2025-03-07 20:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630266', 'tblTempUsageDetail_20' ) end [2025-03-07 20:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630266', 'tblTempVendorCDR_20' ) start [2025-03-07 20:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630266', 'tblTempVendorCDR_20' ) end [2025-03-07 20:30:23] Production.INFO: ProcessCDR(1,14630266,1,1,2) [2025-03-07 20:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630266', 'tblTempUsageDetail_20' ) start [2025-03-07 20:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630266', 'tblTempUsageDetail_20' ) end [2025-03-07 20:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:30:26] Production.INFO: ==19383== Releasing lock... [2025-03-07 20:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:30:26] Production.INFO: 88.75 MB #Memory Used# [2025-03-07 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:31:05 [end_date_ymd] => 2025-03-07 20:31:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:31:05' and `end` < '2025-03-07 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-03-07 20:31:18] Production.INFO: count ==8130 [2025-03-07 20:31:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:31:05 - End Time 2025-03-07 20:31:05 [2025-03-07 20:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630271', 'tblTempUsageDetail_20' ) start [2025-03-07 20:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630271', 'tblTempUsageDetail_20' ) end [2025-03-07 20:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630271', 'tblTempVendorCDR_20' ) start [2025-03-07 20:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630271', 'tblTempVendorCDR_20' ) end [2025-03-07 20:31:23] Production.INFO: ProcessCDR(1,14630271,1,1,2) [2025-03-07 20:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630271', 'tblTempUsageDetail_20' ) start [2025-03-07 20:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630271', 'tblTempUsageDetail_20' ) end [2025-03-07 20:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:31:26] Production.INFO: ==19458== Releasing lock... [2025-03-07 20:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:31:26] Production.INFO: 89.25 MB #Memory Used# [2025-03-07 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:32:05 [end_date_ymd] => 2025-03-07 20:32:05 [RateCDR] => 1 ) [2025-03-07 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 17:32:05' and `end` < '2025-03-07 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 20:32:18] Production.INFO: count ==8145 [2025-03-07 20:32:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:32:05 - End Time 2025-03-07 20:32:05 [2025-03-07 20:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630276', 'tblTempUsageDetail_20' ) start [2025-03-07 20:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630276', 'tblTempUsageDetail_20' ) end [2025-03-07 20:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630276', 'tblTempVendorCDR_20' ) start [2025-03-07 20:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630276', 'tblTempVendorCDR_20' ) end [2025-03-07 20:32:23] Production.INFO: ProcessCDR(1,14630276,1,1,2) [2025-03-07 20:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630276', 'tblTempUsageDetail_20' ) start [2025-03-07 20:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630276', 'tblTempUsageDetail_20' ) end [2025-03-07 20:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:32:26] Production.INFO: ==19531== Releasing lock... [2025-03-07 20:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:32:26] Production.INFO: 89.25 MB #Memory Used# [2025-03-07 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:33:05 [end_date_ymd] => 2025-03-07 20:33:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:33:05' and `end` < '2025-03-07 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-03-07 20:33:18] Production.INFO: count ==8144 [2025-03-07 20:33:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:33:05 - End Time 2025-03-07 20:33:05 [2025-03-07 20:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630281', 'tblTempUsageDetail_20' ) start [2025-03-07 20:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630281', 'tblTempUsageDetail_20' ) end [2025-03-07 20:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630281', 'tblTempVendorCDR_20' ) start [2025-03-07 20:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630281', 'tblTempVendorCDR_20' ) end [2025-03-07 20:33:22] Production.INFO: ProcessCDR(1,14630281,1,1,2) [2025-03-07 20:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630281', 'tblTempUsageDetail_20' ) start [2025-03-07 20:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630281', 'tblTempUsageDetail_20' ) end [2025-03-07 20:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:33:27] Production.INFO: ==19611== Releasing lock... [2025-03-07 20:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:33:27] Production.INFO: 89.25 MB #Memory Used# [2025-03-07 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:34:06 [end_date_ymd] => 2025-03-07 20:34:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:34:06' and `end` < '2025-03-07 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-03-07 20:34:18] Production.INFO: count ==8028 [2025-03-07 20:34:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:34:06 - End Time 2025-03-07 20:34:06 [2025-03-07 20:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630286', 'tblTempUsageDetail_20' ) start [2025-03-07 20:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630286', 'tblTempUsageDetail_20' ) end [2025-03-07 20:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630286', 'tblTempVendorCDR_20' ) start [2025-03-07 20:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630286', 'tblTempVendorCDR_20' ) end [2025-03-07 20:34:22] Production.INFO: ProcessCDR(1,14630286,1,1,2) [2025-03-07 20:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630286', 'tblTempUsageDetail_20' ) start [2025-03-07 20:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630286', 'tblTempUsageDetail_20' ) end [2025-03-07 20:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:34:26] Production.INFO: ==19685== Releasing lock... [2025-03-07 20:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:34:26] Production.INFO: 88.5 MB #Memory Used# [2025-03-07 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:35:05 [end_date_ymd] => 2025-03-07 20:35:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:35:05' and `end` < '2025-03-07 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-03-07 20:35:18] Production.INFO: count ==7901 [2025-03-07 20:35:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:35:05 - End Time 2025-03-07 20:35:05 [2025-03-07 20:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630291', 'tblTempUsageDetail_20' ) start [2025-03-07 20:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630291', 'tblTempUsageDetail_20' ) end [2025-03-07 20:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630291', 'tblTempVendorCDR_20' ) start [2025-03-07 20:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630291', 'tblTempVendorCDR_20' ) end [2025-03-07 20:35:22] Production.INFO: ProcessCDR(1,14630291,1,1,2) [2025-03-07 20:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630291', 'tblTempUsageDetail_20' ) start [2025-03-07 20:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630291', 'tblTempUsageDetail_20' ) end [2025-03-07 20:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:35:27] Production.INFO: ==19754== Releasing lock... [2025-03-07 20:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:35:27] Production.INFO: 87.5 MB #Memory Used# [2025-03-07 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:36:05 [end_date_ymd] => 2025-03-07 20:36:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:36:05' and `end` < '2025-03-07 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 20:36:18] Production.INFO: count ==7868 [2025-03-07 20:36:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:36:05 - End Time 2025-03-07 20:36:05 [2025-03-07 20:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630296', 'tblTempUsageDetail_20' ) start [2025-03-07 20:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630296', 'tblTempUsageDetail_20' ) end [2025-03-07 20:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630296', 'tblTempVendorCDR_20' ) start [2025-03-07 20:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630296', 'tblTempVendorCDR_20' ) end [2025-03-07 20:36:22] Production.INFO: ProcessCDR(1,14630296,1,1,2) [2025-03-07 20:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630296', 'tblTempUsageDetail_20' ) start [2025-03-07 20:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630296', 'tblTempUsageDetail_20' ) end [2025-03-07 20:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:36:26] Production.INFO: ==19876== Releasing lock... [2025-03-07 20:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:36:26] Production.INFO: 87.25 MB #Memory Used# [2025-03-07 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:37:05 [end_date_ymd] => 2025-03-07 20:37:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:37:05' and `end` < '2025-03-07 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-03-07 20:37:18] Production.INFO: count ==7829 [2025-03-07 20:37:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:37:05 - End Time 2025-03-07 20:37:05 [2025-03-07 20:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630301', 'tblTempUsageDetail_20' ) start [2025-03-07 20:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630301', 'tblTempUsageDetail_20' ) end [2025-03-07 20:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630301', 'tblTempVendorCDR_20' ) start [2025-03-07 20:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630301', 'tblTempVendorCDR_20' ) end [2025-03-07 20:37:22] Production.INFO: ProcessCDR(1,14630301,1,1,2) [2025-03-07 20:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630301', 'tblTempUsageDetail_20' ) start [2025-03-07 20:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630301', 'tblTempUsageDetail_20' ) end [2025-03-07 20:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:37:25] Production.INFO: ==19945== Releasing lock... [2025-03-07 20:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:37:25] Production.INFO: 87 MB #Memory Used# [2025-03-07 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:38:05 [end_date_ymd] => 2025-03-07 20:38:05 [RateCDR] => 1 ) [2025-03-07 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 17:38:05' and `end` < '2025-03-07 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 20:38:18] Production.INFO: count ==7918 [2025-03-07 20:38:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:38:05 - End Time 2025-03-07 20:38:05 [2025-03-07 20:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630306', 'tblTempUsageDetail_20' ) start [2025-03-07 20:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630306', 'tblTempUsageDetail_20' ) end [2025-03-07 20:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630306', 'tblTempVendorCDR_20' ) start [2025-03-07 20:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630306', 'tblTempVendorCDR_20' ) end [2025-03-07 20:38:22] Production.INFO: ProcessCDR(1,14630306,1,1,2) [2025-03-07 20:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630306', 'tblTempUsageDetail_20' ) start [2025-03-07 20:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630306', 'tblTempUsageDetail_20' ) end [2025-03-07 20:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:38:26] Production.INFO: ==20015== Releasing lock... [2025-03-07 20:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:38:26] Production.INFO: 87.5 MB #Memory Used# [2025-03-07 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:39:05 [end_date_ymd] => 2025-03-07 20:39:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:39:05' and `end` < '2025-03-07 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-03-07 20:39:18] Production.INFO: count ==7886 [2025-03-07 20:39:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:39:05 - End Time 2025-03-07 20:39:05 [2025-03-07 20:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630311', 'tblTempUsageDetail_20' ) start [2025-03-07 20:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630311', 'tblTempUsageDetail_20' ) end [2025-03-07 20:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630311', 'tblTempVendorCDR_20' ) start [2025-03-07 20:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630311', 'tblTempVendorCDR_20' ) end [2025-03-07 20:39:22] Production.INFO: ProcessCDR(1,14630311,1,1,2) [2025-03-07 20:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630311', 'tblTempUsageDetail_20' ) start [2025-03-07 20:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630311', 'tblTempUsageDetail_20' ) end [2025-03-07 20:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:39:25] Production.INFO: ==20086== Releasing lock... [2025-03-07 20:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:39:25] Production.INFO: 87.5 MB #Memory Used# [2025-03-07 20:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:40:07 [end_date_ymd] => 2025-03-07 20:40:07 [RateCDR] => 1 ) [2025-03-07 20: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-03-07 17:40:07' and `end` < '2025-03-07 20: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-03-07 20:40:19] Production.INFO: count ==7838 [2025-03-07 20:40:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:40:07 - End Time 2025-03-07 20:40:07 [2025-03-07 20:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630316', 'tblTempUsageDetail_20' ) start [2025-03-07 20:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630316', 'tblTempUsageDetail_20' ) end [2025-03-07 20:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630316', 'tblTempVendorCDR_20' ) start [2025-03-07 20:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630316', 'tblTempVendorCDR_20' ) end [2025-03-07 20:40:23] Production.INFO: ProcessCDR(1,14630316,1,1,2) [2025-03-07 20:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630316', 'tblTempUsageDetail_20' ) start [2025-03-07 20:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630316', 'tblTempUsageDetail_20' ) end [2025-03-07 20:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:40:27] Production.INFO: ==20159== Releasing lock... [2025-03-07 20:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:40:27] Production.INFO: 87 MB #Memory Used# [2025-03-07 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:41:05 [end_date_ymd] => 2025-03-07 20:41:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:41:05' and `end` < '2025-03-07 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-03-07 20:41:18] Production.INFO: count ==7707 [2025-03-07 20:41:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:41:05 - End Time 2025-03-07 20:41:05 [2025-03-07 20:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630322', 'tblTempUsageDetail_20' ) start [2025-03-07 20:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630322', 'tblTempUsageDetail_20' ) end [2025-03-07 20:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630322', 'tblTempVendorCDR_20' ) start [2025-03-07 20:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630322', 'tblTempVendorCDR_20' ) end [2025-03-07 20:41:22] Production.INFO: ProcessCDR(1,14630322,1,1,2) [2025-03-07 20:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630322', 'tblTempUsageDetail_20' ) start [2025-03-07 20:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630322', 'tblTempUsageDetail_20' ) end [2025-03-07 20:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:41:25] Production.INFO: ==20236== Releasing lock... [2025-03-07 20:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:41:25] Production.INFO: 86 MB #Memory Used# [2025-03-07 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:42:06 [end_date_ymd] => 2025-03-07 20:42:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:42:06' and `end` < '2025-03-07 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-03-07 20:42:19] Production.INFO: count ==7640 [2025-03-07 20:42:23] Production.ERROR: pbx CDR StartTime 2025-03-07 17:42:06 - End Time 2025-03-07 20:42:06 [2025-03-07 20:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630327', 'tblTempUsageDetail_20' ) start [2025-03-07 20:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630327', 'tblTempUsageDetail_20' ) end [2025-03-07 20:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630327', 'tblTempVendorCDR_20' ) start [2025-03-07 20:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630327', 'tblTempVendorCDR_20' ) end [2025-03-07 20:42:23] Production.INFO: ProcessCDR(1,14630327,1,1,2) [2025-03-07 20:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630327', 'tblTempUsageDetail_20' ) start [2025-03-07 20:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630327', 'tblTempUsageDetail_20' ) end [2025-03-07 20:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:42:26] Production.INFO: ==20306== Releasing lock... [2025-03-07 20:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:42:26] Production.INFO: 85.5 MB #Memory Used# [2025-03-07 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:43:05 [end_date_ymd] => 2025-03-07 20:43:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:43:05' and `end` < '2025-03-07 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-03-07 20:43:18] Production.INFO: count ==7640 [2025-03-07 20:43:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:43:05 - End Time 2025-03-07 20:43:05 [2025-03-07 20:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630332', 'tblTempUsageDetail_20' ) start [2025-03-07 20:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630332', 'tblTempUsageDetail_20' ) end [2025-03-07 20:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630332', 'tblTempVendorCDR_20' ) start [2025-03-07 20:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630332', 'tblTempVendorCDR_20' ) end [2025-03-07 20:43:22] Production.INFO: ProcessCDR(1,14630332,1,1,2) [2025-03-07 20:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630332', 'tblTempUsageDetail_20' ) start [2025-03-07 20:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630332', 'tblTempUsageDetail_20' ) end [2025-03-07 20:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:43:26] Production.INFO: ==20378== Releasing lock... [2025-03-07 20:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:43:26] Production.INFO: 85.5 MB #Memory Used# [2025-03-07 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:44:06 [end_date_ymd] => 2025-03-07 20:44:06 [RateCDR] => 1 ) [2025-03-07 20: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-03-07 17:44:06' and `end` < '2025-03-07 20: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-03-07 20:44:18] Production.INFO: count ==7605 [2025-03-07 20:44:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:44:06 - End Time 2025-03-07 20:44:06 [2025-03-07 20:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630337', 'tblTempUsageDetail_20' ) start [2025-03-07 20:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630337', 'tblTempUsageDetail_20' ) end [2025-03-07 20:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630337', 'tblTempVendorCDR_20' ) start [2025-03-07 20:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630337', 'tblTempVendorCDR_20' ) end [2025-03-07 20:44:22] Production.INFO: ProcessCDR(1,14630337,1,1,2) [2025-03-07 20:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630337', 'tblTempUsageDetail_20' ) start [2025-03-07 20:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630337', 'tblTempUsageDetail_20' ) end [2025-03-07 20:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:44:26] Production.INFO: ==20449== Releasing lock... [2025-03-07 20:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:44:26] Production.INFO: 85.25 MB #Memory Used# [2025-03-07 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:45:05 [end_date_ymd] => 2025-03-07 20:45:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:45:05' and `end` < '2025-03-07 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-03-07 20:45:18] Production.INFO: count ==7580 [2025-03-07 20:45:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:45:05 - End Time 2025-03-07 20:45:05 [2025-03-07 20:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630342', 'tblTempUsageDetail_20' ) start [2025-03-07 20:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630342', 'tblTempUsageDetail_20' ) end [2025-03-07 20:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630342', 'tblTempVendorCDR_20' ) start [2025-03-07 20:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630342', 'tblTempVendorCDR_20' ) end [2025-03-07 20:45:22] Production.INFO: ProcessCDR(1,14630342,1,1,2) [2025-03-07 20:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630342', 'tblTempUsageDetail_20' ) start [2025-03-07 20:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630342', 'tblTempUsageDetail_20' ) end [2025-03-07 20:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:45:26] Production.INFO: ==20521== Releasing lock... [2025-03-07 20:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:45:26] Production.INFO: 85 MB #Memory Used# [2025-03-07 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:46:06 [end_date_ymd] => 2025-03-07 20:46:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:46:06' and `end` < '2025-03-07 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-03-07 20:46:18] Production.INFO: count ==7546 [2025-03-07 20:46:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:46:06 - End Time 2025-03-07 20:46:06 [2025-03-07 20:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630347', 'tblTempUsageDetail_20' ) start [2025-03-07 20:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630347', 'tblTempUsageDetail_20' ) end [2025-03-07 20:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630347', 'tblTempVendorCDR_20' ) start [2025-03-07 20:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630347', 'tblTempVendorCDR_20' ) end [2025-03-07 20:46:22] Production.INFO: ProcessCDR(1,14630347,1,1,2) [2025-03-07 20:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630347', 'tblTempUsageDetail_20' ) start [2025-03-07 20:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630347', 'tblTempUsageDetail_20' ) end [2025-03-07 20:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:46:27] Production.INFO: ==20596== Releasing lock... [2025-03-07 20:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:46:27] Production.INFO: 84.75 MB #Memory Used# [2025-03-07 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:47:05 [end_date_ymd] => 2025-03-07 20:47:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:47:05' and `end` < '2025-03-07 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-03-07 20:47:18] Production.INFO: count ==7560 [2025-03-07 20:47:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:47:05 - End Time 2025-03-07 20:47:05 [2025-03-07 20:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630352', 'tblTempUsageDetail_20' ) start [2025-03-07 20:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630352', 'tblTempUsageDetail_20' ) end [2025-03-07 20:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630352', 'tblTempVendorCDR_20' ) start [2025-03-07 20:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630352', 'tblTempVendorCDR_20' ) end [2025-03-07 20:47:22] Production.INFO: ProcessCDR(1,14630352,1,1,2) [2025-03-07 20:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630352', 'tblTempUsageDetail_20' ) start [2025-03-07 20:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630352', 'tblTempUsageDetail_20' ) end [2025-03-07 20:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:47:27] Production.INFO: ==20671== Releasing lock... [2025-03-07 20:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:47:27] Production.INFO: 85 MB #Memory Used# [2025-03-07 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:48:05 [end_date_ymd] => 2025-03-07 20:48:05 [RateCDR] => 1 ) [2025-03-07 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 17:48:05' and `end` < '2025-03-07 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 20:48:18] Production.INFO: count ==7514 [2025-03-07 20:48:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:48:05 - End Time 2025-03-07 20:48:05 [2025-03-07 20:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630357', 'tblTempUsageDetail_20' ) start [2025-03-07 20:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630357', 'tblTempUsageDetail_20' ) end [2025-03-07 20:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630357', 'tblTempVendorCDR_20' ) start [2025-03-07 20:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630357', 'tblTempVendorCDR_20' ) end [2025-03-07 20:48:22] Production.INFO: ProcessCDR(1,14630357,1,1,2) [2025-03-07 20:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630357', 'tblTempUsageDetail_20' ) start [2025-03-07 20:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630357', 'tblTempUsageDetail_20' ) end [2025-03-07 20:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:48:25] Production.INFO: ==20743== Releasing lock... [2025-03-07 20:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:48:25] Production.INFO: 84.5 MB #Memory Used# [2025-03-07 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:49:05 [end_date_ymd] => 2025-03-07 20:49:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:49:05' and `end` < '2025-03-07 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-03-07 20:49:18] Production.INFO: count ==7476 [2025-03-07 20:49:21] Production.ERROR: pbx CDR StartTime 2025-03-07 17:49:05 - End Time 2025-03-07 20:49:05 [2025-03-07 20:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630362', 'tblTempUsageDetail_20' ) start [2025-03-07 20:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630362', 'tblTempUsageDetail_20' ) end [2025-03-07 20:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630362', 'tblTempVendorCDR_20' ) start [2025-03-07 20:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630362', 'tblTempVendorCDR_20' ) end [2025-03-07 20:49:22] Production.INFO: ProcessCDR(1,14630362,1,1,2) [2025-03-07 20:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630362', 'tblTempUsageDetail_20' ) start [2025-03-07 20:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630362', 'tblTempUsageDetail_20' ) end [2025-03-07 20:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:49:25] Production.INFO: ==20821== Releasing lock... [2025-03-07 20:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:49:25] Production.INFO: 84.25 MB #Memory Used# [2025-03-07 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:50:06 [end_date_ymd] => 2025-03-07 20:50:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:50:06' and `end` < '2025-03-07 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-03-07 20:50:19] Production.INFO: count ==7427 [2025-03-07 20:50:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:50:06 - End Time 2025-03-07 20:50:06 [2025-03-07 20:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630368', 'tblTempUsageDetail_20' ) start [2025-03-07 20:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630368', 'tblTempUsageDetail_20' ) end [2025-03-07 20:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630368', 'tblTempVendorCDR_20' ) start [2025-03-07 20:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630368', 'tblTempVendorCDR_20' ) end [2025-03-07 20:50:23] Production.INFO: ProcessCDR(1,14630368,1,1,2) [2025-03-07 20:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630368', 'tblTempUsageDetail_20' ) start [2025-03-07 20:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630368', 'tblTempUsageDetail_20' ) end [2025-03-07 20:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:50:26] Production.INFO: ==20898== Releasing lock... [2025-03-07 20:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:50:26] Production.INFO: 84 MB #Memory Used# [2025-03-07 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:51:05 [end_date_ymd] => 2025-03-07 20:51:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:51:05' and `end` < '2025-03-07 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-03-07 20:51:18] Production.INFO: count ==7426 [2025-03-07 20:51:21] Production.ERROR: pbx CDR StartTime 2025-03-07 17:51:05 - End Time 2025-03-07 20:51:05 [2025-03-07 20:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630373', 'tblTempUsageDetail_20' ) start [2025-03-07 20:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630373', 'tblTempUsageDetail_20' ) end [2025-03-07 20:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630373', 'tblTempVendorCDR_20' ) start [2025-03-07 20:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630373', 'tblTempVendorCDR_20' ) end [2025-03-07 20:51:21] Production.INFO: ProcessCDR(1,14630373,1,1,2) [2025-03-07 20:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630373', 'tblTempUsageDetail_20' ) start [2025-03-07 20:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630373', 'tblTempUsageDetail_20' ) end [2025-03-07 20:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:51:25] Production.INFO: ==20969== Releasing lock... [2025-03-07 20:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:51:25] Production.INFO: 84 MB #Memory Used# [2025-03-07 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:52:06 [end_date_ymd] => 2025-03-07 20:52:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:52:06' and `end` < '2025-03-07 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-03-07 20:52:18] Production.INFO: count ==7352 [2025-03-07 20:52:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:52:06 - End Time 2025-03-07 20:52:06 [2025-03-07 20:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630378', 'tblTempUsageDetail_20' ) start [2025-03-07 20:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630378', 'tblTempUsageDetail_20' ) end [2025-03-07 20:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630378', 'tblTempVendorCDR_20' ) start [2025-03-07 20:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630378', 'tblTempVendorCDR_20' ) end [2025-03-07 20:52:22] Production.INFO: ProcessCDR(1,14630378,1,1,2) [2025-03-07 20:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630378', 'tblTempUsageDetail_20' ) start [2025-03-07 20:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630378', 'tblTempUsageDetail_20' ) end [2025-03-07 20:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:52:27] Production.INFO: ==21080== Releasing lock... [2025-03-07 20:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:52:27] Production.INFO: 83.5 MB #Memory Used# [2025-03-07 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:53:06 [end_date_ymd] => 2025-03-07 20:53:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:53:06' and `end` < '2025-03-07 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-03-07 20:53:18] Production.INFO: count ==7270 [2025-03-07 20:53:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:53:06 - End Time 2025-03-07 20:53:06 [2025-03-07 20:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630383', 'tblTempUsageDetail_20' ) start [2025-03-07 20:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630383', 'tblTempUsageDetail_20' ) end [2025-03-07 20:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630383', 'tblTempVendorCDR_20' ) start [2025-03-07 20:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630383', 'tblTempVendorCDR_20' ) end [2025-03-07 20:53:22] Production.INFO: ProcessCDR(1,14630383,1,1,2) [2025-03-07 20:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630383', 'tblTempUsageDetail_20' ) start [2025-03-07 20:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630383', 'tblTempUsageDetail_20' ) end [2025-03-07 20:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:53:25] Production.INFO: ==21156== Releasing lock... [2025-03-07 20:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:53:25] Production.INFO: 82.75 MB #Memory Used# [2025-03-07 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:54:05 [end_date_ymd] => 2025-03-07 20:54:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:54:05' and `end` < '2025-03-07 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-03-07 20:54:18] Production.INFO: count ==7222 [2025-03-07 20:54:21] Production.ERROR: pbx CDR StartTime 2025-03-07 17:54:05 - End Time 2025-03-07 20:54:05 [2025-03-07 20:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630388', 'tblTempUsageDetail_20' ) start [2025-03-07 20:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630388', 'tblTempUsageDetail_20' ) end [2025-03-07 20:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630388', 'tblTempVendorCDR_20' ) start [2025-03-07 20:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630388', 'tblTempVendorCDR_20' ) end [2025-03-07 20:54:21] Production.INFO: ProcessCDR(1,14630388,1,1,2) [2025-03-07 20:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630388', 'tblTempUsageDetail_20' ) start [2025-03-07 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630388', 'tblTempUsageDetail_20' ) end [2025-03-07 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:54:24] Production.INFO: ==21228== Releasing lock... [2025-03-07 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:54:24] Production.INFO: 82.5 MB #Memory Used# [2025-03-07 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:55:06 [end_date_ymd] => 2025-03-07 20:55:06 [RateCDR] => 1 ) [2025-03-07 20: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-03-07 17:55:06' and `end` < '2025-03-07 20: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-03-07 20:55:18] Production.INFO: count ==7202 [2025-03-07 20:55:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:55:06 - End Time 2025-03-07 20:55:06 [2025-03-07 20:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630393', 'tblTempUsageDetail_20' ) start [2025-03-07 20:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630393', 'tblTempUsageDetail_20' ) end [2025-03-07 20:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630393', 'tblTempVendorCDR_20' ) start [2025-03-07 20:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630393', 'tblTempVendorCDR_20' ) end [2025-03-07 20:55:22] Production.INFO: ProcessCDR(1,14630393,1,1,2) [2025-03-07 20:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630393', 'tblTempUsageDetail_20' ) start [2025-03-07 20:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630393', 'tblTempUsageDetail_20' ) end [2025-03-07 20:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:55:27] Production.INFO: ==21311== Releasing lock... [2025-03-07 20:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:55:27] Production.INFO: 82.25 MB #Memory Used# [2025-03-07 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:56:05 [end_date_ymd] => 2025-03-07 20:56:05 [RateCDR] => 1 ) [2025-03-07 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 17:56:05' and `end` < '2025-03-07 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 20:56:18] Production.INFO: count ==7185 [2025-03-07 20:56:21] Production.ERROR: pbx CDR StartTime 2025-03-07 17:56:05 - End Time 2025-03-07 20:56:05 [2025-03-07 20:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630398', 'tblTempUsageDetail_20' ) start [2025-03-07 20:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630398', 'tblTempUsageDetail_20' ) end [2025-03-07 20:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630398', 'tblTempVendorCDR_20' ) start [2025-03-07 20:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630398', 'tblTempVendorCDR_20' ) end [2025-03-07 20:56:22] Production.INFO: ProcessCDR(1,14630398,1,1,2) [2025-03-07 20:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630398', 'tblTempUsageDetail_20' ) start [2025-03-07 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630398', 'tblTempUsageDetail_20' ) end [2025-03-07 20:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:56:25] Production.INFO: ==21380== Releasing lock... [2025-03-07 20:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:56:25] Production.INFO: 82.25 MB #Memory Used# [2025-03-07 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:57:06 [end_date_ymd] => 2025-03-07 20:57:06 [RateCDR] => 1 ) [2025-03-07 20: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-03-07 17:57:06' and `end` < '2025-03-07 20: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-03-07 20:57:18] Production.INFO: count ==7139 [2025-03-07 20:57:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:57:06 - End Time 2025-03-07 20:57:06 [2025-03-07 20:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630403', 'tblTempUsageDetail_20' ) start [2025-03-07 20:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630403', 'tblTempUsageDetail_20' ) end [2025-03-07 20:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630403', 'tblTempVendorCDR_20' ) start [2025-03-07 20:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630403', 'tblTempVendorCDR_20' ) end [2025-03-07 20:57:22] Production.INFO: ProcessCDR(1,14630403,1,1,2) [2025-03-07 20:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630403', 'tblTempUsageDetail_20' ) start [2025-03-07 20:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630403', 'tblTempUsageDetail_20' ) end [2025-03-07 20:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:57:26] Production.INFO: ==21451== Releasing lock... [2025-03-07 20:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:57:26] Production.INFO: 81.75 MB #Memory Used# [2025-03-07 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:58:05 [end_date_ymd] => 2025-03-07 20:58:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 17:58:05' and `end` < '2025-03-07 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-03-07 20:58:18] Production.INFO: count ==7118 [2025-03-07 20:58:21] Production.ERROR: pbx CDR StartTime 2025-03-07 17:58:05 - End Time 2025-03-07 20:58:05 [2025-03-07 20:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630408', 'tblTempUsageDetail_20' ) start [2025-03-07 20:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630408', 'tblTempUsageDetail_20' ) end [2025-03-07 20:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630408', 'tblTempVendorCDR_20' ) start [2025-03-07 20:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630408', 'tblTempVendorCDR_20' ) end [2025-03-07 20:58:21] Production.INFO: ProcessCDR(1,14630408,1,1,2) [2025-03-07 20:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630408', 'tblTempUsageDetail_20' ) start [2025-03-07 20:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630408', 'tblTempUsageDetail_20' ) end [2025-03-07 20:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:58:25] Production.INFO: ==21524== Releasing lock... [2025-03-07 20:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:58:25] Production.INFO: 81.75 MB #Memory Used# [2025-03-07 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 17:59:06 [end_date_ymd] => 2025-03-07 20:59:06 [RateCDR] => 1 ) [2025-03-07 20:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 17:59:06' and `end` < '2025-03-07 20:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 20:59:18] Production.INFO: count ==7087 [2025-03-07 20:59:22] Production.ERROR: pbx CDR StartTime 2025-03-07 17:59:06 - End Time 2025-03-07 20:59:06 [2025-03-07 20:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 20:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630413', 'tblTempUsageDetail_20' ) start [2025-03-07 20:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630413', 'tblTempUsageDetail_20' ) end [2025-03-07 20:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630413', 'tblTempVendorCDR_20' ) start [2025-03-07 20:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630413', 'tblTempVendorCDR_20' ) end [2025-03-07 20:59:22] Production.INFO: ProcessCDR(1,14630413,1,1,2) [2025-03-07 20:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 20:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 20:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630413', 'tblTempUsageDetail_20' ) start [2025-03-07 20:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630413', 'tblTempUsageDetail_20' ) end [2025-03-07 20:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 20:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 20:59:25] Production.INFO: ==21594== Releasing lock... [2025-03-07 20:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 20:59:25] Production.INFO: 81.5 MB #Memory Used# [2025-03-07 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:00:06 [end_date_ymd] => 2025-03-07 21:00:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:00:06' and `end` < '2025-03-07 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-03-07 21:00:19] Production.INFO: count ==7058 [2025-03-07 21:00:23] Production.ERROR: pbx CDR StartTime 2025-03-07 18:00:06 - End Time 2025-03-07 21:00:06 [2025-03-07 21:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630419', 'tblTempUsageDetail_20' ) start [2025-03-07 21:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630419', 'tblTempUsageDetail_20' ) end [2025-03-07 21:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630419', 'tblTempVendorCDR_20' ) start [2025-03-07 21:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630419', 'tblTempVendorCDR_20' ) end [2025-03-07 21:00:23] Production.INFO: ProcessCDR(1,14630419,1,1,2) [2025-03-07 21:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630419', 'tblTempUsageDetail_20' ) start [2025-03-07 21:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630419', 'tblTempUsageDetail_20' ) end [2025-03-07 21:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:00:27] Production.INFO: ==21668== Releasing lock... [2025-03-07 21:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:00:27] Production.INFO: 80.75 MB #Memory Used# [2025-03-07 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:01:06 [end_date_ymd] => 2025-03-07 21:01:06 [RateCDR] => 1 ) [2025-03-07 21: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-03-07 18:01:06' and `end` < '2025-03-07 21: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-03-07 21:01:18] Production.INFO: count ==7028 [2025-03-07 21:01:22] Production.ERROR: pbx CDR StartTime 2025-03-07 18:01:06 - End Time 2025-03-07 21:01:06 [2025-03-07 21:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630424', 'tblTempUsageDetail_20' ) start [2025-03-07 21:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630424', 'tblTempUsageDetail_20' ) end [2025-03-07 21:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630424', 'tblTempVendorCDR_20' ) start [2025-03-07 21:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630424', 'tblTempVendorCDR_20' ) end [2025-03-07 21:01:22] Production.INFO: ProcessCDR(1,14630424,1,1,2) [2025-03-07 21:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630424', 'tblTempUsageDetail_20' ) start [2025-03-07 21:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630424', 'tblTempUsageDetail_20' ) end [2025-03-07 21:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:01:25] Production.INFO: ==21754== Releasing lock... [2025-03-07 21:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:01:25] Production.INFO: 80.5 MB #Memory Used# [2025-03-07 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:02:05 [end_date_ymd] => 2025-03-07 21:02:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:02:05' and `end` < '2025-03-07 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-03-07 21:02:18] Production.INFO: count ==6988 [2025-03-07 21:02:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:02:05 - End Time 2025-03-07 21:02:05 [2025-03-07 21:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630429', 'tblTempUsageDetail_20' ) start [2025-03-07 21:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630429', 'tblTempUsageDetail_20' ) end [2025-03-07 21:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630429', 'tblTempVendorCDR_20' ) start [2025-03-07 21:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630429', 'tblTempVendorCDR_20' ) end [2025-03-07 21:02:22] Production.INFO: ProcessCDR(1,14630429,1,1,2) [2025-03-07 21:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630429', 'tblTempUsageDetail_20' ) start [2025-03-07 21:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630429', 'tblTempUsageDetail_20' ) end [2025-03-07 21:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:02:26] Production.INFO: ==21826== Releasing lock... [2025-03-07 21:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:02:26] Production.INFO: 80.25 MB #Memory Used# [2025-03-07 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:03:05 [end_date_ymd] => 2025-03-07 21:03:05 [RateCDR] => 1 ) [2025-03-07 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 18:03:05' and `end` < '2025-03-07 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 21:03:18] Production.INFO: count ==6953 [2025-03-07 21:03:22] Production.ERROR: pbx CDR StartTime 2025-03-07 18:03:05 - End Time 2025-03-07 21:03:05 [2025-03-07 21:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630434', 'tblTempUsageDetail_20' ) start [2025-03-07 21:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630434', 'tblTempUsageDetail_20' ) end [2025-03-07 21:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630434', 'tblTempVendorCDR_20' ) start [2025-03-07 21:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630434', 'tblTempVendorCDR_20' ) end [2025-03-07 21:03:22] Production.INFO: ProcessCDR(1,14630434,1,1,2) [2025-03-07 21:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630434', 'tblTempUsageDetail_20' ) start [2025-03-07 21:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630434', 'tblTempUsageDetail_20' ) end [2025-03-07 21:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:03:25] Production.INFO: ==21898== Releasing lock... [2025-03-07 21:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:03:25] Production.INFO: 80 MB #Memory Used# [2025-03-07 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:04:05 [end_date_ymd] => 2025-03-07 21:04:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:04:05' and `end` < '2025-03-07 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-03-07 21:04:18] Production.INFO: count ==6940 [2025-03-07 21:04:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:04:05 - End Time 2025-03-07 21:04:05 [2025-03-07 21:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630439', 'tblTempUsageDetail_20' ) start [2025-03-07 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630439', 'tblTempUsageDetail_20' ) end [2025-03-07 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630439', 'tblTempVendorCDR_20' ) start [2025-03-07 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630439', 'tblTempVendorCDR_20' ) end [2025-03-07 21:04:21] Production.INFO: ProcessCDR(1,14630439,1,1,2) [2025-03-07 21:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630439', 'tblTempUsageDetail_20' ) start [2025-03-07 21:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630439', 'tblTempUsageDetail_20' ) end [2025-03-07 21:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:04:25] Production.INFO: ==21969== Releasing lock... [2025-03-07 21:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:04:25] Production.INFO: 79.75 MB #Memory Used# [2025-03-07 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:05:05 [end_date_ymd] => 2025-03-07 21:05:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:05:05' and `end` < '2025-03-07 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-03-07 21:05:18] Production.INFO: count ==6918 [2025-03-07 21:05:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:05:05 - End Time 2025-03-07 21:05:05 [2025-03-07 21:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630444', 'tblTempUsageDetail_20' ) start [2025-03-07 21:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630444', 'tblTempUsageDetail_20' ) end [2025-03-07 21:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630444', 'tblTempVendorCDR_20' ) start [2025-03-07 21:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630444', 'tblTempVendorCDR_20' ) end [2025-03-07 21:05:22] Production.INFO: ProcessCDR(1,14630444,1,1,2) [2025-03-07 21:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630444', 'tblTempUsageDetail_20' ) start [2025-03-07 21:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630444', 'tblTempUsageDetail_20' ) end [2025-03-07 21:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:05:25] Production.INFO: ==22049== Releasing lock... [2025-03-07 21:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:05:25] Production.INFO: 79.75 MB #Memory Used# [2025-03-07 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:06:05 [end_date_ymd] => 2025-03-07 21:06:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:06:05' and `end` < '2025-03-07 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-03-07 21:06:17] Production.INFO: count ==6880 [2025-03-07 21:06:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:06:05 - End Time 2025-03-07 21:06:05 [2025-03-07 21:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630449', 'tblTempUsageDetail_20' ) start [2025-03-07 21:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630449', 'tblTempUsageDetail_20' ) end [2025-03-07 21:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630449', 'tblTempVendorCDR_20' ) start [2025-03-07 21:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630449', 'tblTempVendorCDR_20' ) end [2025-03-07 21:06:21] Production.INFO: ProcessCDR(1,14630449,1,1,2) [2025-03-07 21:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630449', 'tblTempUsageDetail_20' ) start [2025-03-07 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630449', 'tblTempUsageDetail_20' ) end [2025-03-07 21:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:06:24] Production.INFO: ==22119== Releasing lock... [2025-03-07 21:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:06:24] Production.INFO: 79.25 MB #Memory Used# [2025-03-07 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:07:05 [end_date_ymd] => 2025-03-07 21:07:05 [RateCDR] => 1 ) [2025-03-07 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 18:07:05' and `end` < '2025-03-07 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 21:07:18] Production.INFO: count ==6879 [2025-03-07 21:07:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:07:05 - End Time 2025-03-07 21:07:05 [2025-03-07 21:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630454', 'tblTempUsageDetail_20' ) start [2025-03-07 21:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630454', 'tblTempUsageDetail_20' ) end [2025-03-07 21:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630454', 'tblTempVendorCDR_20' ) start [2025-03-07 21:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630454', 'tblTempVendorCDR_20' ) end [2025-03-07 21:07:21] Production.INFO: ProcessCDR(1,14630454,1,1,2) [2025-03-07 21:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630454', 'tblTempUsageDetail_20' ) start [2025-03-07 21:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630454', 'tblTempUsageDetail_20' ) end [2025-03-07 21:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:07:25] Production.INFO: ==22229== Releasing lock... [2025-03-07 21:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:07:25] Production.INFO: 79.25 MB #Memory Used# [2025-03-07 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:08:05 [end_date_ymd] => 2025-03-07 21:08:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:08:05' and `end` < '2025-03-07 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-03-07 21:08:18] Production.INFO: count ==6838 [2025-03-07 21:08:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:08:05 - End Time 2025-03-07 21:08:05 [2025-03-07 21:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630459', 'tblTempUsageDetail_20' ) start [2025-03-07 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630459', 'tblTempUsageDetail_20' ) end [2025-03-07 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630459', 'tblTempVendorCDR_20' ) start [2025-03-07 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630459', 'tblTempVendorCDR_20' ) end [2025-03-07 21:08:21] Production.INFO: ProcessCDR(1,14630459,1,1,2) [2025-03-07 21:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630459', 'tblTempUsageDetail_20' ) start [2025-03-07 21:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630459', 'tblTempUsageDetail_20' ) end [2025-03-07 21:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:08:26] Production.INFO: ==22307== Releasing lock... [2025-03-07 21:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:08:26] Production.INFO: 79 MB #Memory Used# [2025-03-07 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:09:06 [end_date_ymd] => 2025-03-07 21:09:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:09:06' and `end` < '2025-03-07 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-03-07 21:09:18] Production.INFO: count ==6821 [2025-03-07 21:09:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:09:06 - End Time 2025-03-07 21:09:06 [2025-03-07 21:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630464', 'tblTempUsageDetail_20' ) start [2025-03-07 21:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630464', 'tblTempUsageDetail_20' ) end [2025-03-07 21:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630464', 'tblTempVendorCDR_20' ) start [2025-03-07 21:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630464', 'tblTempVendorCDR_20' ) end [2025-03-07 21:09:22] Production.INFO: ProcessCDR(1,14630464,1,1,2) [2025-03-07 21:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630464', 'tblTempUsageDetail_20' ) start [2025-03-07 21:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630464', 'tblTempUsageDetail_20' ) end [2025-03-07 21:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:09:25] Production.INFO: ==22381== Releasing lock... [2025-03-07 21:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:09:25] Production.INFO: 79 MB #Memory Used# [2025-03-07 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:10:05 [end_date_ymd] => 2025-03-07 21:10:05 [RateCDR] => 1 ) [2025-03-07 21: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-03-07 18:10:05' and `end` < '2025-03-07 21: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-03-07 21:10:18] Production.INFO: count ==6792 [2025-03-07 21:10:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:10:05 - End Time 2025-03-07 21:10:05 [2025-03-07 21:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630469', 'tblTempUsageDetail_20' ) start [2025-03-07 21:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630469', 'tblTempUsageDetail_20' ) end [2025-03-07 21:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630469', 'tblTempVendorCDR_20' ) start [2025-03-07 21:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630469', 'tblTempVendorCDR_20' ) end [2025-03-07 21:10:22] Production.INFO: ProcessCDR(1,14630469,1,1,2) [2025-03-07 21:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630469', 'tblTempUsageDetail_20' ) start [2025-03-07 21:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630469', 'tblTempUsageDetail_20' ) end [2025-03-07 21:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:10:25] Production.INFO: ==22456== Releasing lock... [2025-03-07 21:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:10:25] Production.INFO: 78.75 MB #Memory Used# [2025-03-07 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:11:05 [end_date_ymd] => 2025-03-07 21:11:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:11:05' and `end` < '2025-03-07 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-03-07 21:11:18] Production.INFO: count ==6693 [2025-03-07 21:11:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:11:05 - End Time 2025-03-07 21:11:05 [2025-03-07 21:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630475', 'tblTempUsageDetail_20' ) start [2025-03-07 21:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630475', 'tblTempUsageDetail_20' ) end [2025-03-07 21:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630475', 'tblTempVendorCDR_20' ) start [2025-03-07 21:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630475', 'tblTempVendorCDR_20' ) end [2025-03-07 21:11:21] Production.INFO: ProcessCDR(1,14630475,1,1,2) [2025-03-07 21:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630475', 'tblTempUsageDetail_20' ) start [2025-03-07 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630475', 'tblTempUsageDetail_20' ) end [2025-03-07 21:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:11:24] Production.INFO: ==22530== Releasing lock... [2025-03-07 21:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:11:24] Production.INFO: 78 MB #Memory Used# [2025-03-07 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:12:05 [end_date_ymd] => 2025-03-07 21:12:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:12:05' and `end` < '2025-03-07 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-03-07 21:12:17] Production.INFO: count ==6662 [2025-03-07 21:12:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:12:05 - End Time 2025-03-07 21:12:05 [2025-03-07 21:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630480', 'tblTempUsageDetail_20' ) start [2025-03-07 21:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630480', 'tblTempUsageDetail_20' ) end [2025-03-07 21:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630480', 'tblTempVendorCDR_20' ) start [2025-03-07 21:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630480', 'tblTempVendorCDR_20' ) end [2025-03-07 21:12:21] Production.INFO: ProcessCDR(1,14630480,1,1,2) [2025-03-07 21:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630480', 'tblTempUsageDetail_20' ) start [2025-03-07 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630480', 'tblTempUsageDetail_20' ) end [2025-03-07 21:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:12:24] Production.INFO: ==22607== Releasing lock... [2025-03-07 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:12:24] Production.INFO: 77.75 MB #Memory Used# [2025-03-07 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:13:05 [end_date_ymd] => 2025-03-07 21:13:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:13:05' and `end` < '2025-03-07 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-03-07 21:13:17] Production.INFO: count ==6620 [2025-03-07 21:13:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:13:05 - End Time 2025-03-07 21:13:05 [2025-03-07 21:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630484', 'tblTempUsageDetail_20' ) start [2025-03-07 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630484', 'tblTempUsageDetail_20' ) end [2025-03-07 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630484', 'tblTempVendorCDR_20' ) start [2025-03-07 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630484', 'tblTempVendorCDR_20' ) end [2025-03-07 21:13:21] Production.INFO: ProcessCDR(1,14630484,1,1,2) [2025-03-07 21:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630484', 'tblTempUsageDetail_20' ) start [2025-03-07 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630484', 'tblTempUsageDetail_20' ) end [2025-03-07 21:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:13:24] Production.INFO: ==22684== Releasing lock... [2025-03-07 21:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:13:24] Production.INFO: 77.5 MB #Memory Used# [2025-03-07 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:14:06 [end_date_ymd] => 2025-03-07 21:14:06 [RateCDR] => 1 ) [2025-03-07 21: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-03-07 18:14:06' and `end` < '2025-03-07 21: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-03-07 21:14:18] Production.INFO: count ==6608 [2025-03-07 21:14:22] Production.ERROR: pbx CDR StartTime 2025-03-07 18:14:06 - End Time 2025-03-07 21:14:06 [2025-03-07 21:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630490', 'tblTempUsageDetail_20' ) start [2025-03-07 21:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630490', 'tblTempUsageDetail_20' ) end [2025-03-07 21:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630490', 'tblTempVendorCDR_20' ) start [2025-03-07 21:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630490', 'tblTempVendorCDR_20' ) end [2025-03-07 21:14:22] Production.INFO: ProcessCDR(1,14630490,1,1,2) [2025-03-07 21:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630490', 'tblTempUsageDetail_20' ) start [2025-03-07 21:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630490', 'tblTempUsageDetail_20' ) end [2025-03-07 21:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:14:27] Production.INFO: ==22761== Releasing lock... [2025-03-07 21:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:14:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-07 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:15:05 [end_date_ymd] => 2025-03-07 21:15:05 [RateCDR] => 1 ) [2025-03-07 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 18:15:05' and `end` < '2025-03-07 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 21:15:18] Production.INFO: count ==6566 [2025-03-07 21:15:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:15:05 - End Time 2025-03-07 21:15:05 [2025-03-07 21:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630495', 'tblTempUsageDetail_20' ) start [2025-03-07 21:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630495', 'tblTempUsageDetail_20' ) end [2025-03-07 21:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630495', 'tblTempVendorCDR_20' ) start [2025-03-07 21:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630495', 'tblTempVendorCDR_20' ) end [2025-03-07 21:15:21] Production.INFO: ProcessCDR(1,14630495,1,1,2) [2025-03-07 21:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630495', 'tblTempUsageDetail_20' ) start [2025-03-07 21:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630495', 'tblTempUsageDetail_20' ) end [2025-03-07 21:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:15:25] Production.INFO: ==22839== Releasing lock... [2025-03-07 21:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:15:25] Production.INFO: 77 MB #Memory Used# [2025-03-07 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:16:06 [end_date_ymd] => 2025-03-07 21:16:06 [RateCDR] => 1 ) [2025-03-07 21: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-03-07 18:16:06' and `end` < '2025-03-07 21: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-03-07 21:16:18] Production.INFO: count ==6550 [2025-03-07 21:16:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:16:06 - End Time 2025-03-07 21:16:06 [2025-03-07 21:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630500', 'tblTempUsageDetail_20' ) start [2025-03-07 21:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630500', 'tblTempUsageDetail_20' ) end [2025-03-07 21:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630500', 'tblTempVendorCDR_20' ) start [2025-03-07 21:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630500', 'tblTempVendorCDR_20' ) end [2025-03-07 21:16:22] Production.INFO: ProcessCDR(1,14630500,1,1,2) [2025-03-07 21:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630500', 'tblTempUsageDetail_20' ) start [2025-03-07 21:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630500', 'tblTempUsageDetail_20' ) end [2025-03-07 21:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:16:25] Production.INFO: ==22912== Releasing lock... [2025-03-07 21:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:16:25] Production.INFO: 77 MB #Memory Used# [2025-03-07 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:17:06 [end_date_ymd] => 2025-03-07 21:17:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:17:06' and `end` < '2025-03-07 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-03-07 21:17:18] Production.INFO: count ==6609 [2025-03-07 21:17:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:17:06 - End Time 2025-03-07 21:17:06 [2025-03-07 21:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630505', 'tblTempUsageDetail_20' ) start [2025-03-07 21:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630505', 'tblTempUsageDetail_20' ) end [2025-03-07 21:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630505', 'tblTempVendorCDR_20' ) start [2025-03-07 21:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630505', 'tblTempVendorCDR_20' ) end [2025-03-07 21:17:22] Production.INFO: ProcessCDR(1,14630505,1,1,2) [2025-03-07 21:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630505', 'tblTempUsageDetail_20' ) start [2025-03-07 21:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630505', 'tblTempUsageDetail_20' ) end [2025-03-07 21:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:17:27] Production.INFO: ==22984== Releasing lock... [2025-03-07 21:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:17:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-07 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:18:06 [end_date_ymd] => 2025-03-07 21:18:06 [RateCDR] => 1 ) [2025-03-07 21:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 18:18:06' and `end` < '2025-03-07 21:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 21:18:19] Production.INFO: count ==6595 [2025-03-07 21:18:22] Production.ERROR: pbx CDR StartTime 2025-03-07 18:18:06 - End Time 2025-03-07 21:18:06 [2025-03-07 21:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630510', 'tblTempUsageDetail_20' ) start [2025-03-07 21:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630510', 'tblTempUsageDetail_20' ) end [2025-03-07 21:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630510', 'tblTempVendorCDR_20' ) start [2025-03-07 21:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630510', 'tblTempVendorCDR_20' ) end [2025-03-07 21:18:22] Production.INFO: ProcessCDR(1,14630510,1,1,2) [2025-03-07 21:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630510', 'tblTempUsageDetail_20' ) start [2025-03-07 21:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630510', 'tblTempUsageDetail_20' ) end [2025-03-07 21:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:18:26] Production.INFO: ==23057== Releasing lock... [2025-03-07 21:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:18:26] Production.INFO: 77.25 MB #Memory Used# [2025-03-07 21:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:19:06 [end_date_ymd] => 2025-03-07 21:19:06 [RateCDR] => 1 ) [2025-03-07 21: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-03-07 18:19:06' and `end` < '2025-03-07 21: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-03-07 21:19:18] Production.INFO: count ==6590 [2025-03-07 21:19:22] Production.ERROR: pbx CDR StartTime 2025-03-07 18:19:06 - End Time 2025-03-07 21:19:06 [2025-03-07 21:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630515', 'tblTempUsageDetail_20' ) start [2025-03-07 21:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630515', 'tblTempUsageDetail_20' ) end [2025-03-07 21:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630515', 'tblTempVendorCDR_20' ) start [2025-03-07 21:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630515', 'tblTempVendorCDR_20' ) end [2025-03-07 21:19:22] Production.INFO: ProcessCDR(1,14630515,1,1,2) [2025-03-07 21:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630515', 'tblTempUsageDetail_20' ) start [2025-03-07 21:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630515', 'tblTempUsageDetail_20' ) end [2025-03-07 21:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:19:25] Production.INFO: ==23130== Releasing lock... [2025-03-07 21:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:19:25] Production.INFO: 77.25 MB #Memory Used# [2025-03-07 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:20:06 [end_date_ymd] => 2025-03-07 21:20:06 [RateCDR] => 1 ) [2025-03-07 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 18:20:06' and `end` < '2025-03-07 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 21:20:19] Production.INFO: count ==6611 [2025-03-07 21:20:22] Production.ERROR: pbx CDR StartTime 2025-03-07 18:20:06 - End Time 2025-03-07 21:20:06 [2025-03-07 21:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630521', 'tblTempUsageDetail_20' ) start [2025-03-07 21:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630521', 'tblTempUsageDetail_20' ) end [2025-03-07 21:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630521', 'tblTempVendorCDR_20' ) start [2025-03-07 21:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630521', 'tblTempVendorCDR_20' ) end [2025-03-07 21:20:23] Production.INFO: ProcessCDR(1,14630521,1,1,2) [2025-03-07 21:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630521', 'tblTempUsageDetail_20' ) start [2025-03-07 21:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630521', 'tblTempUsageDetail_20' ) end [2025-03-07 21:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:20:26] Production.INFO: ==23203== Releasing lock... [2025-03-07 21:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:20:26] Production.INFO: 77.25 MB #Memory Used# [2025-03-07 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:21:05 [end_date_ymd] => 2025-03-07 21:21:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:21:05' and `end` < '2025-03-07 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-03-07 21:21:17] Production.INFO: count ==6639 [2025-03-07 21:21:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:21:05 - End Time 2025-03-07 21:21:05 [2025-03-07 21:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630523', 'tblTempUsageDetail_20' ) start [2025-03-07 21:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630523', 'tblTempUsageDetail_20' ) end [2025-03-07 21:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630523', 'tblTempVendorCDR_20' ) start [2025-03-07 21:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630523', 'tblTempVendorCDR_20' ) end [2025-03-07 21:21:21] Production.INFO: ProcessCDR(1,14630523,1,1,2) [2025-03-07 21:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630523', 'tblTempUsageDetail_20' ) start [2025-03-07 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630523', 'tblTempUsageDetail_20' ) end [2025-03-07 21:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:21:24] Production.INFO: ==23276== Releasing lock... [2025-03-07 21:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:21:24] Production.INFO: 77.5 MB #Memory Used# [2025-03-07 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:22:05 [end_date_ymd] => 2025-03-07 21:22:05 [RateCDR] => 1 ) [2025-03-07 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 18:22:05' and `end` < '2025-03-07 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 21:22:18] Production.INFO: count ==6628 [2025-03-07 21:22:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:22:05 - End Time 2025-03-07 21:22:05 [2025-03-07 21:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630531', 'tblTempUsageDetail_20' ) start [2025-03-07 21:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630531', 'tblTempUsageDetail_20' ) end [2025-03-07 21:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630531', 'tblTempVendorCDR_20' ) start [2025-03-07 21:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630531', 'tblTempVendorCDR_20' ) end [2025-03-07 21:22:21] Production.INFO: ProcessCDR(1,14630531,1,1,2) [2025-03-07 21:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630531', 'tblTempUsageDetail_20' ) start [2025-03-07 21:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630531', 'tblTempUsageDetail_20' ) end [2025-03-07 21:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:22:25] Production.INFO: ==23347== Releasing lock... [2025-03-07 21:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:22:25] Production.INFO: 77.5 MB #Memory Used# [2025-03-07 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:23:05 [end_date_ymd] => 2025-03-07 21:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:23:05' and `end` < '2025-03-07 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-03-07 21:23:18] Production.INFO: count ==6630 [2025-03-07 21:23:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:23:05 - End Time 2025-03-07 21:23:05 [2025-03-07 21:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630536', 'tblTempUsageDetail_20' ) start [2025-03-07 21:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630536', 'tblTempUsageDetail_20' ) end [2025-03-07 21:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630536', 'tblTempVendorCDR_20' ) start [2025-03-07 21:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630536', 'tblTempVendorCDR_20' ) end [2025-03-07 21:23:21] Production.INFO: ProcessCDR(1,14630536,1,1,2) [2025-03-07 21:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630536', 'tblTempUsageDetail_20' ) start [2025-03-07 21:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630536', 'tblTempUsageDetail_20' ) end [2025-03-07 21:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:23:25] Production.INFO: ==23467== Releasing lock... [2025-03-07 21:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:23:25] Production.INFO: 77.5 MB #Memory Used# [2025-03-07 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:24:05 [end_date_ymd] => 2025-03-07 21:24:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:24:05' and `end` < '2025-03-07 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 21:24:18] Production.INFO: count ==6695 [2025-03-07 21:24:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:24:05 - End Time 2025-03-07 21:24:05 [2025-03-07 21:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630541', 'tblTempUsageDetail_20' ) start [2025-03-07 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630541', 'tblTempUsageDetail_20' ) end [2025-03-07 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630541', 'tblTempVendorCDR_20' ) start [2025-03-07 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630541', 'tblTempVendorCDR_20' ) end [2025-03-07 21:24:21] Production.INFO: ProcessCDR(1,14630541,1,1,2) [2025-03-07 21:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630541', 'tblTempUsageDetail_20' ) start [2025-03-07 21:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630541', 'tblTempUsageDetail_20' ) end [2025-03-07 21:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:24:25] Production.INFO: ==23537== Releasing lock... [2025-03-07 21:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:24:25] Production.INFO: 78 MB #Memory Used# [2025-03-07 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:25:05 [end_date_ymd] => 2025-03-07 21:25:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:25:05' and `end` < '2025-03-07 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-03-07 21:25:18] Production.INFO: count ==6656 [2025-03-07 21:25:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:25:05 - End Time 2025-03-07 21:25:05 [2025-03-07 21:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630546', 'tblTempUsageDetail_20' ) start [2025-03-07 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630546', 'tblTempUsageDetail_20' ) end [2025-03-07 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630546', 'tblTempVendorCDR_20' ) start [2025-03-07 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630546', 'tblTempVendorCDR_20' ) end [2025-03-07 21:25:21] Production.INFO: ProcessCDR(1,14630546,1,1,2) [2025-03-07 21:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630546', 'tblTempUsageDetail_20' ) start [2025-03-07 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630546', 'tblTempUsageDetail_20' ) end [2025-03-07 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:25:27] Production.INFO: ==23606== Releasing lock... [2025-03-07 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:25:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-07 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:26:05 [end_date_ymd] => 2025-03-07 21:26:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:26:05' and `end` < '2025-03-07 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-03-07 21:26:18] Production.INFO: count ==6624 [2025-03-07 21:26:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:26:05 - End Time 2025-03-07 21:26:05 [2025-03-07 21:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630551', 'tblTempUsageDetail_20' ) start [2025-03-07 21:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630551', 'tblTempUsageDetail_20' ) end [2025-03-07 21:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630551', 'tblTempVendorCDR_20' ) start [2025-03-07 21:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630551', 'tblTempVendorCDR_20' ) end [2025-03-07 21:26:21] Production.INFO: ProcessCDR(1,14630551,1,1,2) [2025-03-07 21:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630551', 'tblTempUsageDetail_20' ) start [2025-03-07 21:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630551', 'tblTempUsageDetail_20' ) end [2025-03-07 21:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:26:25] Production.INFO: ==23686== Releasing lock... [2025-03-07 21:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:26:25] Production.INFO: 77.5 MB #Memory Used# [2025-03-07 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:27:05 [end_date_ymd] => 2025-03-07 21:27:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:27:05' and `end` < '2025-03-07 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-03-07 21:27:18] Production.INFO: count ==6555 [2025-03-07 21:27:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:27:05 - End Time 2025-03-07 21:27:05 [2025-03-07 21:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630556', 'tblTempUsageDetail_20' ) start [2025-03-07 21:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630556', 'tblTempUsageDetail_20' ) end [2025-03-07 21:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630556', 'tblTempVendorCDR_20' ) start [2025-03-07 21:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630556', 'tblTempVendorCDR_20' ) end [2025-03-07 21:27:21] Production.INFO: ProcessCDR(1,14630556,1,1,2) [2025-03-07 21:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630556', 'tblTempUsageDetail_20' ) start [2025-03-07 21:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630556', 'tblTempUsageDetail_20' ) end [2025-03-07 21:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:27:24] Production.INFO: ==23757== Releasing lock... [2025-03-07 21:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:27:24] Production.INFO: 77 MB #Memory Used# [2025-03-07 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:28:05 [end_date_ymd] => 2025-03-07 21:28:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:28:05' and `end` < '2025-03-07 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-03-07 21:28:18] Production.INFO: count ==6506 [2025-03-07 21:28:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:28:05 - End Time 2025-03-07 21:28:05 [2025-03-07 21:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630561', 'tblTempUsageDetail_20' ) start [2025-03-07 21:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630561', 'tblTempUsageDetail_20' ) end [2025-03-07 21:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630561', 'tblTempVendorCDR_20' ) start [2025-03-07 21:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630561', 'tblTempVendorCDR_20' ) end [2025-03-07 21:28:21] Production.INFO: ProcessCDR(1,14630561,1,1,2) [2025-03-07 21:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630561', 'tblTempUsageDetail_20' ) start [2025-03-07 21:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630561', 'tblTempUsageDetail_20' ) end [2025-03-07 21:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:28:25] Production.INFO: ==23828== Releasing lock... [2025-03-07 21:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:28:25] Production.INFO: 76.5 MB #Memory Used# [2025-03-07 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:29:06 [end_date_ymd] => 2025-03-07 21:29:06 [RateCDR] => 1 ) [2025-03-07 21:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 18:29:06' and `end` < '2025-03-07 21:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 21:29:18] Production.INFO: count ==6462 [2025-03-07 21:29:22] Production.ERROR: pbx CDR StartTime 2025-03-07 18:29:06 - End Time 2025-03-07 21:29:06 [2025-03-07 21:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630566', 'tblTempUsageDetail_20' ) start [2025-03-07 21:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630566', 'tblTempUsageDetail_20' ) end [2025-03-07 21:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630566', 'tblTempVendorCDR_20' ) start [2025-03-07 21:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630566', 'tblTempVendorCDR_20' ) end [2025-03-07 21:29:22] Production.INFO: ProcessCDR(1,14630566,1,1,2) [2025-03-07 21:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630566', 'tblTempUsageDetail_20' ) start [2025-03-07 21:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630566', 'tblTempUsageDetail_20' ) end [2025-03-07 21:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:29:25] Production.INFO: ==23898== Releasing lock... [2025-03-07 21:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:29:25] Production.INFO: 76.25 MB #Memory Used# [2025-03-07 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:30:06 [end_date_ymd] => 2025-03-07 21:30:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:30:06' and `end` < '2025-03-07 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-03-07 21:30:19] Production.INFO: count ==6323 [2025-03-07 21:30:22] Production.ERROR: pbx CDR StartTime 2025-03-07 18:30:06 - End Time 2025-03-07 21:30:06 [2025-03-07 21:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630572', 'tblTempUsageDetail_20' ) start [2025-03-07 21:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630572', 'tblTempUsageDetail_20' ) end [2025-03-07 21:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630572', 'tblTempVendorCDR_20' ) start [2025-03-07 21:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630572', 'tblTempVendorCDR_20' ) end [2025-03-07 21:30:22] Production.INFO: ProcessCDR(1,14630572,1,1,2) [2025-03-07 21:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630572', 'tblTempUsageDetail_20' ) start [2025-03-07 21:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630572', 'tblTempUsageDetail_20' ) end [2025-03-07 21:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:30:27] Production.INFO: ==23972== Releasing lock... [2025-03-07 21:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:30:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-07 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:31:05 [end_date_ymd] => 2025-03-07 21:31:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:31:05' and `end` < '2025-03-07 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-03-07 21:31:17] Production.INFO: count ==6102 [2025-03-07 21:31:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:31:05 - End Time 2025-03-07 21:31:05 [2025-03-07 21:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630577', 'tblTempUsageDetail_20' ) start [2025-03-07 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630577', 'tblTempUsageDetail_20' ) end [2025-03-07 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630577', 'tblTempVendorCDR_20' ) start [2025-03-07 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630577', 'tblTempVendorCDR_20' ) end [2025-03-07 21:31:20] Production.INFO: ProcessCDR(1,14630577,1,1,2) [2025-03-07 21:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630577', 'tblTempUsageDetail_20' ) start [2025-03-07 21:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630577', 'tblTempUsageDetail_20' ) end [2025-03-07 21:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:31:24] Production.INFO: ==24046== Releasing lock... [2025-03-07 21:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:31:24] Production.INFO: 73.5 MB #Memory Used# [2025-03-07 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:32:06 [end_date_ymd] => 2025-03-07 21:32:06 [RateCDR] => 1 ) [2025-03-07 21: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-03-07 18:32:06' and `end` < '2025-03-07 21: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-03-07 21:32:18] Production.INFO: count ==5880 [2025-03-07 21:32:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:32:06 - End Time 2025-03-07 21:32:06 [2025-03-07 21:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630582', 'tblTempUsageDetail_20' ) start [2025-03-07 21:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630582', 'tblTempUsageDetail_20' ) end [2025-03-07 21:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630582', 'tblTempVendorCDR_20' ) start [2025-03-07 21:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630582', 'tblTempVendorCDR_20' ) end [2025-03-07 21:32:21] Production.INFO: ProcessCDR(1,14630582,1,1,2) [2025-03-07 21:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630582', 'tblTempUsageDetail_20' ) start [2025-03-07 21:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630582', 'tblTempUsageDetail_20' ) end [2025-03-07 21:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:32:25] Production.INFO: ==24132== Releasing lock... [2025-03-07 21:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:32:25] Production.INFO: 72 MB #Memory Used# [2025-03-07 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:33:05 [end_date_ymd] => 2025-03-07 21:33:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:33:05' and `end` < '2025-03-07 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-03-07 21:33:18] Production.INFO: count ==5818 [2025-03-07 21:33:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:33:05 - End Time 2025-03-07 21:33:05 [2025-03-07 21:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630587', 'tblTempUsageDetail_20' ) start [2025-03-07 21:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630587', 'tblTempUsageDetail_20' ) end [2025-03-07 21:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630587', 'tblTempVendorCDR_20' ) start [2025-03-07 21:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630587', 'tblTempVendorCDR_20' ) end [2025-03-07 21:33:21] Production.INFO: ProcessCDR(1,14630587,1,1,2) [2025-03-07 21:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630587', 'tblTempUsageDetail_20' ) start [2025-03-07 21:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630587', 'tblTempUsageDetail_20' ) end [2025-03-07 21:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:33:26] Production.INFO: ==24206== Releasing lock... [2025-03-07 21:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:33:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-07 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:34:06 [end_date_ymd] => 2025-03-07 21:34:06 [RateCDR] => 1 ) [2025-03-07 21: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-03-07 18:34:06' and `end` < '2025-03-07 21: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-03-07 21:34:18] Production.INFO: count ==5771 [2025-03-07 21:34:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:34:06 - End Time 2025-03-07 21:34:06 [2025-03-07 21:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630592', 'tblTempUsageDetail_20' ) start [2025-03-07 21:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630592', 'tblTempUsageDetail_20' ) end [2025-03-07 21:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630592', 'tblTempVendorCDR_20' ) start [2025-03-07 21:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630592', 'tblTempVendorCDR_20' ) end [2025-03-07 21:34:22] Production.INFO: ProcessCDR(1,14630592,1,1,2) [2025-03-07 21:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630592', 'tblTempUsageDetail_20' ) start [2025-03-07 21:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630592', 'tblTempUsageDetail_20' ) end [2025-03-07 21:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:34:25] Production.INFO: ==24283== Releasing lock... [2025-03-07 21:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:34:25] Production.INFO: 71 MB #Memory Used# [2025-03-07 21:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:35:06 [end_date_ymd] => 2025-03-07 21:35:06 [RateCDR] => 1 ) [2025-03-07 21: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-03-07 18:35:06' and `end` < '2025-03-07 21: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-03-07 21:35:18] Production.INFO: count ==5755 [2025-03-07 21:35:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:35:06 - End Time 2025-03-07 21:35:06 [2025-03-07 21:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630597', 'tblTempUsageDetail_20' ) start [2025-03-07 21:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630597', 'tblTempUsageDetail_20' ) end [2025-03-07 21:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630597', 'tblTempVendorCDR_20' ) start [2025-03-07 21:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630597', 'tblTempVendorCDR_20' ) end [2025-03-07 21:35:21] Production.INFO: ProcessCDR(1,14630597,1,1,2) [2025-03-07 21:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630597', 'tblTempUsageDetail_20' ) start [2025-03-07 21:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630597', 'tblTempUsageDetail_20' ) end [2025-03-07 21:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:35:25] Production.INFO: ==24354== Releasing lock... [2025-03-07 21:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:35:25] Production.INFO: 71 MB #Memory Used# [2025-03-07 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:36:06 [end_date_ymd] => 2025-03-07 21:36:06 [RateCDR] => 1 ) [2025-03-07 21:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 18:36:06' and `end` < '2025-03-07 21:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 21:36:19] Production.INFO: count ==5723 [2025-03-07 21:36:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:36:06 - End Time 2025-03-07 21:36:06 [2025-03-07 21:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630602', 'tblTempUsageDetail_20' ) start [2025-03-07 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630602', 'tblTempUsageDetail_20' ) end [2025-03-07 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630602', 'tblTempVendorCDR_20' ) start [2025-03-07 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630602', 'tblTempVendorCDR_20' ) end [2025-03-07 21:36:21] Production.INFO: ProcessCDR(1,14630602,1,1,2) [2025-03-07 21:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630602', 'tblTempUsageDetail_20' ) start [2025-03-07 21:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630602', 'tblTempUsageDetail_20' ) end [2025-03-07 21:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:36:26] Production.INFO: ==24424== Releasing lock... [2025-03-07 21:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:36:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-07 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:37:05 [end_date_ymd] => 2025-03-07 21:37:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:37:05' and `end` < '2025-03-07 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-03-07 21:37:17] Production.INFO: count ==5671 [2025-03-07 21:37:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:37:05 - End Time 2025-03-07 21:37:05 [2025-03-07 21:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630607', 'tblTempUsageDetail_20' ) start [2025-03-07 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630607', 'tblTempUsageDetail_20' ) end [2025-03-07 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630607', 'tblTempVendorCDR_20' ) start [2025-03-07 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630607', 'tblTempVendorCDR_20' ) end [2025-03-07 21:37:20] Production.INFO: ProcessCDR(1,14630607,1,1,2) [2025-03-07 21:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630607', 'tblTempUsageDetail_20' ) start [2025-03-07 21:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630607', 'tblTempUsageDetail_20' ) end [2025-03-07 21:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:37:24] Production.INFO: ==24496== Releasing lock... [2025-03-07 21:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:37:24] Production.INFO: 70.25 MB #Memory Used# [2025-03-07 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:38:06 [end_date_ymd] => 2025-03-07 21:38:06 [RateCDR] => 1 ) [2025-03-07 21: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-03-07 18:38:06' and `end` < '2025-03-07 21: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-03-07 21:38:18] Production.INFO: count ==5586 [2025-03-07 21:38:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:38:06 - End Time 2025-03-07 21:38:06 [2025-03-07 21:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630612', 'tblTempUsageDetail_20' ) start [2025-03-07 21:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630612', 'tblTempUsageDetail_20' ) end [2025-03-07 21:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630612', 'tblTempVendorCDR_20' ) start [2025-03-07 21:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630612', 'tblTempVendorCDR_20' ) end [2025-03-07 21:38:21] Production.INFO: ProcessCDR(1,14630612,1,1,2) [2025-03-07 21:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630612', 'tblTempUsageDetail_20' ) start [2025-03-07 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630612', 'tblTempUsageDetail_20' ) end [2025-03-07 21:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:38:24] Production.INFO: ==24606== Releasing lock... [2025-03-07 21:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:38:24] Production.INFO: 69.75 MB #Memory Used# [2025-03-07 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:39:05 [end_date_ymd] => 2025-03-07 21:39:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:39:05' and `end` < '2025-03-07 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-03-07 21:39:17] Production.INFO: count ==5577 [2025-03-07 21:39:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:39:05 - End Time 2025-03-07 21:39:05 [2025-03-07 21:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630617', 'tblTempUsageDetail_20' ) start [2025-03-07 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630617', 'tblTempUsageDetail_20' ) end [2025-03-07 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630617', 'tblTempVendorCDR_20' ) start [2025-03-07 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630617', 'tblTempVendorCDR_20' ) end [2025-03-07 21:39:20] Production.INFO: ProcessCDR(1,14630617,1,1,2) [2025-03-07 21:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630617', 'tblTempUsageDetail_20' ) start [2025-03-07 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630617', 'tblTempUsageDetail_20' ) end [2025-03-07 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:39:23] Production.INFO: ==24679== Releasing lock... [2025-03-07 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:39:23] Production.INFO: 69.75 MB #Memory Used# [2025-03-07 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:40:06 [end_date_ymd] => 2025-03-07 21:40:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:40:06' and `end` < '2025-03-07 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-03-07 21:40:19] Production.INFO: count ==5540 [2025-03-07 21:40:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:40:06 - End Time 2025-03-07 21:40:06 [2025-03-07 21:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630622', 'tblTempUsageDetail_20' ) start [2025-03-07 21:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630622', 'tblTempUsageDetail_20' ) end [2025-03-07 21:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630622', 'tblTempVendorCDR_20' ) start [2025-03-07 21:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630622', 'tblTempVendorCDR_20' ) end [2025-03-07 21:40:22] Production.INFO: ProcessCDR(1,14630622,1,1,2) [2025-03-07 21:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630622', 'tblTempUsageDetail_20' ) start [2025-03-07 21:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630622', 'tblTempUsageDetail_20' ) end [2025-03-07 21:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:40:25] Production.INFO: ==24755== Releasing lock... [2025-03-07 21:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:40:25] Production.INFO: 69.25 MB #Memory Used# [2025-03-07 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:41:05 [end_date_ymd] => 2025-03-07 21:41:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:41:05' and `end` < '2025-03-07 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-03-07 21:41:18] Production.INFO: count ==5475 [2025-03-07 21:41:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:41:05 - End Time 2025-03-07 21:41:05 [2025-03-07 21:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630628', 'tblTempUsageDetail_20' ) start [2025-03-07 21:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630628', 'tblTempUsageDetail_20' ) end [2025-03-07 21:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630628', 'tblTempVendorCDR_20' ) start [2025-03-07 21:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630628', 'tblTempVendorCDR_20' ) end [2025-03-07 21:41:21] Production.INFO: ProcessCDR(1,14630628,1,1,2) [2025-03-07 21:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630628', 'tblTempUsageDetail_20' ) start [2025-03-07 21:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630628', 'tblTempUsageDetail_20' ) end [2025-03-07 21:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:41:26] Production.INFO: ==24829== Releasing lock... [2025-03-07 21:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:41:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-07 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:42:06 [end_date_ymd] => 2025-03-07 21:42:06 [RateCDR] => 1 ) [2025-03-07 21: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-03-07 18:42:06' and `end` < '2025-03-07 21: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-03-07 21:42:18] Production.INFO: count ==5422 [2025-03-07 21:42:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:42:06 - End Time 2025-03-07 21:42:06 [2025-03-07 21:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630633', 'tblTempUsageDetail_20' ) start [2025-03-07 21:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630633', 'tblTempUsageDetail_20' ) end [2025-03-07 21:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630633', 'tblTempVendorCDR_20' ) start [2025-03-07 21:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630633', 'tblTempVendorCDR_20' ) end [2025-03-07 21:42:21] Production.INFO: ProcessCDR(1,14630633,1,1,2) [2025-03-07 21:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630633', 'tblTempUsageDetail_20' ) start [2025-03-07 21:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630633', 'tblTempUsageDetail_20' ) end [2025-03-07 21:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:42:24] Production.INFO: ==24905== Releasing lock... [2025-03-07 21:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:42:24] Production.INFO: 68.5 MB #Memory Used# [2025-03-07 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:43:05 [end_date_ymd] => 2025-03-07 21:43:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:43:05' and `end` < '2025-03-07 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-03-07 21:43:17] Production.INFO: count ==5401 [2025-03-07 21:43:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:43:05 - End Time 2025-03-07 21:43:05 [2025-03-07 21:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630638', 'tblTempUsageDetail_20' ) start [2025-03-07 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630638', 'tblTempUsageDetail_20' ) end [2025-03-07 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630638', 'tblTempVendorCDR_20' ) start [2025-03-07 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630638', 'tblTempVendorCDR_20' ) end [2025-03-07 21:43:20] Production.INFO: ProcessCDR(1,14630638,1,1,2) [2025-03-07 21:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630638', 'tblTempUsageDetail_20' ) start [2025-03-07 21:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630638', 'tblTempUsageDetail_20' ) end [2025-03-07 21:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:43:25] Production.INFO: ==24973== Releasing lock... [2025-03-07 21:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:43:25] Production.INFO: 68.25 MB #Memory Used# [2025-03-07 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:44:05 [end_date_ymd] => 2025-03-07 21:44:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:44:05' and `end` < '2025-03-07 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-03-07 21:44:18] Production.INFO: count ==5368 [2025-03-07 21:44:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:44:05 - End Time 2025-03-07 21:44:05 [2025-03-07 21:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630643', 'tblTempUsageDetail_20' ) start [2025-03-07 21:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630643', 'tblTempUsageDetail_20' ) end [2025-03-07 21:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630643', 'tblTempVendorCDR_20' ) start [2025-03-07 21:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630643', 'tblTempVendorCDR_20' ) end [2025-03-07 21:44:21] Production.INFO: ProcessCDR(1,14630643,1,1,2) [2025-03-07 21:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630643', 'tblTempUsageDetail_20' ) start [2025-03-07 21:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630643', 'tblTempUsageDetail_20' ) end [2025-03-07 21:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:44:25] Production.INFO: ==25044== Releasing lock... [2025-03-07 21:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:44:25] Production.INFO: 68 MB #Memory Used# [2025-03-07 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:45:05 [end_date_ymd] => 2025-03-07 21:45:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:45:05' and `end` < '2025-03-07 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-03-07 21:45:17] Production.INFO: count ==5342 [2025-03-07 21:45:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:45:05 - End Time 2025-03-07 21:45:05 [2025-03-07 21:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630648', 'tblTempUsageDetail_20' ) start [2025-03-07 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630648', 'tblTempUsageDetail_20' ) end [2025-03-07 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630648', 'tblTempVendorCDR_20' ) start [2025-03-07 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630648', 'tblTempVendorCDR_20' ) end [2025-03-07 21:45:20] Production.INFO: ProcessCDR(1,14630648,1,1,2) [2025-03-07 21:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630648', 'tblTempUsageDetail_20' ) start [2025-03-07 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630648', 'tblTempUsageDetail_20' ) end [2025-03-07 21:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:45:25] Production.INFO: ==25121== Releasing lock... [2025-03-07 21:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:45:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-07 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:46:05 [end_date_ymd] => 2025-03-07 21:46:05 [RateCDR] => 1 ) [2025-03-07 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 18:46:05' and `end` < '2025-03-07 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 21:46:18] Production.INFO: count ==5308 [2025-03-07 21:46:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:46:05 - End Time 2025-03-07 21:46:05 [2025-03-07 21:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630653', 'tblTempUsageDetail_20' ) start [2025-03-07 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630653', 'tblTempUsageDetail_20' ) end [2025-03-07 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630653', 'tblTempVendorCDR_20' ) start [2025-03-07 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630653', 'tblTempVendorCDR_20' ) end [2025-03-07 21:46:20] Production.INFO: ProcessCDR(1,14630653,1,1,2) [2025-03-07 21:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630653', 'tblTempUsageDetail_20' ) start [2025-03-07 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630653', 'tblTempUsageDetail_20' ) end [2025-03-07 21:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:46:24] Production.INFO: ==25192== Releasing lock... [2025-03-07 21:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:46:24] Production.INFO: 67.5 MB #Memory Used# [2025-03-07 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:47:05 [end_date_ymd] => 2025-03-07 21:47:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:47:05' and `end` < '2025-03-07 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-03-07 21:47:18] Production.INFO: count ==5250 [2025-03-07 21:47:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:47:05 - End Time 2025-03-07 21:47:05 [2025-03-07 21:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630658', 'tblTempUsageDetail_20' ) start [2025-03-07 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630658', 'tblTempUsageDetail_20' ) end [2025-03-07 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630658', 'tblTempVendorCDR_20' ) start [2025-03-07 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630658', 'tblTempVendorCDR_20' ) end [2025-03-07 21:47:20] Production.INFO: ProcessCDR(1,14630658,1,1,2) [2025-03-07 21:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630658', 'tblTempUsageDetail_20' ) start [2025-03-07 21:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630658', 'tblTempUsageDetail_20' ) end [2025-03-07 21:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:47:24] Production.INFO: ==25266== Releasing lock... [2025-03-07 21:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:47:24] Production.INFO: 67.25 MB #Memory Used# [2025-03-07 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:48:05 [end_date_ymd] => 2025-03-07 21:48:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:48:05' and `end` < '2025-03-07 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-03-07 21:48:18] Production.INFO: count ==5204 [2025-03-07 21:48:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:48:05 - End Time 2025-03-07 21:48:05 [2025-03-07 21:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630663', 'tblTempUsageDetail_20' ) start [2025-03-07 21:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630663', 'tblTempUsageDetail_20' ) end [2025-03-07 21:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630663', 'tblTempVendorCDR_20' ) start [2025-03-07 21:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630663', 'tblTempVendorCDR_20' ) end [2025-03-07 21:48:21] Production.INFO: ProcessCDR(1,14630663,1,1,2) [2025-03-07 21:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630663', 'tblTempUsageDetail_20' ) start [2025-03-07 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630663', 'tblTempUsageDetail_20' ) end [2025-03-07 21:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:48:24] Production.INFO: ==25343== Releasing lock... [2025-03-07 21:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:48:24] Production.INFO: 66.75 MB #Memory Used# [2025-03-07 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:49:05 [end_date_ymd] => 2025-03-07 21:49:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:49:05' and `end` < '2025-03-07 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-03-07 21:49:18] Production.INFO: count ==5159 [2025-03-07 21:49:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:49:05 - End Time 2025-03-07 21:49:05 [2025-03-07 21:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630668', 'tblTempUsageDetail_20' ) start [2025-03-07 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630668', 'tblTempUsageDetail_20' ) end [2025-03-07 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630668', 'tblTempVendorCDR_20' ) start [2025-03-07 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630668', 'tblTempVendorCDR_20' ) end [2025-03-07 21:49:20] Production.INFO: ProcessCDR(1,14630668,1,1,2) [2025-03-07 21:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630668', 'tblTempUsageDetail_20' ) start [2025-03-07 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630668', 'tblTempUsageDetail_20' ) end [2025-03-07 21:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:49:24] Production.INFO: ==25414== Releasing lock... [2025-03-07 21:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:49:24] Production.INFO: 66.5 MB #Memory Used# [2025-03-07 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:50:06 [end_date_ymd] => 2025-03-07 21:50:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:50:06' and `end` < '2025-03-07 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-03-07 21:50:19] Production.INFO: count ==5103 [2025-03-07 21:50:21] Production.ERROR: pbx CDR StartTime 2025-03-07 18:50:06 - End Time 2025-03-07 21:50:06 [2025-03-07 21:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630674', 'tblTempUsageDetail_20' ) start [2025-03-07 21:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630674', 'tblTempUsageDetail_20' ) end [2025-03-07 21:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630674', 'tblTempVendorCDR_20' ) start [2025-03-07 21:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630674', 'tblTempVendorCDR_20' ) end [2025-03-07 21:50:21] Production.INFO: ProcessCDR(1,14630674,1,1,2) [2025-03-07 21:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630674', 'tblTempUsageDetail_20' ) start [2025-03-07 21:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630674', 'tblTempUsageDetail_20' ) end [2025-03-07 21:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:50:25] Production.INFO: ==25488== Releasing lock... [2025-03-07 21:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:50:25] Production.INFO: 66 MB #Memory Used# [2025-03-07 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:51:05 [end_date_ymd] => 2025-03-07 21:51:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:51:05' and `end` < '2025-03-07 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-03-07 21:51:17] Production.INFO: count ==5097 [2025-03-07 21:51:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:51:05 - End Time 2025-03-07 21:51:05 [2025-03-07 21:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630679', 'tblTempUsageDetail_20' ) start [2025-03-07 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630679', 'tblTempUsageDetail_20' ) end [2025-03-07 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630679', 'tblTempVendorCDR_20' ) start [2025-03-07 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630679', 'tblTempVendorCDR_20' ) end [2025-03-07 21:51:20] Production.INFO: ProcessCDR(1,14630679,1,1,2) [2025-03-07 21:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630679', 'tblTempUsageDetail_20' ) start [2025-03-07 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630679', 'tblTempUsageDetail_20' ) end [2025-03-07 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:51:23] Production.INFO: ==25564== Releasing lock... [2025-03-07 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:51:23] Production.INFO: 66 MB #Memory Used# [2025-03-07 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:52:06 [end_date_ymd] => 2025-03-07 21:52:06 [RateCDR] => 1 ) [2025-03-07 21: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-03-07 18:52:06' and `end` < '2025-03-07 21: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-03-07 21:52:18] Production.INFO: count ==5083 [2025-03-07 21:52:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:52:06 - End Time 2025-03-07 21:52:06 [2025-03-07 21:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630684', 'tblTempUsageDetail_20' ) start [2025-03-07 21:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630684', 'tblTempUsageDetail_20' ) end [2025-03-07 21:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630684', 'tblTempVendorCDR_20' ) start [2025-03-07 21:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630684', 'tblTempVendorCDR_20' ) end [2025-03-07 21:52:21] Production.INFO: ProcessCDR(1,14630684,1,1,2) [2025-03-07 21:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630684', 'tblTempUsageDetail_20' ) start [2025-03-07 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630684', 'tblTempUsageDetail_20' ) end [2025-03-07 21:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:52:24] Production.INFO: ==25641== Releasing lock... [2025-03-07 21:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:52:24] Production.INFO: 66 MB #Memory Used# [2025-03-07 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:53:05 [end_date_ymd] => 2025-03-07 21:53:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:53:05' and `end` < '2025-03-07 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-03-07 21:53:17] Production.INFO: count ==5045 [2025-03-07 21:53:19] Production.ERROR: pbx CDR StartTime 2025-03-07 18:53:05 - End Time 2025-03-07 21:53:05 [2025-03-07 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630689', 'tblTempUsageDetail_20' ) start [2025-03-07 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630689', 'tblTempUsageDetail_20' ) end [2025-03-07 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630689', 'tblTempVendorCDR_20' ) start [2025-03-07 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630689', 'tblTempVendorCDR_20' ) end [2025-03-07 21:53:20] Production.INFO: ProcessCDR(1,14630689,1,1,2) [2025-03-07 21:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630689', 'tblTempUsageDetail_20' ) start [2025-03-07 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630689', 'tblTempUsageDetail_20' ) end [2025-03-07 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:53:23] Production.INFO: ==25719== Releasing lock... [2025-03-07 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:53:23] Production.INFO: 65.75 MB #Memory Used# [2025-03-07 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:54:06 [end_date_ymd] => 2025-03-07 21:54:06 [RateCDR] => 1 ) [2025-03-07 21:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 18:54:06' and `end` < '2025-03-07 21:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 21:54:18] Production.INFO: count ==4992 [2025-03-07 21:54:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:54:06 - End Time 2025-03-07 21:54:06 [2025-03-07 21:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630694', 'tblTempUsageDetail_20' ) start [2025-03-07 21:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630694', 'tblTempUsageDetail_20' ) end [2025-03-07 21:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630694', 'tblTempVendorCDR_20' ) start [2025-03-07 21:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630694', 'tblTempVendorCDR_20' ) end [2025-03-07 21:54:21] Production.INFO: ProcessCDR(1,14630694,1,1,2) [2025-03-07 21:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630694', 'tblTempUsageDetail_20' ) start [2025-03-07 21:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630694', 'tblTempUsageDetail_20' ) end [2025-03-07 21:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:54:24] Production.INFO: ==25827== Releasing lock... [2025-03-07 21:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:54:24] Production.INFO: 65.25 MB #Memory Used# [2025-03-07 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:55:05 [end_date_ymd] => 2025-03-07 21:55:05 [RateCDR] => 1 ) [2025-03-07 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 18:55:05' and `end` < '2025-03-07 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 21:55:18] Production.INFO: count ==4971 [2025-03-07 21:55:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:55:05 - End Time 2025-03-07 21:55:05 [2025-03-07 21:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630699', 'tblTempUsageDetail_20' ) start [2025-03-07 21:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630699', 'tblTempUsageDetail_20' ) end [2025-03-07 21:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630699', 'tblTempVendorCDR_20' ) start [2025-03-07 21:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630699', 'tblTempVendorCDR_20' ) end [2025-03-07 21:55:20] Production.INFO: ProcessCDR(1,14630699,1,1,2) [2025-03-07 21:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630699', 'tblTempUsageDetail_20' ) start [2025-03-07 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630699', 'tblTempUsageDetail_20' ) end [2025-03-07 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:55:23] Production.INFO: ==25899== Releasing lock... [2025-03-07 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:55:23] Production.INFO: 65 MB #Memory Used# [2025-03-07 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:56:06 [end_date_ymd] => 2025-03-07 21:56:06 [RateCDR] => 1 ) [2025-03-07 21:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 18:56:06' and `end` < '2025-03-07 21:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 21:56:18] Production.INFO: count ==4948 [2025-03-07 21:56:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:56:06 - End Time 2025-03-07 21:56:06 [2025-03-07 21:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630704', 'tblTempUsageDetail_20' ) start [2025-03-07 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630704', 'tblTempUsageDetail_20' ) end [2025-03-07 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630704', 'tblTempVendorCDR_20' ) start [2025-03-07 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630704', 'tblTempVendorCDR_20' ) end [2025-03-07 21:56:20] Production.INFO: ProcessCDR(1,14630704,1,1,2) [2025-03-07 21:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630704', 'tblTempUsageDetail_20' ) start [2025-03-07 21:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630704', 'tblTempUsageDetail_20' ) end [2025-03-07 21:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:56:24] Production.INFO: ==25974== Releasing lock... [2025-03-07 21:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:56:24] Production.INFO: 65 MB #Memory Used# [2025-03-07 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:57:06 [end_date_ymd] => 2025-03-07 21:57:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:57:06' and `end` < '2025-03-07 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-03-07 21:57:18] Production.INFO: count ==4981 [2025-03-07 21:57:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:57:06 - End Time 2025-03-07 21:57:06 [2025-03-07 21:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630709', 'tblTempUsageDetail_20' ) start [2025-03-07 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630709', 'tblTempUsageDetail_20' ) end [2025-03-07 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630709', 'tblTempVendorCDR_20' ) start [2025-03-07 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630709', 'tblTempVendorCDR_20' ) end [2025-03-07 21:57:20] Production.INFO: ProcessCDR(1,14630709,1,1,2) [2025-03-07 21:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630709', 'tblTempUsageDetail_20' ) start [2025-03-07 21:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630709', 'tblTempUsageDetail_20' ) end [2025-03-07 21:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:57:25] Production.INFO: ==26046== Releasing lock... [2025-03-07 21:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:57:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-07 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:58:05 [end_date_ymd] => 2025-03-07 21:58:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:58:05' and `end` < '2025-03-07 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-03-07 21:58:18] Production.INFO: count ==5078 [2025-03-07 21:58:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:58:05 - End Time 2025-03-07 21:58:05 [2025-03-07 21:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630714', 'tblTempUsageDetail_20' ) start [2025-03-07 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630714', 'tblTempUsageDetail_20' ) end [2025-03-07 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630714', 'tblTempVendorCDR_20' ) start [2025-03-07 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630714', 'tblTempVendorCDR_20' ) end [2025-03-07 21:58:20] Production.INFO: ProcessCDR(1,14630714,1,1,2) [2025-03-07 21:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630714', 'tblTempUsageDetail_20' ) start [2025-03-07 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630714', 'tblTempUsageDetail_20' ) end [2025-03-07 21:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:58:24] Production.INFO: ==26116== Releasing lock... [2025-03-07 21:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:58:24] Production.INFO: 66 MB #Memory Used# [2025-03-07 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 18:59:05 [end_date_ymd] => 2025-03-07 21:59:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 18:59:05' and `end` < '2025-03-07 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-03-07 21:59:18] Production.INFO: count ==5087 [2025-03-07 21:59:20] Production.ERROR: pbx CDR StartTime 2025-03-07 18:59:05 - End Time 2025-03-07 21:59:05 [2025-03-07 21:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630719', 'tblTempUsageDetail_20' ) start [2025-03-07 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630719', 'tblTempUsageDetail_20' ) end [2025-03-07 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630719', 'tblTempVendorCDR_20' ) start [2025-03-07 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630719', 'tblTempVendorCDR_20' ) end [2025-03-07 21:59:20] Production.INFO: ProcessCDR(1,14630719,1,1,2) [2025-03-07 21:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 21:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630719', 'tblTempUsageDetail_20' ) start [2025-03-07 21:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630719', 'tblTempUsageDetail_20' ) end [2025-03-07 21:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 21:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 21:59:24] Production.INFO: ==26189== Releasing lock... [2025-03-07 21:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 21:59:24] Production.INFO: 66 MB #Memory Used# [2025-03-07 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:00:06 [end_date_ymd] => 2025-03-07 22:00:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:00:06' and `end` < '2025-03-07 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-03-07 22:00:19] Production.INFO: count ==5069 [2025-03-07 22:00:21] Production.ERROR: pbx CDR StartTime 2025-03-07 19:00:06 - End Time 2025-03-07 22:00:06 [2025-03-07 22:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630724', 'tblTempUsageDetail_20' ) start [2025-03-07 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630724', 'tblTempUsageDetail_20' ) end [2025-03-07 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630724', 'tblTempVendorCDR_20' ) start [2025-03-07 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630724', 'tblTempVendorCDR_20' ) end [2025-03-07 22:00:21] Production.INFO: ProcessCDR(1,14630724,1,1,2) [2025-03-07 22:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630724', 'tblTempUsageDetail_20' ) start [2025-03-07 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630724', 'tblTempUsageDetail_20' ) end [2025-03-07 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:00:24] Production.INFO: ==26271== Releasing lock... [2025-03-07 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:00:24] Production.INFO: 65.75 MB #Memory Used# [2025-03-07 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:01:06 [end_date_ymd] => 2025-03-07 22:01:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:01:06' and `end` < '2025-03-07 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-03-07 22:01:18] Production.INFO: count ==4955 [2025-03-07 22:01:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:01:06 - End Time 2025-03-07 22:01:06 [2025-03-07 22:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630730', 'tblTempUsageDetail_20' ) start [2025-03-07 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630730', 'tblTempUsageDetail_20' ) end [2025-03-07 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630730', 'tblTempVendorCDR_20' ) start [2025-03-07 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630730', 'tblTempVendorCDR_20' ) end [2025-03-07 22:01:20] Production.INFO: ProcessCDR(1,14630730,1,1,2) [2025-03-07 22:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630730', 'tblTempUsageDetail_20' ) start [2025-03-07 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630730', 'tblTempUsageDetail_20' ) end [2025-03-07 22:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:01:24] Production.INFO: ==26355== Releasing lock... [2025-03-07 22:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:01:24] Production.INFO: 65 MB #Memory Used# [2025-03-07 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:02:06 [end_date_ymd] => 2025-03-07 22:02:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:02:06' and `end` < '2025-03-07 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-03-07 22:02:18] Production.INFO: count ==4899 [2025-03-07 22:02:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:02:06 - End Time 2025-03-07 22:02:06 [2025-03-07 22:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630735', 'tblTempUsageDetail_20' ) start [2025-03-07 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630735', 'tblTempUsageDetail_20' ) end [2025-03-07 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630735', 'tblTempVendorCDR_20' ) start [2025-03-07 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630735', 'tblTempVendorCDR_20' ) end [2025-03-07 22:02:20] Production.INFO: ProcessCDR(1,14630735,1,1,2) [2025-03-07 22:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630735', 'tblTempUsageDetail_20' ) start [2025-03-07 22:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630735', 'tblTempUsageDetail_20' ) end [2025-03-07 22:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:02:24] Production.INFO: ==26430== Releasing lock... [2025-03-07 22:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:02:24] Production.INFO: 64.5 MB #Memory Used# [2025-03-07 22:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:03:06 [end_date_ymd] => 2025-03-07 22:03:06 [RateCDR] => 1 ) [2025-03-07 22: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-03-07 19:03:06' and `end` < '2025-03-07 22: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-03-07 22:03:18] Production.INFO: count ==4874 [2025-03-07 22:03:21] Production.ERROR: pbx CDR StartTime 2025-03-07 19:03:06 - End Time 2025-03-07 22:03:06 [2025-03-07 22:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630740', 'tblTempUsageDetail_20' ) start [2025-03-07 22:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630740', 'tblTempUsageDetail_20' ) end [2025-03-07 22:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630740', 'tblTempVendorCDR_20' ) start [2025-03-07 22:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630740', 'tblTempVendorCDR_20' ) end [2025-03-07 22:03:21] Production.INFO: ProcessCDR(1,14630740,1,1,2) [2025-03-07 22:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630740', 'tblTempUsageDetail_20' ) start [2025-03-07 22:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630740', 'tblTempUsageDetail_20' ) end [2025-03-07 22:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:03:24] Production.INFO: ==26504== Releasing lock... [2025-03-07 22:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:03:24] Production.INFO: 64.25 MB #Memory Used# [2025-03-07 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:04:05 [end_date_ymd] => 2025-03-07 22:04:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:04:05' and `end` < '2025-03-07 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-03-07 22:04:18] Production.INFO: count ==4831 [2025-03-07 22:04:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:04:05 - End Time 2025-03-07 22:04:05 [2025-03-07 22:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630745', 'tblTempUsageDetail_20' ) start [2025-03-07 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630745', 'tblTempUsageDetail_20' ) end [2025-03-07 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630745', 'tblTempVendorCDR_20' ) start [2025-03-07 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630745', 'tblTempVendorCDR_20' ) end [2025-03-07 22:04:20] Production.INFO: ProcessCDR(1,14630745,1,1,2) [2025-03-07 22:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630745', 'tblTempUsageDetail_20' ) start [2025-03-07 22:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630745', 'tblTempUsageDetail_20' ) end [2025-03-07 22:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:04:25] Production.INFO: ==26583== Releasing lock... [2025-03-07 22:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:04:25] Production.INFO: 64 MB #Memory Used# [2025-03-07 22:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:05:06 [end_date_ymd] => 2025-03-07 22:05:06 [RateCDR] => 1 ) [2025-03-07 22:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:05:06' and `end` < '2025-03-07 22:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:05:18] Production.INFO: count ==4760 [2025-03-07 22:05:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:05:06 - End Time 2025-03-07 22:05:06 [2025-03-07 22:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630750', 'tblTempUsageDetail_20' ) start [2025-03-07 22:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630750', 'tblTempUsageDetail_20' ) end [2025-03-07 22:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630750', 'tblTempVendorCDR_20' ) start [2025-03-07 22:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630750', 'tblTempVendorCDR_20' ) end [2025-03-07 22:05:20] Production.INFO: ProcessCDR(1,14630750,1,1,2) [2025-03-07 22:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630750', 'tblTempUsageDetail_20' ) start [2025-03-07 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630750', 'tblTempUsageDetail_20' ) end [2025-03-07 22:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:05:23] Production.INFO: ==26654== Releasing lock... [2025-03-07 22:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:05:23] Production.INFO: 63.5 MB #Memory Used# [2025-03-07 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:06:05 [end_date_ymd] => 2025-03-07 22:06:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:06:05' and `end` < '2025-03-07 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-03-07 22:06:18] Production.INFO: count ==4741 [2025-03-07 22:06:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:06:05 - End Time 2025-03-07 22:06:05 [2025-03-07 22:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630755', 'tblTempUsageDetail_20' ) start [2025-03-07 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630755', 'tblTempUsageDetail_20' ) end [2025-03-07 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630755', 'tblTempVendorCDR_20' ) start [2025-03-07 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630755', 'tblTempVendorCDR_20' ) end [2025-03-07 22:06:20] Production.INFO: ProcessCDR(1,14630755,1,1,2) [2025-03-07 22:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630755', 'tblTempUsageDetail_20' ) start [2025-03-07 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630755', 'tblTempUsageDetail_20' ) end [2025-03-07 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:06:23] Production.INFO: ==26726== Releasing lock... [2025-03-07 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:06:23] Production.INFO: 63.25 MB #Memory Used# [2025-03-07 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:07:06 [end_date_ymd] => 2025-03-07 22:07:06 [RateCDR] => 1 ) [2025-03-07 22: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-03-07 19:07:06' and `end` < '2025-03-07 22: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-03-07 22:07:18] Production.INFO: count ==4735 [2025-03-07 22:07:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:07:06 - End Time 2025-03-07 22:07:06 [2025-03-07 22:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630760', 'tblTempUsageDetail_20' ) start [2025-03-07 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630760', 'tblTempUsageDetail_20' ) end [2025-03-07 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630760', 'tblTempVendorCDR_20' ) start [2025-03-07 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630760', 'tblTempVendorCDR_20' ) end [2025-03-07 22:07:20] Production.INFO: ProcessCDR(1,14630760,1,1,2) [2025-03-07 22:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630760', 'tblTempUsageDetail_20' ) start [2025-03-07 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630760', 'tblTempUsageDetail_20' ) end [2025-03-07 22:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:07:24] Production.INFO: ==26797== Releasing lock... [2025-03-07 22:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:07:24] Production.INFO: 63.25 MB #Memory Used# [2025-03-07 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:08:06 [end_date_ymd] => 2025-03-07 22:08:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:08:06' and `end` < '2025-03-07 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-03-07 22:08:18] Production.INFO: count ==4698 [2025-03-07 22:08:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:08:06 - End Time 2025-03-07 22:08:06 [2025-03-07 22:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630765', 'tblTempUsageDetail_20' ) start [2025-03-07 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630765', 'tblTempUsageDetail_20' ) end [2025-03-07 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630765', 'tblTempVendorCDR_20' ) start [2025-03-07 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630765', 'tblTempVendorCDR_20' ) end [2025-03-07 22:08:20] Production.INFO: ProcessCDR(1,14630765,1,1,2) [2025-03-07 22:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630765', 'tblTempUsageDetail_20' ) start [2025-03-07 22:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630765', 'tblTempUsageDetail_20' ) end [2025-03-07 22:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:08:24] Production.INFO: ==26868== Releasing lock... [2025-03-07 22:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:08:24] Production.INFO: 63 MB #Memory Used# [2025-03-07 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:09:05 [end_date_ymd] => 2025-03-07 22:09:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:09:05' and `end` < '2025-03-07 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-03-07 22:09:18] Production.INFO: count ==4680 [2025-03-07 22:09:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:09:05 - End Time 2025-03-07 22:09:05 [2025-03-07 22:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630770', 'tblTempUsageDetail_20' ) start [2025-03-07 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630770', 'tblTempUsageDetail_20' ) end [2025-03-07 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630770', 'tblTempVendorCDR_20' ) start [2025-03-07 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630770', 'tblTempVendorCDR_20' ) end [2025-03-07 22:09:20] Production.INFO: ProcessCDR(1,14630770,1,1,2) [2025-03-07 22:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630770', 'tblTempUsageDetail_20' ) start [2025-03-07 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630770', 'tblTempUsageDetail_20' ) end [2025-03-07 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:09:23] Production.INFO: ==26979== Releasing lock... [2025-03-07 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:09:23] Production.INFO: 63 MB #Memory Used# [2025-03-07 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:10:06 [end_date_ymd] => 2025-03-07 22:10:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:10:06' and `end` < '2025-03-07 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-03-07 22:10:18] Production.INFO: count ==4673 [2025-03-07 22:10:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:10:06 - End Time 2025-03-07 22:10:06 [2025-03-07 22:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630776', 'tblTempUsageDetail_20' ) start [2025-03-07 22:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630776', 'tblTempUsageDetail_20' ) end [2025-03-07 22:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630776', 'tblTempVendorCDR_20' ) start [2025-03-07 22:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630776', 'tblTempVendorCDR_20' ) end [2025-03-07 22:10:21] Production.INFO: ProcessCDR(1,14630776,1,1,2) [2025-03-07 22:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630776', 'tblTempUsageDetail_20' ) start [2025-03-07 22:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630776', 'tblTempUsageDetail_20' ) end [2025-03-07 22:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:10:25] Production.INFO: ==27057== Releasing lock... [2025-03-07 22:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:10:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-07 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:11:06 [end_date_ymd] => 2025-03-07 22:11:06 [RateCDR] => 1 ) [2025-03-07 22: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-03-07 19:11:06' and `end` < '2025-03-07 22: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-03-07 22:11:18] Production.INFO: count ==4621 [2025-03-07 22:11:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:11:06 - End Time 2025-03-07 22:11:06 [2025-03-07 22:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630781', 'tblTempUsageDetail_20' ) start [2025-03-07 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630781', 'tblTempUsageDetail_20' ) end [2025-03-07 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630781', 'tblTempVendorCDR_20' ) start [2025-03-07 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630781', 'tblTempVendorCDR_20' ) end [2025-03-07 22:11:20] Production.INFO: ProcessCDR(1,14630781,1,1,2) [2025-03-07 22:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630781', 'tblTempUsageDetail_20' ) start [2025-03-07 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630781', 'tblTempUsageDetail_20' ) end [2025-03-07 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:11:23] Production.INFO: ==27133== Releasing lock... [2025-03-07 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:11:23] Production.INFO: 62.5 MB #Memory Used# [2025-03-07 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:12:05 [end_date_ymd] => 2025-03-07 22:12:05 [RateCDR] => 1 ) [2025-03-07 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:12:05' and `end` < '2025-03-07 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:12:18] Production.INFO: count ==4590 [2025-03-07 22:12:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:12:05 - End Time 2025-03-07 22:12:05 [2025-03-07 22:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630786', 'tblTempUsageDetail_20' ) start [2025-03-07 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630786', 'tblTempUsageDetail_20' ) end [2025-03-07 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630786', 'tblTempVendorCDR_20' ) start [2025-03-07 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630786', 'tblTempVendorCDR_20' ) end [2025-03-07 22:12:20] Production.INFO: ProcessCDR(1,14630786,1,1,2) [2025-03-07 22:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630786', 'tblTempUsageDetail_20' ) start [2025-03-07 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630786', 'tblTempUsageDetail_20' ) end [2025-03-07 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:12:23] Production.INFO: ==27206== Releasing lock... [2025-03-07 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:12:23] Production.INFO: 62.25 MB #Memory Used# [2025-03-07 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:13:06 [end_date_ymd] => 2025-03-07 22:13:06 [RateCDR] => 1 ) [2025-03-07 22: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-03-07 19:13:06' and `end` < '2025-03-07 22: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-03-07 22:13:18] Production.INFO: count ==4559 [2025-03-07 22:13:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:13:06 - End Time 2025-03-07 22:13:06 [2025-03-07 22:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630791', 'tblTempUsageDetail_20' ) start [2025-03-07 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630791', 'tblTempUsageDetail_20' ) end [2025-03-07 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630791', 'tblTempVendorCDR_20' ) start [2025-03-07 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630791', 'tblTempVendorCDR_20' ) end [2025-03-07 22:13:20] Production.INFO: ProcessCDR(1,14630791,1,1,2) [2025-03-07 22:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630791', 'tblTempUsageDetail_20' ) start [2025-03-07 22:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630791', 'tblTempUsageDetail_20' ) end [2025-03-07 22:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:13:24] Production.INFO: ==27285== Releasing lock... [2025-03-07 22:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:13:24] Production.INFO: 62 MB #Memory Used# [2025-03-07 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:14:05 [end_date_ymd] => 2025-03-07 22:14:05 [RateCDR] => 1 ) [2025-03-07 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:14:05' and `end` < '2025-03-07 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:14:18] Production.INFO: count ==4536 [2025-03-07 22:14:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:14:05 - End Time 2025-03-07 22:14:05 [2025-03-07 22:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630796', 'tblTempUsageDetail_20' ) start [2025-03-07 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630796', 'tblTempUsageDetail_20' ) end [2025-03-07 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630796', 'tblTempVendorCDR_20' ) start [2025-03-07 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630796', 'tblTempVendorCDR_20' ) end [2025-03-07 22:14:20] Production.INFO: ProcessCDR(1,14630796,1,1,2) [2025-03-07 22:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630796', 'tblTempUsageDetail_20' ) start [2025-03-07 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630796', 'tblTempUsageDetail_20' ) end [2025-03-07 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:14:23] Production.INFO: ==27355== Releasing lock... [2025-03-07 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:14:23] Production.INFO: 61.75 MB #Memory Used# [2025-03-07 22:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:15:06 [end_date_ymd] => 2025-03-07 22:15:06 [RateCDR] => 1 ) [2025-03-07 22: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-03-07 19:15:06' and `end` < '2025-03-07 22: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-03-07 22:15:18] Production.INFO: count ==4513 [2025-03-07 22:15:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:15:06 - End Time 2025-03-07 22:15:06 [2025-03-07 22:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630801', 'tblTempUsageDetail_20' ) start [2025-03-07 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630801', 'tblTempUsageDetail_20' ) end [2025-03-07 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630801', 'tblTempVendorCDR_20' ) start [2025-03-07 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630801', 'tblTempVendorCDR_20' ) end [2025-03-07 22:15:20] Production.INFO: ProcessCDR(1,14630801,1,1,2) [2025-03-07 22:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630801', 'tblTempUsageDetail_20' ) start [2025-03-07 22:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630801', 'tblTempUsageDetail_20' ) end [2025-03-07 22:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:15:24] Production.INFO: ==27425== Releasing lock... [2025-03-07 22:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:15:24] Production.INFO: 61.75 MB #Memory Used# [2025-03-07 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:16:05 [end_date_ymd] => 2025-03-07 22:16:05 [RateCDR] => 1 ) [2025-03-07 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:16:05' and `end` < '2025-03-07 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:16:17] Production.INFO: count ==4465 [2025-03-07 22:16:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:16:05 - End Time 2025-03-07 22:16:05 [2025-03-07 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630806', 'tblTempUsageDetail_20' ) start [2025-03-07 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630806', 'tblTempUsageDetail_20' ) end [2025-03-07 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630806', 'tblTempVendorCDR_20' ) start [2025-03-07 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630806', 'tblTempVendorCDR_20' ) end [2025-03-07 22:16:19] Production.INFO: ProcessCDR(1,14630806,1,1,2) [2025-03-07 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630806', 'tblTempUsageDetail_20' ) start [2025-03-07 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630806', 'tblTempUsageDetail_20' ) end [2025-03-07 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:16:22] Production.INFO: ==27494== Releasing lock... [2025-03-07 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:16:22] Production.INFO: 61.25 MB #Memory Used# [2025-03-07 22:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:17:06 [end_date_ymd] => 2025-03-07 22:17:06 [RateCDR] => 1 ) [2025-03-07 22:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:17:06' and `end` < '2025-03-07 22:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:17:18] Production.INFO: count ==4435 [2025-03-07 22:17:21] Production.ERROR: pbx CDR StartTime 2025-03-07 19:17:06 - End Time 2025-03-07 22:17:06 [2025-03-07 22:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630811', 'tblTempUsageDetail_20' ) start [2025-03-07 22:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630811', 'tblTempUsageDetail_20' ) end [2025-03-07 22:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630811', 'tblTempVendorCDR_20' ) start [2025-03-07 22:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630811', 'tblTempVendorCDR_20' ) end [2025-03-07 22:17:21] Production.INFO: ProcessCDR(1,14630811,1,1,2) [2025-03-07 22:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630811', 'tblTempUsageDetail_20' ) start [2025-03-07 22:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630811', 'tblTempUsageDetail_20' ) end [2025-03-07 22:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:17:25] Production.INFO: ==27586== Releasing lock... [2025-03-07 22:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:17:25] Production.INFO: 61 MB #Memory Used# [2025-03-07 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:18:05 [end_date_ymd] => 2025-03-07 22:18:05 [RateCDR] => 1 ) [2025-03-07 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:18:05' and `end` < '2025-03-07 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:18:18] Production.INFO: count ==4407 [2025-03-07 22:18:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:18:05 - End Time 2025-03-07 22:18:05 [2025-03-07 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630816', 'tblTempUsageDetail_20' ) start [2025-03-07 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630816', 'tblTempUsageDetail_20' ) end [2025-03-07 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630816', 'tblTempVendorCDR_20' ) start [2025-03-07 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630816', 'tblTempVendorCDR_20' ) end [2025-03-07 22:18:19] Production.INFO: ProcessCDR(1,14630816,1,1,2) [2025-03-07 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630816', 'tblTempUsageDetail_20' ) start [2025-03-07 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630816', 'tblTempUsageDetail_20' ) end [2025-03-07 22:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:18:23] Production.INFO: ==27659== Releasing lock... [2025-03-07 22:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:18:23] Production.INFO: 60.75 MB #Memory Used# [2025-03-07 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:19:05 [end_date_ymd] => 2025-03-07 22:19:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:19:05' and `end` < '2025-03-07 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-03-07 22:19:17] Production.INFO: count ==4370 [2025-03-07 22:19:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:19:05 - End Time 2025-03-07 22:19:05 [2025-03-07 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630821', 'tblTempUsageDetail_20' ) start [2025-03-07 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630821', 'tblTempUsageDetail_20' ) end [2025-03-07 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630821', 'tblTempVendorCDR_20' ) start [2025-03-07 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630821', 'tblTempVendorCDR_20' ) end [2025-03-07 22:19:19] Production.INFO: ProcessCDR(1,14630821,1,1,2) [2025-03-07 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630821', 'tblTempUsageDetail_20' ) start [2025-03-07 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630821', 'tblTempUsageDetail_20' ) end [2025-03-07 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:19:22] Production.INFO: ==27732== Releasing lock... [2025-03-07 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:19:22] Production.INFO: 60.5 MB #Memory Used# [2025-03-07 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:20:06 [end_date_ymd] => 2025-03-07 22:20:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:20:06' and `end` < '2025-03-07 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-03-07 22:20:18] Production.INFO: count ==4330 [2025-03-07 22:20:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:20:06 - End Time 2025-03-07 22:20:06 [2025-03-07 22:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630827', 'tblTempUsageDetail_20' ) start [2025-03-07 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630827', 'tblTempUsageDetail_20' ) end [2025-03-07 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630827', 'tblTempVendorCDR_20' ) start [2025-03-07 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630827', 'tblTempVendorCDR_20' ) end [2025-03-07 22:20:20] Production.INFO: ProcessCDR(1,14630827,1,1,2) [2025-03-07 22:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630827', 'tblTempUsageDetail_20' ) start [2025-03-07 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630827', 'tblTempUsageDetail_20' ) end [2025-03-07 22:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:20:24] Production.INFO: ==27808== Releasing lock... [2025-03-07 22:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:20:24] Production.INFO: 60.25 MB #Memory Used# [2025-03-07 22:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:21:06 [end_date_ymd] => 2025-03-07 22:21:06 [RateCDR] => 1 ) [2025-03-07 22: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-03-07 19:21:06' and `end` < '2025-03-07 22: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-03-07 22:21:18] Production.INFO: count ==4211 [2025-03-07 22:21:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:21:06 - End Time 2025-03-07 22:21:06 [2025-03-07 22:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630832', 'tblTempUsageDetail_20' ) start [2025-03-07 22:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630832', 'tblTempUsageDetail_20' ) end [2025-03-07 22:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630832', 'tblTempVendorCDR_20' ) start [2025-03-07 22:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630832', 'tblTempVendorCDR_20' ) end [2025-03-07 22:21:20] Production.INFO: ProcessCDR(1,14630832,1,1,2) [2025-03-07 22:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630832', 'tblTempUsageDetail_20' ) start [2025-03-07 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630832', 'tblTempUsageDetail_20' ) end [2025-03-07 22:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:21:23] Production.INFO: ==27883== Releasing lock... [2025-03-07 22:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:21:23] Production.INFO: 59.5 MB #Memory Used# [2025-03-07 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:22:05 [end_date_ymd] => 2025-03-07 22:22:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:22:05' and `end` < '2025-03-07 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-03-07 22:22:18] Production.INFO: count ==4157 [2025-03-07 22:22:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:22:05 - End Time 2025-03-07 22:22:05 [2025-03-07 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630837', 'tblTempUsageDetail_20' ) start [2025-03-07 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630837', 'tblTempUsageDetail_20' ) end [2025-03-07 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630837', 'tblTempVendorCDR_20' ) start [2025-03-07 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630837', 'tblTempVendorCDR_20' ) end [2025-03-07 22:22:20] Production.INFO: ProcessCDR(1,14630837,1,1,2) [2025-03-07 22:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630837', 'tblTempUsageDetail_20' ) start [2025-03-07 22:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630837', 'tblTempUsageDetail_20' ) end [2025-03-07 22:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:22:25] Production.INFO: ==27957== Releasing lock... [2025-03-07 22:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:22:25] Production.INFO: 59 MB #Memory Used# [2025-03-07 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:23:05 [end_date_ymd] => 2025-03-07 22:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:23:05' and `end` < '2025-03-07 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-03-07 22:23:17] Production.INFO: count ==4158 [2025-03-07 22:23:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:23:05 - End Time 2025-03-07 22:23:05 [2025-03-07 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630842', 'tblTempUsageDetail_20' ) start [2025-03-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630842', 'tblTempUsageDetail_20' ) end [2025-03-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630842', 'tblTempVendorCDR_20' ) start [2025-03-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630842', 'tblTempVendorCDR_20' ) end [2025-03-07 22:23:19] Production.INFO: ProcessCDR(1,14630842,1,1,2) [2025-03-07 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630842', 'tblTempUsageDetail_20' ) start [2025-03-07 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630842', 'tblTempUsageDetail_20' ) end [2025-03-07 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:23:23] Production.INFO: ==28033== Releasing lock... [2025-03-07 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:23:23] Production.INFO: 59 MB #Memory Used# [2025-03-07 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:24:05 [end_date_ymd] => 2025-03-07 22:24:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:24:05' and `end` < '2025-03-07 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-03-07 22:24:17] Production.INFO: count ==4100 [2025-03-07 22:24:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:24:05 - End Time 2025-03-07 22:24:05 [2025-03-07 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630847', 'tblTempUsageDetail_20' ) start [2025-03-07 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630847', 'tblTempUsageDetail_20' ) end [2025-03-07 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630847', 'tblTempVendorCDR_20' ) start [2025-03-07 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630847', 'tblTempVendorCDR_20' ) end [2025-03-07 22:24:19] Production.INFO: ProcessCDR(1,14630847,1,1,2) [2025-03-07 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630847', 'tblTempUsageDetail_20' ) start [2025-03-07 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630847', 'tblTempUsageDetail_20' ) end [2025-03-07 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:24:22] Production.INFO: ==28103== Releasing lock... [2025-03-07 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:24:22] Production.INFO: 58.5 MB #Memory Used# [2025-03-07 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:25:06 [end_date_ymd] => 2025-03-07 22:25:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:25:06' and `end` < '2025-03-07 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-03-07 22:25:18] Production.INFO: count ==4081 [2025-03-07 22:25:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:25:06 - End Time 2025-03-07 22:25:06 [2025-03-07 22:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630852', 'tblTempUsageDetail_20' ) start [2025-03-07 22:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630852', 'tblTempUsageDetail_20' ) end [2025-03-07 22:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630852', 'tblTempVendorCDR_20' ) start [2025-03-07 22:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630852', 'tblTempVendorCDR_20' ) end [2025-03-07 22:25:20] Production.INFO: ProcessCDR(1,14630852,1,1,2) [2025-03-07 22:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630852', 'tblTempUsageDetail_20' ) start [2025-03-07 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630852', 'tblTempUsageDetail_20' ) end [2025-03-07 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:25:24] Production.INFO: ==28212== Releasing lock... [2025-03-07 22:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:25:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-07 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:26:05 [end_date_ymd] => 2025-03-07 22:26:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:26:05' and `end` < '2025-03-07 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-03-07 22:26:18] Production.INFO: count ==4056 [2025-03-07 22:26:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:26:05 - End Time 2025-03-07 22:26:05 [2025-03-07 22:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630857', 'tblTempUsageDetail_20' ) start [2025-03-07 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630857', 'tblTempUsageDetail_20' ) end [2025-03-07 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630857', 'tblTempVendorCDR_20' ) start [2025-03-07 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630857', 'tblTempVendorCDR_20' ) end [2025-03-07 22:26:20] Production.INFO: ProcessCDR(1,14630857,1,1,2) [2025-03-07 22:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630857', 'tblTempUsageDetail_20' ) start [2025-03-07 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630857', 'tblTempUsageDetail_20' ) end [2025-03-07 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:26:23] Production.INFO: ==28286== Releasing lock... [2025-03-07 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:26:23] Production.INFO: 58.25 MB #Memory Used# [2025-03-07 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:27:06 [end_date_ymd] => 2025-03-07 22:27:06 [RateCDR] => 1 ) [2025-03-07 22: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-03-07 19:27:06' and `end` < '2025-03-07 22: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-03-07 22:27:18] Production.INFO: count ==4031 [2025-03-07 22:27:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:27:06 - End Time 2025-03-07 22:27:06 [2025-03-07 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630862', 'tblTempUsageDetail_20' ) start [2025-03-07 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630862', 'tblTempUsageDetail_20' ) end [2025-03-07 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630862', 'tblTempVendorCDR_20' ) start [2025-03-07 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630862', 'tblTempVendorCDR_20' ) end [2025-03-07 22:27:20] Production.INFO: ProcessCDR(1,14630862,1,1,2) [2025-03-07 22:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630862', 'tblTempUsageDetail_20' ) start [2025-03-07 22:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630862', 'tblTempUsageDetail_20' ) end [2025-03-07 22:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:27:24] Production.INFO: ==28357== Releasing lock... [2025-03-07 22:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:27:24] Production.INFO: 58 MB #Memory Used# [2025-03-07 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:28:05 [end_date_ymd] => 2025-03-07 22:28:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:28:05' and `end` < '2025-03-07 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-03-07 22:28:17] Production.INFO: count ==4022 [2025-03-07 22:28:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:28:05 - End Time 2025-03-07 22:28:05 [2025-03-07 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630867', 'tblTempUsageDetail_20' ) start [2025-03-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630867', 'tblTempUsageDetail_20' ) end [2025-03-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630867', 'tblTempVendorCDR_20' ) start [2025-03-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630867', 'tblTempVendorCDR_20' ) end [2025-03-07 22:28:19] Production.INFO: ProcessCDR(1,14630867,1,1,2) [2025-03-07 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630867', 'tblTempUsageDetail_20' ) start [2025-03-07 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630867', 'tblTempUsageDetail_20' ) end [2025-03-07 22:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:28:23] Production.INFO: ==28427== Releasing lock... [2025-03-07 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:28:23] Production.INFO: 58 MB #Memory Used# [2025-03-07 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:29:06 [end_date_ymd] => 2025-03-07 22:29:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:29:06' and `end` < '2025-03-07 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-03-07 22:29:18] Production.INFO: count ==4014 [2025-03-07 22:29:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:29:06 - End Time 2025-03-07 22:29:06 [2025-03-07 22:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630872', 'tblTempUsageDetail_20' ) start [2025-03-07 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630872', 'tblTempUsageDetail_20' ) end [2025-03-07 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630872', 'tblTempVendorCDR_20' ) start [2025-03-07 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630872', 'tblTempVendorCDR_20' ) end [2025-03-07 22:29:20] Production.INFO: ProcessCDR(1,14630872,1,1,2) [2025-03-07 22:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630872', 'tblTempUsageDetail_20' ) start [2025-03-07 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630872', 'tblTempUsageDetail_20' ) end [2025-03-07 22:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:29:23] Production.INFO: ==28505== Releasing lock... [2025-03-07 22:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:29:23] Production.INFO: 58 MB #Memory Used# [2025-03-07 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:30:06 [end_date_ymd] => 2025-03-07 22:30:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:30:06' and `end` < '2025-03-07 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-03-07 22:30:18] Production.INFO: count ==4012 [2025-03-07 22:30:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:30:06 - End Time 2025-03-07 22:30:06 [2025-03-07 22:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630878', 'tblTempUsageDetail_20' ) start [2025-03-07 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630878', 'tblTempUsageDetail_20' ) end [2025-03-07 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630878', 'tblTempVendorCDR_20' ) start [2025-03-07 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630878', 'tblTempVendorCDR_20' ) end [2025-03-07 22:30:20] Production.INFO: ProcessCDR(1,14630878,1,1,2) [2025-03-07 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630878', 'tblTempUsageDetail_20' ) start [2025-03-07 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630878', 'tblTempUsageDetail_20' ) end [2025-03-07 22:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:30:24] Production.INFO: ==28577== Releasing lock... [2025-03-07 22:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:30:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-07 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:31:05 [end_date_ymd] => 2025-03-07 22:31:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:31:05' and `end` < '2025-03-07 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-03-07 22:31:18] Production.INFO: count ==4004 [2025-03-07 22:31:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:31:05 - End Time 2025-03-07 22:31:05 [2025-03-07 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630883', 'tblTempUsageDetail_20' ) start [2025-03-07 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630883', 'tblTempUsageDetail_20' ) end [2025-03-07 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630883', 'tblTempVendorCDR_20' ) start [2025-03-07 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630883', 'tblTempVendorCDR_20' ) end [2025-03-07 22:31:19] Production.INFO: ProcessCDR(1,14630883,1,1,2) [2025-03-07 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630883', 'tblTempUsageDetail_20' ) start [2025-03-07 22:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630883', 'tblTempUsageDetail_20' ) end [2025-03-07 22:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:31:24] Production.INFO: ==28660== Releasing lock... [2025-03-07 22:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:31:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-07 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:32:05 [end_date_ymd] => 2025-03-07 22:32:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:32:05' and `end` < '2025-03-07 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-03-07 22:32:17] Production.INFO: count ==3977 [2025-03-07 22:32:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:32:05 - End Time 2025-03-07 22:32:05 [2025-03-07 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630888', 'tblTempUsageDetail_20' ) start [2025-03-07 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630888', 'tblTempUsageDetail_20' ) end [2025-03-07 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630888', 'tblTempVendorCDR_20' ) start [2025-03-07 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630888', 'tblTempVendorCDR_20' ) end [2025-03-07 22:32:19] Production.INFO: ProcessCDR(1,14630888,1,1,2) [2025-03-07 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630888', 'tblTempUsageDetail_20' ) start [2025-03-07 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630888', 'tblTempUsageDetail_20' ) end [2025-03-07 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:32:23] Production.INFO: ==28737== Releasing lock... [2025-03-07 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:32:23] Production.INFO: 57.5 MB #Memory Used# [2025-03-07 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:33:05 [end_date_ymd] => 2025-03-07 22:33:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:33:05' and `end` < '2025-03-07 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-03-07 22:33:18] Production.INFO: count ==3953 [2025-03-07 22:33:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:33:05 - End Time 2025-03-07 22:33:05 [2025-03-07 22:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630893', 'tblTempUsageDetail_20' ) start [2025-03-07 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630893', 'tblTempUsageDetail_20' ) end [2025-03-07 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630893', 'tblTempVendorCDR_20' ) start [2025-03-07 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630893', 'tblTempVendorCDR_20' ) end [2025-03-07 22:33:20] Production.INFO: ProcessCDR(1,14630893,1,1,2) [2025-03-07 22:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630893', 'tblTempUsageDetail_20' ) start [2025-03-07 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630893', 'tblTempUsageDetail_20' ) end [2025-03-07 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:33:23] Production.INFO: ==28808== Releasing lock... [2025-03-07 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:33:23] Production.INFO: 57.5 MB #Memory Used# [2025-03-07 22:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:34:04 [end_date_ymd] => 2025-03-07 22:34:04 [RateCDR] => 1 ) [2025-03-07 22:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:34:04' and `end` < '2025-03-07 22:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:34:17] Production.INFO: count ==3914 [2025-03-07 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-07 19:34:04 - End Time 2025-03-07 22:34:04 [2025-03-07 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630898', 'tblTempUsageDetail_20' ) start [2025-03-07 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630898', 'tblTempUsageDetail_20' ) end [2025-03-07 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630898', 'tblTempVendorCDR_20' ) start [2025-03-07 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630898', 'tblTempVendorCDR_20' ) end [2025-03-07 22:34:18] Production.INFO: ProcessCDR(1,14630898,1,1,2) [2025-03-07 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630898', 'tblTempUsageDetail_20' ) start [2025-03-07 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630898', 'tblTempUsageDetail_20' ) end [2025-03-07 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:34:21] Production.INFO: ==28879== Releasing lock... [2025-03-07 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:34:21] Production.INFO: 57.25 MB #Memory Used# [2025-03-07 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:35:05 [end_date_ymd] => 2025-03-07 22:35:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:35:05' and `end` < '2025-03-07 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-03-07 22:35:18] Production.INFO: count ==3886 [2025-03-07 22:35:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:35:05 - End Time 2025-03-07 22:35:05 [2025-03-07 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630903', 'tblTempUsageDetail_20' ) start [2025-03-07 22:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630903', 'tblTempUsageDetail_20' ) end [2025-03-07 22:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630903', 'tblTempVendorCDR_20' ) start [2025-03-07 22:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630903', 'tblTempVendorCDR_20' ) end [2025-03-07 22:35:20] Production.INFO: ProcessCDR(1,14630903,1,1,2) [2025-03-07 22:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630903', 'tblTempUsageDetail_20' ) start [2025-03-07 22:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630903', 'tblTempUsageDetail_20' ) end [2025-03-07 22:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:35:24] Production.INFO: ==28949== Releasing lock... [2025-03-07 22:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:35:24] Production.INFO: 57 MB #Memory Used# [2025-03-07 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:36:05 [end_date_ymd] => 2025-03-07 22:36:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:36:05' and `end` < '2025-03-07 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-03-07 22:36:17] Production.INFO: count ==3854 [2025-03-07 22:36:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:36:05 - End Time 2025-03-07 22:36:05 [2025-03-07 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630908', 'tblTempUsageDetail_20' ) start [2025-03-07 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630908', 'tblTempUsageDetail_20' ) end [2025-03-07 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630908', 'tblTempVendorCDR_20' ) start [2025-03-07 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630908', 'tblTempVendorCDR_20' ) end [2025-03-07 22:36:19] Production.INFO: ProcessCDR(1,14630908,1,1,2) [2025-03-07 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630908', 'tblTempUsageDetail_20' ) start [2025-03-07 22:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630908', 'tblTempUsageDetail_20' ) end [2025-03-07 22:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:36:24] Production.INFO: ==29023== Releasing lock... [2025-03-07 22:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:36:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-07 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:37:05 [end_date_ymd] => 2025-03-07 22:37:05 [RateCDR] => 1 ) [2025-03-07 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:37:05' and `end` < '2025-03-07 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:37:17] Production.INFO: count ==3833 [2025-03-07 22:37:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:37:05 - End Time 2025-03-07 22:37:05 [2025-03-07 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630913', 'tblTempUsageDetail_20' ) start [2025-03-07 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630913', 'tblTempUsageDetail_20' ) end [2025-03-07 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630913', 'tblTempVendorCDR_20' ) start [2025-03-07 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630913', 'tblTempVendorCDR_20' ) end [2025-03-07 22:37:19] Production.INFO: ProcessCDR(1,14630913,1,1,2) [2025-03-07 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630913', 'tblTempUsageDetail_20' ) start [2025-03-07 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630913', 'tblTempUsageDetail_20' ) end [2025-03-07 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:37:22] Production.INFO: ==29103== Releasing lock... [2025-03-07 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:37:22] Production.INFO: 56.5 MB #Memory Used# [2025-03-07 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:38:05 [end_date_ymd] => 2025-03-07 22:38:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:38:05' and `end` < '2025-03-07 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-03-07 22:38:17] Production.INFO: count ==3792 [2025-03-07 22:38:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:38:05 - End Time 2025-03-07 22:38:05 [2025-03-07 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630918', 'tblTempUsageDetail_20' ) start [2025-03-07 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630918', 'tblTempUsageDetail_20' ) end [2025-03-07 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630918', 'tblTempVendorCDR_20' ) start [2025-03-07 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630918', 'tblTempVendorCDR_20' ) end [2025-03-07 22:38:19] Production.INFO: ProcessCDR(1,14630918,1,1,2) [2025-03-07 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630918', 'tblTempUsageDetail_20' ) start [2025-03-07 22:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630918', 'tblTempUsageDetail_20' ) end [2025-03-07 22:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:38:24] Production.INFO: ==29180== Releasing lock... [2025-03-07 22:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:38:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-07 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:39:05 [end_date_ymd] => 2025-03-07 22:39:05 [RateCDR] => 1 ) [2025-03-07 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:39:05' and `end` < '2025-03-07 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:39:17] Production.INFO: count ==3761 [2025-03-07 22:39:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:39:05 - End Time 2025-03-07 22:39:05 [2025-03-07 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630923', 'tblTempUsageDetail_20' ) start [2025-03-07 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630923', 'tblTempUsageDetail_20' ) end [2025-03-07 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630923', 'tblTempVendorCDR_20' ) start [2025-03-07 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630923', 'tblTempVendorCDR_20' ) end [2025-03-07 22:39:19] Production.INFO: ProcessCDR(1,14630923,1,1,2) [2025-03-07 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630923', 'tblTempUsageDetail_20' ) start [2025-03-07 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630923', 'tblTempUsageDetail_20' ) end [2025-03-07 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:39:22] Production.INFO: ==29255== Releasing lock... [2025-03-07 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:39:22] Production.INFO: 56 MB #Memory Used# [2025-03-07 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:40:05 [end_date_ymd] => 2025-03-07 22:40:05 [RateCDR] => 1 ) [2025-03-07 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:40:05' and `end` < '2025-03-07 22:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:40:17] Production.INFO: count ==3722 [2025-03-07 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:40:05 - End Time 2025-03-07 22:40:05 [2025-03-07 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630928', 'tblTempUsageDetail_20' ) start [2025-03-07 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630928', 'tblTempUsageDetail_20' ) end [2025-03-07 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630928', 'tblTempVendorCDR_20' ) start [2025-03-07 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630928', 'tblTempVendorCDR_20' ) end [2025-03-07 22:40:19] Production.INFO: ProcessCDR(1,14630928,1,1,2) [2025-03-07 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630928', 'tblTempUsageDetail_20' ) start [2025-03-07 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630928', 'tblTempUsageDetail_20' ) end [2025-03-07 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:40:22] Production.INFO: ==29370== Releasing lock... [2025-03-07 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:40:22] Production.INFO: 55.75 MB #Memory Used# [2025-03-07 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:41:05 [end_date_ymd] => 2025-03-07 22:41:05 [RateCDR] => 1 ) [2025-03-07 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:41:05' and `end` < '2025-03-07 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:41:17] Production.INFO: count ==3640 [2025-03-07 22:41:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:41:05 - End Time 2025-03-07 22:41:05 [2025-03-07 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630934', 'tblTempUsageDetail_20' ) start [2025-03-07 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630934', 'tblTempUsageDetail_20' ) end [2025-03-07 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630934', 'tblTempVendorCDR_20' ) start [2025-03-07 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630934', 'tblTempVendorCDR_20' ) end [2025-03-07 22:41:19] Production.INFO: ProcessCDR(1,14630934,1,1,2) [2025-03-07 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630934', 'tblTempUsageDetail_20' ) start [2025-03-07 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630934', 'tblTempUsageDetail_20' ) end [2025-03-07 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:41:22] Production.INFO: ==29456== Releasing lock... [2025-03-07 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:41:22] Production.INFO: 55 MB #Memory Used# [2025-03-07 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:42:05 [end_date_ymd] => 2025-03-07 22:42:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:42:05' and `end` < '2025-03-07 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-03-07 22:42:18] Production.INFO: count ==3612 [2025-03-07 22:42:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:42:05 - End Time 2025-03-07 22:42:05 [2025-03-07 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630939', 'tblTempUsageDetail_20' ) start [2025-03-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630939', 'tblTempUsageDetail_20' ) end [2025-03-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630939', 'tblTempVendorCDR_20' ) start [2025-03-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630939', 'tblTempVendorCDR_20' ) end [2025-03-07 22:42:19] Production.INFO: ProcessCDR(1,14630939,1,1,2) [2025-03-07 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630939', 'tblTempUsageDetail_20' ) start [2025-03-07 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630939', 'tblTempUsageDetail_20' ) end [2025-03-07 22:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:42:23] Production.INFO: ==29532== Releasing lock... [2025-03-07 22:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:42:23] Production.INFO: 55 MB #Memory Used# [2025-03-07 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:43:05 [end_date_ymd] => 2025-03-07 22:43:05 [RateCDR] => 1 ) [2025-03-07 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:43:05' and `end` < '2025-03-07 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:43:17] Production.INFO: count ==3611 [2025-03-07 22:43:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:43:05 - End Time 2025-03-07 22:43:05 [2025-03-07 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630944', 'tblTempUsageDetail_20' ) start [2025-03-07 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630944', 'tblTempUsageDetail_20' ) end [2025-03-07 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630944', 'tblTempVendorCDR_20' ) start [2025-03-07 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630944', 'tblTempVendorCDR_20' ) end [2025-03-07 22:43:19] Production.INFO: ProcessCDR(1,14630944,1,1,2) [2025-03-07 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630944', 'tblTempUsageDetail_20' ) start [2025-03-07 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630944', 'tblTempUsageDetail_20' ) end [2025-03-07 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:43:22] Production.INFO: ==29605== Releasing lock... [2025-03-07 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:43:22] Production.INFO: 55 MB #Memory Used# [2025-03-07 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:44:05 [end_date_ymd] => 2025-03-07 22:44:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:44:05' and `end` < '2025-03-07 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-03-07 22:44:18] Production.INFO: count ==3610 [2025-03-07 22:44:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:44:05 - End Time 2025-03-07 22:44:05 [2025-03-07 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630949', 'tblTempUsageDetail_20' ) start [2025-03-07 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630949', 'tblTempUsageDetail_20' ) end [2025-03-07 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630949', 'tblTempVendorCDR_20' ) start [2025-03-07 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630949', 'tblTempVendorCDR_20' ) end [2025-03-07 22:44:19] Production.INFO: ProcessCDR(1,14630949,1,1,2) [2025-03-07 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630949', 'tblTempUsageDetail_20' ) start [2025-03-07 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630949', 'tblTempUsageDetail_20' ) end [2025-03-07 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:44:22] Production.INFO: ==29678== Releasing lock... [2025-03-07 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:44:22] Production.INFO: 55 MB #Memory Used# [2025-03-07 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:45:05 [end_date_ymd] => 2025-03-07 22:45:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:45:05' and `end` < '2025-03-07 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-03-07 22:45:17] Production.INFO: count ==3595 [2025-03-07 22:45:18] Production.ERROR: pbx CDR StartTime 2025-03-07 19:45:05 - End Time 2025-03-07 22:45:05 [2025-03-07 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630954', 'tblTempUsageDetail_20' ) start [2025-03-07 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630954', 'tblTempUsageDetail_20' ) end [2025-03-07 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630954', 'tblTempVendorCDR_20' ) start [2025-03-07 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630954', 'tblTempVendorCDR_20' ) end [2025-03-07 22:45:19] Production.INFO: ProcessCDR(1,14630954,1,1,2) [2025-03-07 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630954', 'tblTempUsageDetail_20' ) start [2025-03-07 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630954', 'tblTempUsageDetail_20' ) end [2025-03-07 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:45:22] Production.INFO: ==29751== Releasing lock... [2025-03-07 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:45:22] Production.INFO: 55 MB #Memory Used# [2025-03-07 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:46:05 [end_date_ymd] => 2025-03-07 22:46:05 [RateCDR] => 1 ) [2025-03-07 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:46:05' and `end` < '2025-03-07 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:46:17] Production.INFO: count ==3569 [2025-03-07 22:46:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:46:05 - End Time 2025-03-07 22:46:05 [2025-03-07 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630959', 'tblTempUsageDetail_20' ) start [2025-03-07 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630959', 'tblTempUsageDetail_20' ) end [2025-03-07 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630959', 'tblTempVendorCDR_20' ) start [2025-03-07 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630959', 'tblTempVendorCDR_20' ) end [2025-03-07 22:46:19] Production.INFO: ProcessCDR(1,14630959,1,1,2) [2025-03-07 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630959', 'tblTempUsageDetail_20' ) start [2025-03-07 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630959', 'tblTempUsageDetail_20' ) end [2025-03-07 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:46:22] Production.INFO: ==29828== Releasing lock... [2025-03-07 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:46:22] Production.INFO: 54.75 MB #Memory Used# [2025-03-07 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:47:05 [end_date_ymd] => 2025-03-07 22:47:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:47:05' and `end` < '2025-03-07 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-03-07 22:47:17] Production.INFO: count ==3544 [2025-03-07 22:47:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:47:05 - End Time 2025-03-07 22:47:05 [2025-03-07 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630964', 'tblTempUsageDetail_20' ) start [2025-03-07 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630964', 'tblTempUsageDetail_20' ) end [2025-03-07 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630964', 'tblTempVendorCDR_20' ) start [2025-03-07 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630964', 'tblTempVendorCDR_20' ) end [2025-03-07 22:47:19] Production.INFO: ProcessCDR(1,14630964,1,1,2) [2025-03-07 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630964', 'tblTempUsageDetail_20' ) start [2025-03-07 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630964', 'tblTempUsageDetail_20' ) end [2025-03-07 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:47:23] Production.INFO: ==29907== Releasing lock... [2025-03-07 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:47:23] Production.INFO: 54.5 MB #Memory Used# [2025-03-07 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:48:05 [end_date_ymd] => 2025-03-07 22:48:05 [RateCDR] => 1 ) [2025-03-07 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:48:05' and `end` < '2025-03-07 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:48:17] Production.INFO: count ==3526 [2025-03-07 22:48:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:48:05 - End Time 2025-03-07 22:48:05 [2025-03-07 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630969', 'tblTempUsageDetail_20' ) start [2025-03-07 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630969', 'tblTempUsageDetail_20' ) end [2025-03-07 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630969', 'tblTempVendorCDR_20' ) start [2025-03-07 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630969', 'tblTempVendorCDR_20' ) end [2025-03-07 22:48:19] Production.INFO: ProcessCDR(1,14630969,1,1,2) [2025-03-07 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630969', 'tblTempUsageDetail_20' ) start [2025-03-07 22:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630969', 'tblTempUsageDetail_20' ) end [2025-03-07 22:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:48:24] Production.INFO: ==29988== Releasing lock... [2025-03-07 22:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:48:24] Production.INFO: 54.75 MB #Memory Used# [2025-03-07 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:49:04 [end_date_ymd] => 2025-03-07 22:49:04 [RateCDR] => 1 ) [2025-03-07 22: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-03-07 19:49:04' and `end` < '2025-03-07 22: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-03-07 22:49:17] Production.INFO: count ==3503 [2025-03-07 22:49:18] Production.ERROR: pbx CDR StartTime 2025-03-07 19:49:04 - End Time 2025-03-07 22:49:04 [2025-03-07 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630974', 'tblTempUsageDetail_20' ) start [2025-03-07 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630974', 'tblTempUsageDetail_20' ) end [2025-03-07 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630974', 'tblTempVendorCDR_20' ) start [2025-03-07 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630974', 'tblTempVendorCDR_20' ) end [2025-03-07 22:49:18] Production.INFO: ProcessCDR(1,14630974,1,1,2) [2025-03-07 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630974', 'tblTempUsageDetail_20' ) start [2025-03-07 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630974', 'tblTempUsageDetail_20' ) end [2025-03-07 22:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:49:23] Production.INFO: ==30069== Releasing lock... [2025-03-07 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:49:23] Production.INFO: 54 MB #Memory Used# [2025-03-07 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:50:06 [end_date_ymd] => 2025-03-07 22:50:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:50:06' and `end` < '2025-03-07 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-03-07 22:50:18] Production.INFO: count ==3481 [2025-03-07 22:50:20] Production.ERROR: pbx CDR StartTime 2025-03-07 19:50:06 - End Time 2025-03-07 22:50:06 [2025-03-07 22:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630980', 'tblTempUsageDetail_20' ) start [2025-03-07 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630980', 'tblTempUsageDetail_20' ) end [2025-03-07 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630980', 'tblTempVendorCDR_20' ) start [2025-03-07 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630980', 'tblTempVendorCDR_20' ) end [2025-03-07 22:50:20] Production.INFO: ProcessCDR(1,14630980,1,1,2) [2025-03-07 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630980', 'tblTempUsageDetail_20' ) start [2025-03-07 22:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630980', 'tblTempUsageDetail_20' ) end [2025-03-07 22:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:50:25] Production.INFO: ==30145== Releasing lock... [2025-03-07 22:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:50:25] Production.INFO: 54.25 MB #Memory Used# [2025-03-07 22:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:51:06 [end_date_ymd] => 2025-03-07 22:51:06 [RateCDR] => 1 ) [2025-03-07 22: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-03-07 19:51:06' and `end` < '2025-03-07 22: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-03-07 22:51:18] Production.INFO: count ==3426 [2025-03-07 22:51:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:51:06 - End Time 2025-03-07 22:51:06 [2025-03-07 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630985', 'tblTempUsageDetail_20' ) start [2025-03-07 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630985', 'tblTempUsageDetail_20' ) end [2025-03-07 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630985', 'tblTempVendorCDR_20' ) start [2025-03-07 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630985', 'tblTempVendorCDR_20' ) end [2025-03-07 22:51:19] Production.INFO: ProcessCDR(1,14630985,1,1,2) [2025-03-07 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630985', 'tblTempUsageDetail_20' ) start [2025-03-07 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630985', 'tblTempUsageDetail_20' ) end [2025-03-07 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:51:23] Production.INFO: ==30221== Releasing lock... [2025-03-07 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:51:23] Production.INFO: 53.5 MB #Memory Used# [2025-03-07 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:52:06 [end_date_ymd] => 2025-03-07 22:52:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:52:06' and `end` < '2025-03-07 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-03-07 22:52:18] Production.INFO: count ==3399 [2025-03-07 22:52:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:52:06 - End Time 2025-03-07 22:52:06 [2025-03-07 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630990', 'tblTempUsageDetail_20' ) start [2025-03-07 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630990', 'tblTempUsageDetail_20' ) end [2025-03-07 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630990', 'tblTempVendorCDR_20' ) start [2025-03-07 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630990', 'tblTempVendorCDR_20' ) end [2025-03-07 22:52:19] Production.INFO: ProcessCDR(1,14630990,1,1,2) [2025-03-07 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630990', 'tblTempUsageDetail_20' ) start [2025-03-07 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630990', 'tblTempUsageDetail_20' ) end [2025-03-07 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:52:22] Production.INFO: ==30304== Releasing lock... [2025-03-07 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:52:22] Production.INFO: 54 MB #Memory Used# [2025-03-07 22:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:53:06 [end_date_ymd] => 2025-03-07 22:53:06 [RateCDR] => 1 ) [2025-03-07 22: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-03-07 19:53:06' and `end` < '2025-03-07 22: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-03-07 22:53:18] Production.INFO: count ==3377 [2025-03-07 22:53:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:53:06 - End Time 2025-03-07 22:53:06 [2025-03-07 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630995', 'tblTempUsageDetail_20' ) start [2025-03-07 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14630995', 'tblTempUsageDetail_20' ) end [2025-03-07 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630995', 'tblTempVendorCDR_20' ) start [2025-03-07 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14630995', 'tblTempVendorCDR_20' ) end [2025-03-07 22:53:19] Production.INFO: ProcessCDR(1,14630995,1,1,2) [2025-03-07 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14630995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14630995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14630995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14630995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630995', 'tblTempUsageDetail_20' ) start [2025-03-07 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14630995', 'tblTempUsageDetail_20' ) end [2025-03-07 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:53:23] Production.INFO: ==30378== Releasing lock... [2025-03-07 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:53:23] Production.INFO: 53.5 MB #Memory Used# [2025-03-07 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:54:05 [end_date_ymd] => 2025-03-07 22:54:05 [RateCDR] => 1 ) [2025-03-07 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:54:05' and `end` < '2025-03-07 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:54:17] Production.INFO: count ==3375 [2025-03-07 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-07 19:54:05 - End Time 2025-03-07 22:54:05 [2025-03-07 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631000', 'tblTempUsageDetail_20' ) start [2025-03-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631000', 'tblTempUsageDetail_20' ) end [2025-03-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631000', 'tblTempVendorCDR_20' ) start [2025-03-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631000', 'tblTempVendorCDR_20' ) end [2025-03-07 22:54:19] Production.INFO: ProcessCDR(1,14631000,1,1,2) [2025-03-07 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631000', 'tblTempUsageDetail_20' ) start [2025-03-07 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631000', 'tblTempUsageDetail_20' ) end [2025-03-07 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:54:22] Production.INFO: ==30455== Releasing lock... [2025-03-07 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:54:22] Production.INFO: 53.5 MB #Memory Used# [2025-03-07 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:55:05 [end_date_ymd] => 2025-03-07 22:55:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:55:05' and `end` < '2025-03-07 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-03-07 22:55:18] Production.INFO: count ==3357 [2025-03-07 22:55:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:55:05 - End Time 2025-03-07 22:55:05 [2025-03-07 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631005', 'tblTempUsageDetail_20' ) start [2025-03-07 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631005', 'tblTempUsageDetail_20' ) end [2025-03-07 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631005', 'tblTempVendorCDR_20' ) start [2025-03-07 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631005', 'tblTempVendorCDR_20' ) end [2025-03-07 22:55:19] Production.INFO: ProcessCDR(1,14631005,1,1,2) [2025-03-07 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631005', 'tblTempUsageDetail_20' ) start [2025-03-07 22:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631005', 'tblTempUsageDetail_20' ) end [2025-03-07 22:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:55:24] Production.INFO: ==30571== Releasing lock... [2025-03-07 22:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:55:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-07 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:56:05 [end_date_ymd] => 2025-03-07 22:56:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:56:05' and `end` < '2025-03-07 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-03-07 22:56:17] Production.INFO: count ==3349 [2025-03-07 22:56:18] Production.ERROR: pbx CDR StartTime 2025-03-07 19:56:05 - End Time 2025-03-07 22:56:05 [2025-03-07 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631010', 'tblTempUsageDetail_20' ) start [2025-03-07 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631010', 'tblTempUsageDetail_20' ) end [2025-03-07 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631010', 'tblTempVendorCDR_20' ) start [2025-03-07 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631010', 'tblTempVendorCDR_20' ) end [2025-03-07 22:56:18] Production.INFO: ProcessCDR(1,14631010,1,1,2) [2025-03-07 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631010', 'tblTempUsageDetail_20' ) start [2025-03-07 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631010', 'tblTempUsageDetail_20' ) end [2025-03-07 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:56:21] Production.INFO: ==30651== Releasing lock... [2025-03-07 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:56:21] Production.INFO: 53.75 MB #Memory Used# [2025-03-07 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:57:05 [end_date_ymd] => 2025-03-07 22:57:05 [RateCDR] => 1 ) [2025-03-07 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 19:57:05' and `end` < '2025-03-07 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:57:17] Production.INFO: count ==3315 [2025-03-07 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-07 19:57:05 - End Time 2025-03-07 22:57:05 [2025-03-07 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631015', 'tblTempUsageDetail_20' ) start [2025-03-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631015', 'tblTempUsageDetail_20' ) end [2025-03-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631015', 'tblTempVendorCDR_20' ) start [2025-03-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631015', 'tblTempVendorCDR_20' ) end [2025-03-07 22:57:19] Production.INFO: ProcessCDR(1,14631015,1,1,2) [2025-03-07 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631015', 'tblTempUsageDetail_20' ) start [2025-03-07 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631015', 'tblTempUsageDetail_20' ) end [2025-03-07 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:57:22] Production.INFO: ==30724== Releasing lock... [2025-03-07 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:57:22] Production.INFO: 53.25 MB #Memory Used# [2025-03-07 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:58:04 [end_date_ymd] => 2025-03-07 22:58:04 [RateCDR] => 1 ) [2025-03-07 22:58: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-03-07 19:58:04' and `end` < '2025-03-07 22:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 22:58:17] Production.INFO: count ==3299 [2025-03-07 22:58:18] Production.ERROR: pbx CDR StartTime 2025-03-07 19:58:04 - End Time 2025-03-07 22:58:04 [2025-03-07 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631020', 'tblTempUsageDetail_20' ) start [2025-03-07 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631020', 'tblTempUsageDetail_20' ) end [2025-03-07 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631020', 'tblTempVendorCDR_20' ) start [2025-03-07 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631020', 'tblTempVendorCDR_20' ) end [2025-03-07 22:58:18] Production.INFO: ProcessCDR(1,14631020,1,1,2) [2025-03-07 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631020', 'tblTempUsageDetail_20' ) start [2025-03-07 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631020', 'tblTempUsageDetail_20' ) end [2025-03-07 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:58:21] Production.INFO: ==30798== Releasing lock... [2025-03-07 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:58:21] Production.INFO: 52.75 MB #Memory Used# [2025-03-07 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 19:59:05 [end_date_ymd] => 2025-03-07 22:59:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 19:59:05' and `end` < '2025-03-07 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-03-07 22:59:18] Production.INFO: count ==3275 [2025-03-07 22:59:19] Production.ERROR: pbx CDR StartTime 2025-03-07 19:59:05 - End Time 2025-03-07 22:59:05 [2025-03-07 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631025', 'tblTempUsageDetail_20' ) start [2025-03-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631025', 'tblTempUsageDetail_20' ) end [2025-03-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631025', 'tblTempVendorCDR_20' ) start [2025-03-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631025', 'tblTempVendorCDR_20' ) end [2025-03-07 22:59:19] Production.INFO: ProcessCDR(1,14631025,1,1,2) [2025-03-07 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631025', 'tblTempUsageDetail_20' ) start [2025-03-07 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631025', 'tblTempUsageDetail_20' ) end [2025-03-07 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 22:59:22] Production.INFO: ==30886== Releasing lock... [2025-03-07 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 22:59:22] Production.INFO: 52.75 MB #Memory Used# [2025-03-07 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:00:05 [end_date_ymd] => 2025-03-07 23:00:05 [RateCDR] => 1 ) [2025-03-07 23: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-03-07 20:00:05' and `end` < '2025-03-07 23: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-03-07 23:00:18] Production.INFO: count ==3248 [2025-03-07 23:00:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:00:05 - End Time 2025-03-07 23:00:05 [2025-03-07 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631030', 'tblTempUsageDetail_20' ) start [2025-03-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631030', 'tblTempUsageDetail_20' ) end [2025-03-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631030', 'tblTempVendorCDR_20' ) start [2025-03-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631030', 'tblTempVendorCDR_20' ) end [2025-03-07 23:00:19] Production.INFO: ProcessCDR(1,14631030,1,1,2) [2025-03-07 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631030', 'tblTempUsageDetail_20' ) start [2025-03-07 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631030', 'tblTempUsageDetail_20' ) end [2025-03-07 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:00:23] Production.INFO: ==30990== Releasing lock... [2025-03-07 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:00:23] Production.INFO: 52.5 MB #Memory Used# [2025-03-07 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:01:06 [end_date_ymd] => 2025-03-07 23:01:06 [RateCDR] => 1 ) [2025-03-07 23: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-03-07 20:01:06' and `end` < '2025-03-07 23: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-03-07 23:01:18] Production.INFO: count ==3166 [2025-03-07 23:01:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:01:06 - End Time 2025-03-07 23:01:06 [2025-03-07 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631036', 'tblTempUsageDetail_20' ) start [2025-03-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631036', 'tblTempUsageDetail_20' ) end [2025-03-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631036', 'tblTempVendorCDR_20' ) start [2025-03-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631036', 'tblTempVendorCDR_20' ) end [2025-03-07 23:01:19] Production.INFO: ProcessCDR(1,14631036,1,1,2) [2025-03-07 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631036', 'tblTempUsageDetail_20' ) start [2025-03-07 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631036', 'tblTempUsageDetail_20' ) end [2025-03-07 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:01:22] Production.INFO: ==31104== Releasing lock... [2025-03-07 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:01:22] Production.INFO: 52.25 MB #Memory Used# [2025-03-07 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:02:05 [end_date_ymd] => 2025-03-07 23:02:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:02:05' and `end` < '2025-03-07 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-03-07 23:02:17] Production.INFO: count ==3144 [2025-03-07 23:02:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:02:05 - End Time 2025-03-07 23:02:05 [2025-03-07 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631041', 'tblTempUsageDetail_20' ) start [2025-03-07 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631041', 'tblTempUsageDetail_20' ) end [2025-03-07 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631041', 'tblTempVendorCDR_20' ) start [2025-03-07 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631041', 'tblTempVendorCDR_20' ) end [2025-03-07 23:02:18] Production.INFO: ProcessCDR(1,14631041,1,1,2) [2025-03-07 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631041', 'tblTempUsageDetail_20' ) start [2025-03-07 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631041', 'tblTempUsageDetail_20' ) end [2025-03-07 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:02:23] Production.INFO: ==31285== Releasing lock... [2025-03-07 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:02:23] Production.INFO: 51.75 MB #Memory Used# [2025-03-07 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:03:05 [end_date_ymd] => 2025-03-07 23:03:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:03:05' and `end` < '2025-03-07 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-03-07 23:03:17] Production.INFO: count ==3130 [2025-03-07 23:03:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:03:05 - End Time 2025-03-07 23:03:05 [2025-03-07 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631046', 'tblTempUsageDetail_20' ) start [2025-03-07 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631046', 'tblTempUsageDetail_20' ) end [2025-03-07 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631046', 'tblTempVendorCDR_20' ) start [2025-03-07 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631046', 'tblTempVendorCDR_20' ) end [2025-03-07 23:03:19] Production.INFO: ProcessCDR(1,14631046,1,1,2) [2025-03-07 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631046', 'tblTempUsageDetail_20' ) start [2025-03-07 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631046', 'tblTempUsageDetail_20' ) end [2025-03-07 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:03:23] Production.INFO: ==31367== Releasing lock... [2025-03-07 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:03:23] Production.INFO: 51.5 MB #Memory Used# [2025-03-07 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:04:05 [end_date_ymd] => 2025-03-07 23:04:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:04:05' and `end` < '2025-03-07 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-03-07 23:04:18] Production.INFO: count ==3113 [2025-03-07 23:04:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:04:05 - End Time 2025-03-07 23:04:05 [2025-03-07 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631051', 'tblTempUsageDetail_20' ) start [2025-03-07 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631051', 'tblTempUsageDetail_20' ) end [2025-03-07 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631051', 'tblTempVendorCDR_20' ) start [2025-03-07 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631051', 'tblTempVendorCDR_20' ) end [2025-03-07 23:04:19] Production.INFO: ProcessCDR(1,14631051,1,1,2) [2025-03-07 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631051', 'tblTempUsageDetail_20' ) start [2025-03-07 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631051', 'tblTempUsageDetail_20' ) end [2025-03-07 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:04:22] Production.INFO: ==31445== Releasing lock... [2025-03-07 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:04:22] Production.INFO: 51.75 MB #Memory Used# [2025-03-07 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:05:05 [end_date_ymd] => 2025-03-07 23:05:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:05:05' and `end` < '2025-03-07 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-03-07 23:05:17] Production.INFO: count ==3105 [2025-03-07 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:05:05 - End Time 2025-03-07 23:05:05 [2025-03-07 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631056', 'tblTempUsageDetail_20' ) start [2025-03-07 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631056', 'tblTempUsageDetail_20' ) end [2025-03-07 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631056', 'tblTempVendorCDR_20' ) start [2025-03-07 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631056', 'tblTempVendorCDR_20' ) end [2025-03-07 23:05:18] Production.INFO: ProcessCDR(1,14631056,1,1,2) [2025-03-07 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631056', 'tblTempUsageDetail_20' ) start [2025-03-07 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631056', 'tblTempUsageDetail_20' ) end [2025-03-07 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:05:21] Production.INFO: ==31597== Releasing lock... [2025-03-07 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:05:21] Production.INFO: 51.75 MB #Memory Used# [2025-03-07 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:06:05 [end_date_ymd] => 2025-03-07 23:06:05 [RateCDR] => 1 ) [2025-03-07 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:06:05' and `end` < '2025-03-07 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:06:17] Production.INFO: count ==3095 [2025-03-07 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:06:05 - End Time 2025-03-07 23:06:05 [2025-03-07 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631061', 'tblTempUsageDetail_20' ) start [2025-03-07 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631061', 'tblTempUsageDetail_20' ) end [2025-03-07 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631061', 'tblTempVendorCDR_20' ) start [2025-03-07 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631061', 'tblTempVendorCDR_20' ) end [2025-03-07 23:06:19] Production.INFO: ProcessCDR(1,14631061,1,1,2) [2025-03-07 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631061', 'tblTempUsageDetail_20' ) start [2025-03-07 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631061', 'tblTempUsageDetail_20' ) end [2025-03-07 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:06:22] Production.INFO: ==31672== Releasing lock... [2025-03-07 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:06:22] Production.INFO: 51 MB #Memory Used# [2025-03-07 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:07:05 [end_date_ymd] => 2025-03-07 23:07:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:07:05' and `end` < '2025-03-07 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-03-07 23:07:17] Production.INFO: count ==3071 [2025-03-07 23:07:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:07:05 - End Time 2025-03-07 23:07:05 [2025-03-07 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631066', 'tblTempUsageDetail_20' ) start [2025-03-07 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631066', 'tblTempUsageDetail_20' ) end [2025-03-07 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631066', 'tblTempVendorCDR_20' ) start [2025-03-07 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631066', 'tblTempVendorCDR_20' ) end [2025-03-07 23:07:18] Production.INFO: ProcessCDR(1,14631066,1,1,2) [2025-03-07 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631066', 'tblTempUsageDetail_20' ) start [2025-03-07 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631066', 'tblTempUsageDetail_20' ) end [2025-03-07 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:07:22] Production.INFO: ==31747== Releasing lock... [2025-03-07 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:07:22] Production.INFO: 51.25 MB #Memory Used# [2025-03-07 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:08:05 [end_date_ymd] => 2025-03-07 23:08:05 [RateCDR] => 1 ) [2025-03-07 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:08:05' and `end` < '2025-03-07 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:08:18] Production.INFO: count ==3045 [2025-03-07 23:08:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:08:05 - End Time 2025-03-07 23:08:05 [2025-03-07 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631068', 'tblTempUsageDetail_20' ) start [2025-03-07 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631068', 'tblTempUsageDetail_20' ) end [2025-03-07 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631068', 'tblTempVendorCDR_20' ) start [2025-03-07 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631068', 'tblTempVendorCDR_20' ) end [2025-03-07 23:08:19] Production.INFO: ProcessCDR(1,14631068,1,1,2) [2025-03-07 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631068', 'tblTempUsageDetail_20' ) start [2025-03-07 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631068', 'tblTempUsageDetail_20' ) end [2025-03-07 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:08:22] Production.INFO: ==31861== Releasing lock... [2025-03-07 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:08:22] Production.INFO: 51 MB #Memory Used# [2025-03-07 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:09:05 [end_date_ymd] => 2025-03-07 23:09:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:09:05' and `end` < '2025-03-07 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-03-07 23:09:17] Production.INFO: count ==3022 [2025-03-07 23:09:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:09:05 - End Time 2025-03-07 23:09:05 [2025-03-07 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631076', 'tblTempUsageDetail_20' ) start [2025-03-07 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631076', 'tblTempUsageDetail_20' ) end [2025-03-07 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631076', 'tblTempVendorCDR_20' ) start [2025-03-07 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631076', 'tblTempVendorCDR_20' ) end [2025-03-07 23:09:18] Production.INFO: ProcessCDR(1,14631076,1,1,2) [2025-03-07 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631076', 'tblTempUsageDetail_20' ) start [2025-03-07 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631076', 'tblTempUsageDetail_20' ) end [2025-03-07 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:09:21] Production.INFO: ==31975== Releasing lock... [2025-03-07 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:09:21] Production.INFO: 50.5 MB #Memory Used# [2025-03-07 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:10:06 [end_date_ymd] => 2025-03-07 23:10:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:10:06' and `end` < '2025-03-07 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-03-07 23:10:19] Production.INFO: count ==3017 [2025-03-07 23:10:20] Production.ERROR: pbx CDR StartTime 2025-03-07 20:10:06 - End Time 2025-03-07 23:10:06 [2025-03-07 23:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631082', 'tblTempUsageDetail_20' ) start [2025-03-07 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631082', 'tblTempUsageDetail_20' ) end [2025-03-07 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631082', 'tblTempVendorCDR_20' ) start [2025-03-07 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631082', 'tblTempVendorCDR_20' ) end [2025-03-07 23:10:20] Production.INFO: ProcessCDR(1,14631082,1,1,2) [2025-03-07 23:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631082', 'tblTempUsageDetail_20' ) start [2025-03-07 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631082', 'tblTempUsageDetail_20' ) end [2025-03-07 23:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:10:24] Production.INFO: ==32056== Releasing lock... [2025-03-07 23:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:10:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-07 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:11:05 [end_date_ymd] => 2025-03-07 23:11:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:11:05' and `end` < '2025-03-07 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-03-07 23:11:17] Production.INFO: count ==2952 [2025-03-07 23:11:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:11:05 - End Time 2025-03-07 23:11:05 [2025-03-07 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631087', 'tblTempUsageDetail_20' ) start [2025-03-07 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631087', 'tblTempUsageDetail_20' ) end [2025-03-07 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631087', 'tblTempVendorCDR_20' ) start [2025-03-07 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631087', 'tblTempVendorCDR_20' ) end [2025-03-07 23:11:18] Production.INFO: ProcessCDR(1,14631087,1,1,2) [2025-03-07 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631087', 'tblTempUsageDetail_20' ) start [2025-03-07 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631087', 'tblTempUsageDetail_20' ) end [2025-03-07 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:11:21] Production.INFO: ==32175== Releasing lock... [2025-03-07 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:11:21] Production.INFO: 50.25 MB #Memory Used# [2025-03-07 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:12:05 [end_date_ymd] => 2025-03-07 23:12:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:12:05' and `end` < '2025-03-07 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-03-07 23:12:18] Production.INFO: count ==2932 [2025-03-07 23:12:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:12:05 - End Time 2025-03-07 23:12:05 [2025-03-07 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631092', 'tblTempUsageDetail_20' ) start [2025-03-07 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631092', 'tblTempUsageDetail_20' ) end [2025-03-07 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631092', 'tblTempVendorCDR_20' ) start [2025-03-07 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631092', 'tblTempVendorCDR_20' ) end [2025-03-07 23:12:19] Production.INFO: ProcessCDR(1,14631092,1,1,2) [2025-03-07 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631092', 'tblTempUsageDetail_20' ) start [2025-03-07 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631092', 'tblTempUsageDetail_20' ) end [2025-03-07 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:12:23] Production.INFO: ==32327== Releasing lock... [2025-03-07 23:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:12:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-07 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:13:05 [end_date_ymd] => 2025-03-07 23:13:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:13:05' and `end` < '2025-03-07 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-03-07 23:13:17] Production.INFO: count ==2909 [2025-03-07 23:13:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:13:05 - End Time 2025-03-07 23:13:05 [2025-03-07 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631097', 'tblTempUsageDetail_20' ) start [2025-03-07 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631097', 'tblTempUsageDetail_20' ) end [2025-03-07 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631097', 'tblTempVendorCDR_20' ) start [2025-03-07 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631097', 'tblTempVendorCDR_20' ) end [2025-03-07 23:13:18] Production.INFO: ProcessCDR(1,14631097,1,1,2) [2025-03-07 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631097', 'tblTempUsageDetail_20' ) start [2025-03-07 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631097', 'tblTempUsageDetail_20' ) end [2025-03-07 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:13:22] Production.INFO: ==32399== Releasing lock... [2025-03-07 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:13:22] Production.INFO: 49.75 MB #Memory Used# [2025-03-07 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:14:05 [end_date_ymd] => 2025-03-07 23:14:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:14:05' and `end` < '2025-03-07 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-03-07 23:14:18] Production.INFO: count ==2888 [2025-03-07 23:14:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:14:05 - End Time 2025-03-07 23:14:05 [2025-03-07 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631102', 'tblTempUsageDetail_20' ) start [2025-03-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631102', 'tblTempUsageDetail_20' ) end [2025-03-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631102', 'tblTempVendorCDR_20' ) start [2025-03-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631102', 'tblTempVendorCDR_20' ) end [2025-03-07 23:14:19] Production.INFO: ProcessCDR(1,14631102,1,1,2) [2025-03-07 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631102', 'tblTempUsageDetail_20' ) start [2025-03-07 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631102', 'tblTempUsageDetail_20' ) end [2025-03-07 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:14:22] Production.INFO: ==32473== Releasing lock... [2025-03-07 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:14:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-07 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:15:05 [end_date_ymd] => 2025-03-07 23:15:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:15:05' and `end` < '2025-03-07 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-03-07 23:15:17] Production.INFO: count ==2886 [2025-03-07 23:15:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:15:05 - End Time 2025-03-07 23:15:05 [2025-03-07 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631107', 'tblTempUsageDetail_20' ) start [2025-03-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631107', 'tblTempUsageDetail_20' ) end [2025-03-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631107', 'tblTempVendorCDR_20' ) start [2025-03-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631107', 'tblTempVendorCDR_20' ) end [2025-03-07 23:15:18] Production.INFO: ProcessCDR(1,14631107,1,1,2) [2025-03-07 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631107', 'tblTempUsageDetail_20' ) start [2025-03-07 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631107', 'tblTempUsageDetail_20' ) end [2025-03-07 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:15:22] Production.INFO: ==32628== Releasing lock... [2025-03-07 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:15:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-07 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:16:05 [end_date_ymd] => 2025-03-07 23:16:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:16:05' and `end` < '2025-03-07 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-03-07 23:16:18] Production.INFO: count ==2867 [2025-03-07 23:16:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:16:05 - End Time 2025-03-07 23:16:05 [2025-03-07 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631112', 'tblTempUsageDetail_20' ) start [2025-03-07 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631112', 'tblTempUsageDetail_20' ) end [2025-03-07 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631112', 'tblTempVendorCDR_20' ) start [2025-03-07 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631112', 'tblTempVendorCDR_20' ) end [2025-03-07 23:16:19] Production.INFO: ProcessCDR(1,14631112,1,1,2) [2025-03-07 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631112', 'tblTempUsageDetail_20' ) start [2025-03-07 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631112', 'tblTempUsageDetail_20' ) end [2025-03-07 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:16:22] Production.INFO: ==32703== Releasing lock... [2025-03-07 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:16:22] Production.INFO: 49 MB #Memory Used# [2025-03-07 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:17:05 [end_date_ymd] => 2025-03-07 23:17:05 [RateCDR] => 1 ) [2025-03-07 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:17:05' and `end` < '2025-03-07 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:17:17] Production.INFO: count ==2849 [2025-03-07 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:17:05 - End Time 2025-03-07 23:17:05 [2025-03-07 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631117', 'tblTempUsageDetail_20' ) start [2025-03-07 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631117', 'tblTempUsageDetail_20' ) end [2025-03-07 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631117', 'tblTempVendorCDR_20' ) start [2025-03-07 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631117', 'tblTempVendorCDR_20' ) end [2025-03-07 23:17:18] Production.INFO: ProcessCDR(1,14631117,1,1,2) [2025-03-07 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631117', 'tblTempUsageDetail_20' ) start [2025-03-07 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631117', 'tblTempUsageDetail_20' ) end [2025-03-07 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:17:21] Production.INFO: ==315== Releasing lock... [2025-03-07 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:17:21] Production.INFO: 49.25 MB #Memory Used# [2025-03-07 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:18:05 [end_date_ymd] => 2025-03-07 23:18:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:18:05' and `end` < '2025-03-07 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-03-07 23:18:17] Production.INFO: count ==2833 [2025-03-07 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:18:05 - End Time 2025-03-07 23:18:05 [2025-03-07 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631122', 'tblTempUsageDetail_20' ) start [2025-03-07 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631122', 'tblTempUsageDetail_20' ) end [2025-03-07 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631122', 'tblTempVendorCDR_20' ) start [2025-03-07 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631122', 'tblTempVendorCDR_20' ) end [2025-03-07 23:18:18] Production.INFO: ProcessCDR(1,14631122,1,1,2) [2025-03-07 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631122', 'tblTempUsageDetail_20' ) start [2025-03-07 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631122', 'tblTempUsageDetail_20' ) end [2025-03-07 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:18:21] Production.INFO: ==400== Releasing lock... [2025-03-07 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:18:21] Production.INFO: 49.25 MB #Memory Used# [2025-03-07 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:19:05 [end_date_ymd] => 2025-03-07 23:19:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:19:05' and `end` < '2025-03-07 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-03-07 23:19:17] Production.INFO: count ==2811 [2025-03-07 23:19:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:19:05 - End Time 2025-03-07 23:19:05 [2025-03-07 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631127', 'tblTempUsageDetail_20' ) start [2025-03-07 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631127', 'tblTempUsageDetail_20' ) end [2025-03-07 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631127', 'tblTempVendorCDR_20' ) start [2025-03-07 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631127', 'tblTempVendorCDR_20' ) end [2025-03-07 23:19:18] Production.INFO: ProcessCDR(1,14631127,1,1,2) [2025-03-07 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631127', 'tblTempUsageDetail_20' ) start [2025-03-07 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631127', 'tblTempUsageDetail_20' ) end [2025-03-07 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:19:21] Production.INFO: ==475== Releasing lock... [2025-03-07 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:19:21] Production.INFO: 48.75 MB #Memory Used# [2025-03-07 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:20:05 [end_date_ymd] => 2025-03-07 23:20:05 [RateCDR] => 1 ) [2025-03-07 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:20:05' and `end` < '2025-03-07 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:20:17] Production.INFO: count ==2792 [2025-03-07 23:20:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:20:05 - End Time 2025-03-07 23:20:05 [2025-03-07 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631133', 'tblTempUsageDetail_20' ) start [2025-03-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631133', 'tblTempUsageDetail_20' ) end [2025-03-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631133', 'tblTempVendorCDR_20' ) start [2025-03-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631133', 'tblTempVendorCDR_20' ) end [2025-03-07 23:20:19] Production.INFO: ProcessCDR(1,14631133,1,1,2) [2025-03-07 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631133', 'tblTempUsageDetail_20' ) start [2025-03-07 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631133', 'tblTempUsageDetail_20' ) end [2025-03-07 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:20:22] Production.INFO: ==550== Releasing lock... [2025-03-07 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:20:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-07 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:21:05 [end_date_ymd] => 2025-03-07 23:21:05 [RateCDR] => 1 ) [2025-03-07 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:21:05' and `end` < '2025-03-07 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:21:17] Production.INFO: count ==2733 [2025-03-07 23:21:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:21:05 - End Time 2025-03-07 23:21:05 [2025-03-07 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631138', 'tblTempUsageDetail_20' ) start [2025-03-07 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631138', 'tblTempUsageDetail_20' ) end [2025-03-07 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631138', 'tblTempVendorCDR_20' ) start [2025-03-07 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631138', 'tblTempVendorCDR_20' ) end [2025-03-07 23:21:19] Production.INFO: ProcessCDR(1,14631138,1,1,2) [2025-03-07 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631138', 'tblTempUsageDetail_20' ) start [2025-03-07 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631138', 'tblTempUsageDetail_20' ) end [2025-03-07 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:21:22] Production.INFO: ==635== Releasing lock... [2025-03-07 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:21:22] Production.INFO: 49 MB #Memory Used# [2025-03-07 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:22:05 [end_date_ymd] => 2025-03-07 23:22:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:22:05' and `end` < '2025-03-07 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-03-07 23:22:17] Production.INFO: count ==2713 [2025-03-07 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:22:05 - End Time 2025-03-07 23:22:05 [2025-03-07 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631143', 'tblTempUsageDetail_20' ) start [2025-03-07 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631143', 'tblTempUsageDetail_20' ) end [2025-03-07 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631143', 'tblTempVendorCDR_20' ) start [2025-03-07 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631143', 'tblTempVendorCDR_20' ) end [2025-03-07 23:22:18] Production.INFO: ProcessCDR(1,14631143,1,1,2) [2025-03-07 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631143', 'tblTempUsageDetail_20' ) start [2025-03-07 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631143', 'tblTempUsageDetail_20' ) end [2025-03-07 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:22:21] Production.INFO: ==727== Releasing lock... [2025-03-07 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:22:21] Production.INFO: 48.5 MB #Memory Used# [2025-03-07 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:23:05 [end_date_ymd] => 2025-03-07 23:23:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:23:05' and `end` < '2025-03-07 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-03-07 23:23:18] Production.INFO: count ==2686 [2025-03-07 23:23:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:23:05 - End Time 2025-03-07 23:23:05 [2025-03-07 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631148', 'tblTempUsageDetail_20' ) start [2025-03-07 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631148', 'tblTempUsageDetail_20' ) end [2025-03-07 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631148', 'tblTempVendorCDR_20' ) start [2025-03-07 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631148', 'tblTempVendorCDR_20' ) end [2025-03-07 23:23:19] Production.INFO: ProcessCDR(1,14631148,1,1,2) [2025-03-07 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631148', 'tblTempUsageDetail_20' ) start [2025-03-07 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631148', 'tblTempUsageDetail_20' ) end [2025-03-07 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:23:22] Production.INFO: ==803== Releasing lock... [2025-03-07 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:23:22] Production.INFO: 49 MB #Memory Used# [2025-03-07 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:24:05 [end_date_ymd] => 2025-03-07 23:24:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:24:05' and `end` < '2025-03-07 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-03-07 23:24:18] Production.INFO: count ==2657 [2025-03-07 23:24:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:24:05 - End Time 2025-03-07 23:24:05 [2025-03-07 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631153', 'tblTempUsageDetail_20' ) start [2025-03-07 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631153', 'tblTempUsageDetail_20' ) end [2025-03-07 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631153', 'tblTempVendorCDR_20' ) start [2025-03-07 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631153', 'tblTempVendorCDR_20' ) end [2025-03-07 23:24:19] Production.INFO: ProcessCDR(1,14631153,1,1,2) [2025-03-07 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631153', 'tblTempUsageDetail_20' ) start [2025-03-07 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631153', 'tblTempUsageDetail_20' ) end [2025-03-07 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:24:22] Production.INFO: ==874== Releasing lock... [2025-03-07 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:24:22] Production.INFO: 48 MB #Memory Used# [2025-03-07 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:25:05 [end_date_ymd] => 2025-03-07 23:25:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:25:05' and `end` < '2025-03-07 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-03-07 23:25:17] Production.INFO: count ==2640 [2025-03-07 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:25:05 - End Time 2025-03-07 23:25:05 [2025-03-07 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631158', 'tblTempUsageDetail_20' ) start [2025-03-07 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631158', 'tblTempUsageDetail_20' ) end [2025-03-07 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631158', 'tblTempVendorCDR_20' ) start [2025-03-07 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631158', 'tblTempVendorCDR_20' ) end [2025-03-07 23:25:19] Production.INFO: ProcessCDR(1,14631158,1,1,2) [2025-03-07 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631158', 'tblTempUsageDetail_20' ) start [2025-03-07 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631158', 'tblTempUsageDetail_20' ) end [2025-03-07 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:25:22] Production.INFO: ==944== Releasing lock... [2025-03-07 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:25:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-07 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:26:05 [end_date_ymd] => 2025-03-07 23:26:05 [RateCDR] => 1 ) [2025-03-07 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:26:05' and `end` < '2025-03-07 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:26:17] Production.INFO: count ==2615 [2025-03-07 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:26:05 - End Time 2025-03-07 23:26:05 [2025-03-07 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631163', 'tblTempUsageDetail_20' ) start [2025-03-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631163', 'tblTempUsageDetail_20' ) end [2025-03-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631163', 'tblTempVendorCDR_20' ) start [2025-03-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631163', 'tblTempVendorCDR_20' ) end [2025-03-07 23:26:18] Production.INFO: ProcessCDR(1,14631163,1,1,2) [2025-03-07 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631163', 'tblTempUsageDetail_20' ) start [2025-03-07 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631163', 'tblTempUsageDetail_20' ) end [2025-03-07 23:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:26:23] Production.INFO: ==1055== Releasing lock... [2025-03-07 23:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:26:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-07 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:27:05 [end_date_ymd] => 2025-03-07 23:27:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:27:05' and `end` < '2025-03-07 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-03-07 23:27:17] Production.INFO: count ==2583 [2025-03-07 23:27:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:27:05 - End Time 2025-03-07 23:27:05 [2025-03-07 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631168', 'tblTempUsageDetail_20' ) start [2025-03-07 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631168', 'tblTempUsageDetail_20' ) end [2025-03-07 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631168', 'tblTempVendorCDR_20' ) start [2025-03-07 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631168', 'tblTempVendorCDR_20' ) end [2025-03-07 23:27:18] Production.INFO: ProcessCDR(1,14631168,1,1,2) [2025-03-07 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631168', 'tblTempUsageDetail_20' ) start [2025-03-07 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631168', 'tblTempUsageDetail_20' ) end [2025-03-07 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:27:22] Production.INFO: ==1130== Releasing lock... [2025-03-07 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:27:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-07 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:28:05 [end_date_ymd] => 2025-03-07 23:28:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:28:05' and `end` < '2025-03-07 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-03-07 23:28:17] Production.INFO: count ==2562 [2025-03-07 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:28:05 - End Time 2025-03-07 23:28:05 [2025-03-07 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631173', 'tblTempUsageDetail_20' ) start [2025-03-07 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631173', 'tblTempUsageDetail_20' ) end [2025-03-07 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631173', 'tblTempVendorCDR_20' ) start [2025-03-07 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631173', 'tblTempVendorCDR_20' ) end [2025-03-07 23:28:19] Production.INFO: ProcessCDR(1,14631173,1,1,2) [2025-03-07 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631173', 'tblTempUsageDetail_20' ) start [2025-03-07 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631173', 'tblTempUsageDetail_20' ) end [2025-03-07 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:28:23] Production.INFO: ==1208== Releasing lock... [2025-03-07 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:28:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-07 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:29:05 [end_date_ymd] => 2025-03-07 23:29:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:29:05' and `end` < '2025-03-07 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-03-07 23:29:17] Production.INFO: count ==2541 [2025-03-07 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:29:05 - End Time 2025-03-07 23:29:05 [2025-03-07 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631178', 'tblTempUsageDetail_20' ) start [2025-03-07 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631178', 'tblTempUsageDetail_20' ) end [2025-03-07 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631178', 'tblTempVendorCDR_20' ) start [2025-03-07 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631178', 'tblTempVendorCDR_20' ) end [2025-03-07 23:29:18] Production.INFO: ProcessCDR(1,14631178,1,1,2) [2025-03-07 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631178', 'tblTempUsageDetail_20' ) start [2025-03-07 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631178', 'tblTempUsageDetail_20' ) end [2025-03-07 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:29:22] Production.INFO: ==1289== Releasing lock... [2025-03-07 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:29:22] Production.INFO: 47 MB #Memory Used# [2025-03-07 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:30:05 [end_date_ymd] => 2025-03-07 23:30:05 [RateCDR] => 1 ) [2025-03-07 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:30:05' and `end` < '2025-03-07 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:30:17] Production.INFO: count ==2522 [2025-03-07 23:30:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:30:05 - End Time 2025-03-07 23:30:05 [2025-03-07 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631184', 'tblTempUsageDetail_20' ) start [2025-03-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631184', 'tblTempUsageDetail_20' ) end [2025-03-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631184', 'tblTempVendorCDR_20' ) start [2025-03-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631184', 'tblTempVendorCDR_20' ) end [2025-03-07 23:30:19] Production.INFO: ProcessCDR(1,14631184,1,1,2) [2025-03-07 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631184', 'tblTempUsageDetail_20' ) start [2025-03-07 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631184', 'tblTempUsageDetail_20' ) end [2025-03-07 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:30:23] Production.INFO: ==1367== Releasing lock... [2025-03-07 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:30:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-07 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:31:05 [end_date_ymd] => 2025-03-07 23:31:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:31:05' and `end` < '2025-03-07 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-03-07 23:31:17] Production.INFO: count ==2470 [2025-03-07 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:31:05 - End Time 2025-03-07 23:31:05 [2025-03-07 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631189', 'tblTempUsageDetail_20' ) start [2025-03-07 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631189', 'tblTempUsageDetail_20' ) end [2025-03-07 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631189', 'tblTempVendorCDR_20' ) start [2025-03-07 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631189', 'tblTempVendorCDR_20' ) end [2025-03-07 23:31:18] Production.INFO: ProcessCDR(1,14631189,1,1,2) [2025-03-07 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631189', 'tblTempUsageDetail_20' ) start [2025-03-07 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631189', 'tblTempUsageDetail_20' ) end [2025-03-07 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:31:21] Production.INFO: ==1439== Releasing lock... [2025-03-07 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:31:21] Production.INFO: 46.5 MB #Memory Used# [2025-03-07 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:32:05 [end_date_ymd] => 2025-03-07 23:32:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:32:05' and `end` < '2025-03-07 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-03-07 23:32:17] Production.INFO: count ==2442 [2025-03-07 23:32:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:32:05 - End Time 2025-03-07 23:32:05 [2025-03-07 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631194', 'tblTempUsageDetail_20' ) start [2025-03-07 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631194', 'tblTempUsageDetail_20' ) end [2025-03-07 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631194', 'tblTempVendorCDR_20' ) start [2025-03-07 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631194', 'tblTempVendorCDR_20' ) end [2025-03-07 23:32:18] Production.INFO: ProcessCDR(1,14631194,1,1,2) [2025-03-07 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631194', 'tblTempUsageDetail_20' ) start [2025-03-07 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631194', 'tblTempUsageDetail_20' ) end [2025-03-07 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:32:22] Production.INFO: ==1545== Releasing lock... [2025-03-07 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:32:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-07 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:33:05 [end_date_ymd] => 2025-03-07 23:33:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:33:05' and `end` < '2025-03-07 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-03-07 23:33:17] Production.INFO: count ==2420 [2025-03-07 23:33:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:33:05 - End Time 2025-03-07 23:33:05 [2025-03-07 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631199', 'tblTempUsageDetail_20' ) start [2025-03-07 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631199', 'tblTempUsageDetail_20' ) end [2025-03-07 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631199', 'tblTempVendorCDR_20' ) start [2025-03-07 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631199', 'tblTempVendorCDR_20' ) end [2025-03-07 23:33:18] Production.INFO: ProcessCDR(1,14631199,1,1,2) [2025-03-07 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631199', 'tblTempUsageDetail_20' ) start [2025-03-07 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631199', 'tblTempUsageDetail_20' ) end [2025-03-07 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:33:22] Production.INFO: ==1622== Releasing lock... [2025-03-07 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:33:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-07 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:34:06 [end_date_ymd] => 2025-03-07 23:34:06 [RateCDR] => 1 ) [2025-03-07 23: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-03-07 20:34:06' and `end` < '2025-03-07 23: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-03-07 23:34:18] Production.INFO: count ==2397 [2025-03-07 23:34:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:34:06 - End Time 2025-03-07 23:34:06 [2025-03-07 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631204', 'tblTempUsageDetail_20' ) start [2025-03-07 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631204', 'tblTempUsageDetail_20' ) end [2025-03-07 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631204', 'tblTempVendorCDR_20' ) start [2025-03-07 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631204', 'tblTempVendorCDR_20' ) end [2025-03-07 23:34:19] Production.INFO: ProcessCDR(1,14631204,1,1,2) [2025-03-07 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631204', 'tblTempUsageDetail_20' ) start [2025-03-07 23:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631204', 'tblTempUsageDetail_20' ) end [2025-03-07 23:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:34:24] Production.INFO: ==1701== Releasing lock... [2025-03-07 23:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:34:24] Production.INFO: 46 MB #Memory Used# [2025-03-07 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:35:05 [end_date_ymd] => 2025-03-07 23:35:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:35:05' and `end` < '2025-03-07 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-03-07 23:35:18] Production.INFO: count ==2379 [2025-03-07 23:35:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:35:05 - End Time 2025-03-07 23:35:05 [2025-03-07 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631209', 'tblTempUsageDetail_20' ) start [2025-03-07 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631209', 'tblTempUsageDetail_20' ) end [2025-03-07 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631209', 'tblTempVendorCDR_20' ) start [2025-03-07 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631209', 'tblTempVendorCDR_20' ) end [2025-03-07 23:35:19] Production.INFO: ProcessCDR(1,14631209,1,1,2) [2025-03-07 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631209', 'tblTempUsageDetail_20' ) start [2025-03-07 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631209', 'tblTempUsageDetail_20' ) end [2025-03-07 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:35:22] Production.INFO: ==1774== Releasing lock... [2025-03-07 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:35:22] Production.INFO: 46 MB #Memory Used# [2025-03-07 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:36:05 [end_date_ymd] => 2025-03-07 23:36:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:36:05' and `end` < '2025-03-07 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-03-07 23:36:18] Production.INFO: count ==2359 [2025-03-07 23:36:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:36:05 - End Time 2025-03-07 23:36:05 [2025-03-07 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631214', 'tblTempUsageDetail_20' ) start [2025-03-07 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631214', 'tblTempUsageDetail_20' ) end [2025-03-07 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631214', 'tblTempVendorCDR_20' ) start [2025-03-07 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631214', 'tblTempVendorCDR_20' ) end [2025-03-07 23:36:19] Production.INFO: ProcessCDR(1,14631214,1,1,2) [2025-03-07 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631214', 'tblTempUsageDetail_20' ) start [2025-03-07 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631214', 'tblTempUsageDetail_20' ) end [2025-03-07 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:36:23] Production.INFO: ==1849== Releasing lock... [2025-03-07 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:36:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-07 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:37:05 [end_date_ymd] => 2025-03-07 23:37:05 [RateCDR] => 1 ) [2025-03-07 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:37:05' and `end` < '2025-03-07 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:37:17] Production.INFO: count ==2338 [2025-03-07 23:37:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:37:05 - End Time 2025-03-07 23:37:05 [2025-03-07 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631219', 'tblTempUsageDetail_20' ) start [2025-03-07 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631219', 'tblTempUsageDetail_20' ) end [2025-03-07 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631219', 'tblTempVendorCDR_20' ) start [2025-03-07 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631219', 'tblTempVendorCDR_20' ) end [2025-03-07 23:37:18] Production.INFO: ProcessCDR(1,14631219,1,1,2) [2025-03-07 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631219', 'tblTempUsageDetail_20' ) start [2025-03-07 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631219', 'tblTempUsageDetail_20' ) end [2025-03-07 23:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:37:23] Production.INFO: ==1918== Releasing lock... [2025-03-07 23:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:37:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-07 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:38:06 [end_date_ymd] => 2025-03-07 23:38:06 [RateCDR] => 1 ) [2025-03-07 23: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-03-07 20:38:06' and `end` < '2025-03-07 23: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-03-07 23:38:18] Production.INFO: count ==2338 [2025-03-07 23:38:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:38:06 - End Time 2025-03-07 23:38:06 [2025-03-07 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631224', 'tblTempUsageDetail_20' ) start [2025-03-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631224', 'tblTempUsageDetail_20' ) end [2025-03-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631224', 'tblTempVendorCDR_20' ) start [2025-03-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631224', 'tblTempVendorCDR_20' ) end [2025-03-07 23:38:19] Production.INFO: ProcessCDR(1,14631224,1,1,2) [2025-03-07 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631224', 'tblTempUsageDetail_20' ) start [2025-03-07 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631224', 'tblTempUsageDetail_20' ) end [2025-03-07 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:38:22] Production.INFO: ==1991== Releasing lock... [2025-03-07 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:38:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-07 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:39:05 [end_date_ymd] => 2025-03-07 23:39:05 [RateCDR] => 1 ) [2025-03-07 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:39:05' and `end` < '2025-03-07 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:39:17] Production.INFO: count ==2338 [2025-03-07 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:39:05 - End Time 2025-03-07 23:39:05 [2025-03-07 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631229', 'tblTempUsageDetail_20' ) start [2025-03-07 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631229', 'tblTempUsageDetail_20' ) end [2025-03-07 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631229', 'tblTempVendorCDR_20' ) start [2025-03-07 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631229', 'tblTempVendorCDR_20' ) end [2025-03-07 23:39:18] Production.INFO: ProcessCDR(1,14631229,1,1,2) [2025-03-07 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631229', 'tblTempUsageDetail_20' ) start [2025-03-07 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631229', 'tblTempUsageDetail_20' ) end [2025-03-07 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:39:21] Production.INFO: ==2063== Releasing lock... [2025-03-07 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:39:21] Production.INFO: 45.5 MB #Memory Used# [2025-03-07 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:40:06 [end_date_ymd] => 2025-03-07 23:40:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:40:06' and `end` < '2025-03-07 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-03-07 23:40:18] Production.INFO: count ==2330 [2025-03-07 23:40:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:40:06 - End Time 2025-03-07 23:40:06 [2025-03-07 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631235', 'tblTempUsageDetail_20' ) start [2025-03-07 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631235', 'tblTempUsageDetail_20' ) end [2025-03-07 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631235', 'tblTempVendorCDR_20' ) start [2025-03-07 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631235', 'tblTempVendorCDR_20' ) end [2025-03-07 23:40:19] Production.INFO: ProcessCDR(1,14631235,1,1,2) [2025-03-07 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631235', 'tblTempUsageDetail_20' ) start [2025-03-07 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631235', 'tblTempUsageDetail_20' ) end [2025-03-07 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:40:22] Production.INFO: ==2137== Releasing lock... [2025-03-07 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:40:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-07 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:41:05 [end_date_ymd] => 2025-03-07 23:41:05 [RateCDR] => 1 ) [2025-03-07 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:41:05' and `end` < '2025-03-07 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:41:17] Production.INFO: count ==2327 [2025-03-07 23:41:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:41:05 - End Time 2025-03-07 23:41:05 [2025-03-07 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631240', 'tblTempUsageDetail_20' ) start [2025-03-07 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631240', 'tblTempUsageDetail_20' ) end [2025-03-07 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631240', 'tblTempVendorCDR_20' ) start [2025-03-07 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631240', 'tblTempVendorCDR_20' ) end [2025-03-07 23:41:18] Production.INFO: ProcessCDR(1,14631240,1,1,2) [2025-03-07 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631240', 'tblTempUsageDetail_20' ) start [2025-03-07 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631240', 'tblTempUsageDetail_20' ) end [2025-03-07 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:41:22] Production.INFO: ==2210== Releasing lock... [2025-03-07 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:41:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-07 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:42:05 [end_date_ymd] => 2025-03-07 23:42:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:42:05' and `end` < '2025-03-07 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-03-07 23:42:17] Production.INFO: count ==2281 [2025-03-07 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:42:05 - End Time 2025-03-07 23:42:05 [2025-03-07 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631245', 'tblTempUsageDetail_20' ) start [2025-03-07 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631245', 'tblTempUsageDetail_20' ) end [2025-03-07 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631245', 'tblTempVendorCDR_20' ) start [2025-03-07 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631245', 'tblTempVendorCDR_20' ) end [2025-03-07 23:42:18] Production.INFO: ProcessCDR(1,14631245,1,1,2) [2025-03-07 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631245', 'tblTempUsageDetail_20' ) start [2025-03-07 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631245', 'tblTempUsageDetail_20' ) end [2025-03-07 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:42:22] Production.INFO: ==2321== Releasing lock... [2025-03-07 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:42:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-07 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:43:05 [end_date_ymd] => 2025-03-07 23:43:05 [RateCDR] => 1 ) [2025-03-07 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:43:05' and `end` < '2025-03-07 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:43:17] Production.INFO: count ==2242 [2025-03-07 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:43:05 - End Time 2025-03-07 23:43:05 [2025-03-07 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631250', 'tblTempUsageDetail_20' ) start [2025-03-07 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631250', 'tblTempUsageDetail_20' ) end [2025-03-07 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631250', 'tblTempVendorCDR_20' ) start [2025-03-07 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631250', 'tblTempVendorCDR_20' ) end [2025-03-07 23:43:18] Production.INFO: ProcessCDR(1,14631250,1,1,2) [2025-03-07 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631250', 'tblTempUsageDetail_20' ) start [2025-03-07 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631250', 'tblTempUsageDetail_20' ) end [2025-03-07 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:43:22] Production.INFO: ==2393== Releasing lock... [2025-03-07 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:43:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-07 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:44:05 [end_date_ymd] => 2025-03-07 23:44:05 [RateCDR] => 1 ) [2025-03-07 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:44:05' and `end` < '2025-03-07 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-03-07 23:44:17] Production.INFO: count ==2209 [2025-03-07 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:44:05 - End Time 2025-03-07 23:44:05 [2025-03-07 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631255', 'tblTempUsageDetail_20' ) start [2025-03-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631255', 'tblTempUsageDetail_20' ) end [2025-03-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631255', 'tblTempVendorCDR_20' ) start [2025-03-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631255', 'tblTempVendorCDR_20' ) end [2025-03-07 23:44:18] Production.INFO: ProcessCDR(1,14631255,1,1,2) [2025-03-07 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631255', 'tblTempUsageDetail_20' ) start [2025-03-07 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631255', 'tblTempUsageDetail_20' ) end [2025-03-07 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:44:21] Production.INFO: ==2464== Releasing lock... [2025-03-07 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:44:21] Production.INFO: 44.5 MB #Memory Used# [2025-03-07 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:45:05 [end_date_ymd] => 2025-03-07 23:45:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:45:05' and `end` < '2025-03-07 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-03-07 23:45:17] Production.INFO: count ==2173 [2025-03-07 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:45:05 - End Time 2025-03-07 23:45:05 [2025-03-07 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631260', 'tblTempUsageDetail_20' ) start [2025-03-07 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631260', 'tblTempUsageDetail_20' ) end [2025-03-07 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631260', 'tblTempVendorCDR_20' ) start [2025-03-07 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631260', 'tblTempVendorCDR_20' ) end [2025-03-07 23:45:18] Production.INFO: ProcessCDR(1,14631260,1,1,2) [2025-03-07 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631260', 'tblTempUsageDetail_20' ) start [2025-03-07 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631260', 'tblTempUsageDetail_20' ) end [2025-03-07 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:45:21] Production.INFO: ==2534== Releasing lock... [2025-03-07 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:45:21] Production.INFO: 44.5 MB #Memory Used# [2025-03-07 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:46:05 [end_date_ymd] => 2025-03-07 23:46:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:46:05' and `end` < '2025-03-07 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-03-07 23:46:17] Production.INFO: count ==2134 [2025-03-07 23:46:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:46:05 - End Time 2025-03-07 23:46:05 [2025-03-07 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631265', 'tblTempUsageDetail_20' ) start [2025-03-07 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631265', 'tblTempUsageDetail_20' ) end [2025-03-07 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631265', 'tblTempVendorCDR_20' ) start [2025-03-07 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631265', 'tblTempVendorCDR_20' ) end [2025-03-07 23:46:18] Production.INFO: ProcessCDR(1,14631265,1,1,2) [2025-03-07 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631265', 'tblTempUsageDetail_20' ) start [2025-03-07 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631265', 'tblTempUsageDetail_20' ) end [2025-03-07 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:46:22] Production.INFO: ==2610== Releasing lock... [2025-03-07 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:46:22] Production.INFO: 44 MB #Memory Used# [2025-03-07 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:47:06 [end_date_ymd] => 2025-03-07 23:47:06 [RateCDR] => 1 ) [2025-03-07 23: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-03-07 20:47:06' and `end` < '2025-03-07 23: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-03-07 23:47:18] Production.INFO: count ==2100 [2025-03-07 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:47:06 - End Time 2025-03-07 23:47:06 [2025-03-07 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631270', 'tblTempUsageDetail_20' ) start [2025-03-07 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631270', 'tblTempUsageDetail_20' ) end [2025-03-07 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631270', 'tblTempVendorCDR_20' ) start [2025-03-07 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631270', 'tblTempVendorCDR_20' ) end [2025-03-07 23:47:18] Production.INFO: ProcessCDR(1,14631270,1,1,2) [2025-03-07 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631270', 'tblTempUsageDetail_20' ) start [2025-03-07 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631270', 'tblTempUsageDetail_20' ) end [2025-03-07 23:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:47:23] Production.INFO: ==2684== Releasing lock... [2025-03-07 23:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:47:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-07 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:48:06 [end_date_ymd] => 2025-03-07 23:48:06 [RateCDR] => 1 ) [2025-03-07 23: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-03-07 20:48:06' and `end` < '2025-03-07 23: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-03-07 23:48:18] Production.INFO: count ==2078 [2025-03-07 23:48:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:48:06 - End Time 2025-03-07 23:48:06 [2025-03-07 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631275', 'tblTempUsageDetail_20' ) start [2025-03-07 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631275', 'tblTempUsageDetail_20' ) end [2025-03-07 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631275', 'tblTempVendorCDR_20' ) start [2025-03-07 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631275', 'tblTempVendorCDR_20' ) end [2025-03-07 23:48:19] Production.INFO: ProcessCDR(1,14631275,1,1,2) [2025-03-07 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631275', 'tblTempUsageDetail_20' ) start [2025-03-07 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631275', 'tblTempUsageDetail_20' ) end [2025-03-07 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:48:22] Production.INFO: ==2758== Releasing lock... [2025-03-07 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:48:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-07 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:49:05 [end_date_ymd] => 2025-03-07 23:49:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:49:05' and `end` < '2025-03-07 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-03-07 23:49:17] Production.INFO: count ==2063 [2025-03-07 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:49:05 - End Time 2025-03-07 23:49:05 [2025-03-07 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631280', 'tblTempUsageDetail_20' ) start [2025-03-07 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631280', 'tblTempUsageDetail_20' ) end [2025-03-07 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631280', 'tblTempVendorCDR_20' ) start [2025-03-07 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631280', 'tblTempVendorCDR_20' ) end [2025-03-07 23:49:18] Production.INFO: ProcessCDR(1,14631280,1,1,2) [2025-03-07 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631280', 'tblTempUsageDetail_20' ) start [2025-03-07 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631280', 'tblTempUsageDetail_20' ) end [2025-03-07 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:49:21] Production.INFO: ==2829== Releasing lock... [2025-03-07 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:49:21] Production.INFO: 43.5 MB #Memory Used# [2025-03-07 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:50:06 [end_date_ymd] => 2025-03-07 23:50:06 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:50:06' and `end` < '2025-03-07 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-03-07 23:50:18] Production.INFO: count ==2051 [2025-03-07 23:50:19] Production.ERROR: pbx CDR StartTime 2025-03-07 20:50:06 - End Time 2025-03-07 23:50:06 [2025-03-07 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631285', 'tblTempUsageDetail_20' ) start [2025-03-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631285', 'tblTempUsageDetail_20' ) end [2025-03-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631285', 'tblTempVendorCDR_20' ) start [2025-03-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631285', 'tblTempVendorCDR_20' ) end [2025-03-07 23:50:19] Production.INFO: ProcessCDR(1,14631285,1,1,2) [2025-03-07 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631285', 'tblTempUsageDetail_20' ) start [2025-03-07 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631285', 'tblTempUsageDetail_20' ) end [2025-03-07 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:50:23] Production.INFO: ==2908== Releasing lock... [2025-03-07 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:50:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-07 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:51:05 [end_date_ymd] => 2025-03-07 23:51:05 [RateCDR] => 1 ) [2025-03-07 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:51:05' and `end` < '2025-03-07 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:51:17] Production.INFO: count ==2031 [2025-03-07 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:51:05 - End Time 2025-03-07 23:51:05 [2025-03-07 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631291', 'tblTempUsageDetail_20' ) start [2025-03-07 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631291', 'tblTempUsageDetail_20' ) end [2025-03-07 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631291', 'tblTempVendorCDR_20' ) start [2025-03-07 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631291', 'tblTempVendorCDR_20' ) end [2025-03-07 23:51:18] Production.INFO: ProcessCDR(1,14631291,1,1,2) [2025-03-07 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631291', 'tblTempUsageDetail_20' ) start [2025-03-07 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631291', 'tblTempUsageDetail_20' ) end [2025-03-07 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:51:21] Production.INFO: ==2982== Releasing lock... [2025-03-07 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:51:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-07 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:52:05 [end_date_ymd] => 2025-03-07 23:52:05 [RateCDR] => 1 ) [2025-03-07 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:52:05' and `end` < '2025-03-07 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:52:18] Production.INFO: count ==2030 [2025-03-07 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:52:05 - End Time 2025-03-07 23:52:05 [2025-03-07 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631296', 'tblTempUsageDetail_20' ) start [2025-03-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631296', 'tblTempUsageDetail_20' ) end [2025-03-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631296', 'tblTempVendorCDR_20' ) start [2025-03-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631296', 'tblTempVendorCDR_20' ) end [2025-03-07 23:52:18] Production.INFO: ProcessCDR(1,14631296,1,1,2) [2025-03-07 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631296', 'tblTempUsageDetail_20' ) start [2025-03-07 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631296', 'tblTempUsageDetail_20' ) end [2025-03-07 23:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:52:23] Production.INFO: ==3053== Releasing lock... [2025-03-07 23:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:52:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-07 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:53:05 [end_date_ymd] => 2025-03-07 23:53:05 [RateCDR] => 1 ) [2025-03-07 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:53:05' and `end` < '2025-03-07 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:53:17] Production.INFO: count ==2017 [2025-03-07 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:53:05 - End Time 2025-03-07 23:53:05 [2025-03-07 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631301', 'tblTempUsageDetail_20' ) start [2025-03-07 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631301', 'tblTempUsageDetail_20' ) end [2025-03-07 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631301', 'tblTempVendorCDR_20' ) start [2025-03-07 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631301', 'tblTempVendorCDR_20' ) end [2025-03-07 23:53:18] Production.INFO: ProcessCDR(1,14631301,1,1,2) [2025-03-07 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631301', 'tblTempUsageDetail_20' ) start [2025-03-07 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631301', 'tblTempUsageDetail_20' ) end [2025-03-07 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:53:21] Production.INFO: ==3126== Releasing lock... [2025-03-07 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:53:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-07 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:54:05 [end_date_ymd] => 2025-03-07 23:54:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:54:05' and `end` < '2025-03-07 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-03-07 23:54:18] Production.INFO: count ==2008 [2025-03-07 23:54:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:54:05 - End Time 2025-03-07 23:54:05 [2025-03-07 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631306', 'tblTempUsageDetail_20' ) start [2025-03-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631306', 'tblTempUsageDetail_20' ) end [2025-03-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631306', 'tblTempVendorCDR_20' ) start [2025-03-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631306', 'tblTempVendorCDR_20' ) end [2025-03-07 23:54:18] Production.INFO: ProcessCDR(1,14631306,1,1,2) [2025-03-07 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631306', 'tblTempUsageDetail_20' ) start [2025-03-07 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631306', 'tblTempUsageDetail_20' ) end [2025-03-07 23:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:54:23] Production.INFO: ==3200== Releasing lock... [2025-03-07 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:54:23] Production.INFO: 43 MB #Memory Used# [2025-03-07 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:55:05 [end_date_ymd] => 2025-03-07 23:55:05 [RateCDR] => 1 ) [2025-03-07 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-03-07 20:55:05' and `end` < '2025-03-07 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:55:17] Production.INFO: count ==2010 [2025-03-07 23:55:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:55:05 - End Time 2025-03-07 23:55:05 [2025-03-07 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631311', 'tblTempUsageDetail_20' ) start [2025-03-07 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631311', 'tblTempUsageDetail_20' ) end [2025-03-07 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631311', 'tblTempVendorCDR_20' ) start [2025-03-07 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631311', 'tblTempVendorCDR_20' ) end [2025-03-07 23:55:18] Production.INFO: ProcessCDR(1,14631311,1,1,2) [2025-03-07 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631311', 'tblTempUsageDetail_20' ) start [2025-03-07 23:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631311', 'tblTempUsageDetail_20' ) end [2025-03-07 23:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:55:23] Production.INFO: ==3272== Releasing lock... [2025-03-07 23:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:55:23] Production.INFO: 43 MB #Memory Used# [2025-03-07 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:56:05 [end_date_ymd] => 2025-03-07 23:56:05 [RateCDR] => 1 ) [2025-03-07 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:56:05' and `end` < '2025-03-07 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:56:17] Production.INFO: count ==2013 [2025-03-07 23:56:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:56:05 - End Time 2025-03-07 23:56:05 [2025-03-07 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631316', 'tblTempUsageDetail_20' ) start [2025-03-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631316', 'tblTempUsageDetail_20' ) end [2025-03-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631316', 'tblTempVendorCDR_20' ) start [2025-03-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631316', 'tblTempVendorCDR_20' ) end [2025-03-07 23:56:18] Production.INFO: ProcessCDR(1,14631316,1,1,2) [2025-03-07 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631316', 'tblTempUsageDetail_20' ) start [2025-03-07 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631316', 'tblTempUsageDetail_20' ) end [2025-03-07 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:56:21] Production.INFO: ==3345== Releasing lock... [2025-03-07 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:56:21] Production.INFO: 43 MB #Memory Used# [2025-03-07 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:57:05 [end_date_ymd] => 2025-03-07 23:57:05 [RateCDR] => 1 ) [2025-03-07 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:57:05' and `end` < '2025-03-07 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:57:17] Production.INFO: count ==1998 [2025-03-07 23:57:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:57:05 - End Time 2025-03-07 23:57:05 [2025-03-07 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631321', 'tblTempUsageDetail_20' ) start [2025-03-07 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631321', 'tblTempUsageDetail_20' ) end [2025-03-07 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631321', 'tblTempVendorCDR_20' ) start [2025-03-07 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631321', 'tblTempVendorCDR_20' ) end [2025-03-07 23:57:18] Production.INFO: ProcessCDR(1,14631321,1,1,2) [2025-03-07 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631321', 'tblTempUsageDetail_20' ) start [2025-03-07 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631321', 'tblTempUsageDetail_20' ) end [2025-03-07 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:57:21] Production.INFO: ==3455== Releasing lock... [2025-03-07 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:57:21] Production.INFO: 43 MB #Memory Used# [2025-03-07 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:58:05 [end_date_ymd] => 2025-03-07 23:58:05 [RateCDR] => 1 ) [2025-03-07 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:58:05' and `end` < '2025-03-07 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:58:17] Production.INFO: count ==2000 [2025-03-07 23:58:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:58:05 - End Time 2025-03-07 23:58:05 [2025-03-07 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631326', 'tblTempUsageDetail_20' ) start [2025-03-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631326', 'tblTempUsageDetail_20' ) end [2025-03-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631326', 'tblTempVendorCDR_20' ) start [2025-03-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631326', 'tblTempVendorCDR_20' ) end [2025-03-07 23:58:18] Production.INFO: ProcessCDR(1,14631326,1,1,2) [2025-03-07 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631326', 'tblTempUsageDetail_20' ) start [2025-03-07 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631326', 'tblTempUsageDetail_20' ) end [2025-03-07 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:58:22] Production.INFO: ==3526== Releasing lock... [2025-03-07 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:58:22] Production.INFO: 43 MB #Memory Used# [2025-03-07 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 20:59:05 [end_date_ymd] => 2025-03-07 23:59:05 [RateCDR] => 1 ) [2025-03-07 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 20:59:05' and `end` < '2025-03-07 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-07 23:59:17] Production.INFO: count ==2002 [2025-03-07 23:59:18] Production.ERROR: pbx CDR StartTime 2025-03-07 20:59:05 - End Time 2025-03-07 23:59:05 [2025-03-07 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-07 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631331', 'tblTempUsageDetail_20' ) start [2025-03-07 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631331', 'tblTempUsageDetail_20' ) end [2025-03-07 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631331', 'tblTempVendorCDR_20' ) start [2025-03-07 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631331', 'tblTempVendorCDR_20' ) end [2025-03-07 23:59:18] Production.INFO: ProcessCDR(1,14631331,1,1,2) [2025-03-07 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-07 23:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-07 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631331', 'tblTempUsageDetail_20' ) start [2025-03-07 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631331', 'tblTempUsageDetail_20' ) end [2025-03-07 23:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-07 23:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-07 23:59:23] Production.INFO: ==3596== Releasing lock... [2025-03-07 23:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-07 23:59:23] Production.INFO: 43.25 MB #Memory Used#