[2025-03-26 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:00:06 [end_date_ymd] => 2025-03-26 00:00:06 [RateCDR] => 1 ) [2025-03-26 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:00:06' and `end` < '2025-03-26 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 00:00:19] Production.INFO: count ==901 [2025-03-26 00:00:19] Production.ERROR: pbx CDR StartTime 2025-03-25 21:00:06 - End Time 2025-03-26 00:00:06 [2025-03-26 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763014', 'tblTempUsageDetail_20' ) start [2025-03-26 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763014', 'tblTempUsageDetail_20' ) end [2025-03-26 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763014', 'tblTempVendorCDR_20' ) start [2025-03-26 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763014', 'tblTempVendorCDR_20' ) end [2025-03-26 00:00:19] Production.INFO: ProcessCDR(1,14763014,1,1,2) [2025-03-26 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763014', 'tblTempUsageDetail_20' ) start [2025-03-26 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763014', 'tblTempUsageDetail_20' ) end [2025-03-26 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:00:24] Production.INFO: ==8968== Releasing lock... [2025-03-26 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:00:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-26 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:01:06 [end_date_ymd] => 2025-03-26 00:01:06 [RateCDR] => 1 ) [2025-03-26 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:01:06' and `end` < '2025-03-26 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 00:01:19] Production.INFO: count ==494 [2025-03-26 00:01:19] Production.ERROR: pbx CDR StartTime 2025-03-25 21:01:06 - End Time 2025-03-26 00:01:06 [2025-03-26 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763020', 'tblTempUsageDetail_20' ) start [2025-03-26 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763020', 'tblTempUsageDetail_20' ) end [2025-03-26 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763020', 'tblTempVendorCDR_20' ) start [2025-03-26 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763020', 'tblTempVendorCDR_20' ) end [2025-03-26 00:01:20] Production.INFO: ProcessCDR(1,14763020,1,1,2) [2025-03-26 00:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763020', 'tblTempUsageDetail_20' ) start [2025-03-26 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763020', 'tblTempUsageDetail_20' ) end [2025-03-26 00:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:01:25] Production.INFO: ==9062== Releasing lock... [2025-03-26 00:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:01:25] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:02:06 [end_date_ymd] => 2025-03-26 00:02:06 [RateCDR] => 1 ) [2025-03-26 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-25 21:02:06' and `end` < '2025-03-26 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-26 00:02:18] Production.INFO: count ==493 [2025-03-26 00:02:19] Production.ERROR: pbx CDR StartTime 2025-03-25 21:02:06 - End Time 2025-03-26 00:02:06 [2025-03-26 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763025', 'tblTempUsageDetail_20' ) start [2025-03-26 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763025', 'tblTempUsageDetail_20' ) end [2025-03-26 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763025', 'tblTempVendorCDR_20' ) start [2025-03-26 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763025', 'tblTempVendorCDR_20' ) end [2025-03-26 00:02:19] Production.INFO: ProcessCDR(1,14763025,1,1,2) [2025-03-26 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763025', 'tblTempUsageDetail_20' ) start [2025-03-26 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763025', 'tblTempUsageDetail_20' ) end [2025-03-26 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:02:22] Production.INFO: ==9137== Releasing lock... [2025-03-26 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:02:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:03:05 [end_date_ymd] => 2025-03-26 00:03:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:03:05' and `end` < '2025-03-26 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-26 00:03:18] Production.INFO: count ==489 [2025-03-26 00:03:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:03:05 - End Time 2025-03-26 00:03:05 [2025-03-26 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763030', 'tblTempUsageDetail_20' ) start [2025-03-26 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763030', 'tblTempUsageDetail_20' ) end [2025-03-26 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763030', 'tblTempVendorCDR_20' ) start [2025-03-26 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763030', 'tblTempVendorCDR_20' ) end [2025-03-26 00:03:18] Production.INFO: ProcessCDR(1,14763030,1,1,2) [2025-03-26 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763030', 'tblTempUsageDetail_20' ) start [2025-03-26 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763030', 'tblTempUsageDetail_20' ) end [2025-03-26 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:03:21] Production.INFO: ==9213== Releasing lock... [2025-03-26 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:03:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:04:06 [end_date_ymd] => 2025-03-26 00:04:06 [RateCDR] => 1 ) [2025-03-26 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-25 21:04:06' and `end` < '2025-03-26 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-26 00:04:29] Production.INFO: count ==493 [2025-03-26 00:04:29] Production.ERROR: pbx CDR StartTime 2025-03-25 21:04:06 - End Time 2025-03-26 00:04:06 [2025-03-26 00:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763035', 'tblTempUsageDetail_20' ) start [2025-03-26 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763035', 'tblTempUsageDetail_20' ) end [2025-03-26 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763035', 'tblTempVendorCDR_20' ) start [2025-03-26 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763035', 'tblTempVendorCDR_20' ) end [2025-03-26 00:04:29] Production.INFO: ProcessCDR(1,14763035,1,1,2) [2025-03-26 00:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763035', 'tblTempUsageDetail_20' ) start [2025-03-26 00:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763035', 'tblTempUsageDetail_20' ) end [2025-03-26 00:04:33] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:04:33] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:04:33] Production.INFO: ==9311== Releasing lock... [2025-03-26 00:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:04:33] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:05:05 [end_date_ymd] => 2025-03-26 00:05:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:05:05' and `end` < '2025-03-26 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-26 00:05:27] Production.INFO: count ==490 [2025-03-26 00:05:28] Production.ERROR: pbx CDR StartTime 2025-03-25 21:05:05 - End Time 2025-03-26 00:05:05 [2025-03-26 00:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763040', 'tblTempUsageDetail_20' ) start [2025-03-26 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763040', 'tblTempUsageDetail_20' ) end [2025-03-26 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763040', 'tblTempVendorCDR_20' ) start [2025-03-26 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763040', 'tblTempVendorCDR_20' ) end [2025-03-26 00:05:28] Production.INFO: ProcessCDR(1,14763040,1,1,2) [2025-03-26 00:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763040', 'tblTempUsageDetail_20' ) start [2025-03-26 00:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763040', 'tblTempUsageDetail_20' ) end [2025-03-26 00:05:31] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:05:31] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:05:31] Production.INFO: ==9383== Releasing lock... [2025-03-26 00:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:05:31] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:06:06 [end_date_ymd] => 2025-03-26 00:06:06 [RateCDR] => 1 ) [2025-03-26 00:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:06:06' and `end` < '2025-03-26 00:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 00:06:28] Production.INFO: count ==493 [2025-03-26 00:06:28] Production.ERROR: pbx CDR StartTime 2025-03-25 21:06:06 - End Time 2025-03-26 00:06:06 [2025-03-26 00:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763045', 'tblTempUsageDetail_20' ) start [2025-03-26 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763045', 'tblTempUsageDetail_20' ) end [2025-03-26 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763045', 'tblTempVendorCDR_20' ) start [2025-03-26 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763045', 'tblTempVendorCDR_20' ) end [2025-03-26 00:06:28] Production.INFO: ProcessCDR(1,14763045,1,1,2) [2025-03-26 00:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763045', 'tblTempUsageDetail_20' ) start [2025-03-26 00:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763045', 'tblTempUsageDetail_20' ) end [2025-03-26 00:06:32] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:06:32] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:06:32] Production.INFO: ==9453== Releasing lock... [2025-03-26 00:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:06:32] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:07:05 [end_date_ymd] => 2025-03-26 00:07:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:07:05' and `end` < '2025-03-26 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-26 00:07:29] Production.INFO: count ==492 [2025-03-26 00:07:29] Production.ERROR: pbx CDR StartTime 2025-03-25 21:07:05 - End Time 2025-03-26 00:07:05 [2025-03-26 00:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763050', 'tblTempUsageDetail_20' ) start [2025-03-26 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763050', 'tblTempUsageDetail_20' ) end [2025-03-26 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763050', 'tblTempVendorCDR_20' ) start [2025-03-26 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763050', 'tblTempVendorCDR_20' ) end [2025-03-26 00:07:29] Production.INFO: ProcessCDR(1,14763050,1,1,2) [2025-03-26 00:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763050', 'tblTempUsageDetail_20' ) start [2025-03-26 00:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763050', 'tblTempUsageDetail_20' ) end [2025-03-26 00:07:32] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:07:32] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:07:32] Production.INFO: ==9527== Releasing lock... [2025-03-26 00:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:07:32] Production.INFO: 32 MB #Memory Used# [2025-03-26 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:08:06 [end_date_ymd] => 2025-03-26 00:08:06 [RateCDR] => 1 ) [2025-03-26 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-25 21:08:06' and `end` < '2025-03-26 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-26 00:08:19] Production.INFO: count ==497 [2025-03-26 00:08:19] Production.ERROR: pbx CDR StartTime 2025-03-25 21:08:06 - End Time 2025-03-26 00:08:06 [2025-03-26 00:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763055', 'tblTempUsageDetail_20' ) start [2025-03-26 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763055', 'tblTempUsageDetail_20' ) end [2025-03-26 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763055', 'tblTempVendorCDR_20' ) start [2025-03-26 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763055', 'tblTempVendorCDR_20' ) end [2025-03-26 00:08:19] Production.INFO: ProcessCDR(1,14763055,1,1,2) [2025-03-26 00:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763055', 'tblTempUsageDetail_20' ) start [2025-03-26 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763055', 'tblTempUsageDetail_20' ) end [2025-03-26 00:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:08:23] Production.INFO: ==9603== Releasing lock... [2025-03-26 00:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:08:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:09:05 [end_date_ymd] => 2025-03-26 00:09:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:09:05' and `end` < '2025-03-26 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-26 00:09:18] Production.INFO: count ==497 [2025-03-26 00:09:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:09:05 - End Time 2025-03-26 00:09:05 [2025-03-26 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763060', 'tblTempUsageDetail_20' ) start [2025-03-26 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763060', 'tblTempUsageDetail_20' ) end [2025-03-26 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763060', 'tblTempVendorCDR_20' ) start [2025-03-26 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763060', 'tblTempVendorCDR_20' ) end [2025-03-26 00:09:18] Production.INFO: ProcessCDR(1,14763060,1,1,2) [2025-03-26 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763060', 'tblTempUsageDetail_20' ) start [2025-03-26 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763060', 'tblTempUsageDetail_20' ) end [2025-03-26 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:09:21] Production.INFO: ==9676== Releasing lock... [2025-03-26 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:09:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:10:06 [end_date_ymd] => 2025-03-26 00:10:06 [RateCDR] => 1 ) [2025-03-26 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-25 21:10:06' and `end` < '2025-03-26 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-26 00:10:18] Production.INFO: count ==509 [2025-03-26 00:10:19] Production.ERROR: pbx CDR StartTime 2025-03-25 21:10:06 - End Time 2025-03-26 00:10:06 [2025-03-26 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763065', 'tblTempUsageDetail_20' ) start [2025-03-26 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763065', 'tblTempUsageDetail_20' ) end [2025-03-26 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763065', 'tblTempVendorCDR_20' ) start [2025-03-26 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763065', 'tblTempVendorCDR_20' ) end [2025-03-26 00:10:19] Production.INFO: ProcessCDR(1,14763065,1,1,2) [2025-03-26 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763065', 'tblTempUsageDetail_20' ) start [2025-03-26 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763065', 'tblTempUsageDetail_20' ) end [2025-03-26 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:10:22] Production.INFO: ==9750== Releasing lock... [2025-03-26 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:10:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:11:05 [end_date_ymd] => 2025-03-26 00:11:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:11:05' and `end` < '2025-03-26 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-26 00:11:17] Production.INFO: count ==509 [2025-03-26 00:11:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:11:05 - End Time 2025-03-26 00:11:05 [2025-03-26 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763071', 'tblTempUsageDetail_20' ) start [2025-03-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763071', 'tblTempUsageDetail_20' ) end [2025-03-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763071', 'tblTempVendorCDR_20' ) start [2025-03-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763071', 'tblTempVendorCDR_20' ) end [2025-03-26 00:11:18] Production.INFO: ProcessCDR(1,14763071,1,1,2) [2025-03-26 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763071', 'tblTempUsageDetail_20' ) start [2025-03-26 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763071', 'tblTempUsageDetail_20' ) end [2025-03-26 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:11:21] Production.INFO: ==9824== Releasing lock... [2025-03-26 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:11:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:12:06 [end_date_ymd] => 2025-03-26 00:12:06 [RateCDR] => 1 ) [2025-03-26 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-25 21:12:06' and `end` < '2025-03-26 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-26 00:12:18] Production.INFO: count ==513 [2025-03-26 00:12:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:12:06 - End Time 2025-03-26 00:12:06 [2025-03-26 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763076', 'tblTempUsageDetail_20' ) start [2025-03-26 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763076', 'tblTempUsageDetail_20' ) end [2025-03-26 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763076', 'tblTempVendorCDR_20' ) start [2025-03-26 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763076', 'tblTempVendorCDR_20' ) end [2025-03-26 00:12:18] Production.INFO: ProcessCDR(1,14763076,1,1,2) [2025-03-26 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763076', 'tblTempUsageDetail_20' ) start [2025-03-26 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763076', 'tblTempUsageDetail_20' ) end [2025-03-26 00:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:12:23] Production.INFO: ==9897== Releasing lock... [2025-03-26 00:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:12:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:13:05 [end_date_ymd] => 2025-03-26 00:13:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:13:05' and `end` < '2025-03-26 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-26 00:13:17] Production.INFO: count ==513 [2025-03-26 00:13:17] Production.ERROR: pbx CDR StartTime 2025-03-25 21:13:05 - End Time 2025-03-26 00:13:05 [2025-03-26 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763081', 'tblTempUsageDetail_20' ) start [2025-03-26 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763081', 'tblTempUsageDetail_20' ) end [2025-03-26 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763081', 'tblTempVendorCDR_20' ) start [2025-03-26 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763081', 'tblTempVendorCDR_20' ) end [2025-03-26 00:13:17] Production.INFO: ProcessCDR(1,14763081,1,1,2) [2025-03-26 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763081', 'tblTempUsageDetail_20' ) start [2025-03-26 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763081', 'tblTempUsageDetail_20' ) end [2025-03-26 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:13:21] Production.INFO: ==10005== Releasing lock... [2025-03-26 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:13:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:14:06 [end_date_ymd] => 2025-03-26 00:14:06 [RateCDR] => 1 ) [2025-03-26 00:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:14:06' and `end` < '2025-03-26 00:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 00:14:18] Production.INFO: count ==513 [2025-03-26 00:14:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:14:06 - End Time 2025-03-26 00:14:06 [2025-03-26 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763086', 'tblTempUsageDetail_20' ) start [2025-03-26 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763086', 'tblTempUsageDetail_20' ) end [2025-03-26 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763086', 'tblTempVendorCDR_20' ) start [2025-03-26 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763086', 'tblTempVendorCDR_20' ) end [2025-03-26 00:14:18] Production.INFO: ProcessCDR(1,14763086,1,1,2) [2025-03-26 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763086', 'tblTempUsageDetail_20' ) start [2025-03-26 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763086', 'tblTempUsageDetail_20' ) end [2025-03-26 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:14:22] Production.INFO: ==10081== Releasing lock... [2025-03-26 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:14:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:15:05 [end_date_ymd] => 2025-03-26 00:15:05 [RateCDR] => 1 ) [2025-03-26 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:15:05' and `end` < '2025-03-26 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 00:15:18] Production.INFO: count ==518 [2025-03-26 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:15:05 - End Time 2025-03-26 00:15:05 [2025-03-26 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763091', 'tblTempUsageDetail_20' ) start [2025-03-26 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763091', 'tblTempUsageDetail_20' ) end [2025-03-26 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763091', 'tblTempVendorCDR_20' ) start [2025-03-26 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763091', 'tblTempVendorCDR_20' ) end [2025-03-26 00:15:18] Production.INFO: ProcessCDR(1,14763091,1,1,2) [2025-03-26 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763091', 'tblTempUsageDetail_20' ) start [2025-03-26 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763091', 'tblTempUsageDetail_20' ) end [2025-03-26 00:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:15:23] Production.INFO: ==10154== Releasing lock... [2025-03-26 00:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:15:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:16:06 [end_date_ymd] => 2025-03-26 00:16:06 [RateCDR] => 1 ) [2025-03-26 00: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-25 21:16:06' and `end` < '2025-03-26 00: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-26 00:16:18] Production.INFO: count ==514 [2025-03-26 00:16:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:16:06 - End Time 2025-03-26 00:16:06 [2025-03-26 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763096', 'tblTempUsageDetail_20' ) start [2025-03-26 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763096', 'tblTempUsageDetail_20' ) end [2025-03-26 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763096', 'tblTempVendorCDR_20' ) start [2025-03-26 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763096', 'tblTempVendorCDR_20' ) end [2025-03-26 00:16:18] Production.INFO: ProcessCDR(1,14763096,1,1,2) [2025-03-26 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763096', 'tblTempUsageDetail_20' ) start [2025-03-26 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763096', 'tblTempUsageDetail_20' ) end [2025-03-26 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:16:22] Production.INFO: ==10225== Releasing lock... [2025-03-26 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:16:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:17:06 [end_date_ymd] => 2025-03-26 00:17:06 [RateCDR] => 1 ) [2025-03-26 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-25 21:17:06' and `end` < '2025-03-26 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-26 00:17:18] Production.INFO: count ==511 [2025-03-26 00:17:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:17:06 - End Time 2025-03-26 00:17:06 [2025-03-26 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763101', 'tblTempUsageDetail_20' ) start [2025-03-26 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763101', 'tblTempUsageDetail_20' ) end [2025-03-26 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763101', 'tblTempVendorCDR_20' ) start [2025-03-26 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763101', 'tblTempVendorCDR_20' ) end [2025-03-26 00:17:18] Production.INFO: ProcessCDR(1,14763101,1,1,2) [2025-03-26 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763101', 'tblTempUsageDetail_20' ) start [2025-03-26 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763101', 'tblTempUsageDetail_20' ) end [2025-03-26 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:17:22] Production.INFO: ==10315== Releasing lock... [2025-03-26 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:17:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:18:05 [end_date_ymd] => 2025-03-26 00:18:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:18:05' and `end` < '2025-03-26 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-26 00:18:18] Production.INFO: count ==509 [2025-03-26 00:18:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:18:05 - End Time 2025-03-26 00:18:05 [2025-03-26 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763106', 'tblTempUsageDetail_20' ) start [2025-03-26 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763106', 'tblTempUsageDetail_20' ) end [2025-03-26 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763106', 'tblTempVendorCDR_20' ) start [2025-03-26 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763106', 'tblTempVendorCDR_20' ) end [2025-03-26 00:18:18] Production.INFO: ProcessCDR(1,14763106,1,1,2) [2025-03-26 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763106', 'tblTempUsageDetail_20' ) start [2025-03-26 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763106', 'tblTempUsageDetail_20' ) end [2025-03-26 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:18:22] Production.INFO: ==10388== Releasing lock... [2025-03-26 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:18:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:19:05 [end_date_ymd] => 2025-03-26 00:19:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:19:05' and `end` < '2025-03-26 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-26 00:19:17] Production.INFO: count ==508 [2025-03-26 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:19:05 - End Time 2025-03-26 00:19:05 [2025-03-26 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763111', 'tblTempUsageDetail_20' ) start [2025-03-26 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763111', 'tblTempUsageDetail_20' ) end [2025-03-26 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763111', 'tblTempVendorCDR_20' ) start [2025-03-26 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763111', 'tblTempVendorCDR_20' ) end [2025-03-26 00:19:18] Production.INFO: ProcessCDR(1,14763111,1,1,2) [2025-03-26 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763111', 'tblTempUsageDetail_20' ) start [2025-03-26 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763111', 'tblTempUsageDetail_20' ) end [2025-03-26 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:19:21] Production.INFO: ==10459== Releasing lock... [2025-03-26 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:19:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:20:06 [end_date_ymd] => 2025-03-26 00:20:06 [RateCDR] => 1 ) [2025-03-26 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-25 21:20:06' and `end` < '2025-03-26 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-26 00:20:18] Production.INFO: count ==521 [2025-03-26 00:20:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:20:06 - End Time 2025-03-26 00:20:06 [2025-03-26 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763117', 'tblTempUsageDetail_20' ) start [2025-03-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763117', 'tblTempUsageDetail_20' ) end [2025-03-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763117', 'tblTempVendorCDR_20' ) start [2025-03-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763117', 'tblTempVendorCDR_20' ) end [2025-03-26 00:20:18] Production.INFO: ProcessCDR(1,14763117,1,1,2) [2025-03-26 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763117', 'tblTempUsageDetail_20' ) start [2025-03-26 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763117', 'tblTempUsageDetail_20' ) end [2025-03-26 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:20:22] Production.INFO: ==10536== Releasing lock... [2025-03-26 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:20:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:21:05 [end_date_ymd] => 2025-03-26 00:21:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:21:05' and `end` < '2025-03-26 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-26 00:21:17] Production.INFO: count ==524 [2025-03-26 00:21:17] Production.ERROR: pbx CDR StartTime 2025-03-25 21:21:05 - End Time 2025-03-26 00:21:05 [2025-03-26 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763122', 'tblTempUsageDetail_20' ) start [2025-03-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763122', 'tblTempUsageDetail_20' ) end [2025-03-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763122', 'tblTempVendorCDR_20' ) start [2025-03-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763122', 'tblTempVendorCDR_20' ) end [2025-03-26 00:21:18] Production.INFO: ProcessCDR(1,14763122,1,1,2) [2025-03-26 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763122', 'tblTempUsageDetail_20' ) start [2025-03-26 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763122', 'tblTempUsageDetail_20' ) end [2025-03-26 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:21:21] Production.INFO: ==10611== Releasing lock... [2025-03-26 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:21:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:22:06 [end_date_ymd] => 2025-03-26 00:22:06 [RateCDR] => 1 ) [2025-03-26 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-25 21:22:06' and `end` < '2025-03-26 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-26 00:22:18] Production.INFO: count ==524 [2025-03-26 00:22:19] Production.ERROR: pbx CDR StartTime 2025-03-25 21:22:06 - End Time 2025-03-26 00:22:06 [2025-03-26 00:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763127', 'tblTempUsageDetail_20' ) start [2025-03-26 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763127', 'tblTempUsageDetail_20' ) end [2025-03-26 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763127', 'tblTempVendorCDR_20' ) start [2025-03-26 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763127', 'tblTempVendorCDR_20' ) end [2025-03-26 00:22:19] Production.INFO: ProcessCDR(1,14763127,1,1,2) [2025-03-26 00:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763127', 'tblTempUsageDetail_20' ) start [2025-03-26 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763127', 'tblTempUsageDetail_20' ) end [2025-03-26 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:22:22] Production.INFO: ==10684== Releasing lock... [2025-03-26 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:22:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:23:05 [end_date_ymd] => 2025-03-26 00:23:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:23:05' and `end` < '2025-03-26 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-26 00:23:17] Production.INFO: count ==525 [2025-03-26 00:23:17] Production.ERROR: pbx CDR StartTime 2025-03-25 21:23:05 - End Time 2025-03-26 00:23:05 [2025-03-26 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763132', 'tblTempUsageDetail_20' ) start [2025-03-26 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763132', 'tblTempUsageDetail_20' ) end [2025-03-26 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763132', 'tblTempVendorCDR_20' ) start [2025-03-26 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763132', 'tblTempVendorCDR_20' ) end [2025-03-26 00:23:18] Production.INFO: ProcessCDR(1,14763132,1,1,2) [2025-03-26 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763132', 'tblTempUsageDetail_20' ) start [2025-03-26 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763132', 'tblTempUsageDetail_20' ) end [2025-03-26 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:23:22] Production.INFO: ==10764== Releasing lock... [2025-03-26 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:23:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:24:05 [end_date_ymd] => 2025-03-26 00:24:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:24:05' and `end` < '2025-03-26 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-26 00:24:18] Production.INFO: count ==526 [2025-03-26 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:24:05 - End Time 2025-03-26 00:24:05 [2025-03-26 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763137', 'tblTempUsageDetail_20' ) start [2025-03-26 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763137', 'tblTempUsageDetail_20' ) end [2025-03-26 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763137', 'tblTempVendorCDR_20' ) start [2025-03-26 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763137', 'tblTempVendorCDR_20' ) end [2025-03-26 00:24:18] Production.INFO: ProcessCDR(1,14763137,1,1,2) [2025-03-26 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763137', 'tblTempUsageDetail_20' ) start [2025-03-26 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763137', 'tblTempUsageDetail_20' ) end [2025-03-26 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:24:21] Production.INFO: ==10836== Releasing lock... [2025-03-26 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:24:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:25:05 [end_date_ymd] => 2025-03-26 00:25:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:25:05' and `end` < '2025-03-26 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-26 00:25:17] Production.INFO: count ==529 [2025-03-26 00:25:17] Production.ERROR: pbx CDR StartTime 2025-03-25 21:25:05 - End Time 2025-03-26 00:25:05 [2025-03-26 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763142', 'tblTempUsageDetail_20' ) start [2025-03-26 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763142', 'tblTempUsageDetail_20' ) end [2025-03-26 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763142', 'tblTempVendorCDR_20' ) start [2025-03-26 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763142', 'tblTempVendorCDR_20' ) end [2025-03-26 00:25:17] Production.INFO: ProcessCDR(1,14763142,1,1,2) [2025-03-26 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763142', 'tblTempUsageDetail_20' ) start [2025-03-26 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763142', 'tblTempUsageDetail_20' ) end [2025-03-26 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:25:21] Production.INFO: ==10907== Releasing lock... [2025-03-26 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:25:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:26:05 [end_date_ymd] => 2025-03-26 00:26:05 [RateCDR] => 1 ) [2025-03-26 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:26:05' and `end` < '2025-03-26 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 00:26:17] Production.INFO: count ==528 [2025-03-26 00:26:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:26:05 - End Time 2025-03-26 00:26:05 [2025-03-26 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763147', 'tblTempUsageDetail_20' ) start [2025-03-26 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763147', 'tblTempUsageDetail_20' ) end [2025-03-26 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763147', 'tblTempVendorCDR_20' ) start [2025-03-26 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763147', 'tblTempVendorCDR_20' ) end [2025-03-26 00:26:18] Production.INFO: ProcessCDR(1,14763147,1,1,2) [2025-03-26 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763147', 'tblTempUsageDetail_20' ) start [2025-03-26 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763147', 'tblTempUsageDetail_20' ) end [2025-03-26 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:26:21] Production.INFO: ==10979== Releasing lock... [2025-03-26 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:26:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:27:05 [end_date_ymd] => 2025-03-26 00:27:05 [RateCDR] => 1 ) [2025-03-26 00: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-25 21:27:05' and `end` < '2025-03-26 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-26 00:27:18] Production.INFO: count ==520 [2025-03-26 00:27:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:27:05 - End Time 2025-03-26 00:27:05 [2025-03-26 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763152', 'tblTempUsageDetail_20' ) start [2025-03-26 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763152', 'tblTempUsageDetail_20' ) end [2025-03-26 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763152', 'tblTempVendorCDR_20' ) start [2025-03-26 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763152', 'tblTempVendorCDR_20' ) end [2025-03-26 00:27:18] Production.INFO: ProcessCDR(1,14763152,1,1,2) [2025-03-26 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763152', 'tblTempUsageDetail_20' ) start [2025-03-26 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763152', 'tblTempUsageDetail_20' ) end [2025-03-26 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:27:22] Production.INFO: ==11055== Releasing lock... [2025-03-26 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:27:22] Production.INFO: 33 MB #Memory Used# [2025-03-26 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:28:05 [end_date_ymd] => 2025-03-26 00:28:05 [RateCDR] => 1 ) [2025-03-26 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:28:05' and `end` < '2025-03-26 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 00:28:18] Production.INFO: count ==515 [2025-03-26 00:28:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:28:05 - End Time 2025-03-26 00:28:05 [2025-03-26 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763157', 'tblTempUsageDetail_20' ) start [2025-03-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763157', 'tblTempUsageDetail_20' ) end [2025-03-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763157', 'tblTempVendorCDR_20' ) start [2025-03-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763157', 'tblTempVendorCDR_20' ) end [2025-03-26 00:28:18] Production.INFO: ProcessCDR(1,14763157,1,1,2) [2025-03-26 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763157', 'tblTempUsageDetail_20' ) start [2025-03-26 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763157', 'tblTempUsageDetail_20' ) end [2025-03-26 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:28:22] Production.INFO: ==11126== Releasing lock... [2025-03-26 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:28:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:29:06 [end_date_ymd] => 2025-03-26 00:29:06 [RateCDR] => 1 ) [2025-03-26 00: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-25 21:29:06' and `end` < '2025-03-26 00: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-26 00:29:18] Production.INFO: count ==514 [2025-03-26 00:29:19] Production.ERROR: pbx CDR StartTime 2025-03-25 21:29:06 - End Time 2025-03-26 00:29:06 [2025-03-26 00:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763162', 'tblTempUsageDetail_20' ) start [2025-03-26 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763162', 'tblTempUsageDetail_20' ) end [2025-03-26 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763162', 'tblTempVendorCDR_20' ) start [2025-03-26 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763162', 'tblTempVendorCDR_20' ) end [2025-03-26 00:29:19] Production.INFO: ProcessCDR(1,14763162,1,1,2) [2025-03-26 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763162', 'tblTempUsageDetail_20' ) start [2025-03-26 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763162', 'tblTempUsageDetail_20' ) end [2025-03-26 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:29:22] Production.INFO: ==11244== Releasing lock... [2025-03-26 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:29:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:30:06 [end_date_ymd] => 2025-03-26 00:30:06 [RateCDR] => 1 ) [2025-03-26 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-25 21:30:06' and `end` < '2025-03-26 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-26 00:30:19] Production.INFO: count ==522 [2025-03-26 00:30:19] Production.ERROR: pbx CDR StartTime 2025-03-25 21:30:06 - End Time 2025-03-26 00:30:06 [2025-03-26 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763168', 'tblTempUsageDetail_20' ) start [2025-03-26 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763168', 'tblTempUsageDetail_20' ) end [2025-03-26 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763168', 'tblTempVendorCDR_20' ) start [2025-03-26 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763168', 'tblTempVendorCDR_20' ) end [2025-03-26 00:30:19] Production.INFO: ProcessCDR(1,14763168,1,1,2) [2025-03-26 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763168', 'tblTempUsageDetail_20' ) start [2025-03-26 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763168', 'tblTempUsageDetail_20' ) end [2025-03-26 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:30:22] Production.INFO: ==11318== Releasing lock... [2025-03-26 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:30:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:31:05 [end_date_ymd] => 2025-03-26 00:31:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:31:05' and `end` < '2025-03-26 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-26 00:31:18] Production.INFO: count ==519 [2025-03-26 00:31:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:31:05 - End Time 2025-03-26 00:31:05 [2025-03-26 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763173', 'tblTempUsageDetail_20' ) start [2025-03-26 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763173', 'tblTempUsageDetail_20' ) end [2025-03-26 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763173', 'tblTempVendorCDR_20' ) start [2025-03-26 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763173', 'tblTempVendorCDR_20' ) end [2025-03-26 00:31:18] Production.INFO: ProcessCDR(1,14763173,1,1,2) [2025-03-26 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763173', 'tblTempUsageDetail_20' ) start [2025-03-26 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763173', 'tblTempUsageDetail_20' ) end [2025-03-26 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:31:22] Production.INFO: ==11391== Releasing lock... [2025-03-26 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:31:22] Production.INFO: 32 MB #Memory Used# [2025-03-26 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:32:05 [end_date_ymd] => 2025-03-26 00:32:05 [RateCDR] => 1 ) [2025-03-26 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:32:05' and `end` < '2025-03-26 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 00:32:17] Production.INFO: count ==518 [2025-03-26 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:32:05 - End Time 2025-03-26 00:32:05 [2025-03-26 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763178', 'tblTempUsageDetail_20' ) start [2025-03-26 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763178', 'tblTempUsageDetail_20' ) end [2025-03-26 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763178', 'tblTempVendorCDR_20' ) start [2025-03-26 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763178', 'tblTempVendorCDR_20' ) end [2025-03-26 00:32:18] Production.INFO: ProcessCDR(1,14763178,1,1,2) [2025-03-26 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763178', 'tblTempUsageDetail_20' ) start [2025-03-26 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763178', 'tblTempUsageDetail_20' ) end [2025-03-26 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:32:21] Production.INFO: ==11460== Releasing lock... [2025-03-26 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:32:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:33:05 [end_date_ymd] => 2025-03-26 00:33:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:33:05' and `end` < '2025-03-26 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-26 00:33:18] Production.INFO: count ==517 [2025-03-26 00:33:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:33:05 - End Time 2025-03-26 00:33:05 [2025-03-26 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763183', 'tblTempUsageDetail_20' ) start [2025-03-26 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763183', 'tblTempUsageDetail_20' ) end [2025-03-26 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763183', 'tblTempVendorCDR_20' ) start [2025-03-26 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763183', 'tblTempVendorCDR_20' ) end [2025-03-26 00:33:18] Production.INFO: ProcessCDR(1,14763183,1,1,2) [2025-03-26 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763183', 'tblTempUsageDetail_20' ) start [2025-03-26 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763183', 'tblTempUsageDetail_20' ) end [2025-03-26 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:33:21] Production.INFO: ==11537== Releasing lock... [2025-03-26 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:33:21] Production.INFO: 32 MB #Memory Used# [2025-03-26 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:34:05 [end_date_ymd] => 2025-03-26 00:34:05 [RateCDR] => 1 ) [2025-03-26 00:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:34:05' and `end` < '2025-03-26 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-26 00:34:18] Production.INFO: count ==517 [2025-03-26 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:34:05 - End Time 2025-03-26 00:34:05 [2025-03-26 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763188', 'tblTempUsageDetail_20' ) start [2025-03-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763188', 'tblTempUsageDetail_20' ) end [2025-03-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763188', 'tblTempVendorCDR_20' ) start [2025-03-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763188', 'tblTempVendorCDR_20' ) end [2025-03-26 00:34:18] Production.INFO: ProcessCDR(1,14763188,1,1,2) [2025-03-26 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763188', 'tblTempUsageDetail_20' ) start [2025-03-26 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763188', 'tblTempUsageDetail_20' ) end [2025-03-26 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:34:22] Production.INFO: ==11610== Releasing lock... [2025-03-26 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:34:22] Production.INFO: 32 MB #Memory Used# [2025-03-26 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:35:05 [end_date_ymd] => 2025-03-26 00:35:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:35:05' and `end` < '2025-03-26 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-26 00:35:18] Production.INFO: count ==517 [2025-03-26 00:35:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:35:05 - End Time 2025-03-26 00:35:05 [2025-03-26 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763193', 'tblTempUsageDetail_20' ) start [2025-03-26 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763193', 'tblTempUsageDetail_20' ) end [2025-03-26 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763193', 'tblTempVendorCDR_20' ) start [2025-03-26 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763193', 'tblTempVendorCDR_20' ) end [2025-03-26 00:35:18] Production.INFO: ProcessCDR(1,14763193,1,1,2) [2025-03-26 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763193', 'tblTempUsageDetail_20' ) start [2025-03-26 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763193', 'tblTempUsageDetail_20' ) end [2025-03-26 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:35:22] Production.INFO: ==11684== Releasing lock... [2025-03-26 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:35:22] Production.INFO: 32 MB #Memory Used# [2025-03-26 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:36:05 [end_date_ymd] => 2025-03-26 00:36:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:36:05' and `end` < '2025-03-26 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-26 00:36:18] Production.INFO: count ==516 [2025-03-26 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:36:05 - End Time 2025-03-26 00:36:05 [2025-03-26 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763198', 'tblTempUsageDetail_20' ) start [2025-03-26 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763198', 'tblTempUsageDetail_20' ) end [2025-03-26 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763198', 'tblTempVendorCDR_20' ) start [2025-03-26 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763198', 'tblTempVendorCDR_20' ) end [2025-03-26 00:36:18] Production.INFO: ProcessCDR(1,14763198,1,1,2) [2025-03-26 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763198', 'tblTempUsageDetail_20' ) start [2025-03-26 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763198', 'tblTempUsageDetail_20' ) end [2025-03-26 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:36:21] Production.INFO: ==11764== Releasing lock... [2025-03-26 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:36:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 00:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:37:06 [end_date_ymd] => 2025-03-26 00:37:06 [RateCDR] => 1 ) [2025-03-26 00: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-25 21:37:06' and `end` < '2025-03-26 00: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-26 00:37:18] Production.INFO: count ==518 [2025-03-26 00:37:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:37:06 - End Time 2025-03-26 00:37:06 [2025-03-26 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763203', 'tblTempUsageDetail_20' ) start [2025-03-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763203', 'tblTempUsageDetail_20' ) end [2025-03-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763203', 'tblTempVendorCDR_20' ) start [2025-03-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763203', 'tblTempVendorCDR_20' ) end [2025-03-26 00:37:18] Production.INFO: ProcessCDR(1,14763203,1,1,2) [2025-03-26 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763203', 'tblTempUsageDetail_20' ) start [2025-03-26 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763203', 'tblTempUsageDetail_20' ) end [2025-03-26 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:37:22] Production.INFO: ==11839== Releasing lock... [2025-03-26 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:37:22] Production.INFO: 32 MB #Memory Used# [2025-03-26 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:38:06 [end_date_ymd] => 2025-03-26 00:38:06 [RateCDR] => 1 ) [2025-03-26 00:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:38:06' and `end` < '2025-03-26 00:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 00:38:18] Production.INFO: count ==518 [2025-03-26 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:38:06 - End Time 2025-03-26 00:38:06 [2025-03-26 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763208', 'tblTempUsageDetail_20' ) start [2025-03-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763208', 'tblTempUsageDetail_20' ) end [2025-03-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763208', 'tblTempVendorCDR_20' ) start [2025-03-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763208', 'tblTempVendorCDR_20' ) end [2025-03-26 00:38:18] Production.INFO: ProcessCDR(1,14763208,1,1,2) [2025-03-26 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763208', 'tblTempUsageDetail_20' ) start [2025-03-26 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763208', 'tblTempUsageDetail_20' ) end [2025-03-26 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:38:22] Production.INFO: ==11910== Releasing lock... [2025-03-26 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:38:22] Production.INFO: 32 MB #Memory Used# [2025-03-26 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:39:05 [end_date_ymd] => 2025-03-26 00:39:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:39:05' and `end` < '2025-03-26 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-26 00:39:18] Production.INFO: count ==512 [2025-03-26 00:39:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:39:05 - End Time 2025-03-26 00:39:05 [2025-03-26 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763213', 'tblTempUsageDetail_20' ) start [2025-03-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763213', 'tblTempUsageDetail_20' ) end [2025-03-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763213', 'tblTempVendorCDR_20' ) start [2025-03-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763213', 'tblTempVendorCDR_20' ) end [2025-03-26 00:39:18] Production.INFO: ProcessCDR(1,14763213,1,1,2) [2025-03-26 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763213', 'tblTempUsageDetail_20' ) start [2025-03-26 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763213', 'tblTempUsageDetail_20' ) end [2025-03-26 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:39:22] Production.INFO: ==11986== Releasing lock... [2025-03-26 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:39:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:40:06 [end_date_ymd] => 2025-03-26 00:40:06 [RateCDR] => 1 ) [2025-03-26 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-25 21:40:06' and `end` < '2025-03-26 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-26 00:40:19] Production.INFO: count ==516 [2025-03-26 00:40:19] Production.ERROR: pbx CDR StartTime 2025-03-25 21:40:06 - End Time 2025-03-26 00:40:06 [2025-03-26 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763219', 'tblTempUsageDetail_20' ) start [2025-03-26 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763219', 'tblTempUsageDetail_20' ) end [2025-03-26 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763219', 'tblTempVendorCDR_20' ) start [2025-03-26 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763219', 'tblTempVendorCDR_20' ) end [2025-03-26 00:40:19] Production.INFO: ProcessCDR(1,14763219,1,1,2) [2025-03-26 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763219', 'tblTempUsageDetail_20' ) start [2025-03-26 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763219', 'tblTempUsageDetail_20' ) end [2025-03-26 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:40:23] Production.INFO: ==12062== Releasing lock... [2025-03-26 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:40:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:41:05 [end_date_ymd] => 2025-03-26 00:41:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:41:05' and `end` < '2025-03-26 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-26 00:41:18] Production.INFO: count ==516 [2025-03-26 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:41:05 - End Time 2025-03-26 00:41:05 [2025-03-26 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763224', 'tblTempUsageDetail_20' ) start [2025-03-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763224', 'tblTempUsageDetail_20' ) end [2025-03-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763224', 'tblTempVendorCDR_20' ) start [2025-03-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763224', 'tblTempVendorCDR_20' ) end [2025-03-26 00:41:18] Production.INFO: ProcessCDR(1,14763224,1,1,2) [2025-03-26 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763224', 'tblTempUsageDetail_20' ) start [2025-03-26 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763224', 'tblTempUsageDetail_20' ) end [2025-03-26 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:41:21] Production.INFO: ==12134== Releasing lock... [2025-03-26 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:41:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:42:05 [end_date_ymd] => 2025-03-26 00:42:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:42:05' and `end` < '2025-03-26 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-26 00:42:18] Production.INFO: count ==503 [2025-03-26 00:42:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:42:05 - End Time 2025-03-26 00:42:05 [2025-03-26 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763229', 'tblTempUsageDetail_20' ) start [2025-03-26 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763229', 'tblTempUsageDetail_20' ) end [2025-03-26 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763229', 'tblTempVendorCDR_20' ) start [2025-03-26 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763229', 'tblTempVendorCDR_20' ) end [2025-03-26 00:42:18] Production.INFO: ProcessCDR(1,14763229,1,1,2) [2025-03-26 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763229', 'tblTempUsageDetail_20' ) start [2025-03-26 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763229', 'tblTempUsageDetail_20' ) end [2025-03-26 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:42:21] Production.INFO: ==12212== Releasing lock... [2025-03-26 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:43:05 [end_date_ymd] => 2025-03-26 00:43:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:43:05' and `end` < '2025-03-26 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-26 00:43:18] Production.INFO: count ==501 [2025-03-26 00:43:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:43:05 - End Time 2025-03-26 00:43:05 [2025-03-26 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763234', 'tblTempUsageDetail_20' ) start [2025-03-26 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763234', 'tblTempUsageDetail_20' ) end [2025-03-26 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763234', 'tblTempVendorCDR_20' ) start [2025-03-26 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763234', 'tblTempVendorCDR_20' ) end [2025-03-26 00:43:18] Production.INFO: ProcessCDR(1,14763234,1,1,2) [2025-03-26 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763234', 'tblTempUsageDetail_20' ) start [2025-03-26 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763234', 'tblTempUsageDetail_20' ) end [2025-03-26 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:43:21] Production.INFO: ==12286== Releasing lock... [2025-03-26 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:44:05 [end_date_ymd] => 2025-03-26 00:44:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:44:05' and `end` < '2025-03-26 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-26 00:44:17] Production.INFO: count ==502 [2025-03-26 00:44:17] Production.ERROR: pbx CDR StartTime 2025-03-25 21:44:05 - End Time 2025-03-26 00:44:05 [2025-03-26 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763239', 'tblTempUsageDetail_20' ) start [2025-03-26 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763239', 'tblTempUsageDetail_20' ) end [2025-03-26 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763239', 'tblTempVendorCDR_20' ) start [2025-03-26 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763239', 'tblTempVendorCDR_20' ) end [2025-03-26 00:44:17] Production.INFO: ProcessCDR(1,14763239,1,1,2) [2025-03-26 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763239', 'tblTempUsageDetail_20' ) start [2025-03-26 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763239', 'tblTempUsageDetail_20' ) end [2025-03-26 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:44:22] Production.INFO: ==12397== Releasing lock... [2025-03-26 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:44:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:45:06 [end_date_ymd] => 2025-03-26 00:45:06 [RateCDR] => 1 ) [2025-03-26 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-25 21:45:06' and `end` < '2025-03-26 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-26 00:45:18] Production.INFO: count ==503 [2025-03-26 00:45:19] Production.ERROR: pbx CDR StartTime 2025-03-25 21:45:06 - End Time 2025-03-26 00:45:06 [2025-03-26 00:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763244', 'tblTempUsageDetail_20' ) start [2025-03-26 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763244', 'tblTempUsageDetail_20' ) end [2025-03-26 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763244', 'tblTempVendorCDR_20' ) start [2025-03-26 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763244', 'tblTempVendorCDR_20' ) end [2025-03-26 00:45:19] Production.INFO: ProcessCDR(1,14763244,1,1,2) [2025-03-26 00:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763244', 'tblTempUsageDetail_20' ) start [2025-03-26 00:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763244', 'tblTempUsageDetail_20' ) end [2025-03-26 00:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:45:24] Production.INFO: ==12470== Releasing lock... [2025-03-26 00:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:45:24] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:46:05 [end_date_ymd] => 2025-03-26 00:46:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:46:05' and `end` < '2025-03-26 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-26 00:46:18] Production.INFO: count ==517 [2025-03-26 00:46:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:46:05 - End Time 2025-03-26 00:46:05 [2025-03-26 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763249', 'tblTempUsageDetail_20' ) start [2025-03-26 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763249', 'tblTempUsageDetail_20' ) end [2025-03-26 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763249', 'tblTempVendorCDR_20' ) start [2025-03-26 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763249', 'tblTempVendorCDR_20' ) end [2025-03-26 00:46:18] Production.INFO: ProcessCDR(1,14763249,1,1,2) [2025-03-26 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763249', 'tblTempUsageDetail_20' ) start [2025-03-26 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763249', 'tblTempUsageDetail_20' ) end [2025-03-26 00:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:46:23] Production.INFO: ==12545== Releasing lock... [2025-03-26 00:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:46:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:47:05 [end_date_ymd] => 2025-03-26 00:47:05 [RateCDR] => 1 ) [2025-03-26 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:47:05' and `end` < '2025-03-26 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 00:47:18] Production.INFO: count ==518 [2025-03-26 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:47:05 - End Time 2025-03-26 00:47:05 [2025-03-26 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763254', 'tblTempUsageDetail_20' ) start [2025-03-26 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763254', 'tblTempUsageDetail_20' ) end [2025-03-26 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763254', 'tblTempVendorCDR_20' ) start [2025-03-26 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763254', 'tblTempVendorCDR_20' ) end [2025-03-26 00:47:18] Production.INFO: ProcessCDR(1,14763254,1,1,2) [2025-03-26 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763254', 'tblTempUsageDetail_20' ) start [2025-03-26 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763254', 'tblTempUsageDetail_20' ) end [2025-03-26 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:47:21] Production.INFO: ==12617== Releasing lock... [2025-03-26 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:47:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:48:05 [end_date_ymd] => 2025-03-26 00:48:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:48:05' and `end` < '2025-03-26 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-26 00:48:17] Production.INFO: count ==521 [2025-03-26 00:48:17] Production.ERROR: pbx CDR StartTime 2025-03-25 21:48:05 - End Time 2025-03-26 00:48:05 [2025-03-26 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763259', 'tblTempUsageDetail_20' ) start [2025-03-26 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763259', 'tblTempUsageDetail_20' ) end [2025-03-26 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763259', 'tblTempVendorCDR_20' ) start [2025-03-26 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763259', 'tblTempVendorCDR_20' ) end [2025-03-26 00:48:17] Production.INFO: ProcessCDR(1,14763259,1,1,2) [2025-03-26 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763259', 'tblTempUsageDetail_20' ) start [2025-03-26 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763259', 'tblTempUsageDetail_20' ) end [2025-03-26 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:48:21] Production.INFO: ==12686== Releasing lock... [2025-03-26 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:48:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:49:05 [end_date_ymd] => 2025-03-26 00:49:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:49:05' and `end` < '2025-03-26 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-26 00:49:18] Production.INFO: count ==520 [2025-03-26 00:49:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:49:05 - End Time 2025-03-26 00:49:05 [2025-03-26 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763264', 'tblTempUsageDetail_20' ) start [2025-03-26 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763264', 'tblTempUsageDetail_20' ) end [2025-03-26 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763264', 'tblTempVendorCDR_20' ) start [2025-03-26 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763264', 'tblTempVendorCDR_20' ) end [2025-03-26 00:49:18] Production.INFO: ProcessCDR(1,14763264,1,1,2) [2025-03-26 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763264', 'tblTempUsageDetail_20' ) start [2025-03-26 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763264', 'tblTempUsageDetail_20' ) end [2025-03-26 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:49:21] Production.INFO: ==12762== Releasing lock... [2025-03-26 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:50:05 [end_date_ymd] => 2025-03-26 00:50:05 [RateCDR] => 1 ) [2025-03-26 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:50:05' and `end` < '2025-03-26 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 00:50:18] Production.INFO: count ==524 [2025-03-26 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:50:05 - End Time 2025-03-26 00:50:05 [2025-03-26 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763269', 'tblTempUsageDetail_20' ) start [2025-03-26 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763269', 'tblTempUsageDetail_20' ) end [2025-03-26 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763269', 'tblTempVendorCDR_20' ) start [2025-03-26 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763269', 'tblTempVendorCDR_20' ) end [2025-03-26 00:50:18] Production.INFO: ProcessCDR(1,14763269,1,1,2) [2025-03-26 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763269', 'tblTempUsageDetail_20' ) start [2025-03-26 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763269', 'tblTempUsageDetail_20' ) end [2025-03-26 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:50:22] Production.INFO: ==12837== Releasing lock... [2025-03-26 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:51:05 [end_date_ymd] => 2025-03-26 00:51:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:51:05' and `end` < '2025-03-26 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-26 00:51:17] Production.INFO: count ==528 [2025-03-26 00:51:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:51:05 - End Time 2025-03-26 00:51:05 [2025-03-26 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763275', 'tblTempUsageDetail_20' ) start [2025-03-26 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763275', 'tblTempUsageDetail_20' ) end [2025-03-26 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763275', 'tblTempVendorCDR_20' ) start [2025-03-26 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763275', 'tblTempVendorCDR_20' ) end [2025-03-26 00:51:18] Production.INFO: ProcessCDR(1,14763275,1,1,2) [2025-03-26 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763275', 'tblTempUsageDetail_20' ) start [2025-03-26 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763275', 'tblTempUsageDetail_20' ) end [2025-03-26 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:51:21] Production.INFO: ==12910== Releasing lock... [2025-03-26 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:51:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:52:05 [end_date_ymd] => 2025-03-26 00:52:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:52:05' and `end` < '2025-03-26 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-26 00:52:18] Production.INFO: count ==528 [2025-03-26 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:52:05 - End Time 2025-03-26 00:52:05 [2025-03-26 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763280', 'tblTempUsageDetail_20' ) start [2025-03-26 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763280', 'tblTempUsageDetail_20' ) end [2025-03-26 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763280', 'tblTempVendorCDR_20' ) start [2025-03-26 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763280', 'tblTempVendorCDR_20' ) end [2025-03-26 00:52:18] Production.INFO: ProcessCDR(1,14763280,1,1,2) [2025-03-26 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763280', 'tblTempUsageDetail_20' ) start [2025-03-26 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763280', 'tblTempUsageDetail_20' ) end [2025-03-26 00:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:52:23] Production.INFO: ==12987== Releasing lock... [2025-03-26 00:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:52:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:53:05 [end_date_ymd] => 2025-03-26 00:53:05 [RateCDR] => 1 ) [2025-03-26 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:53:05' and `end` < '2025-03-26 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 00:53:17] Production.INFO: count ==527 [2025-03-26 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:53:05 - End Time 2025-03-26 00:53:05 [2025-03-26 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763285', 'tblTempUsageDetail_20' ) start [2025-03-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763285', 'tblTempUsageDetail_20' ) end [2025-03-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763285', 'tblTempVendorCDR_20' ) start [2025-03-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763285', 'tblTempVendorCDR_20' ) end [2025-03-26 00:53:18] Production.INFO: ProcessCDR(1,14763285,1,1,2) [2025-03-26 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763285', 'tblTempUsageDetail_20' ) start [2025-03-26 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763285', 'tblTempUsageDetail_20' ) end [2025-03-26 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:53:21] Production.INFO: ==13064== Releasing lock... [2025-03-26 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:53:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:54:06 [end_date_ymd] => 2025-03-26 00:54:06 [RateCDR] => 1 ) [2025-03-26 00:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:54:06' and `end` < '2025-03-26 00:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 00:54:18] Production.INFO: count ==533 [2025-03-26 00:54:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:54:06 - End Time 2025-03-26 00:54:06 [2025-03-26 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763290', 'tblTempUsageDetail_20' ) start [2025-03-26 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763290', 'tblTempUsageDetail_20' ) end [2025-03-26 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763290', 'tblTempVendorCDR_20' ) start [2025-03-26 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763290', 'tblTempVendorCDR_20' ) end [2025-03-26 00:54:18] Production.INFO: ProcessCDR(1,14763290,1,1,2) [2025-03-26 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763290', 'tblTempUsageDetail_20' ) start [2025-03-26 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763290', 'tblTempUsageDetail_20' ) end [2025-03-26 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:54:22] Production.INFO: ==13136== Releasing lock... [2025-03-26 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:54:22] Production.INFO: 32 MB #Memory Used# [2025-03-26 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:55:05 [end_date_ymd] => 2025-03-26 00:55:05 [RateCDR] => 1 ) [2025-03-26 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 21:55:05' and `end` < '2025-03-26 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-26 00:55:18] Production.INFO: count ==529 [2025-03-26 00:55:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:55:05 - End Time 2025-03-26 00:55:05 [2025-03-26 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763295', 'tblTempUsageDetail_20' ) start [2025-03-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763295', 'tblTempUsageDetail_20' ) end [2025-03-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763295', 'tblTempVendorCDR_20' ) start [2025-03-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763295', 'tblTempVendorCDR_20' ) end [2025-03-26 00:55:18] Production.INFO: ProcessCDR(1,14763295,1,1,2) [2025-03-26 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763295', 'tblTempUsageDetail_20' ) start [2025-03-26 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763295', 'tblTempUsageDetail_20' ) end [2025-03-26 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:55:21] Production.INFO: ==13209== Releasing lock... [2025-03-26 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:55:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:56:06 [end_date_ymd] => 2025-03-26 00:56:06 [RateCDR] => 1 ) [2025-03-26 00: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-25 21:56:06' and `end` < '2025-03-26 00: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-26 00:56:18] Production.INFO: count ==529 [2025-03-26 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:56:06 - End Time 2025-03-26 00:56:06 [2025-03-26 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763300', 'tblTempUsageDetail_20' ) start [2025-03-26 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763300', 'tblTempUsageDetail_20' ) end [2025-03-26 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763300', 'tblTempVendorCDR_20' ) start [2025-03-26 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763300', 'tblTempVendorCDR_20' ) end [2025-03-26 00:56:18] Production.INFO: ProcessCDR(1,14763300,1,1,2) [2025-03-26 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763300', 'tblTempUsageDetail_20' ) start [2025-03-26 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763300', 'tblTempUsageDetail_20' ) end [2025-03-26 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:56:22] Production.INFO: ==13283== Releasing lock... [2025-03-26 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:56:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:57:05 [end_date_ymd] => 2025-03-26 00:57:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:57:05' and `end` < '2025-03-26 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-26 00:57:17] Production.INFO: count ==532 [2025-03-26 00:57:17] Production.ERROR: pbx CDR StartTime 2025-03-25 21:57:05 - End Time 2025-03-26 00:57:05 [2025-03-26 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763305', 'tblTempUsageDetail_20' ) start [2025-03-26 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763305', 'tblTempUsageDetail_20' ) end [2025-03-26 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763305', 'tblTempVendorCDR_20' ) start [2025-03-26 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763305', 'tblTempVendorCDR_20' ) end [2025-03-26 00:57:17] Production.INFO: ProcessCDR(1,14763305,1,1,2) [2025-03-26 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763305', 'tblTempUsageDetail_20' ) start [2025-03-26 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763305', 'tblTempUsageDetail_20' ) end [2025-03-26 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:57:21] Production.INFO: ==13353== Releasing lock... [2025-03-26 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:57:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:58:05 [end_date_ymd] => 2025-03-26 00:58:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:58:05' and `end` < '2025-03-26 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-26 00:58:18] Production.INFO: count ==532 [2025-03-26 00:58:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:58:05 - End Time 2025-03-26 00:58:05 [2025-03-26 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763310', 'tblTempUsageDetail_20' ) start [2025-03-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763310', 'tblTempUsageDetail_20' ) end [2025-03-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763310', 'tblTempVendorCDR_20' ) start [2025-03-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763310', 'tblTempVendorCDR_20' ) end [2025-03-26 00:58:18] Production.INFO: ProcessCDR(1,14763310,1,1,2) [2025-03-26 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763310', 'tblTempUsageDetail_20' ) start [2025-03-26 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763310', 'tblTempUsageDetail_20' ) end [2025-03-26 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:58:21] Production.INFO: ==13427== Releasing lock... [2025-03-26 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:58:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 21:59:05 [end_date_ymd] => 2025-03-26 00:59:05 [RateCDR] => 1 ) [2025-03-26 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-25 21:59:05' and `end` < '2025-03-26 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-26 00:59:18] Production.INFO: count ==532 [2025-03-26 00:59:18] Production.ERROR: pbx CDR StartTime 2025-03-25 21:59:05 - End Time 2025-03-26 00:59:05 [2025-03-26 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763315', 'tblTempUsageDetail_20' ) start [2025-03-26 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763315', 'tblTempUsageDetail_20' ) end [2025-03-26 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763315', 'tblTempVendorCDR_20' ) start [2025-03-26 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763315', 'tblTempVendorCDR_20' ) end [2025-03-26 00:59:18] Production.INFO: ProcessCDR(1,14763315,1,1,2) [2025-03-26 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763315', 'tblTempUsageDetail_20' ) start [2025-03-26 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763315', 'tblTempUsageDetail_20' ) end [2025-03-26 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 00:59:21] Production.INFO: ==13502== Releasing lock... [2025-03-26 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 00:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:00:06 [end_date_ymd] => 2025-03-26 01:00:06 [RateCDR] => 1 ) [2025-03-26 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-25 22:00:06' and `end` < '2025-03-26 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-26 01:00:18] Production.INFO: count ==543 [2025-03-26 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:00:06 - End Time 2025-03-26 01:00:06 [2025-03-26 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763321', 'tblTempUsageDetail_20' ) start [2025-03-26 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763321', 'tblTempUsageDetail_20' ) end [2025-03-26 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763321', 'tblTempVendorCDR_20' ) start [2025-03-26 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763321', 'tblTempVendorCDR_20' ) end [2025-03-26 01:00:18] Production.INFO: ProcessCDR(1,14763321,1,1,2) [2025-03-26 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763321', 'tblTempUsageDetail_20' ) start [2025-03-26 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763321', 'tblTempUsageDetail_20' ) end [2025-03-26 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:00:23] Production.INFO: ==13617== Releasing lock... [2025-03-26 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:00:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:01:05 [end_date_ymd] => 2025-03-26 01:01:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:01:05' and `end` < '2025-03-26 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-26 01:01:17] Production.INFO: count ==546 [2025-03-26 01:01:17] Production.ERROR: pbx CDR StartTime 2025-03-25 22:01:05 - End Time 2025-03-26 01:01:05 [2025-03-26 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763326', 'tblTempUsageDetail_20' ) start [2025-03-26 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763326', 'tblTempUsageDetail_20' ) end [2025-03-26 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763326', 'tblTempVendorCDR_20' ) start [2025-03-26 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763326', 'tblTempVendorCDR_20' ) end [2025-03-26 01:01:17] Production.INFO: ProcessCDR(1,14763326,1,1,2) [2025-03-26 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763326', 'tblTempUsageDetail_20' ) start [2025-03-26 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763326', 'tblTempUsageDetail_20' ) end [2025-03-26 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:01:21] Production.INFO: ==13703== Releasing lock... [2025-03-26 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:01:21] Production.INFO: 33 MB #Memory Used# [2025-03-26 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:02:05 [end_date_ymd] => 2025-03-26 01:02:05 [RateCDR] => 1 ) [2025-03-26 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:02:05' and `end` < '2025-03-26 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:02:18] Production.INFO: count ==545 [2025-03-26 01:02:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:02:05 - End Time 2025-03-26 01:02:05 [2025-03-26 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763331', 'tblTempUsageDetail_20' ) start [2025-03-26 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763331', 'tblTempUsageDetail_20' ) end [2025-03-26 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763331', 'tblTempVendorCDR_20' ) start [2025-03-26 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763331', 'tblTempVendorCDR_20' ) end [2025-03-26 01:02:18] Production.INFO: ProcessCDR(1,14763331,1,1,2) [2025-03-26 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763331', 'tblTempUsageDetail_20' ) start [2025-03-26 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763331', 'tblTempUsageDetail_20' ) end [2025-03-26 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:02:21] Production.INFO: ==13784== Releasing lock... [2025-03-26 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:02:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:03:06 [end_date_ymd] => 2025-03-26 01:03:06 [RateCDR] => 1 ) [2025-03-26 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-25 22:03:06' and `end` < '2025-03-26 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-26 01:03:18] Production.INFO: count ==543 [2025-03-26 01:03:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:03:06 - End Time 2025-03-26 01:03:06 [2025-03-26 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763336', 'tblTempUsageDetail_20' ) start [2025-03-26 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763336', 'tblTempUsageDetail_20' ) end [2025-03-26 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763336', 'tblTempVendorCDR_20' ) start [2025-03-26 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763336', 'tblTempVendorCDR_20' ) end [2025-03-26 01:03:18] Production.INFO: ProcessCDR(1,14763336,1,1,2) [2025-03-26 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763336', 'tblTempUsageDetail_20' ) start [2025-03-26 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763336', 'tblTempUsageDetail_20' ) end [2025-03-26 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:03:21] Production.INFO: ==13857== Releasing lock... [2025-03-26 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:03:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:04:05 [end_date_ymd] => 2025-03-26 01:04:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:04:05' and `end` < '2025-03-26 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-26 01:04:17] Production.INFO: count ==543 [2025-03-26 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:04:05 - End Time 2025-03-26 01:04:05 [2025-03-26 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763341', 'tblTempUsageDetail_20' ) start [2025-03-26 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763341', 'tblTempUsageDetail_20' ) end [2025-03-26 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763341', 'tblTempVendorCDR_20' ) start [2025-03-26 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763341', 'tblTempVendorCDR_20' ) end [2025-03-26 01:04:18] Production.INFO: ProcessCDR(1,14763341,1,1,2) [2025-03-26 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763341', 'tblTempUsageDetail_20' ) start [2025-03-26 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763341', 'tblTempUsageDetail_20' ) end [2025-03-26 01:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:04:23] Production.INFO: ==13930== Releasing lock... [2025-03-26 01:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:04:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:05:06 [end_date_ymd] => 2025-03-26 01:05:06 [RateCDR] => 1 ) [2025-03-26 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-25 22:05:06' and `end` < '2025-03-26 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-26 01:05:18] Production.INFO: count ==542 [2025-03-26 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:05:06 - End Time 2025-03-26 01:05:06 [2025-03-26 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763346', 'tblTempUsageDetail_20' ) start [2025-03-26 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763346', 'tblTempUsageDetail_20' ) end [2025-03-26 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763346', 'tblTempVendorCDR_20' ) start [2025-03-26 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763346', 'tblTempVendorCDR_20' ) end [2025-03-26 01:05:18] Production.INFO: ProcessCDR(1,14763346,1,1,2) [2025-03-26 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763346', 'tblTempUsageDetail_20' ) start [2025-03-26 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763346', 'tblTempUsageDetail_20' ) end [2025-03-26 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:05:21] Production.INFO: ==14004== Releasing lock... [2025-03-26 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:05:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:06:05 [end_date_ymd] => 2025-03-26 01:06:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:06:05' and `end` < '2025-03-26 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-26 01:06:18] Production.INFO: count ==542 [2025-03-26 01:06:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:06:05 - End Time 2025-03-26 01:06:05 [2025-03-26 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763351', 'tblTempUsageDetail_20' ) start [2025-03-26 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763351', 'tblTempUsageDetail_20' ) end [2025-03-26 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763351', 'tblTempVendorCDR_20' ) start [2025-03-26 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763351', 'tblTempVendorCDR_20' ) end [2025-03-26 01:06:18] Production.INFO: ProcessCDR(1,14763351,1,1,2) [2025-03-26 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763351', 'tblTempUsageDetail_20' ) start [2025-03-26 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763351', 'tblTempUsageDetail_20' ) end [2025-03-26 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:06:21] Production.INFO: ==14077== Releasing lock... [2025-03-26 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:06:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:07:05 [end_date_ymd] => 2025-03-26 01:07:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:07:05' and `end` < '2025-03-26 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-26 01:07:17] Production.INFO: count ==541 [2025-03-26 01:07:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:07:05 - End Time 2025-03-26 01:07:05 [2025-03-26 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763352', 'tblTempUsageDetail_20' ) start [2025-03-26 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763352', 'tblTempUsageDetail_20' ) end [2025-03-26 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763352', 'tblTempVendorCDR_20' ) start [2025-03-26 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763352', 'tblTempVendorCDR_20' ) end [2025-03-26 01:07:18] Production.INFO: ProcessCDR(1,14763352,1,1,2) [2025-03-26 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763352', 'tblTempUsageDetail_20' ) start [2025-03-26 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763352', 'tblTempUsageDetail_20' ) end [2025-03-26 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:07:21] Production.INFO: ==14151== Releasing lock... [2025-03-26 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:07:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:08:05 [end_date_ymd] => 2025-03-26 01:08:05 [RateCDR] => 1 ) [2025-03-26 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:08:05' and `end` < '2025-03-26 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:08:17] Production.INFO: count ==540 [2025-03-26 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-25 22:08:05 - End Time 2025-03-26 01:08:05 [2025-03-26 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763361', 'tblTempUsageDetail_20' ) start [2025-03-26 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763361', 'tblTempUsageDetail_20' ) end [2025-03-26 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763361', 'tblTempVendorCDR_20' ) start [2025-03-26 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763361', 'tblTempVendorCDR_20' ) end [2025-03-26 01:08:17] Production.INFO: ProcessCDR(1,14763361,1,1,2) [2025-03-26 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763361', 'tblTempUsageDetail_20' ) start [2025-03-26 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763361', 'tblTempUsageDetail_20' ) end [2025-03-26 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:08:21] Production.INFO: ==14226== Releasing lock... [2025-03-26 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:08:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:09:05 [end_date_ymd] => 2025-03-26 01:09:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:09:05' and `end` < '2025-03-26 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-26 01:09:18] Production.INFO: count ==540 [2025-03-26 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:09:05 - End Time 2025-03-26 01:09:05 [2025-03-26 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763366', 'tblTempUsageDetail_20' ) start [2025-03-26 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763366', 'tblTempUsageDetail_20' ) end [2025-03-26 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763366', 'tblTempVendorCDR_20' ) start [2025-03-26 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763366', 'tblTempVendorCDR_20' ) end [2025-03-26 01:09:18] Production.INFO: ProcessCDR(1,14763366,1,1,2) [2025-03-26 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763366', 'tblTempUsageDetail_20' ) start [2025-03-26 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763366', 'tblTempUsageDetail_20' ) end [2025-03-26 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:09:21] Production.INFO: ==14300== Releasing lock... [2025-03-26 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:09:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:10:06 [end_date_ymd] => 2025-03-26 01:10:06 [RateCDR] => 1 ) [2025-03-26 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-25 22:10:06' and `end` < '2025-03-26 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-26 01:10:18] Production.INFO: count ==541 [2025-03-26 01:10:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:10:06 - End Time 2025-03-26 01:10:06 [2025-03-26 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763372', 'tblTempUsageDetail_20' ) start [2025-03-26 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763372', 'tblTempUsageDetail_20' ) end [2025-03-26 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763372', 'tblTempVendorCDR_20' ) start [2025-03-26 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763372', 'tblTempVendorCDR_20' ) end [2025-03-26 01:10:19] Production.INFO: ProcessCDR(1,14763372,1,1,2) [2025-03-26 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763372', 'tblTempUsageDetail_20' ) start [2025-03-26 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763372', 'tblTempUsageDetail_20' ) end [2025-03-26 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:10:23] Production.INFO: ==14377== Releasing lock... [2025-03-26 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:10:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:11:05 [end_date_ymd] => 2025-03-26 01:11:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:11:05' and `end` < '2025-03-26 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-26 01:11:17] Production.INFO: count ==541 [2025-03-26 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:11:05 - End Time 2025-03-26 01:11:05 [2025-03-26 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763377', 'tblTempUsageDetail_20' ) start [2025-03-26 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763377', 'tblTempUsageDetail_20' ) end [2025-03-26 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763377', 'tblTempVendorCDR_20' ) start [2025-03-26 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763377', 'tblTempVendorCDR_20' ) end [2025-03-26 01:11:18] Production.INFO: ProcessCDR(1,14763377,1,1,2) [2025-03-26 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763377', 'tblTempUsageDetail_20' ) start [2025-03-26 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763377', 'tblTempUsageDetail_20' ) end [2025-03-26 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:11:21] Production.INFO: ==14473== Releasing lock... [2025-03-26 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:11:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:12:06 [end_date_ymd] => 2025-03-26 01:12:06 [RateCDR] => 1 ) [2025-03-26 01:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:12:06' and `end` < '2025-03-26 01:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:12:18] Production.INFO: count ==540 [2025-03-26 01:12:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:12:06 - End Time 2025-03-26 01:12:06 [2025-03-26 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763382', 'tblTempUsageDetail_20' ) start [2025-03-26 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763382', 'tblTempUsageDetail_20' ) end [2025-03-26 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763382', 'tblTempVendorCDR_20' ) start [2025-03-26 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763382', 'tblTempVendorCDR_20' ) end [2025-03-26 01:12:18] Production.INFO: ProcessCDR(1,14763382,1,1,2) [2025-03-26 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763382', 'tblTempUsageDetail_20' ) start [2025-03-26 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763382', 'tblTempUsageDetail_20' ) end [2025-03-26 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:12:22] Production.INFO: ==14560== Releasing lock... [2025-03-26 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:12:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:13:05 [end_date_ymd] => 2025-03-26 01:13:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:13:05' and `end` < '2025-03-26 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-26 01:13:18] Production.INFO: count ==540 [2025-03-26 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:13:05 - End Time 2025-03-26 01:13:05 [2025-03-26 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763387', 'tblTempUsageDetail_20' ) start [2025-03-26 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763387', 'tblTempUsageDetail_20' ) end [2025-03-26 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763387', 'tblTempVendorCDR_20' ) start [2025-03-26 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763387', 'tblTempVendorCDR_20' ) end [2025-03-26 01:13:18] Production.INFO: ProcessCDR(1,14763387,1,1,2) [2025-03-26 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763387', 'tblTempUsageDetail_20' ) start [2025-03-26 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763387', 'tblTempUsageDetail_20' ) end [2025-03-26 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:13:22] Production.INFO: ==14649== Releasing lock... [2025-03-26 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:13:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:14:05 [end_date_ymd] => 2025-03-26 01:14:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:14:05' and `end` < '2025-03-26 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-26 01:14:18] Production.INFO: count ==526 [2025-03-26 01:14:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:14:05 - End Time 2025-03-26 01:14:05 [2025-03-26 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763392', 'tblTempUsageDetail_20' ) start [2025-03-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763392', 'tblTempUsageDetail_20' ) end [2025-03-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763392', 'tblTempVendorCDR_20' ) start [2025-03-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763392', 'tblTempVendorCDR_20' ) end [2025-03-26 01:14:18] Production.INFO: ProcessCDR(1,14763392,1,1,2) [2025-03-26 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763392', 'tblTempUsageDetail_20' ) start [2025-03-26 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763392', 'tblTempUsageDetail_20' ) end [2025-03-26 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:14:21] Production.INFO: ==14737== Releasing lock... [2025-03-26 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:14:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:15:05 [end_date_ymd] => 2025-03-26 01:15:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:15:05' and `end` < '2025-03-26 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-26 01:15:17] Production.INFO: count ==532 [2025-03-26 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:15:05 - End Time 2025-03-26 01:15:05 [2025-03-26 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763397', 'tblTempUsageDetail_20' ) start [2025-03-26 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763397', 'tblTempUsageDetail_20' ) end [2025-03-26 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763397', 'tblTempVendorCDR_20' ) start [2025-03-26 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763397', 'tblTempVendorCDR_20' ) end [2025-03-26 01:15:18] Production.INFO: ProcessCDR(1,14763397,1,1,2) [2025-03-26 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763397', 'tblTempUsageDetail_20' ) start [2025-03-26 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763397', 'tblTempUsageDetail_20' ) end [2025-03-26 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:15:21] Production.INFO: ==14864== Releasing lock... [2025-03-26 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:15:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:16:05 [end_date_ymd] => 2025-03-26 01:16:05 [RateCDR] => 1 ) [2025-03-26 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:16:05' and `end` < '2025-03-26 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:16:18] Production.INFO: count ==537 [2025-03-26 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:16:05 - End Time 2025-03-26 01:16:05 [2025-03-26 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763402', 'tblTempUsageDetail_20' ) start [2025-03-26 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763402', 'tblTempUsageDetail_20' ) end [2025-03-26 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763402', 'tblTempVendorCDR_20' ) start [2025-03-26 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763402', 'tblTempVendorCDR_20' ) end [2025-03-26 01:16:18] Production.INFO: ProcessCDR(1,14763402,1,1,2) [2025-03-26 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763402', 'tblTempUsageDetail_20' ) start [2025-03-26 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763402', 'tblTempUsageDetail_20' ) end [2025-03-26 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:16:21] Production.INFO: ==14958== Releasing lock... [2025-03-26 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:16:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:17:05 [end_date_ymd] => 2025-03-26 01:17:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:17:05' and `end` < '2025-03-26 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-26 01:17:17] Production.INFO: count ==537 [2025-03-26 01:17:17] Production.ERROR: pbx CDR StartTime 2025-03-25 22:17:05 - End Time 2025-03-26 01:17:05 [2025-03-26 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763407', 'tblTempUsageDetail_20' ) start [2025-03-26 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763407', 'tblTempUsageDetail_20' ) end [2025-03-26 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763407', 'tblTempVendorCDR_20' ) start [2025-03-26 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763407', 'tblTempVendorCDR_20' ) end [2025-03-26 01:17:17] Production.INFO: ProcessCDR(1,14763407,1,1,2) [2025-03-26 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763407', 'tblTempUsageDetail_20' ) start [2025-03-26 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763407', 'tblTempUsageDetail_20' ) end [2025-03-26 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:17:21] Production.INFO: ==15049== Releasing lock... [2025-03-26 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:18:05 [end_date_ymd] => 2025-03-26 01:18:05 [RateCDR] => 1 ) [2025-03-26 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:18:05' and `end` < '2025-03-26 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:18:18] Production.INFO: count ==538 [2025-03-26 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:18:05 - End Time 2025-03-26 01:18:05 [2025-03-26 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763412', 'tblTempUsageDetail_20' ) start [2025-03-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763412', 'tblTempUsageDetail_20' ) end [2025-03-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763412', 'tblTempVendorCDR_20' ) start [2025-03-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763412', 'tblTempVendorCDR_20' ) end [2025-03-26 01:18:18] Production.INFO: ProcessCDR(1,14763412,1,1,2) [2025-03-26 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763412', 'tblTempUsageDetail_20' ) start [2025-03-26 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763412', 'tblTempUsageDetail_20' ) end [2025-03-26 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:18:21] Production.INFO: ==15155== Releasing lock... [2025-03-26 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:18:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 01:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:19:04 [end_date_ymd] => 2025-03-26 01:19:04 [RateCDR] => 1 ) [2025-03-26 01: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-25 22:19:04' and `end` < '2025-03-26 01: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-26 01:19:17] Production.INFO: count ==524 [2025-03-26 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-25 22:19:04 - End Time 2025-03-26 01:19:04 [2025-03-26 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763417', 'tblTempUsageDetail_20' ) start [2025-03-26 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763417', 'tblTempUsageDetail_20' ) end [2025-03-26 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763417', 'tblTempVendorCDR_20' ) start [2025-03-26 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763417', 'tblTempVendorCDR_20' ) end [2025-03-26 01:19:17] Production.INFO: ProcessCDR(1,14763417,1,1,2) [2025-03-26 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763417', 'tblTempUsageDetail_20' ) start [2025-03-26 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763417', 'tblTempUsageDetail_20' ) end [2025-03-26 01:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:19:20] Production.INFO: ==15243== Releasing lock... [2025-03-26 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:19:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:20:07 [end_date_ymd] => 2025-03-26 01:20:07 [RateCDR] => 1 ) [2025-03-26 01:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:20:07' and `end` < '2025-03-26 01:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:20:19] Production.INFO: count ==499 [2025-03-26 01:20:19] Production.ERROR: pbx CDR StartTime 2025-03-25 22:20:07 - End Time 2025-03-26 01:20:07 [2025-03-26 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763422', 'tblTempUsageDetail_20' ) start [2025-03-26 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763422', 'tblTempUsageDetail_20' ) end [2025-03-26 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763422', 'tblTempVendorCDR_20' ) start [2025-03-26 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763422', 'tblTempVendorCDR_20' ) end [2025-03-26 01:20:19] Production.INFO: ProcessCDR(1,14763422,1,1,2) [2025-03-26 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763422', 'tblTempUsageDetail_20' ) start [2025-03-26 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763422', 'tblTempUsageDetail_20' ) end [2025-03-26 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:20:23] Production.INFO: ==15332== Releasing lock... [2025-03-26 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:20:23] Production.INFO: 32 MB #Memory Used# [2025-03-26 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:21:05 [end_date_ymd] => 2025-03-26 01:21:05 [RateCDR] => 1 ) [2025-03-26 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:21:05' and `end` < '2025-03-26 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:21:17] Production.INFO: count ==491 [2025-03-26 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-25 22:21:05 - End Time 2025-03-26 01:21:05 [2025-03-26 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763428', 'tblTempUsageDetail_20' ) start [2025-03-26 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763428', 'tblTempUsageDetail_20' ) end [2025-03-26 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763428', 'tblTempVendorCDR_20' ) start [2025-03-26 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763428', 'tblTempVendorCDR_20' ) end [2025-03-26 01:21:17] Production.INFO: ProcessCDR(1,14763428,1,1,2) [2025-03-26 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763428', 'tblTempUsageDetail_20' ) start [2025-03-26 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763428', 'tblTempUsageDetail_20' ) end [2025-03-26 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:21:20] Production.INFO: ==15423== Releasing lock... [2025-03-26 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:21:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:22:05 [end_date_ymd] => 2025-03-26 01:22:05 [RateCDR] => 1 ) [2025-03-26 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:22:05' and `end` < '2025-03-26 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:22:18] Production.INFO: count ==485 [2025-03-26 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:22:05 - End Time 2025-03-26 01:22:05 [2025-03-26 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763433', 'tblTempUsageDetail_20' ) start [2025-03-26 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763433', 'tblTempUsageDetail_20' ) end [2025-03-26 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763433', 'tblTempVendorCDR_20' ) start [2025-03-26 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763433', 'tblTempVendorCDR_20' ) end [2025-03-26 01:22:18] Production.INFO: ProcessCDR(1,14763433,1,1,2) [2025-03-26 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763433', 'tblTempUsageDetail_20' ) start [2025-03-26 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763433', 'tblTempUsageDetail_20' ) end [2025-03-26 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:22:21] Production.INFO: ==15518== Releasing lock... [2025-03-26 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:22:21] Production.INFO: 32 MB #Memory Used# [2025-03-26 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:23:05 [end_date_ymd] => 2025-03-26 01:23:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:23:05' and `end` < '2025-03-26 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-26 01:23:17] Production.INFO: count ==482 [2025-03-26 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-25 22:23:05 - End Time 2025-03-26 01:23:05 [2025-03-26 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763438', 'tblTempUsageDetail_20' ) start [2025-03-26 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763438', 'tblTempUsageDetail_20' ) end [2025-03-26 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763438', 'tblTempVendorCDR_20' ) start [2025-03-26 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763438', 'tblTempVendorCDR_20' ) end [2025-03-26 01:23:17] Production.INFO: ProcessCDR(1,14763438,1,1,2) [2025-03-26 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763438', 'tblTempUsageDetail_20' ) start [2025-03-26 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763438', 'tblTempUsageDetail_20' ) end [2025-03-26 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:23:21] Production.INFO: ==15605== Releasing lock... [2025-03-26 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:23:21] Production.INFO: 32 MB #Memory Used# [2025-03-26 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:24:05 [end_date_ymd] => 2025-03-26 01:24:05 [RateCDR] => 1 ) [2025-03-26 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:24:05' and `end` < '2025-03-26 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:24:18] Production.INFO: count ==484 [2025-03-26 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:24:05 - End Time 2025-03-26 01:24:05 [2025-03-26 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763443', 'tblTempUsageDetail_20' ) start [2025-03-26 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763443', 'tblTempUsageDetail_20' ) end [2025-03-26 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763443', 'tblTempVendorCDR_20' ) start [2025-03-26 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763443', 'tblTempVendorCDR_20' ) end [2025-03-26 01:24:18] Production.INFO: ProcessCDR(1,14763443,1,1,2) [2025-03-26 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763443', 'tblTempUsageDetail_20' ) start [2025-03-26 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763443', 'tblTempUsageDetail_20' ) end [2025-03-26 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:24:21] Production.INFO: ==15698== Releasing lock... [2025-03-26 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:24:21] Production.INFO: 32 MB #Memory Used# [2025-03-26 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:25:05 [end_date_ymd] => 2025-03-26 01:25:05 [RateCDR] => 1 ) [2025-03-26 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:25:05' and `end` < '2025-03-26 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:25:17] Production.INFO: count ==483 [2025-03-26 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:25:05 - End Time 2025-03-26 01:25:05 [2025-03-26 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763448', 'tblTempUsageDetail_20' ) start [2025-03-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763448', 'tblTempUsageDetail_20' ) end [2025-03-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763448', 'tblTempVendorCDR_20' ) start [2025-03-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763448', 'tblTempVendorCDR_20' ) end [2025-03-26 01:25:18] Production.INFO: ProcessCDR(1,14763448,1,1,2) [2025-03-26 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763448', 'tblTempUsageDetail_20' ) start [2025-03-26 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763448', 'tblTempUsageDetail_20' ) end [2025-03-26 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:25:22] Production.INFO: ==15789== Releasing lock... [2025-03-26 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:25:22] Production.INFO: 32 MB #Memory Used# [2025-03-26 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:26:05 [end_date_ymd] => 2025-03-26 01:26:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:26:05' and `end` < '2025-03-26 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-26 01:26:18] Production.INFO: count ==469 [2025-03-26 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:26:05 - End Time 2025-03-26 01:26:05 [2025-03-26 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763453', 'tblTempUsageDetail_20' ) start [2025-03-26 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763453', 'tblTempUsageDetail_20' ) end [2025-03-26 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763453', 'tblTempVendorCDR_20' ) start [2025-03-26 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763453', 'tblTempVendorCDR_20' ) end [2025-03-26 01:26:18] Production.INFO: ProcessCDR(1,14763453,1,1,2) [2025-03-26 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763453', 'tblTempUsageDetail_20' ) start [2025-03-26 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763453', 'tblTempUsageDetail_20' ) end [2025-03-26 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:26:21] Production.INFO: ==15876== Releasing lock... [2025-03-26 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:26:21] Production.INFO: 32 MB #Memory Used# [2025-03-26 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:27:05 [end_date_ymd] => 2025-03-26 01:27:05 [RateCDR] => 1 ) [2025-03-26 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:27:05' and `end` < '2025-03-26 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:27:17] Production.INFO: count ==461 [2025-03-26 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:27:05 - End Time 2025-03-26 01:27:05 [2025-03-26 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763458', 'tblTempUsageDetail_20' ) start [2025-03-26 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763458', 'tblTempUsageDetail_20' ) end [2025-03-26 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763458', 'tblTempVendorCDR_20' ) start [2025-03-26 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763458', 'tblTempVendorCDR_20' ) end [2025-03-26 01:27:18] Production.INFO: ProcessCDR(1,14763458,1,1,2) [2025-03-26 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763458', 'tblTempUsageDetail_20' ) start [2025-03-26 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763458', 'tblTempUsageDetail_20' ) end [2025-03-26 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:27:21] Production.INFO: ==15973== Releasing lock... [2025-03-26 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:27:21] Production.INFO: 32 MB #Memory Used# [2025-03-26 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:28:05 [end_date_ymd] => 2025-03-26 01:28:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:28:05' and `end` < '2025-03-26 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-26 01:28:18] Production.INFO: count ==450 [2025-03-26 01:28:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:28:05 - End Time 2025-03-26 01:28:05 [2025-03-26 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763463', 'tblTempUsageDetail_20' ) start [2025-03-26 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763463', 'tblTempUsageDetail_20' ) end [2025-03-26 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763463', 'tblTempVendorCDR_20' ) start [2025-03-26 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763463', 'tblTempVendorCDR_20' ) end [2025-03-26 01:28:18] Production.INFO: ProcessCDR(1,14763463,1,1,2) [2025-03-26 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763463', 'tblTempUsageDetail_20' ) start [2025-03-26 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763463', 'tblTempUsageDetail_20' ) end [2025-03-26 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:28:21] Production.INFO: ==16064== Releasing lock... [2025-03-26 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:28:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:29:05 [end_date_ymd] => 2025-03-26 01:29:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:29:05' and `end` < '2025-03-26 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-26 01:29:18] Production.INFO: count ==448 [2025-03-26 01:29:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:29:05 - End Time 2025-03-26 01:29:05 [2025-03-26 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763468', 'tblTempUsageDetail_20' ) start [2025-03-26 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763468', 'tblTempUsageDetail_20' ) end [2025-03-26 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763468', 'tblTempVendorCDR_20' ) start [2025-03-26 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763468', 'tblTempVendorCDR_20' ) end [2025-03-26 01:29:18] Production.INFO: ProcessCDR(1,14763468,1,1,2) [2025-03-26 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763468', 'tblTempUsageDetail_20' ) start [2025-03-26 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763468', 'tblTempUsageDetail_20' ) end [2025-03-26 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:29:21] Production.INFO: ==16149== Releasing lock... [2025-03-26 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:30:06 [end_date_ymd] => 2025-03-26 01:30:06 [RateCDR] => 1 ) [2025-03-26 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-25 22:30:06' and `end` < '2025-03-26 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-26 01:30:19] Production.INFO: count ==450 [2025-03-26 01:30:19] Production.ERROR: pbx CDR StartTime 2025-03-25 22:30:06 - End Time 2025-03-26 01:30:06 [2025-03-26 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763474', 'tblTempUsageDetail_20' ) start [2025-03-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763474', 'tblTempUsageDetail_20' ) end [2025-03-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763474', 'tblTempVendorCDR_20' ) start [2025-03-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763474', 'tblTempVendorCDR_20' ) end [2025-03-26 01:30:19] Production.INFO: ProcessCDR(1,14763474,1,1,2) [2025-03-26 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763474', 'tblTempUsageDetail_20' ) start [2025-03-26 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763474', 'tblTempUsageDetail_20' ) end [2025-03-26 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:30:22] Production.INFO: ==16247== Releasing lock... [2025-03-26 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:30:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:31:06 [end_date_ymd] => 2025-03-26 01:31:06 [RateCDR] => 1 ) [2025-03-26 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-25 22:31:06' and `end` < '2025-03-26 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-26 01:31:18] Production.INFO: count ==446 [2025-03-26 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:31:06 - End Time 2025-03-26 01:31:06 [2025-03-26 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763479', 'tblTempUsageDetail_20' ) start [2025-03-26 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763479', 'tblTempUsageDetail_20' ) end [2025-03-26 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763479', 'tblTempVendorCDR_20' ) start [2025-03-26 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763479', 'tblTempVendorCDR_20' ) end [2025-03-26 01:31:18] Production.INFO: ProcessCDR(1,14763479,1,1,2) [2025-03-26 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763479', 'tblTempUsageDetail_20' ) start [2025-03-26 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763479', 'tblTempUsageDetail_20' ) end [2025-03-26 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:31:21] Production.INFO: ==16370== Releasing lock... [2025-03-26 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:31:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:32:05 [end_date_ymd] => 2025-03-26 01:32:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:32:05' and `end` < '2025-03-26 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-26 01:32:18] Production.INFO: count ==441 [2025-03-26 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:32:05 - End Time 2025-03-26 01:32:05 [2025-03-26 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763484', 'tblTempUsageDetail_20' ) start [2025-03-26 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763484', 'tblTempUsageDetail_20' ) end [2025-03-26 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763484', 'tblTempVendorCDR_20' ) start [2025-03-26 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763484', 'tblTempVendorCDR_20' ) end [2025-03-26 01:32:18] Production.INFO: ProcessCDR(1,14763484,1,1,2) [2025-03-26 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763484', 'tblTempUsageDetail_20' ) start [2025-03-26 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763484', 'tblTempUsageDetail_20' ) end [2025-03-26 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:32:21] Production.INFO: ==16463== Releasing lock... [2025-03-26 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:33:06 [end_date_ymd] => 2025-03-26 01:33:06 [RateCDR] => 1 ) [2025-03-26 01:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:33:06' and `end` < '2025-03-26 01:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:33:18] Production.INFO: count ==441 [2025-03-26 01:33:19] Production.ERROR: pbx CDR StartTime 2025-03-25 22:33:06 - End Time 2025-03-26 01:33:06 [2025-03-26 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763489', 'tblTempUsageDetail_20' ) start [2025-03-26 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763489', 'tblTempUsageDetail_20' ) end [2025-03-26 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763489', 'tblTempVendorCDR_20' ) start [2025-03-26 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763489', 'tblTempVendorCDR_20' ) end [2025-03-26 01:33:19] Production.INFO: ProcessCDR(1,14763489,1,1,2) [2025-03-26 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763489', 'tblTempUsageDetail_20' ) start [2025-03-26 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763489', 'tblTempUsageDetail_20' ) end [2025-03-26 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:33:22] Production.INFO: ==16540== Releasing lock... [2025-03-26 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:33:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:34:05 [end_date_ymd] => 2025-03-26 01:34:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:34:05' and `end` < '2025-03-26 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-26 01:34:18] Production.INFO: count ==441 [2025-03-26 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:34:05 - End Time 2025-03-26 01:34:05 [2025-03-26 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763494', 'tblTempUsageDetail_20' ) start [2025-03-26 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763494', 'tblTempUsageDetail_20' ) end [2025-03-26 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763494', 'tblTempVendorCDR_20' ) start [2025-03-26 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763494', 'tblTempVendorCDR_20' ) end [2025-03-26 01:34:18] Production.INFO: ProcessCDR(1,14763494,1,1,2) [2025-03-26 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763494', 'tblTempUsageDetail_20' ) start [2025-03-26 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763494', 'tblTempUsageDetail_20' ) end [2025-03-26 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:34:21] Production.INFO: ==16613== Releasing lock... [2025-03-26 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:35:06 [end_date_ymd] => 2025-03-26 01:35:06 [RateCDR] => 1 ) [2025-03-26 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-25 22:35:06' and `end` < '2025-03-26 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-26 01:35:18] Production.INFO: count ==441 [2025-03-26 01:35:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:35:06 - End Time 2025-03-26 01:35:06 [2025-03-26 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763499', 'tblTempUsageDetail_20' ) start [2025-03-26 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763499', 'tblTempUsageDetail_20' ) end [2025-03-26 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763499', 'tblTempVendorCDR_20' ) start [2025-03-26 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763499', 'tblTempVendorCDR_20' ) end [2025-03-26 01:35:18] Production.INFO: ProcessCDR(1,14763499,1,1,2) [2025-03-26 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763499', 'tblTempUsageDetail_20' ) start [2025-03-26 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763499', 'tblTempUsageDetail_20' ) end [2025-03-26 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:35:22] Production.INFO: ==16686== Releasing lock... [2025-03-26 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:35:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:36:05 [end_date_ymd] => 2025-03-26 01:36:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:36:05' and `end` < '2025-03-26 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-26 01:36:18] Production.INFO: count ==427 [2025-03-26 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:36:05 - End Time 2025-03-26 01:36:05 [2025-03-26 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763504', 'tblTempUsageDetail_20' ) start [2025-03-26 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763504', 'tblTempUsageDetail_20' ) end [2025-03-26 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763504', 'tblTempVendorCDR_20' ) start [2025-03-26 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763504', 'tblTempVendorCDR_20' ) end [2025-03-26 01:36:18] Production.INFO: ProcessCDR(1,14763504,1,1,2) [2025-03-26 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763504', 'tblTempUsageDetail_20' ) start [2025-03-26 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763504', 'tblTempUsageDetail_20' ) end [2025-03-26 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:36:21] Production.INFO: ==16756== Releasing lock... [2025-03-26 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:36:21] Production.INFO: 32 MB #Memory Used# [2025-03-26 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:37:06 [end_date_ymd] => 2025-03-26 01:37:06 [RateCDR] => 1 ) [2025-03-26 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-25 22:37:06' and `end` < '2025-03-26 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-26 01:37:18] Production.INFO: count ==427 [2025-03-26 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:37:06 - End Time 2025-03-26 01:37:06 [2025-03-26 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763509', 'tblTempUsageDetail_20' ) start [2025-03-26 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763509', 'tblTempUsageDetail_20' ) end [2025-03-26 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763509', 'tblTempVendorCDR_20' ) start [2025-03-26 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763509', 'tblTempVendorCDR_20' ) end [2025-03-26 01:37:18] Production.INFO: ProcessCDR(1,14763509,1,1,2) [2025-03-26 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763509', 'tblTempUsageDetail_20' ) start [2025-03-26 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763509', 'tblTempUsageDetail_20' ) end [2025-03-26 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:37:22] Production.INFO: ==16831== Releasing lock... [2025-03-26 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:37:22] Production.INFO: 32 MB #Memory Used# [2025-03-26 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:38:05 [end_date_ymd] => 2025-03-26 01:38:05 [RateCDR] => 1 ) [2025-03-26 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:38:05' and `end` < '2025-03-26 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:38:18] Production.INFO: count ==433 [2025-03-26 01:38:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:38:05 - End Time 2025-03-26 01:38:05 [2025-03-26 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763514', 'tblTempUsageDetail_20' ) start [2025-03-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763514', 'tblTempUsageDetail_20' ) end [2025-03-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763514', 'tblTempVendorCDR_20' ) start [2025-03-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763514', 'tblTempVendorCDR_20' ) end [2025-03-26 01:38:18] Production.INFO: ProcessCDR(1,14763514,1,1,2) [2025-03-26 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763514', 'tblTempUsageDetail_20' ) start [2025-03-26 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763514', 'tblTempUsageDetail_20' ) end [2025-03-26 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:38:22] Production.INFO: ==16905== Releasing lock... [2025-03-26 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:38:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:39:06 [end_date_ymd] => 2025-03-26 01:39:06 [RateCDR] => 1 ) [2025-03-26 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-25 22:39:06' and `end` < '2025-03-26 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-26 01:39:18] Production.INFO: count ==430 [2025-03-26 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:39:06 - End Time 2025-03-26 01:39:06 [2025-03-26 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763519', 'tblTempUsageDetail_20' ) start [2025-03-26 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763519', 'tblTempUsageDetail_20' ) end [2025-03-26 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763519', 'tblTempVendorCDR_20' ) start [2025-03-26 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763519', 'tblTempVendorCDR_20' ) end [2025-03-26 01:39:18] Production.INFO: ProcessCDR(1,14763519,1,1,2) [2025-03-26 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763519', 'tblTempUsageDetail_20' ) start [2025-03-26 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763519', 'tblTempUsageDetail_20' ) end [2025-03-26 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:39:22] Production.INFO: ==16986== Releasing lock... [2025-03-26 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:39:22] Production.INFO: 32 MB #Memory Used# [2025-03-26 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:40:06 [end_date_ymd] => 2025-03-26 01:40:06 [RateCDR] => 1 ) [2025-03-26 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-25 22:40:06' and `end` < '2025-03-26 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-26 01:40:18] Production.INFO: count ==428 [2025-03-26 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:40:06 - End Time 2025-03-26 01:40:06 [2025-03-26 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763524', 'tblTempUsageDetail_20' ) start [2025-03-26 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763524', 'tblTempUsageDetail_20' ) end [2025-03-26 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763524', 'tblTempVendorCDR_20' ) start [2025-03-26 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763524', 'tblTempVendorCDR_20' ) end [2025-03-26 01:40:18] Production.INFO: ProcessCDR(1,14763524,1,1,2) [2025-03-26 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763524', 'tblTempUsageDetail_20' ) start [2025-03-26 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763524', 'tblTempUsageDetail_20' ) end [2025-03-26 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:40:22] Production.INFO: ==17074== Releasing lock... [2025-03-26 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:40:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:41:05 [end_date_ymd] => 2025-03-26 01:41:05 [RateCDR] => 1 ) [2025-03-26 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:41:05' and `end` < '2025-03-26 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:41:18] Production.INFO: count ==424 [2025-03-26 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:41:05 - End Time 2025-03-26 01:41:05 [2025-03-26 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763530', 'tblTempUsageDetail_20' ) start [2025-03-26 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763530', 'tblTempUsageDetail_20' ) end [2025-03-26 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763530', 'tblTempVendorCDR_20' ) start [2025-03-26 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763530', 'tblTempVendorCDR_20' ) end [2025-03-26 01:41:18] Production.INFO: ProcessCDR(1,14763530,1,1,2) [2025-03-26 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763530', 'tblTempUsageDetail_20' ) start [2025-03-26 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763530', 'tblTempUsageDetail_20' ) end [2025-03-26 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:41:22] Production.INFO: ==17153== Releasing lock... [2025-03-26 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:41:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:42:05 [end_date_ymd] => 2025-03-26 01:42:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:42:05' and `end` < '2025-03-26 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-26 01:42:18] Production.INFO: count ==418 [2025-03-26 01:42:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:42:05 - End Time 2025-03-26 01:42:05 [2025-03-26 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763535', 'tblTempUsageDetail_20' ) start [2025-03-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763535', 'tblTempUsageDetail_20' ) end [2025-03-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763535', 'tblTempVendorCDR_20' ) start [2025-03-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763535', 'tblTempVendorCDR_20' ) end [2025-03-26 01:42:18] Production.INFO: ProcessCDR(1,14763535,1,1,2) [2025-03-26 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763535', 'tblTempUsageDetail_20' ) start [2025-03-26 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763535', 'tblTempUsageDetail_20' ) end [2025-03-26 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:42:21] Production.INFO: ==17224== Releasing lock... [2025-03-26 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:42:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:43:05 [end_date_ymd] => 2025-03-26 01:43:05 [RateCDR] => 1 ) [2025-03-26 01: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-25 22:43:05' and `end` < '2025-03-26 01: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-26 01:43:18] Production.INFO: count ==412 [2025-03-26 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:43:05 - End Time 2025-03-26 01:43:05 [2025-03-26 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763540', 'tblTempUsageDetail_20' ) start [2025-03-26 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763540', 'tblTempUsageDetail_20' ) end [2025-03-26 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763540', 'tblTempVendorCDR_20' ) start [2025-03-26 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763540', 'tblTempVendorCDR_20' ) end [2025-03-26 01:43:18] Production.INFO: ProcessCDR(1,14763540,1,1,2) [2025-03-26 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763540', 'tblTempUsageDetail_20' ) start [2025-03-26 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763540', 'tblTempUsageDetail_20' ) end [2025-03-26 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:43:21] Production.INFO: ==17299== Releasing lock... [2025-03-26 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:43:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:44:05 [end_date_ymd] => 2025-03-26 01:44:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:44:05' and `end` < '2025-03-26 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-26 01:44:17] Production.INFO: count ==415 [2025-03-26 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:44:05 - End Time 2025-03-26 01:44:05 [2025-03-26 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763545', 'tblTempUsageDetail_20' ) start [2025-03-26 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763545', 'tblTempUsageDetail_20' ) end [2025-03-26 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763545', 'tblTempVendorCDR_20' ) start [2025-03-26 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763545', 'tblTempVendorCDR_20' ) end [2025-03-26 01:44:18] Production.INFO: ProcessCDR(1,14763545,1,1,2) [2025-03-26 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763545', 'tblTempUsageDetail_20' ) start [2025-03-26 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763545', 'tblTempUsageDetail_20' ) end [2025-03-26 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:44:21] Production.INFO: ==17378== Releasing lock... [2025-03-26 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:44:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:45:06 [end_date_ymd] => 2025-03-26 01:45:06 [RateCDR] => 1 ) [2025-03-26 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:45:06' and `end` < '2025-03-26 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:45:18] Production.INFO: count ==402 [2025-03-26 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:45:06 - End Time 2025-03-26 01:45:06 [2025-03-26 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763550', 'tblTempUsageDetail_20' ) start [2025-03-26 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763550', 'tblTempUsageDetail_20' ) end [2025-03-26 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763550', 'tblTempVendorCDR_20' ) start [2025-03-26 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763550', 'tblTempVendorCDR_20' ) end [2025-03-26 01:45:18] Production.INFO: ProcessCDR(1,14763550,1,1,2) [2025-03-26 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763550', 'tblTempUsageDetail_20' ) start [2025-03-26 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763550', 'tblTempUsageDetail_20' ) end [2025-03-26 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:45:22] Production.INFO: ==17449== Releasing lock... [2025-03-26 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:45:22] Production.INFO: 32 MB #Memory Used# [2025-03-26 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:46:05 [end_date_ymd] => 2025-03-26 01:46:05 [RateCDR] => 1 ) [2025-03-26 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:46:05' and `end` < '2025-03-26 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:46:18] Production.INFO: count ==399 [2025-03-26 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:46:05 - End Time 2025-03-26 01:46:05 [2025-03-26 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763555', 'tblTempUsageDetail_20' ) start [2025-03-26 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763555', 'tblTempUsageDetail_20' ) end [2025-03-26 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763555', 'tblTempVendorCDR_20' ) start [2025-03-26 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763555', 'tblTempVendorCDR_20' ) end [2025-03-26 01:46:18] Production.INFO: ProcessCDR(1,14763555,1,1,2) [2025-03-26 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763555', 'tblTempUsageDetail_20' ) start [2025-03-26 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763555', 'tblTempUsageDetail_20' ) end [2025-03-26 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:46:21] Production.INFO: ==17579== Releasing lock... [2025-03-26 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:47:06 [end_date_ymd] => 2025-03-26 01:47:06 [RateCDR] => 1 ) [2025-03-26 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:47:06' and `end` < '2025-03-26 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:47:18] Production.INFO: count ==397 [2025-03-26 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:47:06 - End Time 2025-03-26 01:47:06 [2025-03-26 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763560', 'tblTempUsageDetail_20' ) start [2025-03-26 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763560', 'tblTempUsageDetail_20' ) end [2025-03-26 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763560', 'tblTempVendorCDR_20' ) start [2025-03-26 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763560', 'tblTempVendorCDR_20' ) end [2025-03-26 01:47:18] Production.INFO: ProcessCDR(1,14763560,1,1,2) [2025-03-26 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763560', 'tblTempUsageDetail_20' ) start [2025-03-26 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763560', 'tblTempUsageDetail_20' ) end [2025-03-26 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:47:21] Production.INFO: ==17655== Releasing lock... [2025-03-26 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:47:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:48:05 [end_date_ymd] => 2025-03-26 01:48:05 [RateCDR] => 1 ) [2025-03-26 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:48:05' and `end` < '2025-03-26 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:48:17] Production.INFO: count ==395 [2025-03-26 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:48:05 - End Time 2025-03-26 01:48:05 [2025-03-26 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763565', 'tblTempUsageDetail_20' ) start [2025-03-26 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763565', 'tblTempUsageDetail_20' ) end [2025-03-26 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763565', 'tblTempVendorCDR_20' ) start [2025-03-26 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763565', 'tblTempVendorCDR_20' ) end [2025-03-26 01:48:18] Production.INFO: ProcessCDR(1,14763565,1,1,2) [2025-03-26 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763565', 'tblTempUsageDetail_20' ) start [2025-03-26 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763565', 'tblTempUsageDetail_20' ) end [2025-03-26 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:48:21] Production.INFO: ==17728== Releasing lock... [2025-03-26 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:49:05 [end_date_ymd] => 2025-03-26 01:49:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:49:05' and `end` < '2025-03-26 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-26 01:49:18] Production.INFO: count ==393 [2025-03-26 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:49:05 - End Time 2025-03-26 01:49:05 [2025-03-26 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763570', 'tblTempUsageDetail_20' ) start [2025-03-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763570', 'tblTempUsageDetail_20' ) end [2025-03-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763570', 'tblTempVendorCDR_20' ) start [2025-03-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763570', 'tblTempVendorCDR_20' ) end [2025-03-26 01:49:18] Production.INFO: ProcessCDR(1,14763570,1,1,2) [2025-03-26 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763570', 'tblTempUsageDetail_20' ) start [2025-03-26 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763570', 'tblTempUsageDetail_20' ) end [2025-03-26 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:49:21] Production.INFO: ==17799== Releasing lock... [2025-03-26 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:49:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:50:05 [end_date_ymd] => 2025-03-26 01:50:05 [RateCDR] => 1 ) [2025-03-26 01: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-25 22:50:05' and `end` < '2025-03-26 01: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-26 01:50:18] Production.INFO: count ==393 [2025-03-26 01:50:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:50:05 - End Time 2025-03-26 01:50:05 [2025-03-26 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763576', 'tblTempUsageDetail_20' ) start [2025-03-26 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763576', 'tblTempUsageDetail_20' ) end [2025-03-26 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763576', 'tblTempVendorCDR_20' ) start [2025-03-26 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763576', 'tblTempVendorCDR_20' ) end [2025-03-26 01:50:18] Production.INFO: ProcessCDR(1,14763576,1,1,2) [2025-03-26 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763576', 'tblTempUsageDetail_20' ) start [2025-03-26 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763576', 'tblTempUsageDetail_20' ) end [2025-03-26 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:50:21] Production.INFO: ==17878== Releasing lock... [2025-03-26 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:50:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:51:06 [end_date_ymd] => 2025-03-26 01:51:06 [RateCDR] => 1 ) [2025-03-26 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-25 22:51:06' and `end` < '2025-03-26 01:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:51:18] Production.INFO: count ==392 [2025-03-26 01:51:19] Production.ERROR: pbx CDR StartTime 2025-03-25 22:51:06 - End Time 2025-03-26 01:51:06 [2025-03-26 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763581', 'tblTempUsageDetail_20' ) start [2025-03-26 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763581', 'tblTempUsageDetail_20' ) end [2025-03-26 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763581', 'tblTempVendorCDR_20' ) start [2025-03-26 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763581', 'tblTempVendorCDR_20' ) end [2025-03-26 01:51:19] Production.INFO: ProcessCDR(1,14763581,1,1,2) [2025-03-26 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763581', 'tblTempUsageDetail_20' ) start [2025-03-26 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763581', 'tblTempUsageDetail_20' ) end [2025-03-26 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:51:22] Production.INFO: ==17954== Releasing lock... [2025-03-26 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:51:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:52:05 [end_date_ymd] => 2025-03-26 01:52:05 [RateCDR] => 1 ) [2025-03-26 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:52:05' and `end` < '2025-03-26 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:52:18] Production.INFO: count ==399 [2025-03-26 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:52:05 - End Time 2025-03-26 01:52:05 [2025-03-26 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763586', 'tblTempUsageDetail_20' ) start [2025-03-26 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763586', 'tblTempUsageDetail_20' ) end [2025-03-26 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763586', 'tblTempVendorCDR_20' ) start [2025-03-26 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763586', 'tblTempVendorCDR_20' ) end [2025-03-26 01:52:18] Production.INFO: ProcessCDR(1,14763586,1,1,2) [2025-03-26 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763586', 'tblTempUsageDetail_20' ) start [2025-03-26 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763586', 'tblTempUsageDetail_20' ) end [2025-03-26 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:52:21] Production.INFO: ==18026== Releasing lock... [2025-03-26 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:52:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:53:05 [end_date_ymd] => 2025-03-26 01:53:05 [RateCDR] => 1 ) [2025-03-26 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:53:05' and `end` < '2025-03-26 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:53:18] Production.INFO: count ==402 [2025-03-26 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:53:05 - End Time 2025-03-26 01:53:05 [2025-03-26 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763591', 'tblTempUsageDetail_20' ) start [2025-03-26 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763591', 'tblTempUsageDetail_20' ) end [2025-03-26 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763591', 'tblTempVendorCDR_20' ) start [2025-03-26 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763591', 'tblTempVendorCDR_20' ) end [2025-03-26 01:53:18] Production.INFO: ProcessCDR(1,14763591,1,1,2) [2025-03-26 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763591', 'tblTempUsageDetail_20' ) start [2025-03-26 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763591', 'tblTempUsageDetail_20' ) end [2025-03-26 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:53:21] Production.INFO: ==18100== Releasing lock... [2025-03-26 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:53:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:54:06 [end_date_ymd] => 2025-03-26 01:54:06 [RateCDR] => 1 ) [2025-03-26 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-25 22:54:06' and `end` < '2025-03-26 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-26 01:54:18] Production.INFO: count ==401 [2025-03-26 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:54:06 - End Time 2025-03-26 01:54:06 [2025-03-26 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763596', 'tblTempUsageDetail_20' ) start [2025-03-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763596', 'tblTempUsageDetail_20' ) end [2025-03-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763596', 'tblTempVendorCDR_20' ) start [2025-03-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763596', 'tblTempVendorCDR_20' ) end [2025-03-26 01:54:18] Production.INFO: ProcessCDR(1,14763596,1,1,2) [2025-03-26 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763596', 'tblTempUsageDetail_20' ) start [2025-03-26 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763596', 'tblTempUsageDetail_20' ) end [2025-03-26 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:54:22] Production.INFO: ==18173== Releasing lock... [2025-03-26 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:54:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:55:06 [end_date_ymd] => 2025-03-26 01:55:06 [RateCDR] => 1 ) [2025-03-26 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-25 22:55:06' and `end` < '2025-03-26 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-26 01:55:18] Production.INFO: count ==406 [2025-03-26 01:55:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:55:06 - End Time 2025-03-26 01:55:06 [2025-03-26 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763601', 'tblTempUsageDetail_20' ) start [2025-03-26 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763601', 'tblTempUsageDetail_20' ) end [2025-03-26 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763601', 'tblTempVendorCDR_20' ) start [2025-03-26 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763601', 'tblTempVendorCDR_20' ) end [2025-03-26 01:55:18] Production.INFO: ProcessCDR(1,14763601,1,1,2) [2025-03-26 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763601', 'tblTempUsageDetail_20' ) start [2025-03-26 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763601', 'tblTempUsageDetail_20' ) end [2025-03-26 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:55:21] Production.INFO: ==18243== Releasing lock... [2025-03-26 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:55:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:56:06 [end_date_ymd] => 2025-03-26 01:56:06 [RateCDR] => 1 ) [2025-03-26 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:56:06' and `end` < '2025-03-26 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:56:18] Production.INFO: count ==406 [2025-03-26 01:56:19] Production.ERROR: pbx CDR StartTime 2025-03-25 22:56:06 - End Time 2025-03-26 01:56:06 [2025-03-26 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763606', 'tblTempUsageDetail_20' ) start [2025-03-26 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763606', 'tblTempUsageDetail_20' ) end [2025-03-26 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763606', 'tblTempVendorCDR_20' ) start [2025-03-26 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763606', 'tblTempVendorCDR_20' ) end [2025-03-26 01:56:19] Production.INFO: ProcessCDR(1,14763606,1,1,2) [2025-03-26 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763606', 'tblTempUsageDetail_20' ) start [2025-03-26 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763606', 'tblTempUsageDetail_20' ) end [2025-03-26 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:56:22] Production.INFO: ==18316== Releasing lock... [2025-03-26 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:56:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:57:05 [end_date_ymd] => 2025-03-26 01:57:05 [RateCDR] => 1 ) [2025-03-26 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:57:05' and `end` < '2025-03-26 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:57:18] Production.INFO: count ==406 [2025-03-26 01:57:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:57:05 - End Time 2025-03-26 01:57:05 [2025-03-26 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763611', 'tblTempUsageDetail_20' ) start [2025-03-26 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763611', 'tblTempUsageDetail_20' ) end [2025-03-26 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763611', 'tblTempVendorCDR_20' ) start [2025-03-26 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763611', 'tblTempVendorCDR_20' ) end [2025-03-26 01:57:18] Production.INFO: ProcessCDR(1,14763611,1,1,2) [2025-03-26 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763611', 'tblTempUsageDetail_20' ) start [2025-03-26 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763611', 'tblTempUsageDetail_20' ) end [2025-03-26 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:57:21] Production.INFO: ==18394== Releasing lock... [2025-03-26 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:58:05 [end_date_ymd] => 2025-03-26 01:58:05 [RateCDR] => 1 ) [2025-03-26 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-25 22:58:05' and `end` < '2025-03-26 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-26 01:58:17] Production.INFO: count ==406 [2025-03-26 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:58:05 - End Time 2025-03-26 01:58:05 [2025-03-26 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763616', 'tblTempUsageDetail_20' ) start [2025-03-26 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763616', 'tblTempUsageDetail_20' ) end [2025-03-26 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763616', 'tblTempVendorCDR_20' ) start [2025-03-26 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763616', 'tblTempVendorCDR_20' ) end [2025-03-26 01:58:18] Production.INFO: ProcessCDR(1,14763616,1,1,2) [2025-03-26 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763616', 'tblTempUsageDetail_20' ) start [2025-03-26 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763616', 'tblTempUsageDetail_20' ) end [2025-03-26 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:58:21] Production.INFO: ==18472== Releasing lock... [2025-03-26 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:58:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 22:59:05 [end_date_ymd] => 2025-03-26 01:59:05 [RateCDR] => 1 ) [2025-03-26 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 22:59:05' and `end` < '2025-03-26 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 01:59:17] Production.INFO: count ==406 [2025-03-26 01:59:18] Production.ERROR: pbx CDR StartTime 2025-03-25 22:59:05 - End Time 2025-03-26 01:59:05 [2025-03-26 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763621', 'tblTempUsageDetail_20' ) start [2025-03-26 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763621', 'tblTempUsageDetail_20' ) end [2025-03-26 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763621', 'tblTempVendorCDR_20' ) start [2025-03-26 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763621', 'tblTempVendorCDR_20' ) end [2025-03-26 01:59:18] Production.INFO: ProcessCDR(1,14763621,1,1,2) [2025-03-26 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763621', 'tblTempUsageDetail_20' ) start [2025-03-26 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763621', 'tblTempUsageDetail_20' ) end [2025-03-26 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 01:59:21] Production.INFO: ==18544== Releasing lock... [2025-03-26 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 01:59:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:00:06 [end_date_ymd] => 2025-03-26 02:00:06 [RateCDR] => 1 ) [2025-03-26 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:00:06' and `end` < '2025-03-26 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:00:18] Production.INFO: count ==410 [2025-03-26 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-25 23:00:06 - End Time 2025-03-26 02:00:06 [2025-03-26 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763627', 'tblTempUsageDetail_20' ) start [2025-03-26 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763627', 'tblTempUsageDetail_20' ) end [2025-03-26 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763627', 'tblTempVendorCDR_20' ) start [2025-03-26 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763627', 'tblTempVendorCDR_20' ) end [2025-03-26 02:00:19] Production.INFO: ProcessCDR(1,14763627,1,1,2) [2025-03-26 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763627', 'tblTempUsageDetail_20' ) start [2025-03-26 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763627', 'tblTempUsageDetail_20' ) end [2025-03-26 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:00:22] Production.INFO: ==18627== Releasing lock... [2025-03-26 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:00:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:01:06 [end_date_ymd] => 2025-03-26 02:01:06 [RateCDR] => 1 ) [2025-03-26 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-25 23:01:06' and `end` < '2025-03-26 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-26 02:01:18] Production.INFO: count ==410 [2025-03-26 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:01:06 - End Time 2025-03-26 02:01:06 [2025-03-26 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763632', 'tblTempUsageDetail_20' ) start [2025-03-26 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763632', 'tblTempUsageDetail_20' ) end [2025-03-26 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763632', 'tblTempVendorCDR_20' ) start [2025-03-26 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763632', 'tblTempVendorCDR_20' ) end [2025-03-26 02:01:18] Production.INFO: ProcessCDR(1,14763632,1,1,2) [2025-03-26 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763632', 'tblTempUsageDetail_20' ) start [2025-03-26 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763632', 'tblTempUsageDetail_20' ) end [2025-03-26 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:01:22] Production.INFO: ==18762== Releasing lock... [2025-03-26 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:01:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:02:05 [end_date_ymd] => 2025-03-26 02:02:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:02:05' and `end` < '2025-03-26 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-26 02:02:18] Production.INFO: count ==409 [2025-03-26 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:02:05 - End Time 2025-03-26 02:02:05 [2025-03-26 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763637', 'tblTempUsageDetail_20' ) start [2025-03-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763637', 'tblTempUsageDetail_20' ) end [2025-03-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763637', 'tblTempVendorCDR_20' ) start [2025-03-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763637', 'tblTempVendorCDR_20' ) end [2025-03-26 02:02:18] Production.INFO: ProcessCDR(1,14763637,1,1,2) [2025-03-26 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763637', 'tblTempUsageDetail_20' ) start [2025-03-26 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763637', 'tblTempUsageDetail_20' ) end [2025-03-26 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:02:22] Production.INFO: ==18921== Releasing lock... [2025-03-26 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:02:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:03:05 [end_date_ymd] => 2025-03-26 02:03:05 [RateCDR] => 1 ) [2025-03-26 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:03:05' and `end` < '2025-03-26 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:03:18] Production.INFO: count ==408 [2025-03-26 02:03:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:03:05 - End Time 2025-03-26 02:03:05 [2025-03-26 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763642', 'tblTempUsageDetail_20' ) start [2025-03-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763642', 'tblTempUsageDetail_20' ) end [2025-03-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763642', 'tblTempVendorCDR_20' ) start [2025-03-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763642', 'tblTempVendorCDR_20' ) end [2025-03-26 02:03:18] Production.INFO: ProcessCDR(1,14763642,1,1,2) [2025-03-26 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763642', 'tblTempUsageDetail_20' ) start [2025-03-26 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763642', 'tblTempUsageDetail_20' ) end [2025-03-26 02:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:03:23] Production.INFO: ==18995== Releasing lock... [2025-03-26 02:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:03:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:04:05 [end_date_ymd] => 2025-03-26 02:04:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:04:05' and `end` < '2025-03-26 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-26 02:04:18] Production.INFO: count ==409 [2025-03-26 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:04:05 - End Time 2025-03-26 02:04:05 [2025-03-26 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763647', 'tblTempUsageDetail_20' ) start [2025-03-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763647', 'tblTempUsageDetail_20' ) end [2025-03-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763647', 'tblTempVendorCDR_20' ) start [2025-03-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763647', 'tblTempVendorCDR_20' ) end [2025-03-26 02:04:18] Production.INFO: ProcessCDR(1,14763647,1,1,2) [2025-03-26 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763647', 'tblTempUsageDetail_20' ) start [2025-03-26 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763647', 'tblTempUsageDetail_20' ) end [2025-03-26 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:04:23] Production.INFO: ==19071== Releasing lock... [2025-03-26 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:04:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:05:05 [end_date_ymd] => 2025-03-26 02:05:05 [RateCDR] => 1 ) [2025-03-26 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:05:05' and `end` < '2025-03-26 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:05:17] Production.INFO: count ==409 [2025-03-26 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:05:05 - End Time 2025-03-26 02:05:05 [2025-03-26 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763652', 'tblTempUsageDetail_20' ) start [2025-03-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763652', 'tblTempUsageDetail_20' ) end [2025-03-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763652', 'tblTempVendorCDR_20' ) start [2025-03-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763652', 'tblTempVendorCDR_20' ) end [2025-03-26 02:05:18] Production.INFO: ProcessCDR(1,14763652,1,1,2) [2025-03-26 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763652', 'tblTempUsageDetail_20' ) start [2025-03-26 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763652', 'tblTempUsageDetail_20' ) end [2025-03-26 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:05:21] Production.INFO: ==19146== Releasing lock... [2025-03-26 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:05:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:06:05 [end_date_ymd] => 2025-03-26 02:06:05 [RateCDR] => 1 ) [2025-03-26 02: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-25 23:06:05' and `end` < '2025-03-26 02: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-26 02:06:18] Production.INFO: count ==409 [2025-03-26 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:06:05 - End Time 2025-03-26 02:06:05 [2025-03-26 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763657', 'tblTempUsageDetail_20' ) start [2025-03-26 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763657', 'tblTempUsageDetail_20' ) end [2025-03-26 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763657', 'tblTempVendorCDR_20' ) start [2025-03-26 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763657', 'tblTempVendorCDR_20' ) end [2025-03-26 02:06:18] Production.INFO: ProcessCDR(1,14763657,1,1,2) [2025-03-26 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763657', 'tblTempUsageDetail_20' ) start [2025-03-26 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763657', 'tblTempUsageDetail_20' ) end [2025-03-26 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:06:22] Production.INFO: ==19220== Releasing lock... [2025-03-26 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:06:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:07:05 [end_date_ymd] => 2025-03-26 02:07:05 [RateCDR] => 1 ) [2025-03-26 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:07:05' and `end` < '2025-03-26 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:07:17] Production.INFO: count ==402 [2025-03-26 02:07:17] Production.ERROR: pbx CDR StartTime 2025-03-25 23:07:05 - End Time 2025-03-26 02:07:05 [2025-03-26 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763662', 'tblTempUsageDetail_20' ) start [2025-03-26 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763662', 'tblTempUsageDetail_20' ) end [2025-03-26 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763662', 'tblTempVendorCDR_20' ) start [2025-03-26 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763662', 'tblTempVendorCDR_20' ) end [2025-03-26 02:07:17] Production.INFO: ProcessCDR(1,14763662,1,1,2) [2025-03-26 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763662', 'tblTempUsageDetail_20' ) start [2025-03-26 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763662', 'tblTempUsageDetail_20' ) end [2025-03-26 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:07:21] Production.INFO: ==19312== Releasing lock... [2025-03-26 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:07:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:08:05 [end_date_ymd] => 2025-03-26 02:08:05 [RateCDR] => 1 ) [2025-03-26 02:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:08:05' and `end` < '2025-03-26 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-26 02:08:18] Production.INFO: count ==402 [2025-03-26 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:08:05 - End Time 2025-03-26 02:08:05 [2025-03-26 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763667', 'tblTempUsageDetail_20' ) start [2025-03-26 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763667', 'tblTempUsageDetail_20' ) end [2025-03-26 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763667', 'tblTempVendorCDR_20' ) start [2025-03-26 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763667', 'tblTempVendorCDR_20' ) end [2025-03-26 02:08:18] Production.INFO: ProcessCDR(1,14763667,1,1,2) [2025-03-26 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763667', 'tblTempUsageDetail_20' ) start [2025-03-26 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763667', 'tblTempUsageDetail_20' ) end [2025-03-26 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:08:21] Production.INFO: ==19384== Releasing lock... [2025-03-26 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:08:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:09:05 [end_date_ymd] => 2025-03-26 02:09:05 [RateCDR] => 1 ) [2025-03-26 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:09:05' and `end` < '2025-03-26 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:09:17] Production.INFO: count ==403 [2025-03-26 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-25 23:09:05 - End Time 2025-03-26 02:09:05 [2025-03-26 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763672', 'tblTempUsageDetail_20' ) start [2025-03-26 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763672', 'tblTempUsageDetail_20' ) end [2025-03-26 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763672', 'tblTempVendorCDR_20' ) start [2025-03-26 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763672', 'tblTempVendorCDR_20' ) end [2025-03-26 02:09:17] Production.INFO: ProcessCDR(1,14763672,1,1,2) [2025-03-26 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763672', 'tblTempUsageDetail_20' ) start [2025-03-26 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763672', 'tblTempUsageDetail_20' ) end [2025-03-26 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:09:21] Production.INFO: ==19455== Releasing lock... [2025-03-26 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:09:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:10:06 [end_date_ymd] => 2025-03-26 02:10:06 [RateCDR] => 1 ) [2025-03-26 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-25 23:10:06' and `end` < '2025-03-26 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-26 02:10:19] Production.INFO: count ==404 [2025-03-26 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-25 23:10:06 - End Time 2025-03-26 02:10:06 [2025-03-26 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763678', 'tblTempUsageDetail_20' ) start [2025-03-26 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763678', 'tblTempUsageDetail_20' ) end [2025-03-26 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763678', 'tblTempVendorCDR_20' ) start [2025-03-26 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763678', 'tblTempVendorCDR_20' ) end [2025-03-26 02:10:19] Production.INFO: ProcessCDR(1,14763678,1,1,2) [2025-03-26 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763678', 'tblTempUsageDetail_20' ) start [2025-03-26 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763678', 'tblTempUsageDetail_20' ) end [2025-03-26 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:10:22] Production.INFO: ==19530== Releasing lock... [2025-03-26 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:10:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:11:06 [end_date_ymd] => 2025-03-26 02:11:06 [RateCDR] => 1 ) [2025-03-26 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-25 23:11:06' and `end` < '2025-03-26 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-26 02:11:18] Production.INFO: count ==397 [2025-03-26 02:11:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:11:06 - End Time 2025-03-26 02:11:06 [2025-03-26 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763683', 'tblTempUsageDetail_20' ) start [2025-03-26 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763683', 'tblTempUsageDetail_20' ) end [2025-03-26 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763683', 'tblTempVendorCDR_20' ) start [2025-03-26 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763683', 'tblTempVendorCDR_20' ) end [2025-03-26 02:11:18] Production.INFO: ProcessCDR(1,14763683,1,1,2) [2025-03-26 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763683', 'tblTempUsageDetail_20' ) start [2025-03-26 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763683', 'tblTempUsageDetail_20' ) end [2025-03-26 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:11:22] Production.INFO: ==19609== Releasing lock... [2025-03-26 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:11:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:12:05 [end_date_ymd] => 2025-03-26 02:12:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:12:05' and `end` < '2025-03-26 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-26 02:12:18] Production.INFO: count ==396 [2025-03-26 02:12:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:12:05 - End Time 2025-03-26 02:12:05 [2025-03-26 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763688', 'tblTempUsageDetail_20' ) start [2025-03-26 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763688', 'tblTempUsageDetail_20' ) end [2025-03-26 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763688', 'tblTempVendorCDR_20' ) start [2025-03-26 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763688', 'tblTempVendorCDR_20' ) end [2025-03-26 02:12:18] Production.INFO: ProcessCDR(1,14763688,1,1,2) [2025-03-26 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763688', 'tblTempUsageDetail_20' ) start [2025-03-26 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763688', 'tblTempUsageDetail_20' ) end [2025-03-26 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:12:21] Production.INFO: ==19684== Releasing lock... [2025-03-26 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:13:06 [end_date_ymd] => 2025-03-26 02:13:06 [RateCDR] => 1 ) [2025-03-26 02: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-25 23:13:06' and `end` < '2025-03-26 02: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-26 02:13:18] Production.INFO: count ==386 [2025-03-26 02:13:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:13:06 - End Time 2025-03-26 02:13:06 [2025-03-26 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763693', 'tblTempUsageDetail_20' ) start [2025-03-26 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763693', 'tblTempUsageDetail_20' ) end [2025-03-26 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763693', 'tblTempVendorCDR_20' ) start [2025-03-26 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763693', 'tblTempVendorCDR_20' ) end [2025-03-26 02:13:18] Production.INFO: ProcessCDR(1,14763693,1,1,2) [2025-03-26 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763693', 'tblTempUsageDetail_20' ) start [2025-03-26 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763693', 'tblTempUsageDetail_20' ) end [2025-03-26 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:13:22] Production.INFO: ==19757== Releasing lock... [2025-03-26 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:13:22] Production.INFO: 32 MB #Memory Used# [2025-03-26 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:14:05 [end_date_ymd] => 2025-03-26 02:14:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:14:05' and `end` < '2025-03-26 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-26 02:14:18] Production.INFO: count ==383 [2025-03-26 02:14:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:14:05 - End Time 2025-03-26 02:14:05 [2025-03-26 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763698', 'tblTempUsageDetail_20' ) start [2025-03-26 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763698', 'tblTempUsageDetail_20' ) end [2025-03-26 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763698', 'tblTempVendorCDR_20' ) start [2025-03-26 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763698', 'tblTempVendorCDR_20' ) end [2025-03-26 02:14:18] Production.INFO: ProcessCDR(1,14763698,1,1,2) [2025-03-26 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763698', 'tblTempUsageDetail_20' ) start [2025-03-26 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763698', 'tblTempUsageDetail_20' ) end [2025-03-26 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:14:22] Production.INFO: ==19845== Releasing lock... [2025-03-26 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:14:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:15:05 [end_date_ymd] => 2025-03-26 02:15:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:15:05' and `end` < '2025-03-26 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-26 02:15:18] Production.INFO: count ==380 [2025-03-26 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:15:05 - End Time 2025-03-26 02:15:05 [2025-03-26 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763703', 'tblTempUsageDetail_20' ) start [2025-03-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763703', 'tblTempUsageDetail_20' ) end [2025-03-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763703', 'tblTempVendorCDR_20' ) start [2025-03-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763703', 'tblTempVendorCDR_20' ) end [2025-03-26 02:15:18] Production.INFO: ProcessCDR(1,14763703,1,1,2) [2025-03-26 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763703', 'tblTempUsageDetail_20' ) start [2025-03-26 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763703', 'tblTempUsageDetail_20' ) end [2025-03-26 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:15:21] Production.INFO: ==19921== Releasing lock... [2025-03-26 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:15:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:16:05 [end_date_ymd] => 2025-03-26 02:16:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:16:05' and `end` < '2025-03-26 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-26 02:16:17] Production.INFO: count ==377 [2025-03-26 02:16:17] Production.ERROR: pbx CDR StartTime 2025-03-25 23:16:05 - End Time 2025-03-26 02:16:05 [2025-03-26 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763708', 'tblTempUsageDetail_20' ) start [2025-03-26 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763708', 'tblTempUsageDetail_20' ) end [2025-03-26 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763708', 'tblTempVendorCDR_20' ) start [2025-03-26 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763708', 'tblTempVendorCDR_20' ) end [2025-03-26 02:16:17] Production.INFO: ProcessCDR(1,14763708,1,1,2) [2025-03-26 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763708', 'tblTempUsageDetail_20' ) start [2025-03-26 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763708', 'tblTempUsageDetail_20' ) end [2025-03-26 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:16:21] Production.INFO: ==19993== Releasing lock... [2025-03-26 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:17:05 [end_date_ymd] => 2025-03-26 02:17:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:17:05' and `end` < '2025-03-26 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-26 02:17:18] Production.INFO: count ==376 [2025-03-26 02:17:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:17:05 - End Time 2025-03-26 02:17:05 [2025-03-26 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763713', 'tblTempUsageDetail_20' ) start [2025-03-26 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763713', 'tblTempUsageDetail_20' ) end [2025-03-26 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763713', 'tblTempVendorCDR_20' ) start [2025-03-26 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763713', 'tblTempVendorCDR_20' ) end [2025-03-26 02:17:18] Production.INFO: ProcessCDR(1,14763713,1,1,2) [2025-03-26 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763713', 'tblTempUsageDetail_20' ) start [2025-03-26 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763713', 'tblTempUsageDetail_20' ) end [2025-03-26 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:17:21] Production.INFO: ==20103== Releasing lock... [2025-03-26 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:17:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:18:04 [end_date_ymd] => 2025-03-26 02:18:04 [RateCDR] => 1 ) [2025-03-26 02:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:18:04' and `end` < '2025-03-26 02:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:18:17] Production.INFO: count ==376 [2025-03-26 02:18:17] Production.ERROR: pbx CDR StartTime 2025-03-25 23:18:04 - End Time 2025-03-26 02:18:04 [2025-03-26 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763718', 'tblTempUsageDetail_20' ) start [2025-03-26 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763718', 'tblTempUsageDetail_20' ) end [2025-03-26 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763718', 'tblTempVendorCDR_20' ) start [2025-03-26 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763718', 'tblTempVendorCDR_20' ) end [2025-03-26 02:18:17] Production.INFO: ProcessCDR(1,14763718,1,1,2) [2025-03-26 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763718', 'tblTempUsageDetail_20' ) start [2025-03-26 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763718', 'tblTempUsageDetail_20' ) end [2025-03-26 02:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:18:20] Production.INFO: ==20174== Releasing lock... [2025-03-26 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:18:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:19:06 [end_date_ymd] => 2025-03-26 02:19:06 [RateCDR] => 1 ) [2025-03-26 02:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:19:06' and `end` < '2025-03-26 02:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:19:18] Production.INFO: count ==360 [2025-03-26 02:19:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:19:06 - End Time 2025-03-26 02:19:06 [2025-03-26 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763723', 'tblTempUsageDetail_20' ) start [2025-03-26 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763723', 'tblTempUsageDetail_20' ) end [2025-03-26 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763723', 'tblTempVendorCDR_20' ) start [2025-03-26 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763723', 'tblTempVendorCDR_20' ) end [2025-03-26 02:19:18] Production.INFO: ProcessCDR(1,14763723,1,1,2) [2025-03-26 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763723', 'tblTempUsageDetail_20' ) start [2025-03-26 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763723', 'tblTempUsageDetail_20' ) end [2025-03-26 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:19:22] Production.INFO: ==20252== Releasing lock... [2025-03-26 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:19:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:20:06 [end_date_ymd] => 2025-03-26 02:20:06 [RateCDR] => 1 ) [2025-03-26 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-25 23:20:06' and `end` < '2025-03-26 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-26 02:20:18] Production.INFO: count ==354 [2025-03-26 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:20:06 - End Time 2025-03-26 02:20:06 [2025-03-26 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763729', 'tblTempUsageDetail_20' ) start [2025-03-26 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763729', 'tblTempUsageDetail_20' ) end [2025-03-26 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763729', 'tblTempVendorCDR_20' ) start [2025-03-26 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763729', 'tblTempVendorCDR_20' ) end [2025-03-26 02:20:18] Production.INFO: ProcessCDR(1,14763729,1,1,2) [2025-03-26 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763729', 'tblTempUsageDetail_20' ) start [2025-03-26 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763729', 'tblTempUsageDetail_20' ) end [2025-03-26 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:20:22] Production.INFO: ==20329== Releasing lock... [2025-03-26 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:21:05 [end_date_ymd] => 2025-03-26 02:21:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:21:05' and `end` < '2025-03-26 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-26 02:21:18] Production.INFO: count ==353 [2025-03-26 02:21:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:21:05 - End Time 2025-03-26 02:21:05 [2025-03-26 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763734', 'tblTempUsageDetail_20' ) start [2025-03-26 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763734', 'tblTempUsageDetail_20' ) end [2025-03-26 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763734', 'tblTempVendorCDR_20' ) start [2025-03-26 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763734', 'tblTempVendorCDR_20' ) end [2025-03-26 02:21:18] Production.INFO: ProcessCDR(1,14763734,1,1,2) [2025-03-26 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763734', 'tblTempUsageDetail_20' ) start [2025-03-26 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763734', 'tblTempUsageDetail_20' ) end [2025-03-26 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:21:21] Production.INFO: ==20402== Releasing lock... [2025-03-26 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:22:05 [end_date_ymd] => 2025-03-26 02:22:05 [RateCDR] => 1 ) [2025-03-26 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:22:05' and `end` < '2025-03-26 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:22:17] Production.INFO: count ==338 [2025-03-26 02:22:17] Production.ERROR: pbx CDR StartTime 2025-03-25 23:22:05 - End Time 2025-03-26 02:22:05 [2025-03-26 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763739', 'tblTempUsageDetail_20' ) start [2025-03-26 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763739', 'tblTempUsageDetail_20' ) end [2025-03-26 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763739', 'tblTempVendorCDR_20' ) start [2025-03-26 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763739', 'tblTempVendorCDR_20' ) end [2025-03-26 02:22:17] Production.INFO: ProcessCDR(1,14763739,1,1,2) [2025-03-26 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763739', 'tblTempUsageDetail_20' ) start [2025-03-26 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763739', 'tblTempUsageDetail_20' ) end [2025-03-26 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:22:21] Production.INFO: ==20476== Releasing lock... [2025-03-26 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:22:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:23:05 [end_date_ymd] => 2025-03-26 02:23:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:23:05' and `end` < '2025-03-26 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-26 02:23:18] Production.INFO: count ==338 [2025-03-26 02:23:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:23:05 - End Time 2025-03-26 02:23:05 [2025-03-26 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763744', 'tblTempUsageDetail_20' ) start [2025-03-26 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763744', 'tblTempUsageDetail_20' ) end [2025-03-26 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763744', 'tblTempVendorCDR_20' ) start [2025-03-26 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763744', 'tblTempVendorCDR_20' ) end [2025-03-26 02:23:18] Production.INFO: ProcessCDR(1,14763744,1,1,2) [2025-03-26 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763744', 'tblTempUsageDetail_20' ) start [2025-03-26 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763744', 'tblTempUsageDetail_20' ) end [2025-03-26 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:23:21] Production.INFO: ==20550== Releasing lock... [2025-03-26 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:23:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:24:06 [end_date_ymd] => 2025-03-26 02:24:06 [RateCDR] => 1 ) [2025-03-26 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-25 23:24:06' and `end` < '2025-03-26 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-26 02:24:18] Production.INFO: count ==347 [2025-03-26 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:24:06 - End Time 2025-03-26 02:24:06 [2025-03-26 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763749', 'tblTempUsageDetail_20' ) start [2025-03-26 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763749', 'tblTempUsageDetail_20' ) end [2025-03-26 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763749', 'tblTempVendorCDR_20' ) start [2025-03-26 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763749', 'tblTempVendorCDR_20' ) end [2025-03-26 02:24:18] Production.INFO: ProcessCDR(1,14763749,1,1,2) [2025-03-26 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763749', 'tblTempUsageDetail_20' ) start [2025-03-26 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763749', 'tblTempUsageDetail_20' ) end [2025-03-26 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:24:22] Production.INFO: ==20623== Releasing lock... [2025-03-26 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:24:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:25:05 [end_date_ymd] => 2025-03-26 02:25:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:25:05' and `end` < '2025-03-26 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-26 02:25:17] Production.INFO: count ==369 [2025-03-26 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-25 23:25:05 - End Time 2025-03-26 02:25:05 [2025-03-26 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763754', 'tblTempUsageDetail_20' ) start [2025-03-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763754', 'tblTempUsageDetail_20' ) end [2025-03-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763754', 'tblTempVendorCDR_20' ) start [2025-03-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763754', 'tblTempVendorCDR_20' ) end [2025-03-26 02:25:18] Production.INFO: ProcessCDR(1,14763754,1,1,2) [2025-03-26 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763754', 'tblTempUsageDetail_20' ) start [2025-03-26 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763754', 'tblTempUsageDetail_20' ) end [2025-03-26 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:25:21] Production.INFO: ==20700== Releasing lock... [2025-03-26 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:25:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:26:06 [end_date_ymd] => 2025-03-26 02:26:06 [RateCDR] => 1 ) [2025-03-26 02: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-25 23:26:06' and `end` < '2025-03-26 02: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-26 02:26:18] Production.INFO: count ==383 [2025-03-26 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:26:06 - End Time 2025-03-26 02:26:06 [2025-03-26 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763759', 'tblTempUsageDetail_20' ) start [2025-03-26 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763759', 'tblTempUsageDetail_20' ) end [2025-03-26 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763759', 'tblTempVendorCDR_20' ) start [2025-03-26 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763759', 'tblTempVendorCDR_20' ) end [2025-03-26 02:26:18] Production.INFO: ProcessCDR(1,14763759,1,1,2) [2025-03-26 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763759', 'tblTempUsageDetail_20' ) start [2025-03-26 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763759', 'tblTempUsageDetail_20' ) end [2025-03-26 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:26:21] Production.INFO: ==20777== Releasing lock... [2025-03-26 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:27:05 [end_date_ymd] => 2025-03-26 02:27:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:27:05' and `end` < '2025-03-26 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-26 02:27:17] Production.INFO: count ==379 [2025-03-26 02:27:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:27:05 - End Time 2025-03-26 02:27:05 [2025-03-26 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763764', 'tblTempUsageDetail_20' ) start [2025-03-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763764', 'tblTempUsageDetail_20' ) end [2025-03-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763764', 'tblTempVendorCDR_20' ) start [2025-03-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763764', 'tblTempVendorCDR_20' ) end [2025-03-26 02:27:18] Production.INFO: ProcessCDR(1,14763764,1,1,2) [2025-03-26 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763764', 'tblTempUsageDetail_20' ) start [2025-03-26 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763764', 'tblTempUsageDetail_20' ) end [2025-03-26 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:27:21] Production.INFO: ==20867== Releasing lock... [2025-03-26 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:27:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:28:05 [end_date_ymd] => 2025-03-26 02:28:05 [RateCDR] => 1 ) [2025-03-26 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:28:05' and `end` < '2025-03-26 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:28:17] Production.INFO: count ==377 [2025-03-26 02:28:17] Production.ERROR: pbx CDR StartTime 2025-03-25 23:28:05 - End Time 2025-03-26 02:28:05 [2025-03-26 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763769', 'tblTempUsageDetail_20' ) start [2025-03-26 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763769', 'tblTempUsageDetail_20' ) end [2025-03-26 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763769', 'tblTempVendorCDR_20' ) start [2025-03-26 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763769', 'tblTempVendorCDR_20' ) end [2025-03-26 02:28:17] Production.INFO: ProcessCDR(1,14763769,1,1,2) [2025-03-26 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763769', 'tblTempUsageDetail_20' ) start [2025-03-26 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763769', 'tblTempUsageDetail_20' ) end [2025-03-26 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:28:21] Production.INFO: ==20939== Releasing lock... [2025-03-26 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:28:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:29:05 [end_date_ymd] => 2025-03-26 02:29:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:29:05' and `end` < '2025-03-26 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-26 02:29:18] Production.INFO: count ==373 [2025-03-26 02:29:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:29:05 - End Time 2025-03-26 02:29:05 [2025-03-26 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763774', 'tblTempUsageDetail_20' ) start [2025-03-26 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763774', 'tblTempUsageDetail_20' ) end [2025-03-26 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763774', 'tblTempVendorCDR_20' ) start [2025-03-26 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763774', 'tblTempVendorCDR_20' ) end [2025-03-26 02:29:18] Production.INFO: ProcessCDR(1,14763774,1,1,2) [2025-03-26 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763774', 'tblTempUsageDetail_20' ) start [2025-03-26 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763774', 'tblTempUsageDetail_20' ) end [2025-03-26 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:29:21] Production.INFO: ==21012== Releasing lock... [2025-03-26 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:29:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:30:06 [end_date_ymd] => 2025-03-26 02:30:06 [RateCDR] => 1 ) [2025-03-26 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-25 23:30:06' and `end` < '2025-03-26 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-26 02:30:19] Production.INFO: count ==367 [2025-03-26 02:30:19] Production.ERROR: pbx CDR StartTime 2025-03-25 23:30:06 - End Time 2025-03-26 02:30:06 [2025-03-26 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763780', 'tblTempUsageDetail_20' ) start [2025-03-26 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763780', 'tblTempUsageDetail_20' ) end [2025-03-26 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763780', 'tblTempVendorCDR_20' ) start [2025-03-26 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763780', 'tblTempVendorCDR_20' ) end [2025-03-26 02:30:19] Production.INFO: ProcessCDR(1,14763780,1,1,2) [2025-03-26 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763780', 'tblTempUsageDetail_20' ) start [2025-03-26 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763780', 'tblTempUsageDetail_20' ) end [2025-03-26 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:30:22] Production.INFO: ==21086== Releasing lock... [2025-03-26 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:31:05 [end_date_ymd] => 2025-03-26 02:31:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:31:05' and `end` < '2025-03-26 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-26 02:31:17] Production.INFO: count ==364 [2025-03-26 02:31:17] Production.ERROR: pbx CDR StartTime 2025-03-25 23:31:05 - End Time 2025-03-26 02:31:05 [2025-03-26 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763785', 'tblTempUsageDetail_20' ) start [2025-03-26 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763785', 'tblTempUsageDetail_20' ) end [2025-03-26 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763785', 'tblTempVendorCDR_20' ) start [2025-03-26 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763785', 'tblTempVendorCDR_20' ) end [2025-03-26 02:31:17] Production.INFO: ProcessCDR(1,14763785,1,1,2) [2025-03-26 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763785', 'tblTempUsageDetail_20' ) start [2025-03-26 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763785', 'tblTempUsageDetail_20' ) end [2025-03-26 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:31:21] Production.INFO: ==21158== Releasing lock... [2025-03-26 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:32:05 [end_date_ymd] => 2025-03-26 02:32:05 [RateCDR] => 1 ) [2025-03-26 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:32:05' and `end` < '2025-03-26 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:32:18] Production.INFO: count ==365 [2025-03-26 02:32:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:32:05 - End Time 2025-03-26 02:32:05 [2025-03-26 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763790', 'tblTempUsageDetail_20' ) start [2025-03-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763790', 'tblTempUsageDetail_20' ) end [2025-03-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763790', 'tblTempVendorCDR_20' ) start [2025-03-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763790', 'tblTempVendorCDR_20' ) end [2025-03-26 02:32:18] Production.INFO: ProcessCDR(1,14763790,1,1,2) [2025-03-26 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763790', 'tblTempUsageDetail_20' ) start [2025-03-26 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763790', 'tblTempUsageDetail_20' ) end [2025-03-26 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:32:21] Production.INFO: ==21272== Releasing lock... [2025-03-26 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:32:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:33:05 [end_date_ymd] => 2025-03-26 02:33:05 [RateCDR] => 1 ) [2025-03-26 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:33:05' and `end` < '2025-03-26 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:33:18] Production.INFO: count ==373 [2025-03-26 02:33:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:33:05 - End Time 2025-03-26 02:33:05 [2025-03-26 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763795', 'tblTempUsageDetail_20' ) start [2025-03-26 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763795', 'tblTempUsageDetail_20' ) end [2025-03-26 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763795', 'tblTempVendorCDR_20' ) start [2025-03-26 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763795', 'tblTempVendorCDR_20' ) end [2025-03-26 02:33:18] Production.INFO: ProcessCDR(1,14763795,1,1,2) [2025-03-26 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763795', 'tblTempUsageDetail_20' ) start [2025-03-26 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763795', 'tblTempUsageDetail_20' ) end [2025-03-26 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:33:22] Production.INFO: ==21346== Releasing lock... [2025-03-26 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:33:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:34:06 [end_date_ymd] => 2025-03-26 02:34:06 [RateCDR] => 1 ) [2025-03-26 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-25 23:34:06' and `end` < '2025-03-26 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-26 02:34:18] Production.INFO: count ==373 [2025-03-26 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:34:06 - End Time 2025-03-26 02:34:06 [2025-03-26 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763800', 'tblTempUsageDetail_20' ) start [2025-03-26 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763800', 'tblTempUsageDetail_20' ) end [2025-03-26 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763800', 'tblTempVendorCDR_20' ) start [2025-03-26 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763800', 'tblTempVendorCDR_20' ) end [2025-03-26 02:34:18] Production.INFO: ProcessCDR(1,14763800,1,1,2) [2025-03-26 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763800', 'tblTempUsageDetail_20' ) start [2025-03-26 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763800', 'tblTempUsageDetail_20' ) end [2025-03-26 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:34:22] Production.INFO: ==21438== Releasing lock... [2025-03-26 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:34:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:35:05 [end_date_ymd] => 2025-03-26 02:35:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:35:05' and `end` < '2025-03-26 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-26 02:35:18] Production.INFO: count ==372 [2025-03-26 02:35:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:35:05 - End Time 2025-03-26 02:35:05 [2025-03-26 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763805', 'tblTempUsageDetail_20' ) start [2025-03-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763805', 'tblTempUsageDetail_20' ) end [2025-03-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763805', 'tblTempVendorCDR_20' ) start [2025-03-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763805', 'tblTempVendorCDR_20' ) end [2025-03-26 02:35:18] Production.INFO: ProcessCDR(1,14763805,1,1,2) [2025-03-26 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763805', 'tblTempUsageDetail_20' ) start [2025-03-26 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763805', 'tblTempUsageDetail_20' ) end [2025-03-26 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:35:22] Production.INFO: ==21510== Releasing lock... [2025-03-26 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:35:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:36:06 [end_date_ymd] => 2025-03-26 02:36:06 [RateCDR] => 1 ) [2025-03-26 02:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:36:06' and `end` < '2025-03-26 02:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:36:18] Production.INFO: count ==378 [2025-03-26 02:36:19] Production.ERROR: pbx CDR StartTime 2025-03-25 23:36:06 - End Time 2025-03-26 02:36:06 [2025-03-26 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763810', 'tblTempUsageDetail_20' ) start [2025-03-26 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763810', 'tblTempUsageDetail_20' ) end [2025-03-26 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763810', 'tblTempVendorCDR_20' ) start [2025-03-26 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763810', 'tblTempVendorCDR_20' ) end [2025-03-26 02:36:19] Production.INFO: ProcessCDR(1,14763810,1,1,2) [2025-03-26 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763810', 'tblTempUsageDetail_20' ) start [2025-03-26 02:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763810', 'tblTempUsageDetail_20' ) end [2025-03-26 02:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:36:24] Production.INFO: ==21583== Releasing lock... [2025-03-26 02:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:36:24] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:37:05 [end_date_ymd] => 2025-03-26 02:37:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:37:05' and `end` < '2025-03-26 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-26 02:37:18] Production.INFO: count ==375 [2025-03-26 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:37:05 - End Time 2025-03-26 02:37:05 [2025-03-26 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763815', 'tblTempUsageDetail_20' ) start [2025-03-26 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763815', 'tblTempUsageDetail_20' ) end [2025-03-26 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763815', 'tblTempVendorCDR_20' ) start [2025-03-26 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763815', 'tblTempVendorCDR_20' ) end [2025-03-26 02:37:18] Production.INFO: ProcessCDR(1,14763815,1,1,2) [2025-03-26 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763815', 'tblTempUsageDetail_20' ) start [2025-03-26 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763815', 'tblTempUsageDetail_20' ) end [2025-03-26 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:37:22] Production.INFO: ==21653== Releasing lock... [2025-03-26 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:37:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:38:06 [end_date_ymd] => 2025-03-26 02:38:06 [RateCDR] => 1 ) [2025-03-26 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-25 23:38:06' and `end` < '2025-03-26 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-26 02:38:18] Production.INFO: count ==373 [2025-03-26 02:38:19] Production.ERROR: pbx CDR StartTime 2025-03-25 23:38:06 - End Time 2025-03-26 02:38:06 [2025-03-26 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763820', 'tblTempUsageDetail_20' ) start [2025-03-26 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763820', 'tblTempUsageDetail_20' ) end [2025-03-26 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763820', 'tblTempVendorCDR_20' ) start [2025-03-26 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763820', 'tblTempVendorCDR_20' ) end [2025-03-26 02:38:19] Production.INFO: ProcessCDR(1,14763820,1,1,2) [2025-03-26 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763820', 'tblTempUsageDetail_20' ) start [2025-03-26 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763820', 'tblTempUsageDetail_20' ) end [2025-03-26 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:38:23] Production.INFO: ==21734== Releasing lock... [2025-03-26 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:38:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:39:05 [end_date_ymd] => 2025-03-26 02:39:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:39:05' and `end` < '2025-03-26 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-26 02:39:18] Production.INFO: count ==372 [2025-03-26 02:39:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:39:05 - End Time 2025-03-26 02:39:05 [2025-03-26 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763825', 'tblTempUsageDetail_20' ) start [2025-03-26 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763825', 'tblTempUsageDetail_20' ) end [2025-03-26 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763825', 'tblTempVendorCDR_20' ) start [2025-03-26 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763825', 'tblTempVendorCDR_20' ) end [2025-03-26 02:39:18] Production.INFO: ProcessCDR(1,14763825,1,1,2) [2025-03-26 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763825', 'tblTempUsageDetail_20' ) start [2025-03-26 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763825', 'tblTempUsageDetail_20' ) end [2025-03-26 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:39:22] Production.INFO: ==21810== Releasing lock... [2025-03-26 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:39:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:40:07 [end_date_ymd] => 2025-03-26 02:40:07 [RateCDR] => 1 ) [2025-03-26 02:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:40:07' and `end` < '2025-03-26 02:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:40:20] Production.INFO: count ==374 [2025-03-26 02:40:20] Production.ERROR: pbx CDR StartTime 2025-03-25 23:40:07 - End Time 2025-03-26 02:40:07 [2025-03-26 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763831', 'tblTempUsageDetail_20' ) start [2025-03-26 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763831', 'tblTempUsageDetail_20' ) end [2025-03-26 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763831', 'tblTempVendorCDR_20' ) start [2025-03-26 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763831', 'tblTempVendorCDR_20' ) end [2025-03-26 02:40:20] Production.INFO: ProcessCDR(1,14763831,1,1,2) [2025-03-26 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763831', 'tblTempUsageDetail_20' ) start [2025-03-26 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763831', 'tblTempUsageDetail_20' ) end [2025-03-26 02:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:40:24] Production.INFO: ==21890== Releasing lock... [2025-03-26 02:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:40:24] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:41:06 [end_date_ymd] => 2025-03-26 02:41:06 [RateCDR] => 1 ) [2025-03-26 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:41:06' and `end` < '2025-03-26 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:41:18] Production.INFO: count ==369 [2025-03-26 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:41:06 - End Time 2025-03-26 02:41:06 [2025-03-26 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763836', 'tblTempUsageDetail_20' ) start [2025-03-26 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763836', 'tblTempUsageDetail_20' ) end [2025-03-26 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763836', 'tblTempVendorCDR_20' ) start [2025-03-26 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763836', 'tblTempVendorCDR_20' ) end [2025-03-26 02:41:18] Production.INFO: ProcessCDR(1,14763836,1,1,2) [2025-03-26 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763836', 'tblTempUsageDetail_20' ) start [2025-03-26 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763836', 'tblTempUsageDetail_20' ) end [2025-03-26 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:41:22] Production.INFO: ==21973== Releasing lock... [2025-03-26 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:41:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:42:06 [end_date_ymd] => 2025-03-26 02:42:06 [RateCDR] => 1 ) [2025-03-26 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-25 23:42:06' and `end` < '2025-03-26 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-26 02:42:19] Production.INFO: count ==369 [2025-03-26 02:42:19] Production.ERROR: pbx CDR StartTime 2025-03-25 23:42:06 - End Time 2025-03-26 02:42:06 [2025-03-26 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763841', 'tblTempUsageDetail_20' ) start [2025-03-26 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763841', 'tblTempUsageDetail_20' ) end [2025-03-26 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763841', 'tblTempVendorCDR_20' ) start [2025-03-26 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763841', 'tblTempVendorCDR_20' ) end [2025-03-26 02:42:19] Production.INFO: ProcessCDR(1,14763841,1,1,2) [2025-03-26 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763841', 'tblTempUsageDetail_20' ) start [2025-03-26 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763841', 'tblTempUsageDetail_20' ) end [2025-03-26 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:42:23] Production.INFO: ==22050== Releasing lock... [2025-03-26 02:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:42:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:43:05 [end_date_ymd] => 2025-03-26 02:43:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:43:05' and `end` < '2025-03-26 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-26 02:43:18] Production.INFO: count ==369 [2025-03-26 02:43:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:43:05 - End Time 2025-03-26 02:43:05 [2025-03-26 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763846', 'tblTempUsageDetail_20' ) start [2025-03-26 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763846', 'tblTempUsageDetail_20' ) end [2025-03-26 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763846', 'tblTempVendorCDR_20' ) start [2025-03-26 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763846', 'tblTempVendorCDR_20' ) end [2025-03-26 02:43:18] Production.INFO: ProcessCDR(1,14763846,1,1,2) [2025-03-26 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763846', 'tblTempUsageDetail_20' ) start [2025-03-26 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763846', 'tblTempUsageDetail_20' ) end [2025-03-26 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:43:22] Production.INFO: ==22120== Releasing lock... [2025-03-26 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:43:22] Production.INFO: 32 MB #Memory Used# [2025-03-26 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:44:06 [end_date_ymd] => 2025-03-26 02:44:06 [RateCDR] => 1 ) [2025-03-26 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-25 23:44:06' and `end` < '2025-03-26 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-26 02:44:19] Production.INFO: count ==367 [2025-03-26 02:44:19] Production.ERROR: pbx CDR StartTime 2025-03-25 23:44:06 - End Time 2025-03-26 02:44:06 [2025-03-26 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763851', 'tblTempUsageDetail_20' ) start [2025-03-26 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763851', 'tblTempUsageDetail_20' ) end [2025-03-26 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763851', 'tblTempVendorCDR_20' ) start [2025-03-26 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763851', 'tblTempVendorCDR_20' ) end [2025-03-26 02:44:19] Production.INFO: ProcessCDR(1,14763851,1,1,2) [2025-03-26 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763851', 'tblTempUsageDetail_20' ) start [2025-03-26 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763851', 'tblTempUsageDetail_20' ) end [2025-03-26 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:44:22] Production.INFO: ==22199== Releasing lock... [2025-03-26 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:44:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:45:06 [end_date_ymd] => 2025-03-26 02:45:06 [RateCDR] => 1 ) [2025-03-26 02: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-25 23:45:06' and `end` < '2025-03-26 02: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-26 02:45:18] Production.INFO: count ==360 [2025-03-26 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:45:06 - End Time 2025-03-26 02:45:06 [2025-03-26 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763856', 'tblTempUsageDetail_20' ) start [2025-03-26 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763856', 'tblTempUsageDetail_20' ) end [2025-03-26 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763856', 'tblTempVendorCDR_20' ) start [2025-03-26 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763856', 'tblTempVendorCDR_20' ) end [2025-03-26 02:45:18] Production.INFO: ProcessCDR(1,14763856,1,1,2) [2025-03-26 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763856', 'tblTempUsageDetail_20' ) start [2025-03-26 02:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763856', 'tblTempUsageDetail_20' ) end [2025-03-26 02:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:45:24] Production.INFO: ==22274== Releasing lock... [2025-03-26 02:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:45:24] Production.INFO: 31 MB #Memory Used# [2025-03-26 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:46:06 [end_date_ymd] => 2025-03-26 02:46:06 [RateCDR] => 1 ) [2025-03-26 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:46:06' and `end` < '2025-03-26 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:46:19] Production.INFO: count ==356 [2025-03-26 02:46:19] Production.ERROR: pbx CDR StartTime 2025-03-25 23:46:06 - End Time 2025-03-26 02:46:06 [2025-03-26 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763861', 'tblTempUsageDetail_20' ) start [2025-03-26 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763861', 'tblTempUsageDetail_20' ) end [2025-03-26 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763861', 'tblTempVendorCDR_20' ) start [2025-03-26 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763861', 'tblTempVendorCDR_20' ) end [2025-03-26 02:46:19] Production.INFO: ProcessCDR(1,14763861,1,1,2) [2025-03-26 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763861', 'tblTempUsageDetail_20' ) start [2025-03-26 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763861', 'tblTempUsageDetail_20' ) end [2025-03-26 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:46:23] Production.INFO: ==22346== Releasing lock... [2025-03-26 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:46:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:47:05 [end_date_ymd] => 2025-03-26 02:47:05 [RateCDR] => 1 ) [2025-03-26 02:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:47:05' and `end` < '2025-03-26 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-26 02:47:18] Production.INFO: count ==351 [2025-03-26 02:47:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:47:05 - End Time 2025-03-26 02:47:05 [2025-03-26 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763866', 'tblTempUsageDetail_20' ) start [2025-03-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763866', 'tblTempUsageDetail_20' ) end [2025-03-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763866', 'tblTempVendorCDR_20' ) start [2025-03-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763866', 'tblTempVendorCDR_20' ) end [2025-03-26 02:47:18] Production.INFO: ProcessCDR(1,14763866,1,1,2) [2025-03-26 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763866', 'tblTempUsageDetail_20' ) start [2025-03-26 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763866', 'tblTempUsageDetail_20' ) end [2025-03-26 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:47:22] Production.INFO: ==22419== Releasing lock... [2025-03-26 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:47:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:48:06 [end_date_ymd] => 2025-03-26 02:48:06 [RateCDR] => 1 ) [2025-03-26 02: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-25 23:48:06' and `end` < '2025-03-26 02: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-26 02:48:18] Production.INFO: count ==350 [2025-03-26 02:48:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:48:06 - End Time 2025-03-26 02:48:06 [2025-03-26 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763871', 'tblTempUsageDetail_20' ) start [2025-03-26 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763871', 'tblTempUsageDetail_20' ) end [2025-03-26 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763871', 'tblTempVendorCDR_20' ) start [2025-03-26 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763871', 'tblTempVendorCDR_20' ) end [2025-03-26 02:48:18] Production.INFO: ProcessCDR(1,14763871,1,1,2) [2025-03-26 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763871', 'tblTempUsageDetail_20' ) start [2025-03-26 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763871', 'tblTempUsageDetail_20' ) end [2025-03-26 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:48:22] Production.INFO: ==22530== Releasing lock... [2025-03-26 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:48:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:49:05 [end_date_ymd] => 2025-03-26 02:49:05 [RateCDR] => 1 ) [2025-03-26 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:49:05' and `end` < '2025-03-26 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:49:17] Production.INFO: count ==353 [2025-03-26 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:49:05 - End Time 2025-03-26 02:49:05 [2025-03-26 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763876', 'tblTempUsageDetail_20' ) start [2025-03-26 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763876', 'tblTempUsageDetail_20' ) end [2025-03-26 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763876', 'tblTempVendorCDR_20' ) start [2025-03-26 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763876', 'tblTempVendorCDR_20' ) end [2025-03-26 02:49:18] Production.INFO: ProcessCDR(1,14763876,1,1,2) [2025-03-26 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763876', 'tblTempUsageDetail_20' ) start [2025-03-26 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763876', 'tblTempUsageDetail_20' ) end [2025-03-26 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:49:22] Production.INFO: ==22600== Releasing lock... [2025-03-26 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:49:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:50:07 [end_date_ymd] => 2025-03-26 02:50:07 [RateCDR] => 1 ) [2025-03-26 02: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-25 23:50:07' and `end` < '2025-03-26 02: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-26 02:50:19] Production.INFO: count ==367 [2025-03-26 02:50:19] Production.ERROR: pbx CDR StartTime 2025-03-25 23:50:07 - End Time 2025-03-26 02:50:07 [2025-03-26 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763882', 'tblTempUsageDetail_20' ) start [2025-03-26 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763882', 'tblTempUsageDetail_20' ) end [2025-03-26 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763882', 'tblTempVendorCDR_20' ) start [2025-03-26 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763882', 'tblTempVendorCDR_20' ) end [2025-03-26 02:50:19] Production.INFO: ProcessCDR(1,14763882,1,1,2) [2025-03-26 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763882', 'tblTempUsageDetail_20' ) start [2025-03-26 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763882', 'tblTempUsageDetail_20' ) end [2025-03-26 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:50:23] Production.INFO: ==22677== Releasing lock... [2025-03-26 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:50:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:51:05 [end_date_ymd] => 2025-03-26 02:51:05 [RateCDR] => 1 ) [2025-03-26 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:51:05' and `end` < '2025-03-26 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:51:18] Production.INFO: count ==375 [2025-03-26 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:51:05 - End Time 2025-03-26 02:51:05 [2025-03-26 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763887', 'tblTempUsageDetail_20' ) start [2025-03-26 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763887', 'tblTempUsageDetail_20' ) end [2025-03-26 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763887', 'tblTempVendorCDR_20' ) start [2025-03-26 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763887', 'tblTempVendorCDR_20' ) end [2025-03-26 02:51:18] Production.INFO: ProcessCDR(1,14763887,1,1,2) [2025-03-26 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763887', 'tblTempUsageDetail_20' ) start [2025-03-26 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763887', 'tblTempUsageDetail_20' ) end [2025-03-26 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:51:22] Production.INFO: ==22754== Releasing lock... [2025-03-26 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:51:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:52:05 [end_date_ymd] => 2025-03-26 02:52:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:52:05' and `end` < '2025-03-26 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-26 02:52:18] Production.INFO: count ==378 [2025-03-26 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:52:05 - End Time 2025-03-26 02:52:05 [2025-03-26 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763892', 'tblTempUsageDetail_20' ) start [2025-03-26 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763892', 'tblTempUsageDetail_20' ) end [2025-03-26 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763892', 'tblTempVendorCDR_20' ) start [2025-03-26 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763892', 'tblTempVendorCDR_20' ) end [2025-03-26 02:52:18] Production.INFO: ProcessCDR(1,14763892,1,1,2) [2025-03-26 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763892', 'tblTempUsageDetail_20' ) start [2025-03-26 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763892', 'tblTempUsageDetail_20' ) end [2025-03-26 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:52:22] Production.INFO: ==22829== Releasing lock... [2025-03-26 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:52:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:53:05 [end_date_ymd] => 2025-03-26 02:53:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:53:05' and `end` < '2025-03-26 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-26 02:53:18] Production.INFO: count ==383 [2025-03-26 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:53:05 - End Time 2025-03-26 02:53:05 [2025-03-26 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763897', 'tblTempUsageDetail_20' ) start [2025-03-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763897', 'tblTempUsageDetail_20' ) end [2025-03-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763897', 'tblTempVendorCDR_20' ) start [2025-03-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763897', 'tblTempVendorCDR_20' ) end [2025-03-26 02:53:18] Production.INFO: ProcessCDR(1,14763897,1,1,2) [2025-03-26 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763897', 'tblTempUsageDetail_20' ) start [2025-03-26 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763897', 'tblTempUsageDetail_20' ) end [2025-03-26 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:53:22] Production.INFO: ==22902== Releasing lock... [2025-03-26 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:54:05 [end_date_ymd] => 2025-03-26 02:54:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:54:05' and `end` < '2025-03-26 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-26 02:54:18] Production.INFO: count ==381 [2025-03-26 02:54:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:54:05 - End Time 2025-03-26 02:54:05 [2025-03-26 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763902', 'tblTempUsageDetail_20' ) start [2025-03-26 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763902', 'tblTempUsageDetail_20' ) end [2025-03-26 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763902', 'tblTempVendorCDR_20' ) start [2025-03-26 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763902', 'tblTempVendorCDR_20' ) end [2025-03-26 02:54:18] Production.INFO: ProcessCDR(1,14763902,1,1,2) [2025-03-26 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763902', 'tblTempUsageDetail_20' ) start [2025-03-26 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763902', 'tblTempUsageDetail_20' ) end [2025-03-26 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:54:22] Production.INFO: ==22977== Releasing lock... [2025-03-26 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:54:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:55:06 [end_date_ymd] => 2025-03-26 02:55:06 [RateCDR] => 1 ) [2025-03-26 02:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:55:06' and `end` < '2025-03-26 02:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:55:18] Production.INFO: count ==380 [2025-03-26 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:55:06 - End Time 2025-03-26 02:55:06 [2025-03-26 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763907', 'tblTempUsageDetail_20' ) start [2025-03-26 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763907', 'tblTempUsageDetail_20' ) end [2025-03-26 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763907', 'tblTempVendorCDR_20' ) start [2025-03-26 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763907', 'tblTempVendorCDR_20' ) end [2025-03-26 02:55:18] Production.INFO: ProcessCDR(1,14763907,1,1,2) [2025-03-26 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763907', 'tblTempUsageDetail_20' ) start [2025-03-26 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763907', 'tblTempUsageDetail_20' ) end [2025-03-26 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:55:22] Production.INFO: ==23054== Releasing lock... [2025-03-26 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:55:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:56:05 [end_date_ymd] => 2025-03-26 02:56:05 [RateCDR] => 1 ) [2025-03-26 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-25 23:56:05' and `end` < '2025-03-26 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-26 02:56:18] Production.INFO: count ==380 [2025-03-26 02:56:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:56:05 - End Time 2025-03-26 02:56:05 [2025-03-26 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763912', 'tblTempUsageDetail_20' ) start [2025-03-26 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763912', 'tblTempUsageDetail_20' ) end [2025-03-26 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763912', 'tblTempVendorCDR_20' ) start [2025-03-26 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763912', 'tblTempVendorCDR_20' ) end [2025-03-26 02:56:18] Production.INFO: ProcessCDR(1,14763912,1,1,2) [2025-03-26 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763912', 'tblTempUsageDetail_20' ) start [2025-03-26 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763912', 'tblTempUsageDetail_20' ) end [2025-03-26 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:56:22] Production.INFO: ==23130== Releasing lock... [2025-03-26 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:56:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:57:06 [end_date_ymd] => 2025-03-26 02:57:06 [RateCDR] => 1 ) [2025-03-26 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:57:06' and `end` < '2025-03-26 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:57:18] Production.INFO: count ==380 [2025-03-26 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:57:06 - End Time 2025-03-26 02:57:06 [2025-03-26 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763917', 'tblTempUsageDetail_20' ) start [2025-03-26 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763917', 'tblTempUsageDetail_20' ) end [2025-03-26 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763917', 'tblTempVendorCDR_20' ) start [2025-03-26 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763917', 'tblTempVendorCDR_20' ) end [2025-03-26 02:57:18] Production.INFO: ProcessCDR(1,14763917,1,1,2) [2025-03-26 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763917', 'tblTempUsageDetail_20' ) start [2025-03-26 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763917', 'tblTempUsageDetail_20' ) end [2025-03-26 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:57:22] Production.INFO: ==23206== Releasing lock... [2025-03-26 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:57:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:58:06 [end_date_ymd] => 2025-03-26 02:58:06 [RateCDR] => 1 ) [2025-03-26 02: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-25 23:58:06' and `end` < '2025-03-26 02: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-26 02:58:19] Production.INFO: count ==366 [2025-03-26 02:58:19] Production.ERROR: pbx CDR StartTime 2025-03-25 23:58:06 - End Time 2025-03-26 02:58:06 [2025-03-26 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763922', 'tblTempUsageDetail_20' ) start [2025-03-26 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763922', 'tblTempUsageDetail_20' ) end [2025-03-26 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763922', 'tblTempVendorCDR_20' ) start [2025-03-26 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763922', 'tblTempVendorCDR_20' ) end [2025-03-26 02:58:19] Production.INFO: ProcessCDR(1,14763922,1,1,2) [2025-03-26 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763922', 'tblTempUsageDetail_20' ) start [2025-03-26 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763922', 'tblTempUsageDetail_20' ) end [2025-03-26 02:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:58:23] Production.INFO: ==23285== Releasing lock... [2025-03-26 02:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:58:23] Production.INFO: 31 MB #Memory Used# [2025-03-26 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 23:59:06 [end_date_ymd] => 2025-03-26 02:59:06 [RateCDR] => 1 ) [2025-03-26 02:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 23:59:06' and `end` < '2025-03-26 02:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 02:59:18] Production.INFO: count ==381 [2025-03-26 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-25 23:59:06 - End Time 2025-03-26 02:59:06 [2025-03-26 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763927', 'tblTempUsageDetail_20' ) start [2025-03-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763927', 'tblTempUsageDetail_20' ) end [2025-03-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763927', 'tblTempVendorCDR_20' ) start [2025-03-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763927', 'tblTempVendorCDR_20' ) end [2025-03-26 02:59:18] Production.INFO: ProcessCDR(1,14763927,1,1,2) [2025-03-26 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763927', 'tblTempUsageDetail_20' ) start [2025-03-26 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763927', 'tblTempUsageDetail_20' ) end [2025-03-26 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 02:59:22] Production.INFO: ==23358== Releasing lock... [2025-03-26 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 02:59:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:00:06 [end_date_ymd] => 2025-03-26 03:00:06 [RateCDR] => 1 ) [2025-03-26 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-26 00:00:06' and `end` < '2025-03-26 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-26 03:00:19] Production.INFO: count ==388 [2025-03-26 03:00:19] Production.ERROR: pbx CDR StartTime 2025-03-26 00:00:06 - End Time 2025-03-26 03:00:06 [2025-03-26 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763933', 'tblTempUsageDetail_20' ) start [2025-03-26 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763933', 'tblTempUsageDetail_20' ) end [2025-03-26 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763933', 'tblTempVendorCDR_20' ) start [2025-03-26 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763933', 'tblTempVendorCDR_20' ) end [2025-03-26 03:00:19] Production.INFO: ProcessCDR(1,14763933,1,1,2) [2025-03-26 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763933', 'tblTempUsageDetail_20' ) start [2025-03-26 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763933', 'tblTempUsageDetail_20' ) end [2025-03-26 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:00:23] Production.INFO: ==23438== Releasing lock... [2025-03-26 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:00:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:01:06 [end_date_ymd] => 2025-03-26 03:01:06 [RateCDR] => 1 ) [2025-03-26 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-26 00:01:06' and `end` < '2025-03-26 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-26 03:01:18] Production.INFO: count ==388 [2025-03-26 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:01:06 - End Time 2025-03-26 03:01:06 [2025-03-26 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763938', 'tblTempUsageDetail_20' ) start [2025-03-26 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763938', 'tblTempUsageDetail_20' ) end [2025-03-26 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763938', 'tblTempVendorCDR_20' ) start [2025-03-26 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763938', 'tblTempVendorCDR_20' ) end [2025-03-26 03:01:18] Production.INFO: ProcessCDR(1,14763938,1,1,2) [2025-03-26 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763938', 'tblTempUsageDetail_20' ) start [2025-03-26 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763938', 'tblTempUsageDetail_20' ) end [2025-03-26 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:01:22] Production.INFO: ==23531== Releasing lock... [2025-03-26 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:01:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:02:05 [end_date_ymd] => 2025-03-26 03:02:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:02:05' and `end` < '2025-03-26 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-26 03:02:18] Production.INFO: count ==388 [2025-03-26 03:02:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:02:05 - End Time 2025-03-26 03:02:05 [2025-03-26 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763943', 'tblTempUsageDetail_20' ) start [2025-03-26 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763943', 'tblTempUsageDetail_20' ) end [2025-03-26 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763943', 'tblTempVendorCDR_20' ) start [2025-03-26 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763943', 'tblTempVendorCDR_20' ) end [2025-03-26 03:02:18] Production.INFO: ProcessCDR(1,14763943,1,1,2) [2025-03-26 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763943', 'tblTempUsageDetail_20' ) start [2025-03-26 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763943', 'tblTempUsageDetail_20' ) end [2025-03-26 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:02:21] Production.INFO: ==23683== Releasing lock... [2025-03-26 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:02:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:03:06 [end_date_ymd] => 2025-03-26 03:03:06 [RateCDR] => 1 ) [2025-03-26 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:03:06' and `end` < '2025-03-26 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:03:18] Production.INFO: count ==384 [2025-03-26 03:03:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:03:06 - End Time 2025-03-26 03:03:06 [2025-03-26 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763948', 'tblTempUsageDetail_20' ) start [2025-03-26 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763948', 'tblTempUsageDetail_20' ) end [2025-03-26 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763948', 'tblTempVendorCDR_20' ) start [2025-03-26 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763948', 'tblTempVendorCDR_20' ) end [2025-03-26 03:03:18] Production.INFO: ProcessCDR(1,14763948,1,1,2) [2025-03-26 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763948', 'tblTempUsageDetail_20' ) start [2025-03-26 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763948', 'tblTempUsageDetail_20' ) end [2025-03-26 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:03:22] Production.INFO: ==23798== Releasing lock... [2025-03-26 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:03:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:04:05 [end_date_ymd] => 2025-03-26 03:04:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:04:05' and `end` < '2025-03-26 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-26 03:04:17] Production.INFO: count ==384 [2025-03-26 03:04:17] Production.ERROR: pbx CDR StartTime 2025-03-26 00:04:05 - End Time 2025-03-26 03:04:05 [2025-03-26 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763953', 'tblTempUsageDetail_20' ) start [2025-03-26 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763953', 'tblTempUsageDetail_20' ) end [2025-03-26 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763953', 'tblTempVendorCDR_20' ) start [2025-03-26 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763953', 'tblTempVendorCDR_20' ) end [2025-03-26 03:04:17] Production.INFO: ProcessCDR(1,14763953,1,1,2) [2025-03-26 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763953', 'tblTempUsageDetail_20' ) start [2025-03-26 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763953', 'tblTempUsageDetail_20' ) end [2025-03-26 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:04:21] Production.INFO: ==23871== Releasing lock... [2025-03-26 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:04:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:05:05 [end_date_ymd] => 2025-03-26 03:05:05 [RateCDR] => 1 ) [2025-03-26 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:05:05' and `end` < '2025-03-26 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:05:17] Production.INFO: count ==384 [2025-03-26 03:05:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:05:05 - End Time 2025-03-26 03:05:05 [2025-03-26 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763955', 'tblTempUsageDetail_20' ) start [2025-03-26 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763955', 'tblTempUsageDetail_20' ) end [2025-03-26 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763955', 'tblTempVendorCDR_20' ) start [2025-03-26 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763955', 'tblTempVendorCDR_20' ) end [2025-03-26 03:05:18] Production.INFO: ProcessCDR(1,14763955,1,1,2) [2025-03-26 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763955', 'tblTempUsageDetail_20' ) start [2025-03-26 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763955', 'tblTempUsageDetail_20' ) end [2025-03-26 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:05:21] Production.INFO: ==23946== Releasing lock... [2025-03-26 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:05:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:06:05 [end_date_ymd] => 2025-03-26 03:06:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:06:05' and `end` < '2025-03-26 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-26 03:06:17] Production.INFO: count ==372 [2025-03-26 03:06:17] Production.ERROR: pbx CDR StartTime 2025-03-26 00:06:05 - End Time 2025-03-26 03:06:05 [2025-03-26 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763963', 'tblTempUsageDetail_20' ) start [2025-03-26 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763963', 'tblTempUsageDetail_20' ) end [2025-03-26 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763963', 'tblTempVendorCDR_20' ) start [2025-03-26 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763963', 'tblTempVendorCDR_20' ) end [2025-03-26 03:06:17] Production.INFO: ProcessCDR(1,14763963,1,1,2) [2025-03-26 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763963', 'tblTempUsageDetail_20' ) start [2025-03-26 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763963', 'tblTempUsageDetail_20' ) end [2025-03-26 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:06:21] Production.INFO: ==24104== Releasing lock... [2025-03-26 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:06:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:07:05 [end_date_ymd] => 2025-03-26 03:07:05 [RateCDR] => 1 ) [2025-03-26 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:07:05' and `end` < '2025-03-26 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:07:18] Production.INFO: count ==372 [2025-03-26 03:07:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:07:05 - End Time 2025-03-26 03:07:05 [2025-03-26 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763968', 'tblTempUsageDetail_20' ) start [2025-03-26 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763968', 'tblTempUsageDetail_20' ) end [2025-03-26 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763968', 'tblTempVendorCDR_20' ) start [2025-03-26 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763968', 'tblTempVendorCDR_20' ) end [2025-03-26 03:07:18] Production.INFO: ProcessCDR(1,14763968,1,1,2) [2025-03-26 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763968', 'tblTempUsageDetail_20' ) start [2025-03-26 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763968', 'tblTempUsageDetail_20' ) end [2025-03-26 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:07:21] Production.INFO: ==24179== Releasing lock... [2025-03-26 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:07:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:08:06 [end_date_ymd] => 2025-03-26 03:08:06 [RateCDR] => 1 ) [2025-03-26 03: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-26 00:08:06' and `end` < '2025-03-26 03: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-26 03:08:18] Production.INFO: count ==371 [2025-03-26 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:08:06 - End Time 2025-03-26 03:08:06 [2025-03-26 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763973', 'tblTempUsageDetail_20' ) start [2025-03-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763973', 'tblTempUsageDetail_20' ) end [2025-03-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763973', 'tblTempVendorCDR_20' ) start [2025-03-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763973', 'tblTempVendorCDR_20' ) end [2025-03-26 03:08:18] Production.INFO: ProcessCDR(1,14763973,1,1,2) [2025-03-26 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763973', 'tblTempUsageDetail_20' ) start [2025-03-26 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763973', 'tblTempUsageDetail_20' ) end [2025-03-26 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:08:22] Production.INFO: ==24252== Releasing lock... [2025-03-26 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:08:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:09:05 [end_date_ymd] => 2025-03-26 03:09:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:09:05' and `end` < '2025-03-26 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-26 03:09:18] Production.INFO: count ==371 [2025-03-26 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:09:05 - End Time 2025-03-26 03:09:05 [2025-03-26 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763978', 'tblTempUsageDetail_20' ) start [2025-03-26 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763978', 'tblTempUsageDetail_20' ) end [2025-03-26 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763978', 'tblTempVendorCDR_20' ) start [2025-03-26 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763978', 'tblTempVendorCDR_20' ) end [2025-03-26 03:09:18] Production.INFO: ProcessCDR(1,14763978,1,1,2) [2025-03-26 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763978', 'tblTempUsageDetail_20' ) start [2025-03-26 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763978', 'tblTempUsageDetail_20' ) end [2025-03-26 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:09:21] Production.INFO: ==24406== Releasing lock... [2025-03-26 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:09:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:10:06 [end_date_ymd] => 2025-03-26 03:10:06 [RateCDR] => 1 ) [2025-03-26 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-26 00:10:06' and `end` < '2025-03-26 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-26 03:10:18] Production.INFO: count ==360 [2025-03-26 03:10:19] Production.ERROR: pbx CDR StartTime 2025-03-26 00:10:06 - End Time 2025-03-26 03:10:06 [2025-03-26 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763983', 'tblTempUsageDetail_20' ) start [2025-03-26 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763983', 'tblTempUsageDetail_20' ) end [2025-03-26 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763983', 'tblTempVendorCDR_20' ) start [2025-03-26 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763983', 'tblTempVendorCDR_20' ) end [2025-03-26 03:10:19] Production.INFO: ProcessCDR(1,14763983,1,1,2) [2025-03-26 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763983', 'tblTempUsageDetail_20' ) start [2025-03-26 03:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763983', 'tblTempUsageDetail_20' ) end [2025-03-26 03:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:10:24] Production.INFO: ==24480== Releasing lock... [2025-03-26 03:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:10:24] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:11:05 [end_date_ymd] => 2025-03-26 03:11:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:11:05' and `end` < '2025-03-26 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-26 03:11:17] Production.INFO: count ==360 [2025-03-26 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-26 00:11:05 - End Time 2025-03-26 03:11:05 [2025-03-26 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763989', 'tblTempUsageDetail_20' ) start [2025-03-26 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763989', 'tblTempUsageDetail_20' ) end [2025-03-26 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763989', 'tblTempVendorCDR_20' ) start [2025-03-26 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763989', 'tblTempVendorCDR_20' ) end [2025-03-26 03:11:17] Production.INFO: ProcessCDR(1,14763989,1,1,2) [2025-03-26 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763989', 'tblTempUsageDetail_20' ) start [2025-03-26 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763989', 'tblTempUsageDetail_20' ) end [2025-03-26 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:11:21] Production.INFO: ==24560== Releasing lock... [2025-03-26 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:11:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:12:05 [end_date_ymd] => 2025-03-26 03:12:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:12:05' and `end` < '2025-03-26 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-26 03:12:18] Production.INFO: count ==369 [2025-03-26 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:12:05 - End Time 2025-03-26 03:12:05 [2025-03-26 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763994', 'tblTempUsageDetail_20' ) start [2025-03-26 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763994', 'tblTempUsageDetail_20' ) end [2025-03-26 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763994', 'tblTempVendorCDR_20' ) start [2025-03-26 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763994', 'tblTempVendorCDR_20' ) end [2025-03-26 03:12:18] Production.INFO: ProcessCDR(1,14763994,1,1,2) [2025-03-26 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763994', 'tblTempUsageDetail_20' ) start [2025-03-26 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763994', 'tblTempUsageDetail_20' ) end [2025-03-26 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:12:21] Production.INFO: ==24635== Releasing lock... [2025-03-26 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:12:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:13:05 [end_date_ymd] => 2025-03-26 03:13:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:13:05' and `end` < '2025-03-26 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-26 03:13:17] Production.INFO: count ==375 [2025-03-26 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-26 00:13:05 - End Time 2025-03-26 03:13:05 [2025-03-26 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763999', 'tblTempUsageDetail_20' ) start [2025-03-26 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763999', 'tblTempUsageDetail_20' ) end [2025-03-26 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763999', 'tblTempVendorCDR_20' ) start [2025-03-26 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763999', 'tblTempVendorCDR_20' ) end [2025-03-26 03:13:17] Production.INFO: ProcessCDR(1,14763999,1,1,2) [2025-03-26 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763999', 'tblTempUsageDetail_20' ) start [2025-03-26 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763999', 'tblTempUsageDetail_20' ) end [2025-03-26 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:13:21] Production.INFO: ==24789== Releasing lock... [2025-03-26 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:13:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:14:05 [end_date_ymd] => 2025-03-26 03:14:05 [RateCDR] => 1 ) [2025-03-26 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:14:05' and `end` < '2025-03-26 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:14:17] Production.INFO: count ==375 [2025-03-26 03:14:17] Production.ERROR: pbx CDR StartTime 2025-03-26 00:14:05 - End Time 2025-03-26 03:14:05 [2025-03-26 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764004', 'tblTempUsageDetail_20' ) start [2025-03-26 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764004', 'tblTempUsageDetail_20' ) end [2025-03-26 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764004', 'tblTempVendorCDR_20' ) start [2025-03-26 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764004', 'tblTempVendorCDR_20' ) end [2025-03-26 03:14:17] Production.INFO: ProcessCDR(1,14764004,1,1,2) [2025-03-26 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764004', 'tblTempUsageDetail_20' ) start [2025-03-26 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764004', 'tblTempUsageDetail_20' ) end [2025-03-26 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:14:21] Production.INFO: ==24865== Releasing lock... [2025-03-26 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:14:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:15:05 [end_date_ymd] => 2025-03-26 03:15:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:15:05' and `end` < '2025-03-26 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-26 03:15:17] Production.INFO: count ==370 [2025-03-26 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-26 00:15:05 - End Time 2025-03-26 03:15:05 [2025-03-26 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764009', 'tblTempUsageDetail_20' ) start [2025-03-26 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764009', 'tblTempUsageDetail_20' ) end [2025-03-26 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764009', 'tblTempVendorCDR_20' ) start [2025-03-26 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764009', 'tblTempVendorCDR_20' ) end [2025-03-26 03:15:17] Production.INFO: ProcessCDR(1,14764009,1,1,2) [2025-03-26 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764009', 'tblTempUsageDetail_20' ) start [2025-03-26 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764009', 'tblTempUsageDetail_20' ) end [2025-03-26 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:15:21] Production.INFO: ==24936== Releasing lock... [2025-03-26 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:15:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:16:05 [end_date_ymd] => 2025-03-26 03:16:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:16:05' and `end` < '2025-03-26 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-26 03:16:18] Production.INFO: count ==370 [2025-03-26 03:16:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:16:05 - End Time 2025-03-26 03:16:05 [2025-03-26 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764014', 'tblTempUsageDetail_20' ) start [2025-03-26 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764014', 'tblTempUsageDetail_20' ) end [2025-03-26 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764014', 'tblTempVendorCDR_20' ) start [2025-03-26 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764014', 'tblTempVendorCDR_20' ) end [2025-03-26 03:16:18] Production.INFO: ProcessCDR(1,14764014,1,1,2) [2025-03-26 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764014', 'tblTempUsageDetail_20' ) start [2025-03-26 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764014', 'tblTempUsageDetail_20' ) end [2025-03-26 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:16:21] Production.INFO: ==25011== Releasing lock... [2025-03-26 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:17:05 [end_date_ymd] => 2025-03-26 03:17:05 [RateCDR] => 1 ) [2025-03-26 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:17:05' and `end` < '2025-03-26 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:17:17] Production.INFO: count ==370 [2025-03-26 03:17:17] Production.ERROR: pbx CDR StartTime 2025-03-26 00:17:05 - End Time 2025-03-26 03:17:05 [2025-03-26 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764019', 'tblTempUsageDetail_20' ) start [2025-03-26 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764019', 'tblTempUsageDetail_20' ) end [2025-03-26 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764019', 'tblTempVendorCDR_20' ) start [2025-03-26 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764019', 'tblTempVendorCDR_20' ) end [2025-03-26 03:17:17] Production.INFO: ProcessCDR(1,14764019,1,1,2) [2025-03-26 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764019', 'tblTempUsageDetail_20' ) start [2025-03-26 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764019', 'tblTempUsageDetail_20' ) end [2025-03-26 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:17:21] Production.INFO: ==25168== Releasing lock... [2025-03-26 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:17:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:18:05 [end_date_ymd] => 2025-03-26 03:18:05 [RateCDR] => 1 ) [2025-03-26 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:18:05' and `end` < '2025-03-26 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:18:17] Production.INFO: count ==370 [2025-03-26 03:18:17] Production.ERROR: pbx CDR StartTime 2025-03-26 00:18:05 - End Time 2025-03-26 03:18:05 [2025-03-26 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764024', 'tblTempUsageDetail_20' ) start [2025-03-26 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764024', 'tblTempUsageDetail_20' ) end [2025-03-26 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764024', 'tblTempVendorCDR_20' ) start [2025-03-26 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764024', 'tblTempVendorCDR_20' ) end [2025-03-26 03:18:17] Production.INFO: ProcessCDR(1,14764024,1,1,2) [2025-03-26 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764024', 'tblTempUsageDetail_20' ) start [2025-03-26 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764024', 'tblTempUsageDetail_20' ) end [2025-03-26 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:18:21] Production.INFO: ==25240== Releasing lock... [2025-03-26 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:18:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:19:06 [end_date_ymd] => 2025-03-26 03:19:06 [RateCDR] => 1 ) [2025-03-26 03: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-26 00:19:06' and `end` < '2025-03-26 03: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-26 03:19:18] Production.INFO: count ==369 [2025-03-26 03:19:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:19:06 - End Time 2025-03-26 03:19:06 [2025-03-26 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764029', 'tblTempUsageDetail_20' ) start [2025-03-26 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764029', 'tblTempUsageDetail_20' ) end [2025-03-26 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764029', 'tblTempVendorCDR_20' ) start [2025-03-26 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764029', 'tblTempVendorCDR_20' ) end [2025-03-26 03:19:18] Production.INFO: ProcessCDR(1,14764029,1,1,2) [2025-03-26 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764029', 'tblTempUsageDetail_20' ) start [2025-03-26 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764029', 'tblTempUsageDetail_20' ) end [2025-03-26 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:19:21] Production.INFO: ==25319== Releasing lock... [2025-03-26 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:20:05 [end_date_ymd] => 2025-03-26 03:20:05 [RateCDR] => 1 ) [2025-03-26 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:20:05' and `end` < '2025-03-26 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:20:18] Production.INFO: count ==364 [2025-03-26 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:20:05 - End Time 2025-03-26 03:20:05 [2025-03-26 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764034', 'tblTempUsageDetail_20' ) start [2025-03-26 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764034', 'tblTempUsageDetail_20' ) end [2025-03-26 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764034', 'tblTempVendorCDR_20' ) start [2025-03-26 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764034', 'tblTempVendorCDR_20' ) end [2025-03-26 03:20:18] Production.INFO: ProcessCDR(1,14764034,1,1,2) [2025-03-26 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764034', 'tblTempUsageDetail_20' ) start [2025-03-26 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764034', 'tblTempUsageDetail_20' ) end [2025-03-26 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:20:22] Production.INFO: ==25440== Releasing lock... [2025-03-26 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:20:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:21:05 [end_date_ymd] => 2025-03-26 03:21:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:21:05' and `end` < '2025-03-26 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-26 03:21:17] Production.INFO: count ==355 [2025-03-26 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-26 00:21:05 - End Time 2025-03-26 03:21:05 [2025-03-26 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764040', 'tblTempUsageDetail_20' ) start [2025-03-26 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764040', 'tblTempUsageDetail_20' ) end [2025-03-26 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764040', 'tblTempVendorCDR_20' ) start [2025-03-26 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764040', 'tblTempVendorCDR_20' ) end [2025-03-26 03:21:17] Production.INFO: ProcessCDR(1,14764040,1,1,2) [2025-03-26 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764040', 'tblTempUsageDetail_20' ) start [2025-03-26 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764040', 'tblTempUsageDetail_20' ) end [2025-03-26 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:21:21] Production.INFO: ==25513== Releasing lock... [2025-03-26 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:21:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:22:05 [end_date_ymd] => 2025-03-26 03:22:05 [RateCDR] => 1 ) [2025-03-26 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:22:05' and `end` < '2025-03-26 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:22:18] Production.INFO: count ==355 [2025-03-26 03:22:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:22:05 - End Time 2025-03-26 03:22:05 [2025-03-26 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764045', 'tblTempUsageDetail_20' ) start [2025-03-26 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764045', 'tblTempUsageDetail_20' ) end [2025-03-26 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764045', 'tblTempVendorCDR_20' ) start [2025-03-26 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764045', 'tblTempVendorCDR_20' ) end [2025-03-26 03:22:18] Production.INFO: ProcessCDR(1,14764045,1,1,2) [2025-03-26 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764045', 'tblTempUsageDetail_20' ) start [2025-03-26 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764045', 'tblTempUsageDetail_20' ) end [2025-03-26 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:22:21] Production.INFO: ==25589== Releasing lock... [2025-03-26 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:22:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:23:05 [end_date_ymd] => 2025-03-26 03:23:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:23:05' and `end` < '2025-03-26 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-26 03:23:18] Production.INFO: count ==353 [2025-03-26 03:23:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:23:05 - End Time 2025-03-26 03:23:05 [2025-03-26 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764050', 'tblTempUsageDetail_20' ) start [2025-03-26 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764050', 'tblTempUsageDetail_20' ) end [2025-03-26 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764050', 'tblTempVendorCDR_20' ) start [2025-03-26 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764050', 'tblTempVendorCDR_20' ) end [2025-03-26 03:23:18] Production.INFO: ProcessCDR(1,14764050,1,1,2) [2025-03-26 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764050', 'tblTempUsageDetail_20' ) start [2025-03-26 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764050', 'tblTempUsageDetail_20' ) end [2025-03-26 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:23:21] Production.INFO: ==25679== Releasing lock... [2025-03-26 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:24:05 [end_date_ymd] => 2025-03-26 03:24:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:24:05' and `end` < '2025-03-26 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-26 03:24:18] Production.INFO: count ==353 [2025-03-26 03:24:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:24:05 - End Time 2025-03-26 03:24:05 [2025-03-26 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764055', 'tblTempUsageDetail_20' ) start [2025-03-26 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764055', 'tblTempUsageDetail_20' ) end [2025-03-26 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764055', 'tblTempVendorCDR_20' ) start [2025-03-26 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764055', 'tblTempVendorCDR_20' ) end [2025-03-26 03:24:18] Production.INFO: ProcessCDR(1,14764055,1,1,2) [2025-03-26 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764055', 'tblTempUsageDetail_20' ) start [2025-03-26 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764055', 'tblTempUsageDetail_20' ) end [2025-03-26 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:24:21] Production.INFO: ==25783== Releasing lock... [2025-03-26 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:24:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:25:05 [end_date_ymd] => 2025-03-26 03:25:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:25:05' and `end` < '2025-03-26 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-26 03:25:18] Production.INFO: count ==355 [2025-03-26 03:25:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:25:05 - End Time 2025-03-26 03:25:05 [2025-03-26 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764060', 'tblTempUsageDetail_20' ) start [2025-03-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764060', 'tblTempUsageDetail_20' ) end [2025-03-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764060', 'tblTempVendorCDR_20' ) start [2025-03-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764060', 'tblTempVendorCDR_20' ) end [2025-03-26 03:25:18] Production.INFO: ProcessCDR(1,14764060,1,1,2) [2025-03-26 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764060', 'tblTempUsageDetail_20' ) start [2025-03-26 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764060', 'tblTempUsageDetail_20' ) end [2025-03-26 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:25:21] Production.INFO: ==25887== Releasing lock... [2025-03-26 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:25:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:26:05 [end_date_ymd] => 2025-03-26 03:26:05 [RateCDR] => 1 ) [2025-03-26 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:26:05' and `end` < '2025-03-26 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:26:17] Production.INFO: count ==355 [2025-03-26 03:26:17] Production.ERROR: pbx CDR StartTime 2025-03-26 00:26:05 - End Time 2025-03-26 03:26:05 [2025-03-26 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764065', 'tblTempUsageDetail_20' ) start [2025-03-26 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764065', 'tblTempUsageDetail_20' ) end [2025-03-26 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764065', 'tblTempVendorCDR_20' ) start [2025-03-26 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764065', 'tblTempVendorCDR_20' ) end [2025-03-26 03:26:17] Production.INFO: ProcessCDR(1,14764065,1,1,2) [2025-03-26 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764065', 'tblTempUsageDetail_20' ) start [2025-03-26 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764065', 'tblTempUsageDetail_20' ) end [2025-03-26 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:26:21] Production.INFO: ==25959== Releasing lock... [2025-03-26 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:26:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:27:05 [end_date_ymd] => 2025-03-26 03:27:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:27:05' and `end` < '2025-03-26 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-26 03:27:18] Production.INFO: count ==355 [2025-03-26 03:27:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:27:05 - End Time 2025-03-26 03:27:05 [2025-03-26 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764070', 'tblTempUsageDetail_20' ) start [2025-03-26 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764070', 'tblTempUsageDetail_20' ) end [2025-03-26 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764070', 'tblTempVendorCDR_20' ) start [2025-03-26 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764070', 'tblTempVendorCDR_20' ) end [2025-03-26 03:27:18] Production.INFO: ProcessCDR(1,14764070,1,1,2) [2025-03-26 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764070', 'tblTempUsageDetail_20' ) start [2025-03-26 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764070', 'tblTempUsageDetail_20' ) end [2025-03-26 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:27:21] Production.INFO: ==26032== Releasing lock... [2025-03-26 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:27:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:28:06 [end_date_ymd] => 2025-03-26 03:28:06 [RateCDR] => 1 ) [2025-03-26 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-26 00:28:06' and `end` < '2025-03-26 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-26 03:28:18] Production.INFO: count ==350 [2025-03-26 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:28:06 - End Time 2025-03-26 03:28:06 [2025-03-26 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764075', 'tblTempUsageDetail_20' ) start [2025-03-26 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764075', 'tblTempUsageDetail_20' ) end [2025-03-26 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764075', 'tblTempVendorCDR_20' ) start [2025-03-26 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764075', 'tblTempVendorCDR_20' ) end [2025-03-26 03:28:18] Production.INFO: ProcessCDR(1,14764075,1,1,2) [2025-03-26 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764075', 'tblTempUsageDetail_20' ) start [2025-03-26 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764075', 'tblTempUsageDetail_20' ) end [2025-03-26 03:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:28:24] Production.INFO: ==26103== Releasing lock... [2025-03-26 03:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:28:24] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:29:05 [end_date_ymd] => 2025-03-26 03:29:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:29:05' and `end` < '2025-03-26 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-26 03:29:17] Production.INFO: count ==351 [2025-03-26 03:29:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:29:05 - End Time 2025-03-26 03:29:05 [2025-03-26 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764080', 'tblTempUsageDetail_20' ) start [2025-03-26 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764080', 'tblTempUsageDetail_20' ) end [2025-03-26 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764080', 'tblTempVendorCDR_20' ) start [2025-03-26 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764080', 'tblTempVendorCDR_20' ) end [2025-03-26 03:29:18] Production.INFO: ProcessCDR(1,14764080,1,1,2) [2025-03-26 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764080', 'tblTempUsageDetail_20' ) start [2025-03-26 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764080', 'tblTempUsageDetail_20' ) end [2025-03-26 03:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:29:23] Production.INFO: ==26175== Releasing lock... [2025-03-26 03:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:29:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:30:05 [end_date_ymd] => 2025-03-26 03:30:05 [RateCDR] => 1 ) [2025-03-26 03:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:30:05' and `end` < '2025-03-26 03:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:30:18] Production.INFO: count ==343 [2025-03-26 03:30:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:30:05 - End Time 2025-03-26 03:30:05 [2025-03-26 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764086', 'tblTempUsageDetail_20' ) start [2025-03-26 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764086', 'tblTempUsageDetail_20' ) end [2025-03-26 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764086', 'tblTempVendorCDR_20' ) start [2025-03-26 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764086', 'tblTempVendorCDR_20' ) end [2025-03-26 03:30:18] Production.INFO: ProcessCDR(1,14764086,1,1,2) [2025-03-26 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764086', 'tblTempUsageDetail_20' ) start [2025-03-26 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764086', 'tblTempUsageDetail_20' ) end [2025-03-26 03:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:30:21] Production.INFO: ==26250== Releasing lock... [2025-03-26 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:30:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:31:06 [end_date_ymd] => 2025-03-26 03:31:06 [RateCDR] => 1 ) [2025-03-26 03:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:31:06' and `end` < '2025-03-26 03:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:31:18] Production.INFO: count ==343 [2025-03-26 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:31:06 - End Time 2025-03-26 03:31:06 [2025-03-26 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764091', 'tblTempUsageDetail_20' ) start [2025-03-26 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764091', 'tblTempUsageDetail_20' ) end [2025-03-26 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764091', 'tblTempVendorCDR_20' ) start [2025-03-26 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764091', 'tblTempVendorCDR_20' ) end [2025-03-26 03:31:18] Production.INFO: ProcessCDR(1,14764091,1,1,2) [2025-03-26 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764091', 'tblTempUsageDetail_20' ) start [2025-03-26 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764091', 'tblTempUsageDetail_20' ) end [2025-03-26 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:31:22] Production.INFO: ==26322== Releasing lock... [2025-03-26 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:31:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:32:06 [end_date_ymd] => 2025-03-26 03:32:06 [RateCDR] => 1 ) [2025-03-26 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-26 00:32:06' and `end` < '2025-03-26 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-26 03:32:18] Production.INFO: count ==344 [2025-03-26 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:32:06 - End Time 2025-03-26 03:32:06 [2025-03-26 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764096', 'tblTempUsageDetail_20' ) start [2025-03-26 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764096', 'tblTempUsageDetail_20' ) end [2025-03-26 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764096', 'tblTempVendorCDR_20' ) start [2025-03-26 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764096', 'tblTempVendorCDR_20' ) end [2025-03-26 03:32:18] Production.INFO: ProcessCDR(1,14764096,1,1,2) [2025-03-26 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764096', 'tblTempUsageDetail_20' ) start [2025-03-26 03:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764096', 'tblTempUsageDetail_20' ) end [2025-03-26 03:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:32:24] Production.INFO: ==26394== Releasing lock... [2025-03-26 03:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:32:24] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:33:06 [end_date_ymd] => 2025-03-26 03:33:06 [RateCDR] => 1 ) [2025-03-26 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:33:06' and `end` < '2025-03-26 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:33:18] Production.INFO: count ==344 [2025-03-26 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:33:06 - End Time 2025-03-26 03:33:06 [2025-03-26 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764101', 'tblTempUsageDetail_20' ) start [2025-03-26 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764101', 'tblTempUsageDetail_20' ) end [2025-03-26 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764101', 'tblTempVendorCDR_20' ) start [2025-03-26 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764101', 'tblTempVendorCDR_20' ) end [2025-03-26 03:33:18] Production.INFO: ProcessCDR(1,14764101,1,1,2) [2025-03-26 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764101', 'tblTempUsageDetail_20' ) start [2025-03-26 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764101', 'tblTempUsageDetail_20' ) end [2025-03-26 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:33:22] Production.INFO: ==26469== Releasing lock... [2025-03-26 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:33:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:34:06 [end_date_ymd] => 2025-03-26 03:34:06 [RateCDR] => 1 ) [2025-03-26 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-26 00:34:06' and `end` < '2025-03-26 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-26 03:34:19] Production.INFO: count ==344 [2025-03-26 03:34:19] Production.ERROR: pbx CDR StartTime 2025-03-26 00:34:06 - End Time 2025-03-26 03:34:06 [2025-03-26 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764106', 'tblTempUsageDetail_20' ) start [2025-03-26 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764106', 'tblTempUsageDetail_20' ) end [2025-03-26 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764106', 'tblTempVendorCDR_20' ) start [2025-03-26 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764106', 'tblTempVendorCDR_20' ) end [2025-03-26 03:34:19] Production.INFO: ProcessCDR(1,14764106,1,1,2) [2025-03-26 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764106', 'tblTempUsageDetail_20' ) start [2025-03-26 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764106', 'tblTempUsageDetail_20' ) end [2025-03-26 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:34:22] Production.INFO: ==26539== Releasing lock... [2025-03-26 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:34:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:35:05 [end_date_ymd] => 2025-03-26 03:35:05 [RateCDR] => 1 ) [2025-03-26 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:35:05' and `end` < '2025-03-26 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:35:18] Production.INFO: count ==346 [2025-03-26 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:35:05 - End Time 2025-03-26 03:35:05 [2025-03-26 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764111', 'tblTempUsageDetail_20' ) start [2025-03-26 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764111', 'tblTempUsageDetail_20' ) end [2025-03-26 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764111', 'tblTempVendorCDR_20' ) start [2025-03-26 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764111', 'tblTempVendorCDR_20' ) end [2025-03-26 03:35:18] Production.INFO: ProcessCDR(1,14764111,1,1,2) [2025-03-26 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764111', 'tblTempUsageDetail_20' ) start [2025-03-26 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764111', 'tblTempUsageDetail_20' ) end [2025-03-26 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:35:22] Production.INFO: ==26612== Releasing lock... [2025-03-26 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:35:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:36:06 [end_date_ymd] => 2025-03-26 03:36:06 [RateCDR] => 1 ) [2025-03-26 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-26 00:36:06' and `end` < '2025-03-26 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-26 03:36:18] Production.INFO: count ==344 [2025-03-26 03:36:19] Production.ERROR: pbx CDR StartTime 2025-03-26 00:36:06 - End Time 2025-03-26 03:36:06 [2025-03-26 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764116', 'tblTempUsageDetail_20' ) start [2025-03-26 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764116', 'tblTempUsageDetail_20' ) end [2025-03-26 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764116', 'tblTempVendorCDR_20' ) start [2025-03-26 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764116', 'tblTempVendorCDR_20' ) end [2025-03-26 03:36:19] Production.INFO: ProcessCDR(1,14764116,1,1,2) [2025-03-26 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764116', 'tblTempUsageDetail_20' ) start [2025-03-26 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764116', 'tblTempUsageDetail_20' ) end [2025-03-26 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:36:22] Production.INFO: ==26739== Releasing lock... [2025-03-26 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:36:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:37:05 [end_date_ymd] => 2025-03-26 03:37:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:37:05' and `end` < '2025-03-26 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-26 03:37:18] Production.INFO: count ==346 [2025-03-26 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:37:05 - End Time 2025-03-26 03:37:05 [2025-03-26 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764121', 'tblTempUsageDetail_20' ) start [2025-03-26 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764121', 'tblTempUsageDetail_20' ) end [2025-03-26 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764121', 'tblTempVendorCDR_20' ) start [2025-03-26 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764121', 'tblTempVendorCDR_20' ) end [2025-03-26 03:37:18] Production.INFO: ProcessCDR(1,14764121,1,1,2) [2025-03-26 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764121', 'tblTempUsageDetail_20' ) start [2025-03-26 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764121', 'tblTempUsageDetail_20' ) end [2025-03-26 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:37:22] Production.INFO: ==26834== Releasing lock... [2025-03-26 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:37:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:38:06 [end_date_ymd] => 2025-03-26 03:38:06 [RateCDR] => 1 ) [2025-03-26 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-26 00:38:06' and `end` < '2025-03-26 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-26 03:38:18] Production.INFO: count ==346 [2025-03-26 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:38:06 - End Time 2025-03-26 03:38:06 [2025-03-26 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764126', 'tblTempUsageDetail_20' ) start [2025-03-26 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764126', 'tblTempUsageDetail_20' ) end [2025-03-26 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764126', 'tblTempVendorCDR_20' ) start [2025-03-26 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764126', 'tblTempVendorCDR_20' ) end [2025-03-26 03:38:19] Production.INFO: ProcessCDR(1,14764126,1,1,2) [2025-03-26 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764126', 'tblTempUsageDetail_20' ) start [2025-03-26 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764126', 'tblTempUsageDetail_20' ) end [2025-03-26 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:38:22] Production.INFO: ==26909== Releasing lock... [2025-03-26 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:38:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:39:05 [end_date_ymd] => 2025-03-26 03:39:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:39:05' and `end` < '2025-03-26 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-26 03:39:18] Production.INFO: count ==345 [2025-03-26 03:39:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:39:05 - End Time 2025-03-26 03:39:05 [2025-03-26 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764131', 'tblTempUsageDetail_20' ) start [2025-03-26 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764131', 'tblTempUsageDetail_20' ) end [2025-03-26 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764131', 'tblTempVendorCDR_20' ) start [2025-03-26 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764131', 'tblTempVendorCDR_20' ) end [2025-03-26 03:39:18] Production.INFO: ProcessCDR(1,14764131,1,1,2) [2025-03-26 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764131', 'tblTempUsageDetail_20' ) start [2025-03-26 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764131', 'tblTempUsageDetail_20' ) end [2025-03-26 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:39:21] Production.INFO: ==26981== Releasing lock... [2025-03-26 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:39:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:40:07 [end_date_ymd] => 2025-03-26 03:40:07 [RateCDR] => 1 ) [2025-03-26 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:40:07' and `end` < '2025-03-26 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:40:19] Production.INFO: count ==337 [2025-03-26 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-26 00:40:07 - End Time 2025-03-26 03:40:07 [2025-03-26 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764136', 'tblTempUsageDetail_20' ) start [2025-03-26 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764136', 'tblTempUsageDetail_20' ) end [2025-03-26 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764136', 'tblTempVendorCDR_20' ) start [2025-03-26 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764136', 'tblTempVendorCDR_20' ) end [2025-03-26 03:40:19] Production.INFO: ProcessCDR(1,14764136,1,1,2) [2025-03-26 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764136', 'tblTempUsageDetail_20' ) start [2025-03-26 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764136', 'tblTempUsageDetail_20' ) end [2025-03-26 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:40:23] Production.INFO: ==27052== Releasing lock... [2025-03-26 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:40:23] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:41:06 [end_date_ymd] => 2025-03-26 03:41:06 [RateCDR] => 1 ) [2025-03-26 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:41:06' and `end` < '2025-03-26 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:41:18] Production.INFO: count ==337 [2025-03-26 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:41:06 - End Time 2025-03-26 03:41:06 [2025-03-26 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764142', 'tblTempUsageDetail_20' ) start [2025-03-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764142', 'tblTempUsageDetail_20' ) end [2025-03-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764142', 'tblTempVendorCDR_20' ) start [2025-03-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764142', 'tblTempVendorCDR_20' ) end [2025-03-26 03:41:18] Production.INFO: ProcessCDR(1,14764142,1,1,2) [2025-03-26 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764142', 'tblTempUsageDetail_20' ) start [2025-03-26 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764142', 'tblTempUsageDetail_20' ) end [2025-03-26 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:41:22] Production.INFO: ==27130== Releasing lock... [2025-03-26 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:41:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:42:06 [end_date_ymd] => 2025-03-26 03:42:06 [RateCDR] => 1 ) [2025-03-26 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-26 00:42:06' and `end` < '2025-03-26 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-26 03:42:19] Production.INFO: count ==342 [2025-03-26 03:42:19] Production.ERROR: pbx CDR StartTime 2025-03-26 00:42:06 - End Time 2025-03-26 03:42:06 [2025-03-26 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764147', 'tblTempUsageDetail_20' ) start [2025-03-26 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764147', 'tblTempUsageDetail_20' ) end [2025-03-26 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764147', 'tblTempVendorCDR_20' ) start [2025-03-26 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764147', 'tblTempVendorCDR_20' ) end [2025-03-26 03:42:19] Production.INFO: ProcessCDR(1,14764147,1,1,2) [2025-03-26 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764147', 'tblTempUsageDetail_20' ) start [2025-03-26 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764147', 'tblTempUsageDetail_20' ) end [2025-03-26 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:42:22] Production.INFO: ==27214== Releasing lock... [2025-03-26 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:42:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:43:06 [end_date_ymd] => 2025-03-26 03:43:06 [RateCDR] => 1 ) [2025-03-26 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-26 00:43:06' and `end` < '2025-03-26 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-26 03:43:18] Production.INFO: count ==342 [2025-03-26 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:43:06 - End Time 2025-03-26 03:43:06 [2025-03-26 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764152', 'tblTempUsageDetail_20' ) start [2025-03-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764152', 'tblTempUsageDetail_20' ) end [2025-03-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764152', 'tblTempVendorCDR_20' ) start [2025-03-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764152', 'tblTempVendorCDR_20' ) end [2025-03-26 03:43:18] Production.INFO: ProcessCDR(1,14764152,1,1,2) [2025-03-26 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764152', 'tblTempUsageDetail_20' ) start [2025-03-26 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764152', 'tblTempUsageDetail_20' ) end [2025-03-26 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:43:22] Production.INFO: ==27292== Releasing lock... [2025-03-26 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:43:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 03:44:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:44:07 [end_date_ymd] => 2025-03-26 03:44:07 [RateCDR] => 1 ) [2025-03-26 03:44:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:44:07' and `end` < '2025-03-26 03:44:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:44:19] Production.INFO: count ==341 [2025-03-26 03:44:19] Production.ERROR: pbx CDR StartTime 2025-03-26 00:44:07 - End Time 2025-03-26 03:44:07 [2025-03-26 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764157', 'tblTempUsageDetail_20' ) start [2025-03-26 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764157', 'tblTempUsageDetail_20' ) end [2025-03-26 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764157', 'tblTempVendorCDR_20' ) start [2025-03-26 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764157', 'tblTempVendorCDR_20' ) end [2025-03-26 03:44:19] Production.INFO: ProcessCDR(1,14764157,1,1,2) [2025-03-26 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764157', 'tblTempUsageDetail_20' ) start [2025-03-26 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764157', 'tblTempUsageDetail_20' ) end [2025-03-26 03:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:44:23] Production.INFO: ==27372== Releasing lock... [2025-03-26 03:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:44:23] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:45:06 [end_date_ymd] => 2025-03-26 03:45:06 [RateCDR] => 1 ) [2025-03-26 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-26 00:45:06' and `end` < '2025-03-26 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-26 03:45:18] Production.INFO: count ==339 [2025-03-26 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:45:06 - End Time 2025-03-26 03:45:06 [2025-03-26 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764162', 'tblTempUsageDetail_20' ) start [2025-03-26 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764162', 'tblTempUsageDetail_20' ) end [2025-03-26 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764162', 'tblTempVendorCDR_20' ) start [2025-03-26 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764162', 'tblTempVendorCDR_20' ) end [2025-03-26 03:45:18] Production.INFO: ProcessCDR(1,14764162,1,1,2) [2025-03-26 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764162', 'tblTempUsageDetail_20' ) start [2025-03-26 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764162', 'tblTempUsageDetail_20' ) end [2025-03-26 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:45:22] Production.INFO: ==27448== Releasing lock... [2025-03-26 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:45:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:46:04 [end_date_ymd] => 2025-03-26 03:46:04 [RateCDR] => 1 ) [2025-03-26 03:46: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-26 00:46:04' and `end` < '2025-03-26 03:46: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-26 03:46:17] Production.INFO: count ==323 [2025-03-26 03:46:17] Production.ERROR: pbx CDR StartTime 2025-03-26 00:46:04 - End Time 2025-03-26 03:46:04 [2025-03-26 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764165', 'tblTempUsageDetail_20' ) start [2025-03-26 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764165', 'tblTempUsageDetail_20' ) end [2025-03-26 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764165', 'tblTempVendorCDR_20' ) start [2025-03-26 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764165', 'tblTempVendorCDR_20' ) end [2025-03-26 03:46:17] Production.INFO: ProcessCDR(1,14764165,1,1,2) [2025-03-26 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764165', 'tblTempUsageDetail_20' ) start [2025-03-26 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764165', 'tblTempUsageDetail_20' ) end [2025-03-26 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:46:21] Production.INFO: ==27525== Releasing lock... [2025-03-26 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:46:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:47:06 [end_date_ymd] => 2025-03-26 03:47:06 [RateCDR] => 1 ) [2025-03-26 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-26 00:47:06' and `end` < '2025-03-26 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-26 03:47:18] Production.INFO: count ==318 [2025-03-26 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:47:06 - End Time 2025-03-26 03:47:06 [2025-03-26 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764172', 'tblTempUsageDetail_20' ) start [2025-03-26 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764172', 'tblTempUsageDetail_20' ) end [2025-03-26 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764172', 'tblTempVendorCDR_20' ) start [2025-03-26 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764172', 'tblTempVendorCDR_20' ) end [2025-03-26 03:47:18] Production.INFO: ProcessCDR(1,14764172,1,1,2) [2025-03-26 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764172', 'tblTempUsageDetail_20' ) start [2025-03-26 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764172', 'tblTempUsageDetail_20' ) end [2025-03-26 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:47:22] Production.INFO: ==27608== Releasing lock... [2025-03-26 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:47:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:48:05 [end_date_ymd] => 2025-03-26 03:48:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:48:05' and `end` < '2025-03-26 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-26 03:48:18] Production.INFO: count ==314 [2025-03-26 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:48:05 - End Time 2025-03-26 03:48:05 [2025-03-26 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764177', 'tblTempUsageDetail_20' ) start [2025-03-26 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764177', 'tblTempUsageDetail_20' ) end [2025-03-26 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764177', 'tblTempVendorCDR_20' ) start [2025-03-26 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764177', 'tblTempVendorCDR_20' ) end [2025-03-26 03:48:18] Production.INFO: ProcessCDR(1,14764177,1,1,2) [2025-03-26 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764177', 'tblTempUsageDetail_20' ) start [2025-03-26 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764177', 'tblTempUsageDetail_20' ) end [2025-03-26 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:48:22] Production.INFO: ==27696== Releasing lock... [2025-03-26 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:48:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:49:05 [end_date_ymd] => 2025-03-26 03:49:05 [RateCDR] => 1 ) [2025-03-26 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:49:05' and `end` < '2025-03-26 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:49:18] Production.INFO: count ==314 [2025-03-26 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:49:05 - End Time 2025-03-26 03:49:05 [2025-03-26 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764182', 'tblTempUsageDetail_20' ) start [2025-03-26 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764182', 'tblTempUsageDetail_20' ) end [2025-03-26 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764182', 'tblTempVendorCDR_20' ) start [2025-03-26 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764182', 'tblTempVendorCDR_20' ) end [2025-03-26 03:49:18] Production.INFO: ProcessCDR(1,14764182,1,1,2) [2025-03-26 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764182', 'tblTempUsageDetail_20' ) start [2025-03-26 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764182', 'tblTempUsageDetail_20' ) end [2025-03-26 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:49:22] Production.INFO: ==27775== Releasing lock... [2025-03-26 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:49:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:50:07 [end_date_ymd] => 2025-03-26 03:50:07 [RateCDR] => 1 ) [2025-03-26 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:50:07' and `end` < '2025-03-26 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:50:19] Production.INFO: count ==299 [2025-03-26 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-26 00:50:07 - End Time 2025-03-26 03:50:07 [2025-03-26 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764188', 'tblTempUsageDetail_20' ) start [2025-03-26 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764188', 'tblTempUsageDetail_20' ) end [2025-03-26 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764188', 'tblTempVendorCDR_20' ) start [2025-03-26 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764188', 'tblTempVendorCDR_20' ) end [2025-03-26 03:50:20] Production.INFO: ProcessCDR(1,14764188,1,1,2) [2025-03-26 03:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764188', 'tblTempUsageDetail_20' ) start [2025-03-26 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764188', 'tblTempUsageDetail_20' ) end [2025-03-26 03:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:50:24] Production.INFO: ==27862== Releasing lock... [2025-03-26 03:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:50:24] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:51:06 [end_date_ymd] => 2025-03-26 03:51:06 [RateCDR] => 1 ) [2025-03-26 03: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-26 00:51:06' and `end` < '2025-03-26 03: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-26 03:51:18] Production.INFO: count ==297 [2025-03-26 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:51:06 - End Time 2025-03-26 03:51:06 [2025-03-26 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764193', 'tblTempUsageDetail_20' ) start [2025-03-26 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764193', 'tblTempUsageDetail_20' ) end [2025-03-26 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764193', 'tblTempVendorCDR_20' ) start [2025-03-26 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764193', 'tblTempVendorCDR_20' ) end [2025-03-26 03:51:18] Production.INFO: ProcessCDR(1,14764193,1,1,2) [2025-03-26 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764193', 'tblTempUsageDetail_20' ) start [2025-03-26 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764193', 'tblTempUsageDetail_20' ) end [2025-03-26 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:51:22] Production.INFO: ==27987== Releasing lock... [2025-03-26 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:51:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:52:06 [end_date_ymd] => 2025-03-26 03:52:06 [RateCDR] => 1 ) [2025-03-26 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-26 00:52:06' and `end` < '2025-03-26 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-26 03:52:18] Production.INFO: count ==296 [2025-03-26 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:52:06 - End Time 2025-03-26 03:52:06 [2025-03-26 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764198', 'tblTempUsageDetail_20' ) start [2025-03-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764198', 'tblTempUsageDetail_20' ) end [2025-03-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764198', 'tblTempVendorCDR_20' ) start [2025-03-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764198', 'tblTempVendorCDR_20' ) end [2025-03-26 03:52:18] Production.INFO: ProcessCDR(1,14764198,1,1,2) [2025-03-26 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764198', 'tblTempUsageDetail_20' ) start [2025-03-26 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764198', 'tblTempUsageDetail_20' ) end [2025-03-26 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:52:22] Production.INFO: ==28074== Releasing lock... [2025-03-26 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:52:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:53:05 [end_date_ymd] => 2025-03-26 03:53:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:53:05' and `end` < '2025-03-26 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-26 03:53:18] Production.INFO: count ==294 [2025-03-26 03:53:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:53:05 - End Time 2025-03-26 03:53:05 [2025-03-26 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764203', 'tblTempUsageDetail_20' ) start [2025-03-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764203', 'tblTempUsageDetail_20' ) end [2025-03-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764203', 'tblTempVendorCDR_20' ) start [2025-03-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764203', 'tblTempVendorCDR_20' ) end [2025-03-26 03:53:18] Production.INFO: ProcessCDR(1,14764203,1,1,2) [2025-03-26 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764203', 'tblTempUsageDetail_20' ) start [2025-03-26 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764203', 'tblTempUsageDetail_20' ) end [2025-03-26 03:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:53:23] Production.INFO: ==28158== Releasing lock... [2025-03-26 03:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:53:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:54:05 [end_date_ymd] => 2025-03-26 03:54:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:54:05' and `end` < '2025-03-26 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-26 03:54:17] Production.INFO: count ==289 [2025-03-26 03:54:17] Production.ERROR: pbx CDR StartTime 2025-03-26 00:54:05 - End Time 2025-03-26 03:54:05 [2025-03-26 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764208', 'tblTempUsageDetail_20' ) start [2025-03-26 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764208', 'tblTempUsageDetail_20' ) end [2025-03-26 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764208', 'tblTempVendorCDR_20' ) start [2025-03-26 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764208', 'tblTempVendorCDR_20' ) end [2025-03-26 03:54:17] Production.INFO: ProcessCDR(1,14764208,1,1,2) [2025-03-26 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764208', 'tblTempUsageDetail_20' ) start [2025-03-26 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764208', 'tblTempUsageDetail_20' ) end [2025-03-26 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:54:21] Production.INFO: ==28240== Releasing lock... [2025-03-26 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:54:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:55:05 [end_date_ymd] => 2025-03-26 03:55:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:55:05' and `end` < '2025-03-26 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-26 03:55:17] Production.INFO: count ==289 [2025-03-26 03:55:17] Production.ERROR: pbx CDR StartTime 2025-03-26 00:55:05 - End Time 2025-03-26 03:55:05 [2025-03-26 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764213', 'tblTempUsageDetail_20' ) start [2025-03-26 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764213', 'tblTempUsageDetail_20' ) end [2025-03-26 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764213', 'tblTempVendorCDR_20' ) start [2025-03-26 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764213', 'tblTempVendorCDR_20' ) end [2025-03-26 03:55:18] Production.INFO: ProcessCDR(1,14764213,1,1,2) [2025-03-26 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764213', 'tblTempUsageDetail_20' ) start [2025-03-26 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764213', 'tblTempUsageDetail_20' ) end [2025-03-26 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:55:21] Production.INFO: ==28326== Releasing lock... [2025-03-26 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:55:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:56:06 [end_date_ymd] => 2025-03-26 03:56:06 [RateCDR] => 1 ) [2025-03-26 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:56:06' and `end` < '2025-03-26 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:56:18] Production.INFO: count ==287 [2025-03-26 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:56:06 - End Time 2025-03-26 03:56:06 [2025-03-26 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764218', 'tblTempUsageDetail_20' ) start [2025-03-26 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764218', 'tblTempUsageDetail_20' ) end [2025-03-26 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764218', 'tblTempVendorCDR_20' ) start [2025-03-26 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764218', 'tblTempVendorCDR_20' ) end [2025-03-26 03:56:18] Production.INFO: ProcessCDR(1,14764218,1,1,2) [2025-03-26 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764218', 'tblTempUsageDetail_20' ) start [2025-03-26 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764218', 'tblTempUsageDetail_20' ) end [2025-03-26 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:56:22] Production.INFO: ==28418== Releasing lock... [2025-03-26 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:56:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:57:05 [end_date_ymd] => 2025-03-26 03:57:05 [RateCDR] => 1 ) [2025-03-26 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-26 00:57:05' and `end` < '2025-03-26 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-26 03:57:18] Production.INFO: count ==286 [2025-03-26 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:57:05 - End Time 2025-03-26 03:57:05 [2025-03-26 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764223', 'tblTempUsageDetail_20' ) start [2025-03-26 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764223', 'tblTempUsageDetail_20' ) end [2025-03-26 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764223', 'tblTempVendorCDR_20' ) start [2025-03-26 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764223', 'tblTempVendorCDR_20' ) end [2025-03-26 03:57:18] Production.INFO: ProcessCDR(1,14764223,1,1,2) [2025-03-26 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764223', 'tblTempUsageDetail_20' ) start [2025-03-26 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764223', 'tblTempUsageDetail_20' ) end [2025-03-26 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:57:22] Production.INFO: ==28501== Releasing lock... [2025-03-26 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:57:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:58:05 [end_date_ymd] => 2025-03-26 03:58:05 [RateCDR] => 1 ) [2025-03-26 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:58:05' and `end` < '2025-03-26 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:58:18] Production.INFO: count ==286 [2025-03-26 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:58:05 - End Time 2025-03-26 03:58:05 [2025-03-26 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764228', 'tblTempUsageDetail_20' ) start [2025-03-26 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764228', 'tblTempUsageDetail_20' ) end [2025-03-26 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764228', 'tblTempVendorCDR_20' ) start [2025-03-26 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764228', 'tblTempVendorCDR_20' ) end [2025-03-26 03:58:18] Production.INFO: ProcessCDR(1,14764228,1,1,2) [2025-03-26 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764228', 'tblTempUsageDetail_20' ) start [2025-03-26 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764228', 'tblTempUsageDetail_20' ) end [2025-03-26 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:58:22] Production.INFO: ==28585== Releasing lock... [2025-03-26 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:58:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 00:59:05 [end_date_ymd] => 2025-03-26 03:59:05 [RateCDR] => 1 ) [2025-03-26 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 00:59:05' and `end` < '2025-03-26 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 03:59:18] Production.INFO: count ==282 [2025-03-26 03:59:18] Production.ERROR: pbx CDR StartTime 2025-03-26 00:59:05 - End Time 2025-03-26 03:59:05 [2025-03-26 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764233', 'tblTempUsageDetail_20' ) start [2025-03-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764233', 'tblTempUsageDetail_20' ) end [2025-03-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764233', 'tblTempVendorCDR_20' ) start [2025-03-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764233', 'tblTempVendorCDR_20' ) end [2025-03-26 03:59:18] Production.INFO: ProcessCDR(1,14764233,1,1,2) [2025-03-26 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764233', 'tblTempUsageDetail_20' ) start [2025-03-26 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764233', 'tblTempUsageDetail_20' ) end [2025-03-26 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 03:59:22] Production.INFO: ==28676== Releasing lock... [2025-03-26 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 03:59:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:00:06 [end_date_ymd] => 2025-03-26 04:00:06 [RateCDR] => 1 ) [2025-03-26 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:00:06' and `end` < '2025-03-26 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:00:18] Production.INFO: count ==270 [2025-03-26 04:00:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:00:06 - End Time 2025-03-26 04:00:06 [2025-03-26 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764239', 'tblTempUsageDetail_20' ) start [2025-03-26 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764239', 'tblTempUsageDetail_20' ) end [2025-03-26 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764239', 'tblTempVendorCDR_20' ) start [2025-03-26 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764239', 'tblTempVendorCDR_20' ) end [2025-03-26 04:00:18] Production.INFO: ProcessCDR(1,14764239,1,1,2) [2025-03-26 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764239', 'tblTempUsageDetail_20' ) start [2025-03-26 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764239', 'tblTempUsageDetail_20' ) end [2025-03-26 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:00:22] Production.INFO: ==28755== Releasing lock... [2025-03-26 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:00:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:01:06 [end_date_ymd] => 2025-03-26 04:01:06 [RateCDR] => 1 ) [2025-03-26 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-26 01:01:06' and `end` < '2025-03-26 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-26 04:01:18] Production.INFO: count ==270 [2025-03-26 04:01:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:01:06 - End Time 2025-03-26 04:01:06 [2025-03-26 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764245', 'tblTempUsageDetail_20' ) start [2025-03-26 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764245', 'tblTempUsageDetail_20' ) end [2025-03-26 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764245', 'tblTempVendorCDR_20' ) start [2025-03-26 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764245', 'tblTempVendorCDR_20' ) end [2025-03-26 04:01:18] Production.INFO: ProcessCDR(1,14764245,1,1,2) [2025-03-26 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764245', 'tblTempUsageDetail_20' ) start [2025-03-26 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764245', 'tblTempUsageDetail_20' ) end [2025-03-26 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:01:22] Production.INFO: ==28857== Releasing lock... [2025-03-26 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:01:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:02:05 [end_date_ymd] => 2025-03-26 04:02:05 [RateCDR] => 1 ) [2025-03-26 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:02:05' and `end` < '2025-03-26 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:02:17] Production.INFO: count ==268 [2025-03-26 04:02:17] Production.ERROR: pbx CDR StartTime 2025-03-26 01:02:05 - End Time 2025-03-26 04:02:05 [2025-03-26 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764250', 'tblTempUsageDetail_20' ) start [2025-03-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764250', 'tblTempUsageDetail_20' ) end [2025-03-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764250', 'tblTempVendorCDR_20' ) start [2025-03-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764250', 'tblTempVendorCDR_20' ) end [2025-03-26 04:02:17] Production.INFO: ProcessCDR(1,14764250,1,1,2) [2025-03-26 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764250', 'tblTempUsageDetail_20' ) start [2025-03-26 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764250', 'tblTempUsageDetail_20' ) end [2025-03-26 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:02:21] Production.INFO: ==28941== Releasing lock... [2025-03-26 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:02:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:03:06 [end_date_ymd] => 2025-03-26 04:03:06 [RateCDR] => 1 ) [2025-03-26 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-26 01:03:06' and `end` < '2025-03-26 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-26 04:03:18] Production.INFO: count ==269 [2025-03-26 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:03:06 - End Time 2025-03-26 04:03:06 [2025-03-26 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764255', 'tblTempUsageDetail_20' ) start [2025-03-26 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764255', 'tblTempUsageDetail_20' ) end [2025-03-26 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764255', 'tblTempVendorCDR_20' ) start [2025-03-26 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764255', 'tblTempVendorCDR_20' ) end [2025-03-26 04:03:18] Production.INFO: ProcessCDR(1,14764255,1,1,2) [2025-03-26 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764255', 'tblTempUsageDetail_20' ) start [2025-03-26 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764255', 'tblTempUsageDetail_20' ) end [2025-03-26 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:03:22] Production.INFO: ==29026== Releasing lock... [2025-03-26 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:03:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:04:06 [end_date_ymd] => 2025-03-26 04:04:06 [RateCDR] => 1 ) [2025-03-26 04:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:04:06' and `end` < '2025-03-26 04:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:04:18] Production.INFO: count ==268 [2025-03-26 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:04:06 - End Time 2025-03-26 04:04:06 [2025-03-26 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764260', 'tblTempUsageDetail_20' ) start [2025-03-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764260', 'tblTempUsageDetail_20' ) end [2025-03-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764260', 'tblTempVendorCDR_20' ) start [2025-03-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764260', 'tblTempVendorCDR_20' ) end [2025-03-26 04:04:18] Production.INFO: ProcessCDR(1,14764260,1,1,2) [2025-03-26 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764260', 'tblTempUsageDetail_20' ) start [2025-03-26 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764260', 'tblTempUsageDetail_20' ) end [2025-03-26 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:04:22] Production.INFO: ==29112== Releasing lock... [2025-03-26 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:04:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:05:05 [end_date_ymd] => 2025-03-26 04:05:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:05:05' and `end` < '2025-03-26 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-26 04:05:17] Production.INFO: count ==268 [2025-03-26 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:05:05 - End Time 2025-03-26 04:05:05 [2025-03-26 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764265', 'tblTempUsageDetail_20' ) start [2025-03-26 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764265', 'tblTempUsageDetail_20' ) end [2025-03-26 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764265', 'tblTempVendorCDR_20' ) start [2025-03-26 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764265', 'tblTempVendorCDR_20' ) end [2025-03-26 04:05:18] Production.INFO: ProcessCDR(1,14764265,1,1,2) [2025-03-26 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764265', 'tblTempUsageDetail_20' ) start [2025-03-26 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764265', 'tblTempUsageDetail_20' ) end [2025-03-26 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:05:21] Production.INFO: ==29194== Releasing lock... [2025-03-26 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:05:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:06:06 [end_date_ymd] => 2025-03-26 04:06:06 [RateCDR] => 1 ) [2025-03-26 04:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:06:06' and `end` < '2025-03-26 04: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-26 04:06:18] Production.INFO: count ==268 [2025-03-26 04:06:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:06:06 - End Time 2025-03-26 04:06:06 [2025-03-26 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764270', 'tblTempUsageDetail_20' ) start [2025-03-26 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764270', 'tblTempUsageDetail_20' ) end [2025-03-26 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764270', 'tblTempVendorCDR_20' ) start [2025-03-26 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764270', 'tblTempVendorCDR_20' ) end [2025-03-26 04:06:18] Production.INFO: ProcessCDR(1,14764270,1,1,2) [2025-03-26 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764270', 'tblTempUsageDetail_20' ) start [2025-03-26 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764270', 'tblTempUsageDetail_20' ) end [2025-03-26 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:06:22] Production.INFO: ==29316== Releasing lock... [2025-03-26 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:06:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:07:06 [end_date_ymd] => 2025-03-26 04:07:06 [RateCDR] => 1 ) [2025-03-26 04:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:07:06' and `end` < '2025-03-26 04:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:07:18] Production.INFO: count ==268 [2025-03-26 04:07:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:07:06 - End Time 2025-03-26 04:07:06 [2025-03-26 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764275', 'tblTempUsageDetail_20' ) start [2025-03-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764275', 'tblTempUsageDetail_20' ) end [2025-03-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764275', 'tblTempVendorCDR_20' ) start [2025-03-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764275', 'tblTempVendorCDR_20' ) end [2025-03-26 04:07:18] Production.INFO: ProcessCDR(1,14764275,1,1,2) [2025-03-26 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764275', 'tblTempUsageDetail_20' ) start [2025-03-26 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764275', 'tblTempUsageDetail_20' ) end [2025-03-26 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:07:22] Production.INFO: ==29403== Releasing lock... [2025-03-26 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:07:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:08:06 [end_date_ymd] => 2025-03-26 04:08:06 [RateCDR] => 1 ) [2025-03-26 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-26 01:08:06' and `end` < '2025-03-26 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-26 04:08:18] Production.INFO: count ==268 [2025-03-26 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:08:06 - End Time 2025-03-26 04:08:06 [2025-03-26 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764280', 'tblTempUsageDetail_20' ) start [2025-03-26 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764280', 'tblTempUsageDetail_20' ) end [2025-03-26 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764280', 'tblTempVendorCDR_20' ) start [2025-03-26 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764280', 'tblTempVendorCDR_20' ) end [2025-03-26 04:08:18] Production.INFO: ProcessCDR(1,14764280,1,1,2) [2025-03-26 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764280', 'tblTempUsageDetail_20' ) start [2025-03-26 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764280', 'tblTempUsageDetail_20' ) end [2025-03-26 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:08:22] Production.INFO: ==29490== Releasing lock... [2025-03-26 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:08:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:09:06 [end_date_ymd] => 2025-03-26 04:09:06 [RateCDR] => 1 ) [2025-03-26 04:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:09:06' and `end` < '2025-03-26 04:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:09:18] Production.INFO: count ==268 [2025-03-26 04:09:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:09:06 - End Time 2025-03-26 04:09:06 [2025-03-26 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764285', 'tblTempUsageDetail_20' ) start [2025-03-26 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764285', 'tblTempUsageDetail_20' ) end [2025-03-26 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764285', 'tblTempVendorCDR_20' ) start [2025-03-26 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764285', 'tblTempVendorCDR_20' ) end [2025-03-26 04:09:18] Production.INFO: ProcessCDR(1,14764285,1,1,2) [2025-03-26 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764285', 'tblTempUsageDetail_20' ) start [2025-03-26 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764285', 'tblTempUsageDetail_20' ) end [2025-03-26 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:09:22] Production.INFO: ==29569== Releasing lock... [2025-03-26 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:09:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:10:07 [end_date_ymd] => 2025-03-26 04:10:07 [RateCDR] => 1 ) [2025-03-26 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-26 01:10:07' and `end` < '2025-03-26 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-26 04:10:19] Production.INFO: count ==276 [2025-03-26 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-26 01:10:07 - End Time 2025-03-26 04:10:07 [2025-03-26 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764291', 'tblTempUsageDetail_20' ) start [2025-03-26 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764291', 'tblTempUsageDetail_20' ) end [2025-03-26 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764291', 'tblTempVendorCDR_20' ) start [2025-03-26 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764291', 'tblTempVendorCDR_20' ) end [2025-03-26 04:10:20] Production.INFO: ProcessCDR(1,14764291,1,1,2) [2025-03-26 04:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764291', 'tblTempUsageDetail_20' ) start [2025-03-26 04:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764291', 'tblTempUsageDetail_20' ) end [2025-03-26 04:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:10:25] Production.INFO: ==29656== Releasing lock... [2025-03-26 04:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:10:25] Production.INFO: 31 MB #Memory Used# [2025-03-26 04:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:11:06 [end_date_ymd] => 2025-03-26 04:11:06 [RateCDR] => 1 ) [2025-03-26 04:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:11:06' and `end` < '2025-03-26 04:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:11:18] Production.INFO: count ==276 [2025-03-26 04:11:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:11:06 - End Time 2025-03-26 04:11:06 [2025-03-26 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764296', 'tblTempUsageDetail_20' ) start [2025-03-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764296', 'tblTempUsageDetail_20' ) end [2025-03-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764296', 'tblTempVendorCDR_20' ) start [2025-03-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764296', 'tblTempVendorCDR_20' ) end [2025-03-26 04:11:18] Production.INFO: ProcessCDR(1,14764296,1,1,2) [2025-03-26 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764296', 'tblTempUsageDetail_20' ) start [2025-03-26 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764296', 'tblTempUsageDetail_20' ) end [2025-03-26 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:11:22] Production.INFO: ==29743== Releasing lock... [2025-03-26 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:11:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:12:05 [end_date_ymd] => 2025-03-26 04:12:05 [RateCDR] => 1 ) [2025-03-26 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:12:05' and `end` < '2025-03-26 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:12:18] Production.INFO: count ==276 [2025-03-26 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:12:05 - End Time 2025-03-26 04:12:05 [2025-03-26 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764301', 'tblTempUsageDetail_20' ) start [2025-03-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764301', 'tblTempUsageDetail_20' ) end [2025-03-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764301', 'tblTempVendorCDR_20' ) start [2025-03-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764301', 'tblTempVendorCDR_20' ) end [2025-03-26 04:12:18] Production.INFO: ProcessCDR(1,14764301,1,1,2) [2025-03-26 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764301', 'tblTempUsageDetail_20' ) start [2025-03-26 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764301', 'tblTempUsageDetail_20' ) end [2025-03-26 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:12:21] Production.INFO: ==29825== Releasing lock... [2025-03-26 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:12:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:13:05 [end_date_ymd] => 2025-03-26 04:13:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:13:05' and `end` < '2025-03-26 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-26 04:13:18] Production.INFO: count ==278 [2025-03-26 04:13:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:13:05 - End Time 2025-03-26 04:13:05 [2025-03-26 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764306', 'tblTempUsageDetail_20' ) start [2025-03-26 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764306', 'tblTempUsageDetail_20' ) end [2025-03-26 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764306', 'tblTempVendorCDR_20' ) start [2025-03-26 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764306', 'tblTempVendorCDR_20' ) end [2025-03-26 04:13:18] Production.INFO: ProcessCDR(1,14764306,1,1,2) [2025-03-26 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764306', 'tblTempUsageDetail_20' ) start [2025-03-26 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764306', 'tblTempUsageDetail_20' ) end [2025-03-26 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:13:21] Production.INFO: ==29912== Releasing lock... [2025-03-26 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:14:05 [end_date_ymd] => 2025-03-26 04:14:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:14:05' and `end` < '2025-03-26 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-26 04:14:17] Production.INFO: count ==281 [2025-03-26 04:14:17] Production.ERROR: pbx CDR StartTime 2025-03-26 01:14:05 - End Time 2025-03-26 04:14:05 [2025-03-26 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764311', 'tblTempUsageDetail_20' ) start [2025-03-26 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764311', 'tblTempUsageDetail_20' ) end [2025-03-26 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764311', 'tblTempVendorCDR_20' ) start [2025-03-26 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764311', 'tblTempVendorCDR_20' ) end [2025-03-26 04:14:17] Production.INFO: ProcessCDR(1,14764311,1,1,2) [2025-03-26 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764311', 'tblTempUsageDetail_20' ) start [2025-03-26 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764311', 'tblTempUsageDetail_20' ) end [2025-03-26 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:14:20] Production.INFO: ==29993== Releasing lock... [2025-03-26 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:14:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:15:05 [end_date_ymd] => 2025-03-26 04:15:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:15:05' and `end` < '2025-03-26 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-26 04:15:18] Production.INFO: count ==271 [2025-03-26 04:15:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:15:05 - End Time 2025-03-26 04:15:05 [2025-03-26 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764316', 'tblTempUsageDetail_20' ) start [2025-03-26 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764316', 'tblTempUsageDetail_20' ) end [2025-03-26 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764316', 'tblTempVendorCDR_20' ) start [2025-03-26 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764316', 'tblTempVendorCDR_20' ) end [2025-03-26 04:15:18] Production.INFO: ProcessCDR(1,14764316,1,1,2) [2025-03-26 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764316', 'tblTempUsageDetail_20' ) start [2025-03-26 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764316', 'tblTempUsageDetail_20' ) end [2025-03-26 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:15:22] Production.INFO: ==30085== Releasing lock... [2025-03-26 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:15:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:16:05 [end_date_ymd] => 2025-03-26 04:16:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:16:05' and `end` < '2025-03-26 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-26 04:16:18] Production.INFO: count ==269 [2025-03-26 04:16:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:16:05 - End Time 2025-03-26 04:16:05 [2025-03-26 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764321', 'tblTempUsageDetail_20' ) start [2025-03-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764321', 'tblTempUsageDetail_20' ) end [2025-03-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764321', 'tblTempVendorCDR_20' ) start [2025-03-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764321', 'tblTempVendorCDR_20' ) end [2025-03-26 04:16:18] Production.INFO: ProcessCDR(1,14764321,1,1,2) [2025-03-26 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764321', 'tblTempUsageDetail_20' ) start [2025-03-26 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764321', 'tblTempUsageDetail_20' ) end [2025-03-26 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:16:21] Production.INFO: ==30166== Releasing lock... [2025-03-26 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:17:06 [end_date_ymd] => 2025-03-26 04:17:06 [RateCDR] => 1 ) [2025-03-26 04: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-26 01:17:06' and `end` < '2025-03-26 04: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-26 04:17:18] Production.INFO: count ==267 [2025-03-26 04:17:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:17:06 - End Time 2025-03-26 04:17:06 [2025-03-26 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764326', 'tblTempUsageDetail_20' ) start [2025-03-26 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764326', 'tblTempUsageDetail_20' ) end [2025-03-26 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764326', 'tblTempVendorCDR_20' ) start [2025-03-26 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764326', 'tblTempVendorCDR_20' ) end [2025-03-26 04:17:18] Production.INFO: ProcessCDR(1,14764326,1,1,2) [2025-03-26 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764326', 'tblTempUsageDetail_20' ) start [2025-03-26 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764326', 'tblTempUsageDetail_20' ) end [2025-03-26 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:17:22] Production.INFO: ==30256== Releasing lock... [2025-03-26 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:18:05 [end_date_ymd] => 2025-03-26 04:18:05 [RateCDR] => 1 ) [2025-03-26 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:18:05' and `end` < '2025-03-26 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:18:18] Production.INFO: count ==266 [2025-03-26 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:18:05 - End Time 2025-03-26 04:18:05 [2025-03-26 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764331', 'tblTempUsageDetail_20' ) start [2025-03-26 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764331', 'tblTempUsageDetail_20' ) end [2025-03-26 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764331', 'tblTempVendorCDR_20' ) start [2025-03-26 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764331', 'tblTempVendorCDR_20' ) end [2025-03-26 04:18:18] Production.INFO: ProcessCDR(1,14764331,1,1,2) [2025-03-26 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764331', 'tblTempUsageDetail_20' ) start [2025-03-26 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764331', 'tblTempUsageDetail_20' ) end [2025-03-26 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:18:21] Production.INFO: ==30338== Releasing lock... [2025-03-26 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:19:05 [end_date_ymd] => 2025-03-26 04:19:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:19:05' and `end` < '2025-03-26 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-26 04:19:18] Production.INFO: count ==266 [2025-03-26 04:19:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:19:05 - End Time 2025-03-26 04:19:05 [2025-03-26 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764336', 'tblTempUsageDetail_20' ) start [2025-03-26 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764336', 'tblTempUsageDetail_20' ) end [2025-03-26 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764336', 'tblTempVendorCDR_20' ) start [2025-03-26 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764336', 'tblTempVendorCDR_20' ) end [2025-03-26 04:19:18] Production.INFO: ProcessCDR(1,14764336,1,1,2) [2025-03-26 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764336', 'tblTempUsageDetail_20' ) start [2025-03-26 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764336', 'tblTempUsageDetail_20' ) end [2025-03-26 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:19:21] Production.INFO: ==30417== Releasing lock... [2025-03-26 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:19:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:20:06 [end_date_ymd] => 2025-03-26 04:20:06 [RateCDR] => 1 ) [2025-03-26 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-26 01:20:06' and `end` < '2025-03-26 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-26 04:20:18] Production.INFO: count ==258 [2025-03-26 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:20:06 - End Time 2025-03-26 04:20:06 [2025-03-26 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764342', 'tblTempUsageDetail_20' ) start [2025-03-26 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764342', 'tblTempUsageDetail_20' ) end [2025-03-26 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764342', 'tblTempVendorCDR_20' ) start [2025-03-26 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764342', 'tblTempVendorCDR_20' ) end [2025-03-26 04:20:18] Production.INFO: ProcessCDR(1,14764342,1,1,2) [2025-03-26 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764342', 'tblTempUsageDetail_20' ) start [2025-03-26 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764342', 'tblTempUsageDetail_20' ) end [2025-03-26 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:20:21] Production.INFO: ==30507== Releasing lock... [2025-03-26 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:21:06 [end_date_ymd] => 2025-03-26 04:21:06 [RateCDR] => 1 ) [2025-03-26 04:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:21:06' and `end` < '2025-03-26 04:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:21:18] Production.INFO: count ==256 [2025-03-26 04:21:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:21:06 - End Time 2025-03-26 04:21:06 [2025-03-26 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764347', 'tblTempUsageDetail_20' ) start [2025-03-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764347', 'tblTempUsageDetail_20' ) end [2025-03-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764347', 'tblTempVendorCDR_20' ) start [2025-03-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764347', 'tblTempVendorCDR_20' ) end [2025-03-26 04:21:18] Production.INFO: ProcessCDR(1,14764347,1,1,2) [2025-03-26 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764347', 'tblTempUsageDetail_20' ) start [2025-03-26 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764347', 'tblTempUsageDetail_20' ) end [2025-03-26 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:21:21] Production.INFO: ==30587== Releasing lock... [2025-03-26 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:22:05 [end_date_ymd] => 2025-03-26 04:22:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:22:05' and `end` < '2025-03-26 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-26 04:22:18] Production.INFO: count ==256 [2025-03-26 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:22:05 - End Time 2025-03-26 04:22:05 [2025-03-26 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764352', 'tblTempUsageDetail_20' ) start [2025-03-26 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764352', 'tblTempUsageDetail_20' ) end [2025-03-26 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764352', 'tblTempVendorCDR_20' ) start [2025-03-26 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764352', 'tblTempVendorCDR_20' ) end [2025-03-26 04:22:18] Production.INFO: ProcessCDR(1,14764352,1,1,2) [2025-03-26 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764352', 'tblTempUsageDetail_20' ) start [2025-03-26 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764352', 'tblTempUsageDetail_20' ) end [2025-03-26 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:22:21] Production.INFO: ==30710== Releasing lock... [2025-03-26 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:23:05 [end_date_ymd] => 2025-03-26 04:23:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:23:05' and `end` < '2025-03-26 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-26 04:23:17] Production.INFO: count ==256 [2025-03-26 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-26 01:23:05 - End Time 2025-03-26 04:23:05 [2025-03-26 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764357', 'tblTempUsageDetail_20' ) start [2025-03-26 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764357', 'tblTempUsageDetail_20' ) end [2025-03-26 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764357', 'tblTempVendorCDR_20' ) start [2025-03-26 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764357', 'tblTempVendorCDR_20' ) end [2025-03-26 04:23:17] Production.INFO: ProcessCDR(1,14764357,1,1,2) [2025-03-26 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764357', 'tblTempUsageDetail_20' ) start [2025-03-26 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764357', 'tblTempUsageDetail_20' ) end [2025-03-26 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:23:21] Production.INFO: ==30792== Releasing lock... [2025-03-26 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:24:05 [end_date_ymd] => 2025-03-26 04:24:05 [RateCDR] => 1 ) [2025-03-26 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:24:05' and `end` < '2025-03-26 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:24:17] Production.INFO: count ==255 [2025-03-26 04:24:17] Production.ERROR: pbx CDR StartTime 2025-03-26 01:24:05 - End Time 2025-03-26 04:24:05 [2025-03-26 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764362', 'tblTempUsageDetail_20' ) start [2025-03-26 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764362', 'tblTempUsageDetail_20' ) end [2025-03-26 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764362', 'tblTempVendorCDR_20' ) start [2025-03-26 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764362', 'tblTempVendorCDR_20' ) end [2025-03-26 04:24:17] Production.INFO: ProcessCDR(1,14764362,1,1,2) [2025-03-26 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764362', 'tblTempUsageDetail_20' ) start [2025-03-26 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764362', 'tblTempUsageDetail_20' ) end [2025-03-26 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:24:21] Production.INFO: ==30873== Releasing lock... [2025-03-26 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:25:05 [end_date_ymd] => 2025-03-26 04:25:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:25:05' and `end` < '2025-03-26 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-26 04:25:17] Production.INFO: count ==253 [2025-03-26 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-26 01:25:05 - End Time 2025-03-26 04:25:05 [2025-03-26 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764367', 'tblTempUsageDetail_20' ) start [2025-03-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764367', 'tblTempUsageDetail_20' ) end [2025-03-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764367', 'tblTempVendorCDR_20' ) start [2025-03-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764367', 'tblTempVendorCDR_20' ) end [2025-03-26 04:25:17] Production.INFO: ProcessCDR(1,14764367,1,1,2) [2025-03-26 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764367', 'tblTempUsageDetail_20' ) start [2025-03-26 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764367', 'tblTempUsageDetail_20' ) end [2025-03-26 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:25:21] Production.INFO: ==30968== Releasing lock... [2025-03-26 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:26:05 [end_date_ymd] => 2025-03-26 04:26:05 [RateCDR] => 1 ) [2025-03-26 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:26:05' and `end` < '2025-03-26 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:26:18] Production.INFO: count ==253 [2025-03-26 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:26:05 - End Time 2025-03-26 04:26:05 [2025-03-26 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764372', 'tblTempUsageDetail_20' ) start [2025-03-26 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764372', 'tblTempUsageDetail_20' ) end [2025-03-26 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764372', 'tblTempVendorCDR_20' ) start [2025-03-26 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764372', 'tblTempVendorCDR_20' ) end [2025-03-26 04:26:18] Production.INFO: ProcessCDR(1,14764372,1,1,2) [2025-03-26 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764372', 'tblTempUsageDetail_20' ) start [2025-03-26 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764372', 'tblTempUsageDetail_20' ) end [2025-03-26 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:26:21] Production.INFO: ==31052== Releasing lock... [2025-03-26 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 04:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:27:04 [end_date_ymd] => 2025-03-26 04:27:04 [RateCDR] => 1 ) [2025-03-26 04:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:27:04' and `end` < '2025-03-26 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-26 04:27:17] Production.INFO: count ==252 [2025-03-26 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-26 01:27:04 - End Time 2025-03-26 04:27:04 [2025-03-26 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764377', 'tblTempUsageDetail_20' ) start [2025-03-26 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764377', 'tblTempUsageDetail_20' ) end [2025-03-26 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764377', 'tblTempVendorCDR_20' ) start [2025-03-26 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764377', 'tblTempVendorCDR_20' ) end [2025-03-26 04:27:17] Production.INFO: ProcessCDR(1,14764377,1,1,2) [2025-03-26 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764377', 'tblTempUsageDetail_20' ) start [2025-03-26 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764377', 'tblTempUsageDetail_20' ) end [2025-03-26 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:27:20] Production.INFO: ==31128== Releasing lock... [2025-03-26 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:27:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:28:05 [end_date_ymd] => 2025-03-26 04:28:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:28:05' and `end` < '2025-03-26 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-26 04:28:18] Production.INFO: count ==252 [2025-03-26 04:28:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:28:05 - End Time 2025-03-26 04:28:05 [2025-03-26 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764382', 'tblTempUsageDetail_20' ) start [2025-03-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764382', 'tblTempUsageDetail_20' ) end [2025-03-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764382', 'tblTempVendorCDR_20' ) start [2025-03-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764382', 'tblTempVendorCDR_20' ) end [2025-03-26 04:28:18] Production.INFO: ProcessCDR(1,14764382,1,1,2) [2025-03-26 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764382', 'tblTempUsageDetail_20' ) start [2025-03-26 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764382', 'tblTempUsageDetail_20' ) end [2025-03-26 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:28:21] Production.INFO: ==31206== Releasing lock... [2025-03-26 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:29:05 [end_date_ymd] => 2025-03-26 04:29:05 [RateCDR] => 1 ) [2025-03-26 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:29:05' and `end` < '2025-03-26 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:29:18] Production.INFO: count ==251 [2025-03-26 04:29:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:29:05 - End Time 2025-03-26 04:29:05 [2025-03-26 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764387', 'tblTempUsageDetail_20' ) start [2025-03-26 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764387', 'tblTempUsageDetail_20' ) end [2025-03-26 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764387', 'tblTempVendorCDR_20' ) start [2025-03-26 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764387', 'tblTempVendorCDR_20' ) end [2025-03-26 04:29:18] Production.INFO: ProcessCDR(1,14764387,1,1,2) [2025-03-26 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764387', 'tblTempUsageDetail_20' ) start [2025-03-26 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764387', 'tblTempUsageDetail_20' ) end [2025-03-26 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:29:21] Production.INFO: ==31282== Releasing lock... [2025-03-26 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:30:07 [end_date_ymd] => 2025-03-26 04:30:07 [RateCDR] => 1 ) [2025-03-26 04: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-26 01:30:07' and `end` < '2025-03-26 04: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-26 04:30:19] Production.INFO: count ==253 [2025-03-26 04:30:19] Production.ERROR: pbx CDR StartTime 2025-03-26 01:30:07 - End Time 2025-03-26 04:30:07 [2025-03-26 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764394', 'tblTempUsageDetail_20' ) start [2025-03-26 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764394', 'tblTempUsageDetail_20' ) end [2025-03-26 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764394', 'tblTempVendorCDR_20' ) start [2025-03-26 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764394', 'tblTempVendorCDR_20' ) end [2025-03-26 04:30:19] Production.INFO: ProcessCDR(1,14764394,1,1,2) [2025-03-26 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764394', 'tblTempUsageDetail_20' ) start [2025-03-26 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764394', 'tblTempUsageDetail_20' ) end [2025-03-26 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:30:23] Production.INFO: ==31362== Releasing lock... [2025-03-26 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:30:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:31:05 [end_date_ymd] => 2025-03-26 04:31:05 [RateCDR] => 1 ) [2025-03-26 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:31:05' and `end` < '2025-03-26 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:31:17] Production.INFO: count ==253 [2025-03-26 04:31:17] Production.ERROR: pbx CDR StartTime 2025-03-26 01:31:05 - End Time 2025-03-26 04:31:05 [2025-03-26 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764399', 'tblTempUsageDetail_20' ) start [2025-03-26 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764399', 'tblTempUsageDetail_20' ) end [2025-03-26 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764399', 'tblTempVendorCDR_20' ) start [2025-03-26 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764399', 'tblTempVendorCDR_20' ) end [2025-03-26 04:31:17] Production.INFO: ProcessCDR(1,14764399,1,1,2) [2025-03-26 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764399', 'tblTempUsageDetail_20' ) start [2025-03-26 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764399', 'tblTempUsageDetail_20' ) end [2025-03-26 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:31:21] Production.INFO: ==31457== Releasing lock... [2025-03-26 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:31:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:32:05 [end_date_ymd] => 2025-03-26 04:32:05 [RateCDR] => 1 ) [2025-03-26 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:32:05' and `end` < '2025-03-26 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:32:18] Production.INFO: count ==253 [2025-03-26 04:32:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:32:05 - End Time 2025-03-26 04:32:05 [2025-03-26 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764404', 'tblTempUsageDetail_20' ) start [2025-03-26 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764404', 'tblTempUsageDetail_20' ) end [2025-03-26 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764404', 'tblTempVendorCDR_20' ) start [2025-03-26 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764404', 'tblTempVendorCDR_20' ) end [2025-03-26 04:32:18] Production.INFO: ProcessCDR(1,14764404,1,1,2) [2025-03-26 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764404', 'tblTempUsageDetail_20' ) start [2025-03-26 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764404', 'tblTempUsageDetail_20' ) end [2025-03-26 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:32:21] Production.INFO: ==31539== Releasing lock... [2025-03-26 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:33:05 [end_date_ymd] => 2025-03-26 04:33:05 [RateCDR] => 1 ) [2025-03-26 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:33:05' and `end` < '2025-03-26 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:33:18] Production.INFO: count ==253 [2025-03-26 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:33:05 - End Time 2025-03-26 04:33:05 [2025-03-26 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764409', 'tblTempUsageDetail_20' ) start [2025-03-26 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764409', 'tblTempUsageDetail_20' ) end [2025-03-26 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764409', 'tblTempVendorCDR_20' ) start [2025-03-26 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764409', 'tblTempVendorCDR_20' ) end [2025-03-26 04:33:18] Production.INFO: ProcessCDR(1,14764409,1,1,2) [2025-03-26 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764409', 'tblTempUsageDetail_20' ) start [2025-03-26 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764409', 'tblTempUsageDetail_20' ) end [2025-03-26 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:33:21] Production.INFO: ==31622== Releasing lock... [2025-03-26 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:34:06 [end_date_ymd] => 2025-03-26 04:34:06 [RateCDR] => 1 ) [2025-03-26 04:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:34:06' and `end` < '2025-03-26 04:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:34:18] Production.INFO: count ==253 [2025-03-26 04:34:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:34:06 - End Time 2025-03-26 04:34:06 [2025-03-26 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764414', 'tblTempUsageDetail_20' ) start [2025-03-26 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764414', 'tblTempUsageDetail_20' ) end [2025-03-26 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764414', 'tblTempVendorCDR_20' ) start [2025-03-26 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764414', 'tblTempVendorCDR_20' ) end [2025-03-26 04:34:18] Production.INFO: ProcessCDR(1,14764414,1,1,2) [2025-03-26 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764414', 'tblTempUsageDetail_20' ) start [2025-03-26 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764414', 'tblTempUsageDetail_20' ) end [2025-03-26 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:34:21] Production.INFO: ==31696== Releasing lock... [2025-03-26 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:35:05 [end_date_ymd] => 2025-03-26 04:35:05 [RateCDR] => 1 ) [2025-03-26 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:35:05' and `end` < '2025-03-26 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:35:17] Production.INFO: count ==253 [2025-03-26 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-26 01:35:05 - End Time 2025-03-26 04:35:05 [2025-03-26 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764419', 'tblTempUsageDetail_20' ) start [2025-03-26 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764419', 'tblTempUsageDetail_20' ) end [2025-03-26 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764419', 'tblTempVendorCDR_20' ) start [2025-03-26 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764419', 'tblTempVendorCDR_20' ) end [2025-03-26 04:35:17] Production.INFO: ProcessCDR(1,14764419,1,1,2) [2025-03-26 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764419', 'tblTempUsageDetail_20' ) start [2025-03-26 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764419', 'tblTempUsageDetail_20' ) end [2025-03-26 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:35:20] Production.INFO: ==31772== Releasing lock... [2025-03-26 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:35:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:36:06 [end_date_ymd] => 2025-03-26 04:36:06 [RateCDR] => 1 ) [2025-03-26 04:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:36:06' and `end` < '2025-03-26 04:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:36:18] Production.INFO: count ==253 [2025-03-26 04:36:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:36:06 - End Time 2025-03-26 04:36:06 [2025-03-26 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764424', 'tblTempUsageDetail_20' ) start [2025-03-26 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764424', 'tblTempUsageDetail_20' ) end [2025-03-26 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764424', 'tblTempVendorCDR_20' ) start [2025-03-26 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764424', 'tblTempVendorCDR_20' ) end [2025-03-26 04:36:18] Production.INFO: ProcessCDR(1,14764424,1,1,2) [2025-03-26 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764424', 'tblTempUsageDetail_20' ) start [2025-03-26 04:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764424', 'tblTempUsageDetail_20' ) end [2025-03-26 04:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:36:23] Production.INFO: ==31849== Releasing lock... [2025-03-26 04:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:36:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:37:05 [end_date_ymd] => 2025-03-26 04:37:05 [RateCDR] => 1 ) [2025-03-26 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:37:05' and `end` < '2025-03-26 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:37:17] Production.INFO: count ==250 [2025-03-26 04:37:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:37:05 - End Time 2025-03-26 04:37:05 [2025-03-26 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764429', 'tblTempUsageDetail_20' ) start [2025-03-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764429', 'tblTempUsageDetail_20' ) end [2025-03-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764429', 'tblTempVendorCDR_20' ) start [2025-03-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764429', 'tblTempVendorCDR_20' ) end [2025-03-26 04:37:18] Production.INFO: ProcessCDR(1,14764429,1,1,2) [2025-03-26 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764429', 'tblTempUsageDetail_20' ) start [2025-03-26 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764429', 'tblTempUsageDetail_20' ) end [2025-03-26 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:37:21] Production.INFO: ==31961== Releasing lock... [2025-03-26 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:38:05 [end_date_ymd] => 2025-03-26 04:38:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:38:05' and `end` < '2025-03-26 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-26 04:38:18] Production.INFO: count ==248 [2025-03-26 04:38:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:38:05 - End Time 2025-03-26 04:38:05 [2025-03-26 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764434', 'tblTempUsageDetail_20' ) start [2025-03-26 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764434', 'tblTempUsageDetail_20' ) end [2025-03-26 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764434', 'tblTempVendorCDR_20' ) start [2025-03-26 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764434', 'tblTempVendorCDR_20' ) end [2025-03-26 04:38:18] Production.INFO: ProcessCDR(1,14764434,1,1,2) [2025-03-26 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764434', 'tblTempUsageDetail_20' ) start [2025-03-26 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764434', 'tblTempUsageDetail_20' ) end [2025-03-26 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:38:21] Production.INFO: ==32037== Releasing lock... [2025-03-26 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:38:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:39:06 [end_date_ymd] => 2025-03-26 04:39:06 [RateCDR] => 1 ) [2025-03-26 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-26 01:39:06' and `end` < '2025-03-26 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-26 04:39:18] Production.INFO: count ==248 [2025-03-26 04:39:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:39:06 - End Time 2025-03-26 04:39:06 [2025-03-26 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764439', 'tblTempUsageDetail_20' ) start [2025-03-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764439', 'tblTempUsageDetail_20' ) end [2025-03-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764439', 'tblTempVendorCDR_20' ) start [2025-03-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764439', 'tblTempVendorCDR_20' ) end [2025-03-26 04:39:18] Production.INFO: ProcessCDR(1,14764439,1,1,2) [2025-03-26 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764439', 'tblTempUsageDetail_20' ) start [2025-03-26 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764439', 'tblTempUsageDetail_20' ) end [2025-03-26 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:39:21] Production.INFO: ==32113== Releasing lock... [2025-03-26 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:40:06 [end_date_ymd] => 2025-03-26 04:40:06 [RateCDR] => 1 ) [2025-03-26 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-26 01:40:06' and `end` < '2025-03-26 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-26 04:40:18] Production.INFO: count ==261 [2025-03-26 04:40:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:40:06 - End Time 2025-03-26 04:40:06 [2025-03-26 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764445', 'tblTempUsageDetail_20' ) start [2025-03-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764445', 'tblTempUsageDetail_20' ) end [2025-03-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764445', 'tblTempVendorCDR_20' ) start [2025-03-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764445', 'tblTempVendorCDR_20' ) end [2025-03-26 04:40:18] Production.INFO: ProcessCDR(1,14764445,1,1,2) [2025-03-26 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764445', 'tblTempUsageDetail_20' ) start [2025-03-26 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764445', 'tblTempUsageDetail_20' ) end [2025-03-26 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:40:22] Production.INFO: ==32198== Releasing lock... [2025-03-26 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:40:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 04:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:41:06 [end_date_ymd] => 2025-03-26 04:41:06 [RateCDR] => 1 ) [2025-03-26 04: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-26 01:41:06' and `end` < '2025-03-26 04: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-26 04:41:18] Production.INFO: count ==261 [2025-03-26 04:41:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:41:06 - End Time 2025-03-26 04:41:06 [2025-03-26 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764450', 'tblTempUsageDetail_20' ) start [2025-03-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764450', 'tblTempUsageDetail_20' ) end [2025-03-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764450', 'tblTempVendorCDR_20' ) start [2025-03-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764450', 'tblTempVendorCDR_20' ) end [2025-03-26 04:41:18] Production.INFO: ProcessCDR(1,14764450,1,1,2) [2025-03-26 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764450', 'tblTempUsageDetail_20' ) start [2025-03-26 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764450', 'tblTempUsageDetail_20' ) end [2025-03-26 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:41:21] Production.INFO: ==32283== Releasing lock... [2025-03-26 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:41:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:42:06 [end_date_ymd] => 2025-03-26 04:42:06 [RateCDR] => 1 ) [2025-03-26 04:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:42:06' and `end` < '2025-03-26 04:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:42:18] Production.INFO: count ==261 [2025-03-26 04:42:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:42:06 - End Time 2025-03-26 04:42:06 [2025-03-26 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764455', 'tblTempUsageDetail_20' ) start [2025-03-26 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764455', 'tblTempUsageDetail_20' ) end [2025-03-26 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764455', 'tblTempVendorCDR_20' ) start [2025-03-26 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764455', 'tblTempVendorCDR_20' ) end [2025-03-26 04:42:18] Production.INFO: ProcessCDR(1,14764455,1,1,2) [2025-03-26 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764455', 'tblTempUsageDetail_20' ) start [2025-03-26 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764455', 'tblTempUsageDetail_20' ) end [2025-03-26 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:42:21] Production.INFO: ==32359== Releasing lock... [2025-03-26 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:43:05 [end_date_ymd] => 2025-03-26 04:43:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:43:05' and `end` < '2025-03-26 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-26 04:43:18] Production.INFO: count ==259 [2025-03-26 04:43:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:43:05 - End Time 2025-03-26 04:43:05 [2025-03-26 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764460', 'tblTempUsageDetail_20' ) start [2025-03-26 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764460', 'tblTempUsageDetail_20' ) end [2025-03-26 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764460', 'tblTempVendorCDR_20' ) start [2025-03-26 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764460', 'tblTempVendorCDR_20' ) end [2025-03-26 04:43:18] Production.INFO: ProcessCDR(1,14764460,1,1,2) [2025-03-26 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764460', 'tblTempUsageDetail_20' ) start [2025-03-26 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764460', 'tblTempUsageDetail_20' ) end [2025-03-26 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:43:22] Production.INFO: ==32433== Releasing lock... [2025-03-26 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:44:05 [end_date_ymd] => 2025-03-26 04:44:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:44:05' and `end` < '2025-03-26 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-26 04:44:17] Production.INFO: count ==257 [2025-03-26 04:44:17] Production.ERROR: pbx CDR StartTime 2025-03-26 01:44:05 - End Time 2025-03-26 04:44:05 [2025-03-26 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764465', 'tblTempUsageDetail_20' ) start [2025-03-26 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764465', 'tblTempUsageDetail_20' ) end [2025-03-26 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764465', 'tblTempVendorCDR_20' ) start [2025-03-26 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764465', 'tblTempVendorCDR_20' ) end [2025-03-26 04:44:17] Production.INFO: ProcessCDR(1,14764465,1,1,2) [2025-03-26 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764465', 'tblTempUsageDetail_20' ) start [2025-03-26 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764465', 'tblTempUsageDetail_20' ) end [2025-03-26 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:44:21] Production.INFO: ==32505== Releasing lock... [2025-03-26 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:45:06 [end_date_ymd] => 2025-03-26 04:45:06 [RateCDR] => 1 ) [2025-03-26 04: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-26 01:45:06' and `end` < '2025-03-26 04: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-26 04:45:19] Production.INFO: count ==257 [2025-03-26 04:45:19] Production.ERROR: pbx CDR StartTime 2025-03-26 01:45:06 - End Time 2025-03-26 04:45:06 [2025-03-26 04:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764470', 'tblTempUsageDetail_20' ) start [2025-03-26 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764470', 'tblTempUsageDetail_20' ) end [2025-03-26 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764470', 'tblTempVendorCDR_20' ) start [2025-03-26 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764470', 'tblTempVendorCDR_20' ) end [2025-03-26 04:45:19] Production.INFO: ProcessCDR(1,14764470,1,1,2) [2025-03-26 04:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764470', 'tblTempUsageDetail_20' ) start [2025-03-26 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764470', 'tblTempUsageDetail_20' ) end [2025-03-26 04:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:45:22] Production.INFO: ==32580== Releasing lock... [2025-03-26 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:45:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:46:05 [end_date_ymd] => 2025-03-26 04:46:05 [RateCDR] => 1 ) [2025-03-26 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:46:05' and `end` < '2025-03-26 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:46:17] Production.INFO: count ==257 [2025-03-26 04:46:17] Production.ERROR: pbx CDR StartTime 2025-03-26 01:46:05 - End Time 2025-03-26 04:46:05 [2025-03-26 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764475', 'tblTempUsageDetail_20' ) start [2025-03-26 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764475', 'tblTempUsageDetail_20' ) end [2025-03-26 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764475', 'tblTempVendorCDR_20' ) start [2025-03-26 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764475', 'tblTempVendorCDR_20' ) end [2025-03-26 04:46:17] Production.INFO: ProcessCDR(1,14764475,1,1,2) [2025-03-26 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764475', 'tblTempUsageDetail_20' ) start [2025-03-26 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764475', 'tblTempUsageDetail_20' ) end [2025-03-26 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:46:21] Production.INFO: ==32652== Releasing lock... [2025-03-26 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:47:06 [end_date_ymd] => 2025-03-26 04:47:06 [RateCDR] => 1 ) [2025-03-26 04: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-26 01:47:06' and `end` < '2025-03-26 04: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-26 04:47:19] Production.INFO: count ==257 [2025-03-26 04:47:19] Production.ERROR: pbx CDR StartTime 2025-03-26 01:47:06 - End Time 2025-03-26 04:47:06 [2025-03-26 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764480', 'tblTempUsageDetail_20' ) start [2025-03-26 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764480', 'tblTempUsageDetail_20' ) end [2025-03-26 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764480', 'tblTempVendorCDR_20' ) start [2025-03-26 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764480', 'tblTempVendorCDR_20' ) end [2025-03-26 04:47:19] Production.INFO: ProcessCDR(1,14764480,1,1,2) [2025-03-26 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764480', 'tblTempUsageDetail_20' ) start [2025-03-26 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764480', 'tblTempUsageDetail_20' ) end [2025-03-26 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:47:22] Production.INFO: ==32736== Releasing lock... [2025-03-26 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:48:05 [end_date_ymd] => 2025-03-26 04:48:05 [RateCDR] => 1 ) [2025-03-26 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:48:05' and `end` < '2025-03-26 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:48:18] Production.INFO: count ==257 [2025-03-26 04:48:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:48:05 - End Time 2025-03-26 04:48:05 [2025-03-26 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764485', 'tblTempUsageDetail_20' ) start [2025-03-26 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764485', 'tblTempUsageDetail_20' ) end [2025-03-26 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764485', 'tblTempVendorCDR_20' ) start [2025-03-26 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764485', 'tblTempVendorCDR_20' ) end [2025-03-26 04:48:18] Production.INFO: ProcessCDR(1,14764485,1,1,2) [2025-03-26 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764485', 'tblTempUsageDetail_20' ) start [2025-03-26 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764485', 'tblTempUsageDetail_20' ) end [2025-03-26 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:48:22] Production.INFO: ==367== Releasing lock... [2025-03-26 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:48:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:49:05 [end_date_ymd] => 2025-03-26 04:49:05 [RateCDR] => 1 ) [2025-03-26 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:49:05' and `end` < '2025-03-26 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:49:18] Production.INFO: count ==257 [2025-03-26 04:49:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:49:05 - End Time 2025-03-26 04:49:05 [2025-03-26 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764490', 'tblTempUsageDetail_20' ) start [2025-03-26 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764490', 'tblTempUsageDetail_20' ) end [2025-03-26 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764490', 'tblTempVendorCDR_20' ) start [2025-03-26 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764490', 'tblTempVendorCDR_20' ) end [2025-03-26 04:49:18] Production.INFO: ProcessCDR(1,14764490,1,1,2) [2025-03-26 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764490', 'tblTempUsageDetail_20' ) start [2025-03-26 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764490', 'tblTempUsageDetail_20' ) end [2025-03-26 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:49:21] Production.INFO: ==445== Releasing lock... [2025-03-26 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:50:05 [end_date_ymd] => 2025-03-26 04:50:05 [RateCDR] => 1 ) [2025-03-26 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:50:05' and `end` < '2025-03-26 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:50:18] Production.INFO: count ==257 [2025-03-26 04:50:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:50:05 - End Time 2025-03-26 04:50:05 [2025-03-26 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764495', 'tblTempUsageDetail_20' ) start [2025-03-26 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764495', 'tblTempUsageDetail_20' ) end [2025-03-26 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764495', 'tblTempVendorCDR_20' ) start [2025-03-26 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764495', 'tblTempVendorCDR_20' ) end [2025-03-26 04:50:18] Production.INFO: ProcessCDR(1,14764495,1,1,2) [2025-03-26 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764495', 'tblTempUsageDetail_20' ) start [2025-03-26 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764495', 'tblTempUsageDetail_20' ) end [2025-03-26 04:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:50:21] Production.INFO: ==521== Releasing lock... [2025-03-26 04:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:50:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:51:05 [end_date_ymd] => 2025-03-26 04:51:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:51:05' and `end` < '2025-03-26 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-26 04:51:20] Production.INFO: count ==262 [2025-03-26 04:51:20] Production.ERROR: pbx CDR StartTime 2025-03-26 01:51:05 - End Time 2025-03-26 04:51:05 [2025-03-26 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764501', 'tblTempUsageDetail_20' ) start [2025-03-26 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764501', 'tblTempUsageDetail_20' ) end [2025-03-26 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764501', 'tblTempVendorCDR_20' ) start [2025-03-26 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764501', 'tblTempVendorCDR_20' ) end [2025-03-26 04:51:20] Production.INFO: ProcessCDR(1,14764501,1,1,2) [2025-03-26 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764501', 'tblTempUsageDetail_20' ) start [2025-03-26 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764501', 'tblTempUsageDetail_20' ) end [2025-03-26 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:51:23] Production.INFO: ==599== Releasing lock... [2025-03-26 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:51:23] Production.INFO: 31 MB #Memory Used# [2025-03-26 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:52:06 [end_date_ymd] => 2025-03-26 04:52:06 [RateCDR] => 1 ) [2025-03-26 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-26 01:52:06' and `end` < '2025-03-26 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-26 04:52:18] Production.INFO: count ==256 [2025-03-26 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:52:06 - End Time 2025-03-26 04:52:06 [2025-03-26 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764506', 'tblTempUsageDetail_20' ) start [2025-03-26 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764506', 'tblTempUsageDetail_20' ) end [2025-03-26 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764506', 'tblTempVendorCDR_20' ) start [2025-03-26 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764506', 'tblTempVendorCDR_20' ) end [2025-03-26 04:52:18] Production.INFO: ProcessCDR(1,14764506,1,1,2) [2025-03-26 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764506', 'tblTempUsageDetail_20' ) start [2025-03-26 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764506', 'tblTempUsageDetail_20' ) end [2025-03-26 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:52:23] Production.INFO: ==697== Releasing lock... [2025-03-26 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:52:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:53:05 [end_date_ymd] => 2025-03-26 04:53:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:53:05' and `end` < '2025-03-26 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-26 04:53:17] Production.INFO: count ==252 [2025-03-26 04:53:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:53:05 - End Time 2025-03-26 04:53:05 [2025-03-26 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764511', 'tblTempUsageDetail_20' ) start [2025-03-26 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764511', 'tblTempUsageDetail_20' ) end [2025-03-26 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764511', 'tblTempVendorCDR_20' ) start [2025-03-26 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764511', 'tblTempVendorCDR_20' ) end [2025-03-26 04:53:18] Production.INFO: ProcessCDR(1,14764511,1,1,2) [2025-03-26 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764511', 'tblTempUsageDetail_20' ) start [2025-03-26 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764511', 'tblTempUsageDetail_20' ) end [2025-03-26 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:53:21] Production.INFO: ==833== Releasing lock... [2025-03-26 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 04:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:54:06 [end_date_ymd] => 2025-03-26 04:54:06 [RateCDR] => 1 ) [2025-03-26 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-26 01:54:06' and `end` < '2025-03-26 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-26 04:54:19] Production.INFO: count ==245 [2025-03-26 04:54:19] Production.ERROR: pbx CDR StartTime 2025-03-26 01:54:06 - End Time 2025-03-26 04:54:06 [2025-03-26 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764516', 'tblTempUsageDetail_20' ) start [2025-03-26 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764516', 'tblTempUsageDetail_20' ) end [2025-03-26 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764516', 'tblTempVendorCDR_20' ) start [2025-03-26 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764516', 'tblTempVendorCDR_20' ) end [2025-03-26 04:54:19] Production.INFO: ProcessCDR(1,14764516,1,1,2) [2025-03-26 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764516', 'tblTempUsageDetail_20' ) start [2025-03-26 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764516', 'tblTempUsageDetail_20' ) end [2025-03-26 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:54:23] Production.INFO: ==915== Releasing lock... [2025-03-26 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:54:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:55:05 [end_date_ymd] => 2025-03-26 04:55:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:55:05' and `end` < '2025-03-26 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-26 04:55:18] Production.INFO: count ==245 [2025-03-26 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:55:05 - End Time 2025-03-26 04:55:05 [2025-03-26 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764521', 'tblTempUsageDetail_20' ) start [2025-03-26 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764521', 'tblTempUsageDetail_20' ) end [2025-03-26 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764521', 'tblTempVendorCDR_20' ) start [2025-03-26 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764521', 'tblTempVendorCDR_20' ) end [2025-03-26 04:55:18] Production.INFO: ProcessCDR(1,14764521,1,1,2) [2025-03-26 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764521', 'tblTempUsageDetail_20' ) start [2025-03-26 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764521', 'tblTempUsageDetail_20' ) end [2025-03-26 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:55:22] Production.INFO: ==1006== Releasing lock... [2025-03-26 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:55:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:56:05 [end_date_ymd] => 2025-03-26 04:56:05 [RateCDR] => 1 ) [2025-03-26 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:56:05' and `end` < '2025-03-26 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:56:19] Production.INFO: count ==245 [2025-03-26 04:56:19] Production.ERROR: pbx CDR StartTime 2025-03-26 01:56:05 - End Time 2025-03-26 04:56:05 [2025-03-26 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764526', 'tblTempUsageDetail_20' ) start [2025-03-26 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764526', 'tblTempUsageDetail_20' ) end [2025-03-26 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764526', 'tblTempVendorCDR_20' ) start [2025-03-26 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764526', 'tblTempVendorCDR_20' ) end [2025-03-26 04:56:19] Production.INFO: ProcessCDR(1,14764526,1,1,2) [2025-03-26 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764526', 'tblTempUsageDetail_20' ) start [2025-03-26 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764526', 'tblTempUsageDetail_20' ) end [2025-03-26 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:56:22] Production.INFO: ==1085== Releasing lock... [2025-03-26 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:56:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:57:04 [end_date_ymd] => 2025-03-26 04:57:04 [RateCDR] => 1 ) [2025-03-26 04:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 01:57:04' and `end` < '2025-03-26 04:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 04:57:18] Production.INFO: count ==245 [2025-03-26 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:57:04 - End Time 2025-03-26 04:57:04 [2025-03-26 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764531', 'tblTempUsageDetail_20' ) start [2025-03-26 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764531', 'tblTempUsageDetail_20' ) end [2025-03-26 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764531', 'tblTempVendorCDR_20' ) start [2025-03-26 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764531', 'tblTempVendorCDR_20' ) end [2025-03-26 04:57:18] Production.INFO: ProcessCDR(1,14764531,1,1,2) [2025-03-26 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764531', 'tblTempUsageDetail_20' ) start [2025-03-26 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764531', 'tblTempUsageDetail_20' ) end [2025-03-26 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:57:21] Production.INFO: ==1159== Releasing lock... [2025-03-26 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:58:05 [end_date_ymd] => 2025-03-26 04:58:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:58:05' and `end` < '2025-03-26 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-26 04:58:18] Production.INFO: count ==245 [2025-03-26 04:58:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:58:05 - End Time 2025-03-26 04:58:05 [2025-03-26 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764536', 'tblTempUsageDetail_20' ) start [2025-03-26 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764536', 'tblTempUsageDetail_20' ) end [2025-03-26 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764536', 'tblTempVendorCDR_20' ) start [2025-03-26 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764536', 'tblTempVendorCDR_20' ) end [2025-03-26 04:58:18] Production.INFO: ProcessCDR(1,14764536,1,1,2) [2025-03-26 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764536', 'tblTempUsageDetail_20' ) start [2025-03-26 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764536', 'tblTempUsageDetail_20' ) end [2025-03-26 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:58:22] Production.INFO: ==1243== Releasing lock... [2025-03-26 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:58:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 01:59:05 [end_date_ymd] => 2025-03-26 04:59:05 [RateCDR] => 1 ) [2025-03-26 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-26 01:59:05' and `end` < '2025-03-26 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-26 04:59:17] Production.INFO: count ==245 [2025-03-26 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-26 01:59:05 - End Time 2025-03-26 04:59:05 [2025-03-26 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764541', 'tblTempUsageDetail_20' ) start [2025-03-26 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764541', 'tblTempUsageDetail_20' ) end [2025-03-26 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764541', 'tblTempVendorCDR_20' ) start [2025-03-26 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764541', 'tblTempVendorCDR_20' ) end [2025-03-26 04:59:18] Production.INFO: ProcessCDR(1,14764541,1,1,2) [2025-03-26 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764541', 'tblTempUsageDetail_20' ) start [2025-03-26 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764541', 'tblTempUsageDetail_20' ) end [2025-03-26 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 04:59:21] Production.INFO: ==1325== Releasing lock... [2025-03-26 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 04:59:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:00:06 [end_date_ymd] => 2025-03-26 05:00:06 [RateCDR] => 1 ) [2025-03-26 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-26 02:00:06' and `end` < '2025-03-26 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-26 05:00:19] Production.INFO: count ==241 [2025-03-26 05:00:19] Production.ERROR: pbx CDR StartTime 2025-03-26 02:00:06 - End Time 2025-03-26 05:00:06 [2025-03-26 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764546', 'tblTempUsageDetail_20' ) start [2025-03-26 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764546', 'tblTempUsageDetail_20' ) end [2025-03-26 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764546', 'tblTempVendorCDR_20' ) start [2025-03-26 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764546', 'tblTempVendorCDR_20' ) end [2025-03-26 05:00:19] Production.INFO: ProcessCDR(1,14764546,1,1,2) [2025-03-26 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764546', 'tblTempUsageDetail_20' ) start [2025-03-26 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764546', 'tblTempUsageDetail_20' ) end [2025-03-26 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:00:22] Production.INFO: ==1399== Releasing lock... [2025-03-26 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:00:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 05:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:01:04 [end_date_ymd] => 2025-03-26 05:01:04 [RateCDR] => 1 ) [2025-03-26 05:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:01:04' and `end` < '2025-03-26 05:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:01:17] Production.INFO: count ==246 [2025-03-26 05:01:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:01:04 - End Time 2025-03-26 05:01:04 [2025-03-26 05:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764552', 'tblTempUsageDetail_20' ) start [2025-03-26 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764552', 'tblTempUsageDetail_20' ) end [2025-03-26 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764552', 'tblTempVendorCDR_20' ) start [2025-03-26 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764552', 'tblTempVendorCDR_20' ) end [2025-03-26 05:01:17] Production.INFO: ProcessCDR(1,14764552,1,1,2) [2025-03-26 05:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764552', 'tblTempUsageDetail_20' ) start [2025-03-26 05:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764552', 'tblTempUsageDetail_20' ) end [2025-03-26 05:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:01:20] Production.INFO: ==1482== Releasing lock... [2025-03-26 05:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:01:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:02:05 [end_date_ymd] => 2025-03-26 05:02:05 [RateCDR] => 1 ) [2025-03-26 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:02:05' and `end` < '2025-03-26 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:02:18] Production.INFO: count ==258 [2025-03-26 05:02:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:02:05 - End Time 2025-03-26 05:02:05 [2025-03-26 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764557', 'tblTempUsageDetail_20' ) start [2025-03-26 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764557', 'tblTempUsageDetail_20' ) end [2025-03-26 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764557', 'tblTempVendorCDR_20' ) start [2025-03-26 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764557', 'tblTempVendorCDR_20' ) end [2025-03-26 05:02:18] Production.INFO: ProcessCDR(1,14764557,1,1,2) [2025-03-26 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764557', 'tblTempUsageDetail_20' ) start [2025-03-26 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764557', 'tblTempUsageDetail_20' ) end [2025-03-26 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:02:21] Production.INFO: ==1595== Releasing lock... [2025-03-26 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:02:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:03:06 [end_date_ymd] => 2025-03-26 05:03:06 [RateCDR] => 1 ) [2025-03-26 05: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-26 02:03:06' and `end` < '2025-03-26 05: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-26 05:03:18] Production.INFO: count ==257 [2025-03-26 05:03:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:03:06 - End Time 2025-03-26 05:03:06 [2025-03-26 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764562', 'tblTempUsageDetail_20' ) start [2025-03-26 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764562', 'tblTempUsageDetail_20' ) end [2025-03-26 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764562', 'tblTempVendorCDR_20' ) start [2025-03-26 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764562', 'tblTempVendorCDR_20' ) end [2025-03-26 05:03:18] Production.INFO: ProcessCDR(1,14764562,1,1,2) [2025-03-26 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764562', 'tblTempUsageDetail_20' ) start [2025-03-26 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764562', 'tblTempUsageDetail_20' ) end [2025-03-26 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:03:22] Production.INFO: ==1667== Releasing lock... [2025-03-26 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:03:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:04:05 [end_date_ymd] => 2025-03-26 05:04:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:04:05' and `end` < '2025-03-26 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-26 05:04:18] Production.INFO: count ==256 [2025-03-26 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:04:05 - End Time 2025-03-26 05:04:05 [2025-03-26 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764567', 'tblTempUsageDetail_20' ) start [2025-03-26 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764567', 'tblTempUsageDetail_20' ) end [2025-03-26 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764567', 'tblTempVendorCDR_20' ) start [2025-03-26 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764567', 'tblTempVendorCDR_20' ) end [2025-03-26 05:04:18] Production.INFO: ProcessCDR(1,14764567,1,1,2) [2025-03-26 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764567', 'tblTempUsageDetail_20' ) start [2025-03-26 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764567', 'tblTempUsageDetail_20' ) end [2025-03-26 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:04:21] Production.INFO: ==1740== Releasing lock... [2025-03-26 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:05:05 [end_date_ymd] => 2025-03-26 05:05:05 [RateCDR] => 1 ) [2025-03-26 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:05:05' and `end` < '2025-03-26 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:05:18] Production.INFO: count ==256 [2025-03-26 05:05:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:05:05 - End Time 2025-03-26 05:05:05 [2025-03-26 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764572', 'tblTempUsageDetail_20' ) start [2025-03-26 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764572', 'tblTempUsageDetail_20' ) end [2025-03-26 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764572', 'tblTempVendorCDR_20' ) start [2025-03-26 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764572', 'tblTempVendorCDR_20' ) end [2025-03-26 05:05:18] Production.INFO: ProcessCDR(1,14764572,1,1,2) [2025-03-26 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764572', 'tblTempUsageDetail_20' ) start [2025-03-26 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764572', 'tblTempUsageDetail_20' ) end [2025-03-26 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:05:21] Production.INFO: ==1814== Releasing lock... [2025-03-26 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:06:05 [end_date_ymd] => 2025-03-26 05:06:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:06:05' and `end` < '2025-03-26 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-26 05:06:18] Production.INFO: count ==256 [2025-03-26 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:06:05 - End Time 2025-03-26 05:06:05 [2025-03-26 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764577', 'tblTempUsageDetail_20' ) start [2025-03-26 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764577', 'tblTempUsageDetail_20' ) end [2025-03-26 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764577', 'tblTempVendorCDR_20' ) start [2025-03-26 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764577', 'tblTempVendorCDR_20' ) end [2025-03-26 05:06:18] Production.INFO: ProcessCDR(1,14764577,1,1,2) [2025-03-26 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764577', 'tblTempUsageDetail_20' ) start [2025-03-26 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764577', 'tblTempUsageDetail_20' ) end [2025-03-26 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:06:21] Production.INFO: ==1894== Releasing lock... [2025-03-26 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:07:05 [end_date_ymd] => 2025-03-26 05:07:05 [RateCDR] => 1 ) [2025-03-26 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:07:05' and `end` < '2025-03-26 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-26 05:07:18] Production.INFO: count ==256 [2025-03-26 05:07:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:07:05 - End Time 2025-03-26 05:07:05 [2025-03-26 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764582', 'tblTempUsageDetail_20' ) start [2025-03-26 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764582', 'tblTempUsageDetail_20' ) end [2025-03-26 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764582', 'tblTempVendorCDR_20' ) start [2025-03-26 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764582', 'tblTempVendorCDR_20' ) end [2025-03-26 05:07:18] Production.INFO: ProcessCDR(1,14764582,1,1,2) [2025-03-26 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764582', 'tblTempUsageDetail_20' ) start [2025-03-26 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764582', 'tblTempUsageDetail_20' ) end [2025-03-26 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:07:21] Production.INFO: ==1965== Releasing lock... [2025-03-26 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:08:05 [end_date_ymd] => 2025-03-26 05:08:05 [RateCDR] => 1 ) [2025-03-26 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:08:05' and `end` < '2025-03-26 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:08:17] Production.INFO: count ==256 [2025-03-26 05:08:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:08:05 - End Time 2025-03-26 05:08:05 [2025-03-26 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764587', 'tblTempUsageDetail_20' ) start [2025-03-26 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764587', 'tblTempUsageDetail_20' ) end [2025-03-26 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764587', 'tblTempVendorCDR_20' ) start [2025-03-26 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764587', 'tblTempVendorCDR_20' ) end [2025-03-26 05:08:17] Production.INFO: ProcessCDR(1,14764587,1,1,2) [2025-03-26 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764587', 'tblTempUsageDetail_20' ) start [2025-03-26 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764587', 'tblTempUsageDetail_20' ) end [2025-03-26 05:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:08:20] Production.INFO: ==2080== Releasing lock... [2025-03-26 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:08:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:09:05 [end_date_ymd] => 2025-03-26 05:09:05 [RateCDR] => 1 ) [2025-03-26 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:09:05' and `end` < '2025-03-26 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:09:18] Production.INFO: count ==255 [2025-03-26 05:09:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:09:05 - End Time 2025-03-26 05:09:05 [2025-03-26 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764592', 'tblTempUsageDetail_20' ) start [2025-03-26 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764592', 'tblTempUsageDetail_20' ) end [2025-03-26 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764592', 'tblTempVendorCDR_20' ) start [2025-03-26 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764592', 'tblTempVendorCDR_20' ) end [2025-03-26 05:09:18] Production.INFO: ProcessCDR(1,14764592,1,1,2) [2025-03-26 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764592', 'tblTempUsageDetail_20' ) start [2025-03-26 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764592', 'tblTempUsageDetail_20' ) end [2025-03-26 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:09:21] Production.INFO: ==2164== Releasing lock... [2025-03-26 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:10:06 [end_date_ymd] => 2025-03-26 05:10:06 [RateCDR] => 1 ) [2025-03-26 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:10:06' and `end` < '2025-03-26 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:10:18] Production.INFO: count ==259 [2025-03-26 05:10:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:10:06 - End Time 2025-03-26 05:10:06 [2025-03-26 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764598', 'tblTempUsageDetail_20' ) start [2025-03-26 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764598', 'tblTempUsageDetail_20' ) end [2025-03-26 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764598', 'tblTempVendorCDR_20' ) start [2025-03-26 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764598', 'tblTempVendorCDR_20' ) end [2025-03-26 05:10:18] Production.INFO: ProcessCDR(1,14764598,1,1,2) [2025-03-26 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764598', 'tblTempUsageDetail_20' ) start [2025-03-26 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764598', 'tblTempUsageDetail_20' ) end [2025-03-26 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:10:22] Production.INFO: ==2257== Releasing lock... [2025-03-26 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:10:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:11:05 [end_date_ymd] => 2025-03-26 05:11:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:11:05' and `end` < '2025-03-26 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-26 05:11:17] Production.INFO: count ==263 [2025-03-26 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:11:05 - End Time 2025-03-26 05:11:05 [2025-03-26 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764603', 'tblTempUsageDetail_20' ) start [2025-03-26 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764603', 'tblTempUsageDetail_20' ) end [2025-03-26 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764603', 'tblTempVendorCDR_20' ) start [2025-03-26 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764603', 'tblTempVendorCDR_20' ) end [2025-03-26 05:11:18] Production.INFO: ProcessCDR(1,14764603,1,1,2) [2025-03-26 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764603', 'tblTempUsageDetail_20' ) start [2025-03-26 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764603', 'tblTempUsageDetail_20' ) end [2025-03-26 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:11:21] Production.INFO: ==2333== Releasing lock... [2025-03-26 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:11:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:12:06 [end_date_ymd] => 2025-03-26 05:12:06 [RateCDR] => 1 ) [2025-03-26 05: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-26 02:12:06' and `end` < '2025-03-26 05: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-26 05:12:18] Production.INFO: count ==263 [2025-03-26 05:12:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:12:06 - End Time 2025-03-26 05:12:06 [2025-03-26 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764608', 'tblTempUsageDetail_20' ) start [2025-03-26 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764608', 'tblTempUsageDetail_20' ) end [2025-03-26 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764608', 'tblTempVendorCDR_20' ) start [2025-03-26 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764608', 'tblTempVendorCDR_20' ) end [2025-03-26 05:12:18] Production.INFO: ProcessCDR(1,14764608,1,1,2) [2025-03-26 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764608', 'tblTempUsageDetail_20' ) start [2025-03-26 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764608', 'tblTempUsageDetail_20' ) end [2025-03-26 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:12:21] Production.INFO: ==2407== Releasing lock... [2025-03-26 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:12:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:13:05 [end_date_ymd] => 2025-03-26 05:13:05 [RateCDR] => 1 ) [2025-03-26 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:13:05' and `end` < '2025-03-26 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:13:17] Production.INFO: count ==263 [2025-03-26 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:13:05 - End Time 2025-03-26 05:13:05 [2025-03-26 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764613', 'tblTempUsageDetail_20' ) start [2025-03-26 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764613', 'tblTempUsageDetail_20' ) end [2025-03-26 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764613', 'tblTempVendorCDR_20' ) start [2025-03-26 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764613', 'tblTempVendorCDR_20' ) end [2025-03-26 05:13:17] Production.INFO: ProcessCDR(1,14764613,1,1,2) [2025-03-26 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764613', 'tblTempUsageDetail_20' ) start [2025-03-26 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764613', 'tblTempUsageDetail_20' ) end [2025-03-26 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:13:20] Production.INFO: ==2483== Releasing lock... [2025-03-26 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:13:20] Production.INFO: 31 MB #Memory Used# [2025-03-26 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:14:05 [end_date_ymd] => 2025-03-26 05:14:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:14:05' and `end` < '2025-03-26 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-26 05:14:18] Production.INFO: count ==262 [2025-03-26 05:14:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:14:05 - End Time 2025-03-26 05:14:05 [2025-03-26 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764618', 'tblTempUsageDetail_20' ) start [2025-03-26 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764618', 'tblTempUsageDetail_20' ) end [2025-03-26 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764618', 'tblTempVendorCDR_20' ) start [2025-03-26 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764618', 'tblTempVendorCDR_20' ) end [2025-03-26 05:14:18] Production.INFO: ProcessCDR(1,14764618,1,1,2) [2025-03-26 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764618', 'tblTempUsageDetail_20' ) start [2025-03-26 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764618', 'tblTempUsageDetail_20' ) end [2025-03-26 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:14:21] Production.INFO: ==2561== Releasing lock... [2025-03-26 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:14:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:15:05 [end_date_ymd] => 2025-03-26 05:15:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:15:05' and `end` < '2025-03-26 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-26 05:15:17] Production.INFO: count ==262 [2025-03-26 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:15:05 - End Time 2025-03-26 05:15:05 [2025-03-26 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764623', 'tblTempUsageDetail_20' ) start [2025-03-26 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764623', 'tblTempUsageDetail_20' ) end [2025-03-26 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764623', 'tblTempVendorCDR_20' ) start [2025-03-26 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764623', 'tblTempVendorCDR_20' ) end [2025-03-26 05:15:17] Production.INFO: ProcessCDR(1,14764623,1,1,2) [2025-03-26 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764623', 'tblTempUsageDetail_20' ) start [2025-03-26 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764623', 'tblTempUsageDetail_20' ) end [2025-03-26 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:15:20] Production.INFO: ==2635== Releasing lock... [2025-03-26 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:15:20] Production.INFO: 31 MB #Memory Used# [2025-03-26 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:16:05 [end_date_ymd] => 2025-03-26 05:16:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:16:05' and `end` < '2025-03-26 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-26 05:16:17] Production.INFO: count ==262 [2025-03-26 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:16:05 - End Time 2025-03-26 05:16:05 [2025-03-26 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764628', 'tblTempUsageDetail_20' ) start [2025-03-26 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764628', 'tblTempUsageDetail_20' ) end [2025-03-26 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764628', 'tblTempVendorCDR_20' ) start [2025-03-26 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764628', 'tblTempVendorCDR_20' ) end [2025-03-26 05:16:17] Production.INFO: ProcessCDR(1,14764628,1,1,2) [2025-03-26 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764628', 'tblTempUsageDetail_20' ) start [2025-03-26 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764628', 'tblTempUsageDetail_20' ) end [2025-03-26 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:16:21] Production.INFO: ==2710== Releasing lock... [2025-03-26 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:16:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:17:05 [end_date_ymd] => 2025-03-26 05:17:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:17:05' and `end` < '2025-03-26 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-26 05:17:18] Production.INFO: count ==262 [2025-03-26 05:17:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:17:05 - End Time 2025-03-26 05:17:05 [2025-03-26 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764633', 'tblTempUsageDetail_20' ) start [2025-03-26 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764633', 'tblTempUsageDetail_20' ) end [2025-03-26 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764633', 'tblTempVendorCDR_20' ) start [2025-03-26 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764633', 'tblTempVendorCDR_20' ) end [2025-03-26 05:17:18] Production.INFO: ProcessCDR(1,14764633,1,1,2) [2025-03-26 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764633', 'tblTempUsageDetail_20' ) start [2025-03-26 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764633', 'tblTempUsageDetail_20' ) end [2025-03-26 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:17:21] Production.INFO: ==2784== Releasing lock... [2025-03-26 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:17:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:18:05 [end_date_ymd] => 2025-03-26 05:18:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:18:05' and `end` < '2025-03-26 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-26 05:18:17] Production.INFO: count ==262 [2025-03-26 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:18:05 - End Time 2025-03-26 05:18:05 [2025-03-26 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764638', 'tblTempUsageDetail_20' ) start [2025-03-26 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764638', 'tblTempUsageDetail_20' ) end [2025-03-26 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764638', 'tblTempVendorCDR_20' ) start [2025-03-26 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764638', 'tblTempVendorCDR_20' ) end [2025-03-26 05:18:17] Production.INFO: ProcessCDR(1,14764638,1,1,2) [2025-03-26 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764638', 'tblTempUsageDetail_20' ) start [2025-03-26 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764638', 'tblTempUsageDetail_20' ) end [2025-03-26 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:18:20] Production.INFO: ==2865== Releasing lock... [2025-03-26 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:18:20] Production.INFO: 31 MB #Memory Used# [2025-03-26 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:19:05 [end_date_ymd] => 2025-03-26 05:19:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:19:05' and `end` < '2025-03-26 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-26 05:19:18] Production.INFO: count ==262 [2025-03-26 05:19:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:19:05 - End Time 2025-03-26 05:19:05 [2025-03-26 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764643', 'tblTempUsageDetail_20' ) start [2025-03-26 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764643', 'tblTempUsageDetail_20' ) end [2025-03-26 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764643', 'tblTempVendorCDR_20' ) start [2025-03-26 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764643', 'tblTempVendorCDR_20' ) end [2025-03-26 05:19:18] Production.INFO: ProcessCDR(1,14764643,1,1,2) [2025-03-26 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764643', 'tblTempUsageDetail_20' ) start [2025-03-26 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764643', 'tblTempUsageDetail_20' ) end [2025-03-26 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:19:21] Production.INFO: ==2940== Releasing lock... [2025-03-26 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:19:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:20:06 [end_date_ymd] => 2025-03-26 05:20:06 [RateCDR] => 1 ) [2025-03-26 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-26 02:20:06' and `end` < '2025-03-26 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-26 05:20:18] Production.INFO: count ==262 [2025-03-26 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:20:06 - End Time 2025-03-26 05:20:06 [2025-03-26 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764649', 'tblTempUsageDetail_20' ) start [2025-03-26 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764649', 'tblTempUsageDetail_20' ) end [2025-03-26 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764649', 'tblTempVendorCDR_20' ) start [2025-03-26 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764649', 'tblTempVendorCDR_20' ) end [2025-03-26 05:20:19] Production.INFO: ProcessCDR(1,14764649,1,1,2) [2025-03-26 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764649', 'tblTempUsageDetail_20' ) start [2025-03-26 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764649', 'tblTempUsageDetail_20' ) end [2025-03-26 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:20:22] Production.INFO: ==3014== Releasing lock... [2025-03-26 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:20:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:21:05 [end_date_ymd] => 2025-03-26 05:21:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:21:05' and `end` < '2025-03-26 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-26 05:21:18] Production.INFO: count ==262 [2025-03-26 05:21:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:21:05 - End Time 2025-03-26 05:21:05 [2025-03-26 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764654', 'tblTempUsageDetail_20' ) start [2025-03-26 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764654', 'tblTempUsageDetail_20' ) end [2025-03-26 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764654', 'tblTempVendorCDR_20' ) start [2025-03-26 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764654', 'tblTempVendorCDR_20' ) end [2025-03-26 05:21:18] Production.INFO: ProcessCDR(1,14764654,1,1,2) [2025-03-26 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764654', 'tblTempUsageDetail_20' ) start [2025-03-26 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764654', 'tblTempUsageDetail_20' ) end [2025-03-26 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:21:21] Production.INFO: ==3092== Releasing lock... [2025-03-26 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:21:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:22:05 [end_date_ymd] => 2025-03-26 05:22:05 [RateCDR] => 1 ) [2025-03-26 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:22:05' and `end` < '2025-03-26 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:22:18] Production.INFO: count ==264 [2025-03-26 05:22:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:22:05 - End Time 2025-03-26 05:22:05 [2025-03-26 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764659', 'tblTempUsageDetail_20' ) start [2025-03-26 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764659', 'tblTempUsageDetail_20' ) end [2025-03-26 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764659', 'tblTempVendorCDR_20' ) start [2025-03-26 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764659', 'tblTempVendorCDR_20' ) end [2025-03-26 05:22:18] Production.INFO: ProcessCDR(1,14764659,1,1,2) [2025-03-26 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764659', 'tblTempUsageDetail_20' ) start [2025-03-26 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764659', 'tblTempUsageDetail_20' ) end [2025-03-26 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:22:21] Production.INFO: ==3169== Releasing lock... [2025-03-26 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:22:21] Production.INFO: 31 MB #Memory Used# [2025-03-26 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:23:05 [end_date_ymd] => 2025-03-26 05:23:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:23:05' and `end` < '2025-03-26 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-26 05:23:18] Production.INFO: count ==267 [2025-03-26 05:23:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:23:05 - End Time 2025-03-26 05:23:05 [2025-03-26 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764664', 'tblTempUsageDetail_20' ) start [2025-03-26 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764664', 'tblTempUsageDetail_20' ) end [2025-03-26 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764664', 'tblTempVendorCDR_20' ) start [2025-03-26 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764664', 'tblTempVendorCDR_20' ) end [2025-03-26 05:23:18] Production.INFO: ProcessCDR(1,14764664,1,1,2) [2025-03-26 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764664', 'tblTempUsageDetail_20' ) start [2025-03-26 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764664', 'tblTempUsageDetail_20' ) end [2025-03-26 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:23:21] Production.INFO: ==3246== Releasing lock... [2025-03-26 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:23:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:24:05 [end_date_ymd] => 2025-03-26 05:24:05 [RateCDR] => 1 ) [2025-03-26 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:24:05' and `end` < '2025-03-26 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:24:18] Production.INFO: count ==247 [2025-03-26 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:24:05 - End Time 2025-03-26 05:24:05 [2025-03-26 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764669', 'tblTempUsageDetail_20' ) start [2025-03-26 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764669', 'tblTempUsageDetail_20' ) end [2025-03-26 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764669', 'tblTempVendorCDR_20' ) start [2025-03-26 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764669', 'tblTempVendorCDR_20' ) end [2025-03-26 05:24:18] Production.INFO: ProcessCDR(1,14764669,1,1,2) [2025-03-26 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764669', 'tblTempUsageDetail_20' ) start [2025-03-26 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764669', 'tblTempUsageDetail_20' ) end [2025-03-26 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:24:21] Production.INFO: ==3358== Releasing lock... [2025-03-26 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:25:05 [end_date_ymd] => 2025-03-26 05:25:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:25:05' and `end` < '2025-03-26 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-26 05:25:18] Production.INFO: count ==213 [2025-03-26 05:25:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:25:05 - End Time 2025-03-26 05:25:05 [2025-03-26 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764674', 'tblTempUsageDetail_20' ) start [2025-03-26 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764674', 'tblTempUsageDetail_20' ) end [2025-03-26 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764674', 'tblTempVendorCDR_20' ) start [2025-03-26 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764674', 'tblTempVendorCDR_20' ) end [2025-03-26 05:25:18] Production.INFO: ProcessCDR(1,14764674,1,1,2) [2025-03-26 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764674', 'tblTempUsageDetail_20' ) start [2025-03-26 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764674', 'tblTempUsageDetail_20' ) end [2025-03-26 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:25:21] Production.INFO: ==3431== Releasing lock... [2025-03-26 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:26:05 [end_date_ymd] => 2025-03-26 05:26:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:26:05' and `end` < '2025-03-26 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-26 05:26:18] Production.INFO: count ==212 [2025-03-26 05:26:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:26:05 - End Time 2025-03-26 05:26:05 [2025-03-26 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764679', 'tblTempUsageDetail_20' ) start [2025-03-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764679', 'tblTempUsageDetail_20' ) end [2025-03-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764679', 'tblTempVendorCDR_20' ) start [2025-03-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764679', 'tblTempVendorCDR_20' ) end [2025-03-26 05:26:18] Production.INFO: ProcessCDR(1,14764679,1,1,2) [2025-03-26 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764679', 'tblTempUsageDetail_20' ) start [2025-03-26 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764679', 'tblTempUsageDetail_20' ) end [2025-03-26 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:26:21] Production.INFO: ==3503== Releasing lock... [2025-03-26 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:27:05 [end_date_ymd] => 2025-03-26 05:27:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:27:05' and `end` < '2025-03-26 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-26 05:27:17] Production.INFO: count ==212 [2025-03-26 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:27:05 - End Time 2025-03-26 05:27:05 [2025-03-26 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764684', 'tblTempUsageDetail_20' ) start [2025-03-26 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764684', 'tblTempUsageDetail_20' ) end [2025-03-26 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764684', 'tblTempVendorCDR_20' ) start [2025-03-26 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764684', 'tblTempVendorCDR_20' ) end [2025-03-26 05:27:17] Production.INFO: ProcessCDR(1,14764684,1,1,2) [2025-03-26 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764684', 'tblTempUsageDetail_20' ) start [2025-03-26 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764684', 'tblTempUsageDetail_20' ) end [2025-03-26 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:27:20] Production.INFO: ==3577== Releasing lock... [2025-03-26 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:27:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:28:05 [end_date_ymd] => 2025-03-26 05:28:05 [RateCDR] => 1 ) [2025-03-26 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:28:05' and `end` < '2025-03-26 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:28:18] Production.INFO: count ==210 [2025-03-26 05:28:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:28:05 - End Time 2025-03-26 05:28:05 [2025-03-26 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764689', 'tblTempUsageDetail_20' ) start [2025-03-26 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764689', 'tblTempUsageDetail_20' ) end [2025-03-26 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764689', 'tblTempVendorCDR_20' ) start [2025-03-26 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764689', 'tblTempVendorCDR_20' ) end [2025-03-26 05:28:18] Production.INFO: ProcessCDR(1,14764689,1,1,2) [2025-03-26 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764689', 'tblTempUsageDetail_20' ) start [2025-03-26 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764689', 'tblTempUsageDetail_20' ) end [2025-03-26 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:28:21] Production.INFO: ==3652== Releasing lock... [2025-03-26 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:29:05 [end_date_ymd] => 2025-03-26 05:29:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:29:05' and `end` < '2025-03-26 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-26 05:29:17] Production.INFO: count ==210 [2025-03-26 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:29:05 - End Time 2025-03-26 05:29:05 [2025-03-26 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764694', 'tblTempUsageDetail_20' ) start [2025-03-26 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764694', 'tblTempUsageDetail_20' ) end [2025-03-26 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764694', 'tblTempVendorCDR_20' ) start [2025-03-26 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764694', 'tblTempVendorCDR_20' ) end [2025-03-26 05:29:17] Production.INFO: ProcessCDR(1,14764694,1,1,2) [2025-03-26 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764694', 'tblTempUsageDetail_20' ) start [2025-03-26 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764694', 'tblTempUsageDetail_20' ) end [2025-03-26 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:29:21] Production.INFO: ==3722== Releasing lock... [2025-03-26 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:30:06 [end_date_ymd] => 2025-03-26 05:30:06 [RateCDR] => 1 ) [2025-03-26 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-26 02:30:06' and `end` < '2025-03-26 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-26 05:30:19] Production.INFO: count ==207 [2025-03-26 05:30:19] Production.ERROR: pbx CDR StartTime 2025-03-26 02:30:06 - End Time 2025-03-26 05:30:06 [2025-03-26 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764700', 'tblTempUsageDetail_20' ) start [2025-03-26 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764700', 'tblTempUsageDetail_20' ) end [2025-03-26 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764700', 'tblTempVendorCDR_20' ) start [2025-03-26 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764700', 'tblTempVendorCDR_20' ) end [2025-03-26 05:30:19] Production.INFO: ProcessCDR(1,14764700,1,1,2) [2025-03-26 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764700', 'tblTempUsageDetail_20' ) start [2025-03-26 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764700', 'tblTempUsageDetail_20' ) end [2025-03-26 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:30:22] Production.INFO: ==3796== Releasing lock... [2025-03-26 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:30:22] Production.INFO: 30 MB #Memory Used# [2025-03-26 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:31:05 [end_date_ymd] => 2025-03-26 05:31:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:31:05' and `end` < '2025-03-26 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-26 05:31:17] Production.INFO: count ==207 [2025-03-26 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:31:05 - End Time 2025-03-26 05:31:05 [2025-03-26 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764705', 'tblTempUsageDetail_20' ) start [2025-03-26 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764705', 'tblTempUsageDetail_20' ) end [2025-03-26 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764705', 'tblTempVendorCDR_20' ) start [2025-03-26 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764705', 'tblTempVendorCDR_20' ) end [2025-03-26 05:31:17] Production.INFO: ProcessCDR(1,14764705,1,1,2) [2025-03-26 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764705', 'tblTempUsageDetail_20' ) start [2025-03-26 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764705', 'tblTempUsageDetail_20' ) end [2025-03-26 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:31:20] Production.INFO: ==3874== Releasing lock... [2025-03-26 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:31:20] Production.INFO: 30 MB #Memory Used# [2025-03-26 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:32:05 [end_date_ymd] => 2025-03-26 05:32:05 [RateCDR] => 1 ) [2025-03-26 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:32:05' and `end` < '2025-03-26 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:32:17] Production.INFO: count ==204 [2025-03-26 05:32:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:32:05 - End Time 2025-03-26 05:32:05 [2025-03-26 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764710', 'tblTempUsageDetail_20' ) start [2025-03-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764710', 'tblTempUsageDetail_20' ) end [2025-03-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764710', 'tblTempVendorCDR_20' ) start [2025-03-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764710', 'tblTempVendorCDR_20' ) end [2025-03-26 05:32:18] Production.INFO: ProcessCDR(1,14764710,1,1,2) [2025-03-26 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764710', 'tblTempUsageDetail_20' ) start [2025-03-26 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764710', 'tblTempUsageDetail_20' ) end [2025-03-26 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:32:21] Production.INFO: ==3946== Releasing lock... [2025-03-26 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:32:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:33:05 [end_date_ymd] => 2025-03-26 05:33:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:33:05' and `end` < '2025-03-26 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-26 05:33:18] Production.INFO: count ==194 [2025-03-26 05:33:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:33:05 - End Time 2025-03-26 05:33:05 [2025-03-26 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764715', 'tblTempUsageDetail_20' ) start [2025-03-26 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764715', 'tblTempUsageDetail_20' ) end [2025-03-26 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764715', 'tblTempVendorCDR_20' ) start [2025-03-26 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764715', 'tblTempVendorCDR_20' ) end [2025-03-26 05:33:18] Production.INFO: ProcessCDR(1,14764715,1,1,2) [2025-03-26 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764715', 'tblTempUsageDetail_20' ) start [2025-03-26 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764715', 'tblTempUsageDetail_20' ) end [2025-03-26 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:33:21] Production.INFO: ==4026== Releasing lock... [2025-03-26 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:34:05 [end_date_ymd] => 2025-03-26 05:34:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:34:05' and `end` < '2025-03-26 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-26 05:34:18] Production.INFO: count ==194 [2025-03-26 05:34:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:34:05 - End Time 2025-03-26 05:34:05 [2025-03-26 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764720', 'tblTempUsageDetail_20' ) start [2025-03-26 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764720', 'tblTempUsageDetail_20' ) end [2025-03-26 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764720', 'tblTempVendorCDR_20' ) start [2025-03-26 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764720', 'tblTempVendorCDR_20' ) end [2025-03-26 05:34:18] Production.INFO: ProcessCDR(1,14764720,1,1,2) [2025-03-26 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764720', 'tblTempUsageDetail_20' ) start [2025-03-26 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764720', 'tblTempUsageDetail_20' ) end [2025-03-26 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:34:21] Production.INFO: ==4104== Releasing lock... [2025-03-26 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 05:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:35:06 [end_date_ymd] => 2025-03-26 05:35:06 [RateCDR] => 1 ) [2025-03-26 05:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:35:06' and `end` < '2025-03-26 05:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:35:18] Production.INFO: count ==194 [2025-03-26 05:35:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:35:06 - End Time 2025-03-26 05:35:06 [2025-03-26 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764725', 'tblTempUsageDetail_20' ) start [2025-03-26 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764725', 'tblTempUsageDetail_20' ) end [2025-03-26 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764725', 'tblTempVendorCDR_20' ) start [2025-03-26 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764725', 'tblTempVendorCDR_20' ) end [2025-03-26 05:35:18] Production.INFO: ProcessCDR(1,14764725,1,1,2) [2025-03-26 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764725', 'tblTempUsageDetail_20' ) start [2025-03-26 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764725', 'tblTempUsageDetail_20' ) end [2025-03-26 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:35:21] Production.INFO: ==4179== Releasing lock... [2025-03-26 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:36:05 [end_date_ymd] => 2025-03-26 05:36:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:36:05' and `end` < '2025-03-26 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-26 05:36:18] Production.INFO: count ==188 [2025-03-26 05:36:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:36:05 - End Time 2025-03-26 05:36:05 [2025-03-26 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764730', 'tblTempUsageDetail_20' ) start [2025-03-26 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764730', 'tblTempUsageDetail_20' ) end [2025-03-26 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764730', 'tblTempVendorCDR_20' ) start [2025-03-26 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764730', 'tblTempVendorCDR_20' ) end [2025-03-26 05:36:18] Production.INFO: ProcessCDR(1,14764730,1,1,2) [2025-03-26 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764730', 'tblTempUsageDetail_20' ) start [2025-03-26 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764730', 'tblTempUsageDetail_20' ) end [2025-03-26 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:36:21] Production.INFO: ==4256== Releasing lock... [2025-03-26 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-26 05:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:37:04 [end_date_ymd] => 2025-03-26 05:37:04 [RateCDR] => 1 ) [2025-03-26 05:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:37:04' and `end` < '2025-03-26 05:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:37:17] Production.INFO: count ==188 [2025-03-26 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:37:04 - End Time 2025-03-26 05:37:04 [2025-03-26 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764735', 'tblTempUsageDetail_20' ) start [2025-03-26 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764735', 'tblTempUsageDetail_20' ) end [2025-03-26 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764735', 'tblTempVendorCDR_20' ) start [2025-03-26 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764735', 'tblTempVendorCDR_20' ) end [2025-03-26 05:37:17] Production.INFO: ProcessCDR(1,14764735,1,1,2) [2025-03-26 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764735', 'tblTempUsageDetail_20' ) start [2025-03-26 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764735', 'tblTempUsageDetail_20' ) end [2025-03-26 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:37:21] Production.INFO: ==4331== Releasing lock... [2025-03-26 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:37:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-26 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:38:05 [end_date_ymd] => 2025-03-26 05:38:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:38:05' and `end` < '2025-03-26 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-26 05:38:18] Production.INFO: count ==188 [2025-03-26 05:38:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:38:05 - End Time 2025-03-26 05:38:05 [2025-03-26 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764740', 'tblTempUsageDetail_20' ) start [2025-03-26 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764740', 'tblTempUsageDetail_20' ) end [2025-03-26 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764740', 'tblTempVendorCDR_20' ) start [2025-03-26 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764740', 'tblTempVendorCDR_20' ) end [2025-03-26 05:38:18] Production.INFO: ProcessCDR(1,14764740,1,1,2) [2025-03-26 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764740', 'tblTempUsageDetail_20' ) start [2025-03-26 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764740', 'tblTempUsageDetail_20' ) end [2025-03-26 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:38:21] Production.INFO: ==4406== Releasing lock... [2025-03-26 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-26 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:39:05 [end_date_ymd] => 2025-03-26 05:39:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:39:05' and `end` < '2025-03-26 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-26 05:39:18] Production.INFO: count ==188 [2025-03-26 05:39:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:39:05 - End Time 2025-03-26 05:39:05 [2025-03-26 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764745', 'tblTempUsageDetail_20' ) start [2025-03-26 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764745', 'tblTempUsageDetail_20' ) end [2025-03-26 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764745', 'tblTempVendorCDR_20' ) start [2025-03-26 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764745', 'tblTempVendorCDR_20' ) end [2025-03-26 05:39:18] Production.INFO: ProcessCDR(1,14764745,1,1,2) [2025-03-26 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764745', 'tblTempUsageDetail_20' ) start [2025-03-26 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764745', 'tblTempUsageDetail_20' ) end [2025-03-26 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:39:21] Production.INFO: ==4541== Releasing lock... [2025-03-26 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-26 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:40:06 [end_date_ymd] => 2025-03-26 05:40:06 [RateCDR] => 1 ) [2025-03-26 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-26 02:40:06' and `end` < '2025-03-26 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-26 05:40:18] Production.INFO: count ==186 [2025-03-26 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:40:06 - End Time 2025-03-26 05:40:06 [2025-03-26 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764751', 'tblTempUsageDetail_20' ) start [2025-03-26 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764751', 'tblTempUsageDetail_20' ) end [2025-03-26 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764751', 'tblTempVendorCDR_20' ) start [2025-03-26 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764751', 'tblTempVendorCDR_20' ) end [2025-03-26 05:40:18] Production.INFO: ProcessCDR(1,14764751,1,1,2) [2025-03-26 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764751', 'tblTempUsageDetail_20' ) start [2025-03-26 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764751', 'tblTempUsageDetail_20' ) end [2025-03-26 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:40:22] Production.INFO: ==4627== Releasing lock... [2025-03-26 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:40:22] Production.INFO: 30 MB #Memory Used# [2025-03-26 05:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:41:06 [end_date_ymd] => 2025-03-26 05:41:06 [RateCDR] => 1 ) [2025-03-26 05:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:41:06' and `end` < '2025-03-26 05:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:41:19] Production.INFO: count ==186 [2025-03-26 05:41:19] Production.ERROR: pbx CDR StartTime 2025-03-26 02:41:06 - End Time 2025-03-26 05:41:06 [2025-03-26 05:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764756', 'tblTempUsageDetail_20' ) start [2025-03-26 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764756', 'tblTempUsageDetail_20' ) end [2025-03-26 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764756', 'tblTempVendorCDR_20' ) start [2025-03-26 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764756', 'tblTempVendorCDR_20' ) end [2025-03-26 05:41:19] Production.INFO: ProcessCDR(1,14764756,1,1,2) [2025-03-26 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764756', 'tblTempUsageDetail_20' ) start [2025-03-26 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764756', 'tblTempUsageDetail_20' ) end [2025-03-26 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:41:22] Production.INFO: ==4711== Releasing lock... [2025-03-26 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:41:22] Production.INFO: 30 MB #Memory Used# [2025-03-26 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:42:05 [end_date_ymd] => 2025-03-26 05:42:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:42:05' and `end` < '2025-03-26 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-26 05:42:18] Production.INFO: count ==186 [2025-03-26 05:42:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:42:05 - End Time 2025-03-26 05:42:05 [2025-03-26 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764761', 'tblTempUsageDetail_20' ) start [2025-03-26 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764761', 'tblTempUsageDetail_20' ) end [2025-03-26 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764761', 'tblTempVendorCDR_20' ) start [2025-03-26 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764761', 'tblTempVendorCDR_20' ) end [2025-03-26 05:42:18] Production.INFO: ProcessCDR(1,14764761,1,1,2) [2025-03-26 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764761', 'tblTempUsageDetail_20' ) start [2025-03-26 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764761', 'tblTempUsageDetail_20' ) end [2025-03-26 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:42:21] Production.INFO: ==4787== Releasing lock... [2025-03-26 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:42:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:43:06 [end_date_ymd] => 2025-03-26 05:43:06 [RateCDR] => 1 ) [2025-03-26 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-26 02:43:06' and `end` < '2025-03-26 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-26 05:43:18] Production.INFO: count ==186 [2025-03-26 05:43:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:43:06 - End Time 2025-03-26 05:43:06 [2025-03-26 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764766', 'tblTempUsageDetail_20' ) start [2025-03-26 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764766', 'tblTempUsageDetail_20' ) end [2025-03-26 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764766', 'tblTempVendorCDR_20' ) start [2025-03-26 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764766', 'tblTempVendorCDR_20' ) end [2025-03-26 05:43:18] Production.INFO: ProcessCDR(1,14764766,1,1,2) [2025-03-26 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764766', 'tblTempUsageDetail_20' ) start [2025-03-26 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764766', 'tblTempUsageDetail_20' ) end [2025-03-26 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:43:21] Production.INFO: ==4862== Releasing lock... [2025-03-26 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:43:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:44:05 [end_date_ymd] => 2025-03-26 05:44:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:44:05' and `end` < '2025-03-26 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-26 05:44:18] Production.INFO: count ==186 [2025-03-26 05:44:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:44:05 - End Time 2025-03-26 05:44:05 [2025-03-26 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764771', 'tblTempUsageDetail_20' ) start [2025-03-26 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764771', 'tblTempUsageDetail_20' ) end [2025-03-26 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764771', 'tblTempVendorCDR_20' ) start [2025-03-26 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764771', 'tblTempVendorCDR_20' ) end [2025-03-26 05:44:18] Production.INFO: ProcessCDR(1,14764771,1,1,2) [2025-03-26 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764771', 'tblTempUsageDetail_20' ) start [2025-03-26 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764771', 'tblTempUsageDetail_20' ) end [2025-03-26 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:44:21] Production.INFO: ==4942== Releasing lock... [2025-03-26 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:44:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 05:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:45:06 [end_date_ymd] => 2025-03-26 05:45:06 [RateCDR] => 1 ) [2025-03-26 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-26 02:45:06' and `end` < '2025-03-26 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-26 05:45:18] Production.INFO: count ==185 [2025-03-26 05:45:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:45:06 - End Time 2025-03-26 05:45:06 [2025-03-26 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764776', 'tblTempUsageDetail_20' ) start [2025-03-26 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764776', 'tblTempUsageDetail_20' ) end [2025-03-26 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764776', 'tblTempVendorCDR_20' ) start [2025-03-26 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764776', 'tblTempVendorCDR_20' ) end [2025-03-26 05:45:18] Production.INFO: ProcessCDR(1,14764776,1,1,2) [2025-03-26 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764776', 'tblTempUsageDetail_20' ) start [2025-03-26 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764776', 'tblTempUsageDetail_20' ) end [2025-03-26 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:45:21] Production.INFO: ==5019== Releasing lock... [2025-03-26 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:45:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:46:05 [end_date_ymd] => 2025-03-26 05:46:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:46:05' and `end` < '2025-03-26 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-26 05:46:17] Production.INFO: count ==185 [2025-03-26 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:46:05 - End Time 2025-03-26 05:46:05 [2025-03-26 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764781', 'tblTempUsageDetail_20' ) start [2025-03-26 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764781', 'tblTempUsageDetail_20' ) end [2025-03-26 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764781', 'tblTempVendorCDR_20' ) start [2025-03-26 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764781', 'tblTempVendorCDR_20' ) end [2025-03-26 05:46:17] Production.INFO: ProcessCDR(1,14764781,1,1,2) [2025-03-26 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764781', 'tblTempUsageDetail_20' ) start [2025-03-26 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764781', 'tblTempUsageDetail_20' ) end [2025-03-26 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:46:20] Production.INFO: ==5097== Releasing lock... [2025-03-26 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:46:20] Production.INFO: 30 MB #Memory Used# [2025-03-26 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:47:05 [end_date_ymd] => 2025-03-26 05:47:05 [RateCDR] => 1 ) [2025-03-26 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:47:05' and `end` < '2025-03-26 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:47:18] Production.INFO: count ==185 [2025-03-26 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:47:05 - End Time 2025-03-26 05:47:05 [2025-03-26 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764786', 'tblTempUsageDetail_20' ) start [2025-03-26 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764786', 'tblTempUsageDetail_20' ) end [2025-03-26 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764786', 'tblTempVendorCDR_20' ) start [2025-03-26 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764786', 'tblTempVendorCDR_20' ) end [2025-03-26 05:47:18] Production.INFO: ProcessCDR(1,14764786,1,1,2) [2025-03-26 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764786', 'tblTempUsageDetail_20' ) start [2025-03-26 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764786', 'tblTempUsageDetail_20' ) end [2025-03-26 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:47:21] Production.INFO: ==5175== Releasing lock... [2025-03-26 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:47:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:48:05 [end_date_ymd] => 2025-03-26 05:48:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:48:05' and `end` < '2025-03-26 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-26 05:48:17] Production.INFO: count ==185 [2025-03-26 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:48:05 - End Time 2025-03-26 05:48:05 [2025-03-26 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764791', 'tblTempUsageDetail_20' ) start [2025-03-26 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764791', 'tblTempUsageDetail_20' ) end [2025-03-26 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764791', 'tblTempVendorCDR_20' ) start [2025-03-26 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764791', 'tblTempVendorCDR_20' ) end [2025-03-26 05:48:17] Production.INFO: ProcessCDR(1,14764791,1,1,2) [2025-03-26 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764791', 'tblTempUsageDetail_20' ) start [2025-03-26 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764791', 'tblTempUsageDetail_20' ) end [2025-03-26 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:48:21] Production.INFO: ==5248== Releasing lock... [2025-03-26 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:48:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:49:05 [end_date_ymd] => 2025-03-26 05:49:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:49:05' and `end` < '2025-03-26 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-26 05:49:18] Production.INFO: count ==181 [2025-03-26 05:49:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:49:05 - End Time 2025-03-26 05:49:05 [2025-03-26 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764796', 'tblTempUsageDetail_20' ) start [2025-03-26 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764796', 'tblTempUsageDetail_20' ) end [2025-03-26 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764796', 'tblTempVendorCDR_20' ) start [2025-03-26 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764796', 'tblTempVendorCDR_20' ) end [2025-03-26 05:49:18] Production.INFO: ProcessCDR(1,14764796,1,1,2) [2025-03-26 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764796', 'tblTempUsageDetail_20' ) start [2025-03-26 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764796', 'tblTempUsageDetail_20' ) end [2025-03-26 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:49:21] Production.INFO: ==5323== Releasing lock... [2025-03-26 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:50:05 [end_date_ymd] => 2025-03-26 05:50:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:50:05' and `end` < '2025-03-26 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-26 05:50:17] Production.INFO: count ==177 [2025-03-26 05:50:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:50:05 - End Time 2025-03-26 05:50:05 [2025-03-26 05:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764802', 'tblTempUsageDetail_20' ) start [2025-03-26 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764802', 'tblTempUsageDetail_20' ) end [2025-03-26 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764802', 'tblTempVendorCDR_20' ) start [2025-03-26 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764802', 'tblTempVendorCDR_20' ) end [2025-03-26 05:50:17] Production.INFO: ProcessCDR(1,14764802,1,1,2) [2025-03-26 05:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764802', 'tblTempUsageDetail_20' ) start [2025-03-26 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764802', 'tblTempUsageDetail_20' ) end [2025-03-26 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:50:21] Production.INFO: ==5405== Releasing lock... [2025-03-26 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:50:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-26 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:51:05 [end_date_ymd] => 2025-03-26 05:51:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:51:05' and `end` < '2025-03-26 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-26 05:51:18] Production.INFO: count ==171 [2025-03-26 05:51:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:51:05 - End Time 2025-03-26 05:51:05 [2025-03-26 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764807', 'tblTempUsageDetail_20' ) start [2025-03-26 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764807', 'tblTempUsageDetail_20' ) end [2025-03-26 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764807', 'tblTempVendorCDR_20' ) start [2025-03-26 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764807', 'tblTempVendorCDR_20' ) end [2025-03-26 05:51:18] Production.INFO: ProcessCDR(1,14764807,1,1,2) [2025-03-26 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764807', 'tblTempUsageDetail_20' ) start [2025-03-26 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764807', 'tblTempUsageDetail_20' ) end [2025-03-26 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:51:21] Production.INFO: ==5484== Releasing lock... [2025-03-26 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:51:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-26 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:52:05 [end_date_ymd] => 2025-03-26 05:52:05 [RateCDR] => 1 ) [2025-03-26 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:52:05' and `end` < '2025-03-26 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:52:17] Production.INFO: count ==167 [2025-03-26 05:52:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:52:05 - End Time 2025-03-26 05:52:05 [2025-03-26 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764812', 'tblTempUsageDetail_20' ) start [2025-03-26 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764812', 'tblTempUsageDetail_20' ) end [2025-03-26 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764812', 'tblTempVendorCDR_20' ) start [2025-03-26 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764812', 'tblTempVendorCDR_20' ) end [2025-03-26 05:52:18] Production.INFO: ProcessCDR(1,14764812,1,1,2) [2025-03-26 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764812', 'tblTempUsageDetail_20' ) start [2025-03-26 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764812', 'tblTempUsageDetail_20' ) end [2025-03-26 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:52:21] Production.INFO: ==5568== Releasing lock... [2025-03-26 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:53:05 [end_date_ymd] => 2025-03-26 05:53:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:53:05' and `end` < '2025-03-26 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-26 05:53:18] Production.INFO: count ==164 [2025-03-26 05:53:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:53:05 - End Time 2025-03-26 05:53:05 [2025-03-26 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764817', 'tblTempUsageDetail_20' ) start [2025-03-26 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764817', 'tblTempUsageDetail_20' ) end [2025-03-26 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764817', 'tblTempVendorCDR_20' ) start [2025-03-26 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764817', 'tblTempVendorCDR_20' ) end [2025-03-26 05:53:18] Production.INFO: ProcessCDR(1,14764817,1,1,2) [2025-03-26 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764817', 'tblTempUsageDetail_20' ) start [2025-03-26 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764817', 'tblTempUsageDetail_20' ) end [2025-03-26 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:53:21] Production.INFO: ==5646== Releasing lock... [2025-03-26 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:54:05 [end_date_ymd] => 2025-03-26 05:54:05 [RateCDR] => 1 ) [2025-03-26 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:54:05' and `end` < '2025-03-26 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:54:17] Production.INFO: count ==164 [2025-03-26 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:54:05 - End Time 2025-03-26 05:54:05 [2025-03-26 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764822', 'tblTempUsageDetail_20' ) start [2025-03-26 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764822', 'tblTempUsageDetail_20' ) end [2025-03-26 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764822', 'tblTempVendorCDR_20' ) start [2025-03-26 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764822', 'tblTempVendorCDR_20' ) end [2025-03-26 05:54:17] Production.INFO: ProcessCDR(1,14764822,1,1,2) [2025-03-26 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764822', 'tblTempUsageDetail_20' ) start [2025-03-26 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764822', 'tblTempUsageDetail_20' ) end [2025-03-26 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:54:21] Production.INFO: ==5761== Releasing lock... [2025-03-26 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:55:05 [end_date_ymd] => 2025-03-26 05:55:05 [RateCDR] => 1 ) [2025-03-26 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:55:05' and `end` < '2025-03-26 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:55:17] Production.INFO: count ==164 [2025-03-26 05:55:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:55:05 - End Time 2025-03-26 05:55:05 [2025-03-26 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764827', 'tblTempUsageDetail_20' ) start [2025-03-26 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764827', 'tblTempUsageDetail_20' ) end [2025-03-26 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764827', 'tblTempVendorCDR_20' ) start [2025-03-26 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764827', 'tblTempVendorCDR_20' ) end [2025-03-26 05:55:17] Production.INFO: ProcessCDR(1,14764827,1,1,2) [2025-03-26 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764827', 'tblTempUsageDetail_20' ) start [2025-03-26 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764827', 'tblTempUsageDetail_20' ) end [2025-03-26 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:55:21] Production.INFO: ==5838== Releasing lock... [2025-03-26 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:56:06 [end_date_ymd] => 2025-03-26 05:56:06 [RateCDR] => 1 ) [2025-03-26 05:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 02:56:06' and `end` < '2025-03-26 05:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 05:56:18] Production.INFO: count ==164 [2025-03-26 05:56:18] Production.ERROR: pbx CDR StartTime 2025-03-26 02:56:06 - End Time 2025-03-26 05:56:06 [2025-03-26 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764832', 'tblTempUsageDetail_20' ) start [2025-03-26 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764832', 'tblTempUsageDetail_20' ) end [2025-03-26 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764832', 'tblTempVendorCDR_20' ) start [2025-03-26 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764832', 'tblTempVendorCDR_20' ) end [2025-03-26 05:56:18] Production.INFO: ProcessCDR(1,14764832,1,1,2) [2025-03-26 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764832', 'tblTempUsageDetail_20' ) start [2025-03-26 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764832', 'tblTempUsageDetail_20' ) end [2025-03-26 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:56:21] Production.INFO: ==5921== Releasing lock... [2025-03-26 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:57:05 [end_date_ymd] => 2025-03-26 05:57:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:57:05' and `end` < '2025-03-26 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-26 05:57:17] Production.INFO: count ==164 [2025-03-26 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:57:05 - End Time 2025-03-26 05:57:05 [2025-03-26 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764837', 'tblTempUsageDetail_20' ) start [2025-03-26 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764837', 'tblTempUsageDetail_20' ) end [2025-03-26 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764837', 'tblTempVendorCDR_20' ) start [2025-03-26 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764837', 'tblTempVendorCDR_20' ) end [2025-03-26 05:57:17] Production.INFO: ProcessCDR(1,14764837,1,1,2) [2025-03-26 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764837', 'tblTempUsageDetail_20' ) start [2025-03-26 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764837', 'tblTempUsageDetail_20' ) end [2025-03-26 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:57:21] Production.INFO: ==5999== Releasing lock... [2025-03-26 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:58:05 [end_date_ymd] => 2025-03-26 05:58:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:58:05' and `end` < '2025-03-26 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-26 05:58:17] Production.INFO: count ==165 [2025-03-26 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:58:05 - End Time 2025-03-26 05:58:05 [2025-03-26 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764842', 'tblTempUsageDetail_20' ) start [2025-03-26 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764842', 'tblTempUsageDetail_20' ) end [2025-03-26 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764842', 'tblTempVendorCDR_20' ) start [2025-03-26 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764842', 'tblTempVendorCDR_20' ) end [2025-03-26 05:58:18] Production.INFO: ProcessCDR(1,14764842,1,1,2) [2025-03-26 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764842', 'tblTempUsageDetail_20' ) start [2025-03-26 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764842', 'tblTempUsageDetail_20' ) end [2025-03-26 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:58:22] Production.INFO: ==6076== Releasing lock... [2025-03-26 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 02:59:05 [end_date_ymd] => 2025-03-26 05:59:05 [RateCDR] => 1 ) [2025-03-26 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-26 02:59:05' and `end` < '2025-03-26 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-26 05:59:17] Production.INFO: count ==152 [2025-03-26 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-26 02:59:05 - End Time 2025-03-26 05:59:05 [2025-03-26 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764847', 'tblTempUsageDetail_20' ) start [2025-03-26 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764847', 'tblTempUsageDetail_20' ) end [2025-03-26 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764847', 'tblTempVendorCDR_20' ) start [2025-03-26 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764847', 'tblTempVendorCDR_20' ) end [2025-03-26 05:59:17] Production.INFO: ProcessCDR(1,14764847,1,1,2) [2025-03-26 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764847', 'tblTempUsageDetail_20' ) start [2025-03-26 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764847', 'tblTempUsageDetail_20' ) end [2025-03-26 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 05:59:22] Production.INFO: ==6155== Releasing lock... [2025-03-26 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 05:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:00:06 [end_date_ymd] => 2025-03-26 06:00:06 [RateCDR] => 1 ) [2025-03-26 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-26 03:00:06' and `end` < '2025-03-26 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-26 06:00:18] Production.INFO: count ==144 [2025-03-26 06:00:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:00:06 - End Time 2025-03-26 06:00:06 [2025-03-26 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764852', 'tblTempUsageDetail_20' ) start [2025-03-26 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764852', 'tblTempUsageDetail_20' ) end [2025-03-26 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764852', 'tblTempVendorCDR_20' ) start [2025-03-26 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764852', 'tblTempVendorCDR_20' ) end [2025-03-26 06:00:18] Production.INFO: ProcessCDR(1,14764852,1,1,2) [2025-03-26 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764852', 'tblTempUsageDetail_20' ) start [2025-03-26 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764852', 'tblTempUsageDetail_20' ) end [2025-03-26 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:00:22] Production.INFO: ==6235== Releasing lock... [2025-03-26 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:01:05 [end_date_ymd] => 2025-03-26 06:01:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:01:05' and `end` < '2025-03-26 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-26 06:01:18] Production.INFO: count ==144 [2025-03-26 06:01:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:01:05 - End Time 2025-03-26 06:01:05 [2025-03-26 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764858', 'tblTempUsageDetail_20' ) start [2025-03-26 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764858', 'tblTempUsageDetail_20' ) end [2025-03-26 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764858', 'tblTempVendorCDR_20' ) start [2025-03-26 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764858', 'tblTempVendorCDR_20' ) end [2025-03-26 06:01:18] Production.INFO: ProcessCDR(1,14764858,1,1,2) [2025-03-26 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764858', 'tblTempUsageDetail_20' ) start [2025-03-26 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764858', 'tblTempUsageDetail_20' ) end [2025-03-26 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:01:22] Production.INFO: ==6321== Releasing lock... [2025-03-26 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:02:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:02:07 [end_date_ymd] => 2025-03-26 06:02:07 [RateCDR] => 1 ) [2025-03-26 06: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-26 03:02:07' and `end` < '2025-03-26 06: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-26 06:02:19] Production.INFO: count ==144 [2025-03-26 06:02:19] Production.ERROR: pbx CDR StartTime 2025-03-26 03:02:07 - End Time 2025-03-26 06:02:07 [2025-03-26 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764863', 'tblTempUsageDetail_20' ) start [2025-03-26 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764863', 'tblTempUsageDetail_20' ) end [2025-03-26 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764863', 'tblTempVendorCDR_20' ) start [2025-03-26 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764863', 'tblTempVendorCDR_20' ) end [2025-03-26 06:02:19] Production.INFO: ProcessCDR(1,14764863,1,1,2) [2025-03-26 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764863', 'tblTempUsageDetail_20' ) start [2025-03-26 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764863', 'tblTempUsageDetail_20' ) end [2025-03-26 06:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:02:23] Production.INFO: ==6395== Releasing lock... [2025-03-26 06:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:02:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:03:06 [end_date_ymd] => 2025-03-26 06:03:06 [RateCDR] => 1 ) [2025-03-26 06: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-26 03:03:06' and `end` < '2025-03-26 06: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-26 06:03:18] Production.INFO: count ==144 [2025-03-26 06:03:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:03:06 - End Time 2025-03-26 06:03:06 [2025-03-26 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764868', 'tblTempUsageDetail_20' ) start [2025-03-26 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764868', 'tblTempUsageDetail_20' ) end [2025-03-26 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764868', 'tblTempVendorCDR_20' ) start [2025-03-26 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764868', 'tblTempVendorCDR_20' ) end [2025-03-26 06:03:18] Production.INFO: ProcessCDR(1,14764868,1,1,2) [2025-03-26 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764868', 'tblTempUsageDetail_20' ) start [2025-03-26 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764868', 'tblTempUsageDetail_20' ) end [2025-03-26 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:03:22] Production.INFO: ==6473== Releasing lock... [2025-03-26 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:03:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:04:05 [end_date_ymd] => 2025-03-26 06:04:05 [RateCDR] => 1 ) [2025-03-26 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:04:05' and `end` < '2025-03-26 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:04:18] Production.INFO: count ==144 [2025-03-26 06:04:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:04:05 - End Time 2025-03-26 06:04:05 [2025-03-26 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764873', 'tblTempUsageDetail_20' ) start [2025-03-26 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764873', 'tblTempUsageDetail_20' ) end [2025-03-26 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764873', 'tblTempVendorCDR_20' ) start [2025-03-26 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764873', 'tblTempVendorCDR_20' ) end [2025-03-26 06:04:18] Production.INFO: ProcessCDR(1,14764873,1,1,2) [2025-03-26 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764873', 'tblTempUsageDetail_20' ) start [2025-03-26 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764873', 'tblTempUsageDetail_20' ) end [2025-03-26 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:04:22] Production.INFO: ==6554== Releasing lock... [2025-03-26 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:05:05 [end_date_ymd] => 2025-03-26 06:05:05 [RateCDR] => 1 ) [2025-03-26 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:05:05' and `end` < '2025-03-26 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:05:18] Production.INFO: count ==149 [2025-03-26 06:05:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:05:05 - End Time 2025-03-26 06:05:05 [2025-03-26 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764878', 'tblTempUsageDetail_20' ) start [2025-03-26 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764878', 'tblTempUsageDetail_20' ) end [2025-03-26 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764878', 'tblTempVendorCDR_20' ) start [2025-03-26 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764878', 'tblTempVendorCDR_20' ) end [2025-03-26 06:05:18] Production.INFO: ProcessCDR(1,14764878,1,1,2) [2025-03-26 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764878', 'tblTempUsageDetail_20' ) start [2025-03-26 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764878', 'tblTempUsageDetail_20' ) end [2025-03-26 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:05:22] Production.INFO: ==6629== Releasing lock... [2025-03-26 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:06:05 [end_date_ymd] => 2025-03-26 06:06:05 [RateCDR] => 1 ) [2025-03-26 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:06:05' and `end` < '2025-03-26 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:06:17] Production.INFO: count ==149 [2025-03-26 06:06:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:06:05 - End Time 2025-03-26 06:06:05 [2025-03-26 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764883', 'tblTempUsageDetail_20' ) start [2025-03-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764883', 'tblTempUsageDetail_20' ) end [2025-03-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764883', 'tblTempVendorCDR_20' ) start [2025-03-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764883', 'tblTempVendorCDR_20' ) end [2025-03-26 06:06:18] Production.INFO: ProcessCDR(1,14764883,1,1,2) [2025-03-26 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764883', 'tblTempUsageDetail_20' ) start [2025-03-26 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764883', 'tblTempUsageDetail_20' ) end [2025-03-26 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:06:21] Production.INFO: ==6704== Releasing lock... [2025-03-26 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:07:05 [end_date_ymd] => 2025-03-26 06:07:05 [RateCDR] => 1 ) [2025-03-26 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:07:05' and `end` < '2025-03-26 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:07:17] Production.INFO: count ==149 [2025-03-26 06:07:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:07:05 - End Time 2025-03-26 06:07:05 [2025-03-26 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764888', 'tblTempUsageDetail_20' ) start [2025-03-26 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764888', 'tblTempUsageDetail_20' ) end [2025-03-26 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764888', 'tblTempVendorCDR_20' ) start [2025-03-26 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764888', 'tblTempVendorCDR_20' ) end [2025-03-26 06:07:17] Production.INFO: ProcessCDR(1,14764888,1,1,2) [2025-03-26 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764888', 'tblTempUsageDetail_20' ) start [2025-03-26 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764888', 'tblTempUsageDetail_20' ) end [2025-03-26 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:07:21] Production.INFO: ==6780== Releasing lock... [2025-03-26 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:08:05 [end_date_ymd] => 2025-03-26 06:08:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:08:05' and `end` < '2025-03-26 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-26 06:08:18] Production.INFO: count ==150 [2025-03-26 06:08:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:08:05 - End Time 2025-03-26 06:08:05 [2025-03-26 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764893', 'tblTempUsageDetail_20' ) start [2025-03-26 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764893', 'tblTempUsageDetail_20' ) end [2025-03-26 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764893', 'tblTempVendorCDR_20' ) start [2025-03-26 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764893', 'tblTempVendorCDR_20' ) end [2025-03-26 06:08:18] Production.INFO: ProcessCDR(1,14764893,1,1,2) [2025-03-26 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764893', 'tblTempUsageDetail_20' ) start [2025-03-26 06:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764893', 'tblTempUsageDetail_20' ) end [2025-03-26 06:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:08:23] Production.INFO: ==6858== Releasing lock... [2025-03-26 06:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:08:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:09:05 [end_date_ymd] => 2025-03-26 06:09:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:09:05' and `end` < '2025-03-26 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-26 06:09:17] Production.INFO: count ==150 [2025-03-26 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:09:05 - End Time 2025-03-26 06:09:05 [2025-03-26 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764898', 'tblTempUsageDetail_20' ) start [2025-03-26 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764898', 'tblTempUsageDetail_20' ) end [2025-03-26 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764898', 'tblTempVendorCDR_20' ) start [2025-03-26 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764898', 'tblTempVendorCDR_20' ) end [2025-03-26 06:09:17] Production.INFO: ProcessCDR(1,14764898,1,1,2) [2025-03-26 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764898', 'tblTempUsageDetail_20' ) start [2025-03-26 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764898', 'tblTempUsageDetail_20' ) end [2025-03-26 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:09:21] Production.INFO: ==6932== Releasing lock... [2025-03-26 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 06:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:10:07 [end_date_ymd] => 2025-03-26 06:10:07 [RateCDR] => 1 ) [2025-03-26 06: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-26 03:10:07' and `end` < '2025-03-26 06: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-26 06:10:19] Production.INFO: count ==149 [2025-03-26 06:10:19] Production.ERROR: pbx CDR StartTime 2025-03-26 03:10:07 - End Time 2025-03-26 06:10:07 [2025-03-26 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764904', 'tblTempUsageDetail_20' ) start [2025-03-26 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764904', 'tblTempUsageDetail_20' ) end [2025-03-26 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764904', 'tblTempVendorCDR_20' ) start [2025-03-26 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764904', 'tblTempVendorCDR_20' ) end [2025-03-26 06:10:19] Production.INFO: ProcessCDR(1,14764904,1,1,2) [2025-03-26 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764904', 'tblTempUsageDetail_20' ) start [2025-03-26 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764904', 'tblTempUsageDetail_20' ) end [2025-03-26 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:10:23] Production.INFO: ==7050== Releasing lock... [2025-03-26 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:10:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:11:05 [end_date_ymd] => 2025-03-26 06:11:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:11:05' and `end` < '2025-03-26 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-26 06:11:17] Production.INFO: count ==149 [2025-03-26 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:11:05 - End Time 2025-03-26 06:11:05 [2025-03-26 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764909', 'tblTempUsageDetail_20' ) start [2025-03-26 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764909', 'tblTempUsageDetail_20' ) end [2025-03-26 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764909', 'tblTempVendorCDR_20' ) start [2025-03-26 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764909', 'tblTempVendorCDR_20' ) end [2025-03-26 06:11:17] Production.INFO: ProcessCDR(1,14764909,1,1,2) [2025-03-26 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764909', 'tblTempUsageDetail_20' ) start [2025-03-26 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764909', 'tblTempUsageDetail_20' ) end [2025-03-26 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:11:21] Production.INFO: ==7132== Releasing lock... [2025-03-26 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:12:05 [end_date_ymd] => 2025-03-26 06:12:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:12:05' and `end` < '2025-03-26 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-26 06:12:18] Production.INFO: count ==129 [2025-03-26 06:12:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:12:05 - End Time 2025-03-26 06:12:05 [2025-03-26 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764914', 'tblTempUsageDetail_20' ) start [2025-03-26 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764914', 'tblTempUsageDetail_20' ) end [2025-03-26 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764914', 'tblTempVendorCDR_20' ) start [2025-03-26 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764914', 'tblTempVendorCDR_20' ) end [2025-03-26 06:12:18] Production.INFO: ProcessCDR(1,14764914,1,1,2) [2025-03-26 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764914', 'tblTempUsageDetail_20' ) start [2025-03-26 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764914', 'tblTempUsageDetail_20' ) end [2025-03-26 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:12:21] Production.INFO: ==7205== Releasing lock... [2025-03-26 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:13:05 [end_date_ymd] => 2025-03-26 06:13:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:13:05' and `end` < '2025-03-26 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-26 06:13:18] Production.INFO: count ==128 [2025-03-26 06:13:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:13:05 - End Time 2025-03-26 06:13:05 [2025-03-26 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764919', 'tblTempUsageDetail_20' ) start [2025-03-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764919', 'tblTempUsageDetail_20' ) end [2025-03-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764919', 'tblTempVendorCDR_20' ) start [2025-03-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764919', 'tblTempVendorCDR_20' ) end [2025-03-26 06:13:18] Production.INFO: ProcessCDR(1,14764919,1,1,2) [2025-03-26 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764919', 'tblTempUsageDetail_20' ) start [2025-03-26 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764919', 'tblTempUsageDetail_20' ) end [2025-03-26 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:13:21] Production.INFO: ==7281== Releasing lock... [2025-03-26 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:14:06 [end_date_ymd] => 2025-03-26 06:14:06 [RateCDR] => 1 ) [2025-03-26 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-26 03:14:06' and `end` < '2025-03-26 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-26 06:14:18] Production.INFO: count ==128 [2025-03-26 06:14:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:14:06 - End Time 2025-03-26 06:14:06 [2025-03-26 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764924', 'tblTempUsageDetail_20' ) start [2025-03-26 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764924', 'tblTempUsageDetail_20' ) end [2025-03-26 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764924', 'tblTempVendorCDR_20' ) start [2025-03-26 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764924', 'tblTempVendorCDR_20' ) end [2025-03-26 06:14:18] Production.INFO: ProcessCDR(1,14764924,1,1,2) [2025-03-26 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764924', 'tblTempUsageDetail_20' ) start [2025-03-26 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764924', 'tblTempUsageDetail_20' ) end [2025-03-26 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:14:21] Production.INFO: ==7358== Releasing lock... [2025-03-26 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:15:06 [end_date_ymd] => 2025-03-26 06:15:06 [RateCDR] => 1 ) [2025-03-26 06:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:15:06' and `end` < '2025-03-26 06:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:15:18] Production.INFO: count ==133 [2025-03-26 06:15:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:15:06 - End Time 2025-03-26 06:15:06 [2025-03-26 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764929', 'tblTempUsageDetail_20' ) start [2025-03-26 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764929', 'tblTempUsageDetail_20' ) end [2025-03-26 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764929', 'tblTempVendorCDR_20' ) start [2025-03-26 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764929', 'tblTempVendorCDR_20' ) end [2025-03-26 06:15:18] Production.INFO: ProcessCDR(1,14764929,1,1,2) [2025-03-26 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764929', 'tblTempUsageDetail_20' ) start [2025-03-26 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764929', 'tblTempUsageDetail_20' ) end [2025-03-26 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:15:21] Production.INFO: ==7434== Releasing lock... [2025-03-26 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:16:05 [end_date_ymd] => 2025-03-26 06:16:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:16:05' and `end` < '2025-03-26 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-26 06:16:17] Production.INFO: count ==143 [2025-03-26 06:16:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:16:05 - End Time 2025-03-26 06:16:05 [2025-03-26 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764934', 'tblTempUsageDetail_20' ) start [2025-03-26 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764934', 'tblTempUsageDetail_20' ) end [2025-03-26 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764934', 'tblTempVendorCDR_20' ) start [2025-03-26 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764934', 'tblTempVendorCDR_20' ) end [2025-03-26 06:16:18] Production.INFO: ProcessCDR(1,14764934,1,1,2) [2025-03-26 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764934', 'tblTempUsageDetail_20' ) start [2025-03-26 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764934', 'tblTempUsageDetail_20' ) end [2025-03-26 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:16:21] Production.INFO: ==7515== Releasing lock... [2025-03-26 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:17:05 [end_date_ymd] => 2025-03-26 06:17:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:17:05' and `end` < '2025-03-26 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-26 06:17:18] Production.INFO: count ==143 [2025-03-26 06:17:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:17:05 - End Time 2025-03-26 06:17:05 [2025-03-26 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764939', 'tblTempUsageDetail_20' ) start [2025-03-26 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764939', 'tblTempUsageDetail_20' ) end [2025-03-26 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764939', 'tblTempVendorCDR_20' ) start [2025-03-26 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764939', 'tblTempVendorCDR_20' ) end [2025-03-26 06:17:18] Production.INFO: ProcessCDR(1,14764939,1,1,2) [2025-03-26 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764939', 'tblTempUsageDetail_20' ) start [2025-03-26 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764939', 'tblTempUsageDetail_20' ) end [2025-03-26 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:17:21] Production.INFO: ==7599== Releasing lock... [2025-03-26 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:18:05 [end_date_ymd] => 2025-03-26 06:18:05 [RateCDR] => 1 ) [2025-03-26 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:18:05' and `end` < '2025-03-26 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:18:17] Production.INFO: count ==143 [2025-03-26 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:18:05 - End Time 2025-03-26 06:18:05 [2025-03-26 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764944', 'tblTempUsageDetail_20' ) start [2025-03-26 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764944', 'tblTempUsageDetail_20' ) end [2025-03-26 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764944', 'tblTempVendorCDR_20' ) start [2025-03-26 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764944', 'tblTempVendorCDR_20' ) end [2025-03-26 06:18:17] Production.INFO: ProcessCDR(1,14764944,1,1,2) [2025-03-26 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764944', 'tblTempUsageDetail_20' ) start [2025-03-26 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764944', 'tblTempUsageDetail_20' ) end [2025-03-26 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:18:21] Production.INFO: ==7679== Releasing lock... [2025-03-26 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:19:06 [end_date_ymd] => 2025-03-26 06:19:06 [RateCDR] => 1 ) [2025-03-26 06: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-26 03:19:06' and `end` < '2025-03-26 06: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-26 06:19:18] Production.INFO: count ==143 [2025-03-26 06:19:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:19:06 - End Time 2025-03-26 06:19:06 [2025-03-26 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764949', 'tblTempUsageDetail_20' ) start [2025-03-26 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764949', 'tblTempUsageDetail_20' ) end [2025-03-26 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764949', 'tblTempVendorCDR_20' ) start [2025-03-26 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764949', 'tblTempVendorCDR_20' ) end [2025-03-26 06:19:18] Production.INFO: ProcessCDR(1,14764949,1,1,2) [2025-03-26 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764949', 'tblTempUsageDetail_20' ) start [2025-03-26 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764949', 'tblTempUsageDetail_20' ) end [2025-03-26 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:19:21] Production.INFO: ==7759== Releasing lock... [2025-03-26 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:20:06 [end_date_ymd] => 2025-03-26 06:20:06 [RateCDR] => 1 ) [2025-03-26 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-26 03:20:06' and `end` < '2025-03-26 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-26 06:20:18] Production.INFO: count ==135 [2025-03-26 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:20:06 - End Time 2025-03-26 06:20:06 [2025-03-26 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764954', 'tblTempUsageDetail_20' ) start [2025-03-26 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764954', 'tblTempUsageDetail_20' ) end [2025-03-26 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764954', 'tblTempVendorCDR_20' ) start [2025-03-26 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764954', 'tblTempVendorCDR_20' ) end [2025-03-26 06:20:18] Production.INFO: ProcessCDR(1,14764954,1,1,2) [2025-03-26 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764954', 'tblTempUsageDetail_20' ) start [2025-03-26 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764954', 'tblTempUsageDetail_20' ) end [2025-03-26 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:20:22] Production.INFO: ==7837== Releasing lock... [2025-03-26 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:21:05 [end_date_ymd] => 2025-03-26 06:21:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:21:05' and `end` < '2025-03-26 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-26 06:21:18] Production.INFO: count ==135 [2025-03-26 06:21:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:21:05 - End Time 2025-03-26 06:21:05 [2025-03-26 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764960', 'tblTempUsageDetail_20' ) start [2025-03-26 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764960', 'tblTempUsageDetail_20' ) end [2025-03-26 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764960', 'tblTempVendorCDR_20' ) start [2025-03-26 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764960', 'tblTempVendorCDR_20' ) end [2025-03-26 06:21:18] Production.INFO: ProcessCDR(1,14764960,1,1,2) [2025-03-26 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764960', 'tblTempUsageDetail_20' ) start [2025-03-26 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764960', 'tblTempUsageDetail_20' ) end [2025-03-26 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:21:21] Production.INFO: ==7919== Releasing lock... [2025-03-26 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:22:05 [end_date_ymd] => 2025-03-26 06:22:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:22:05' and `end` < '2025-03-26 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-26 06:22:18] Production.INFO: count ==135 [2025-03-26 06:22:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:22:05 - End Time 2025-03-26 06:22:05 [2025-03-26 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764965', 'tblTempUsageDetail_20' ) start [2025-03-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764965', 'tblTempUsageDetail_20' ) end [2025-03-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764965', 'tblTempVendorCDR_20' ) start [2025-03-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764965', 'tblTempVendorCDR_20' ) end [2025-03-26 06:22:18] Production.INFO: ProcessCDR(1,14764965,1,1,2) [2025-03-26 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764965', 'tblTempUsageDetail_20' ) start [2025-03-26 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764965', 'tblTempUsageDetail_20' ) end [2025-03-26 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:22:21] Production.INFO: ==7995== Releasing lock... [2025-03-26 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:23:05 [end_date_ymd] => 2025-03-26 06:23:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:23:05' and `end` < '2025-03-26 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-26 06:23:18] Production.INFO: count ==135 [2025-03-26 06:23:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:23:05 - End Time 2025-03-26 06:23:05 [2025-03-26 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764970', 'tblTempUsageDetail_20' ) start [2025-03-26 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764970', 'tblTempUsageDetail_20' ) end [2025-03-26 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764970', 'tblTempVendorCDR_20' ) start [2025-03-26 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764970', 'tblTempVendorCDR_20' ) end [2025-03-26 06:23:18] Production.INFO: ProcessCDR(1,14764970,1,1,2) [2025-03-26 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764970', 'tblTempUsageDetail_20' ) start [2025-03-26 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764970', 'tblTempUsageDetail_20' ) end [2025-03-26 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:23:21] Production.INFO: ==8074== Releasing lock... [2025-03-26 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:24:05 [end_date_ymd] => 2025-03-26 06:24:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:24:05' and `end` < '2025-03-26 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-26 06:24:17] Production.INFO: count ==135 [2025-03-26 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:24:05 - End Time 2025-03-26 06:24:05 [2025-03-26 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764975', 'tblTempUsageDetail_20' ) start [2025-03-26 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764975', 'tblTempUsageDetail_20' ) end [2025-03-26 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764975', 'tblTempVendorCDR_20' ) start [2025-03-26 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764975', 'tblTempVendorCDR_20' ) end [2025-03-26 06:24:17] Production.INFO: ProcessCDR(1,14764975,1,1,2) [2025-03-26 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764975', 'tblTempUsageDetail_20' ) start [2025-03-26 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764975', 'tblTempUsageDetail_20' ) end [2025-03-26 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:24:20] Production.INFO: ==8149== Releasing lock... [2025-03-26 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:24:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:25:05 [end_date_ymd] => 2025-03-26 06:25:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:25:05' and `end` < '2025-03-26 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-26 06:25:18] Production.INFO: count ==125 [2025-03-26 06:25:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:25:05 - End Time 2025-03-26 06:25:05 [2025-03-26 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764980', 'tblTempUsageDetail_20' ) start [2025-03-26 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764980', 'tblTempUsageDetail_20' ) end [2025-03-26 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764980', 'tblTempVendorCDR_20' ) start [2025-03-26 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764980', 'tblTempVendorCDR_20' ) end [2025-03-26 06:25:18] Production.INFO: ProcessCDR(1,14764980,1,1,2) [2025-03-26 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764980', 'tblTempUsageDetail_20' ) start [2025-03-26 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764980', 'tblTempUsageDetail_20' ) end [2025-03-26 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:25:21] Production.INFO: ==8270== Releasing lock... [2025-03-26 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:26:04 [end_date_ymd] => 2025-03-26 06:26:04 [RateCDR] => 1 ) [2025-03-26 06:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:26:04' and `end` < '2025-03-26 06:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:26:17] Production.INFO: count ==125 [2025-03-26 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:26:04 - End Time 2025-03-26 06:26:04 [2025-03-26 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764985', 'tblTempUsageDetail_20' ) start [2025-03-26 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764985', 'tblTempUsageDetail_20' ) end [2025-03-26 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764985', 'tblTempVendorCDR_20' ) start [2025-03-26 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764985', 'tblTempVendorCDR_20' ) end [2025-03-26 06:26:17] Production.INFO: ProcessCDR(1,14764985,1,1,2) [2025-03-26 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764985', 'tblTempUsageDetail_20' ) start [2025-03-26 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764985', 'tblTempUsageDetail_20' ) end [2025-03-26 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:26:20] Production.INFO: ==8345== Releasing lock... [2025-03-26 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:26:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:27:05 [end_date_ymd] => 2025-03-26 06:27:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:27:05' and `end` < '2025-03-26 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-26 06:27:18] Production.INFO: count ==125 [2025-03-26 06:27:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:27:05 - End Time 2025-03-26 06:27:05 [2025-03-26 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764990', 'tblTempUsageDetail_20' ) start [2025-03-26 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764990', 'tblTempUsageDetail_20' ) end [2025-03-26 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764990', 'tblTempVendorCDR_20' ) start [2025-03-26 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764990', 'tblTempVendorCDR_20' ) end [2025-03-26 06:27:18] Production.INFO: ProcessCDR(1,14764990,1,1,2) [2025-03-26 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764990', 'tblTempUsageDetail_20' ) start [2025-03-26 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764990', 'tblTempUsageDetail_20' ) end [2025-03-26 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:27:21] Production.INFO: ==8422== Releasing lock... [2025-03-26 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:28:05 [end_date_ymd] => 2025-03-26 06:28:05 [RateCDR] => 1 ) [2025-03-26 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:28:05' and `end` < '2025-03-26 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:28:17] Production.INFO: count ==124 [2025-03-26 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:28:05 - End Time 2025-03-26 06:28:05 [2025-03-26 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764995', 'tblTempUsageDetail_20' ) start [2025-03-26 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14764995', 'tblTempUsageDetail_20' ) end [2025-03-26 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764995', 'tblTempVendorCDR_20' ) start [2025-03-26 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14764995', 'tblTempVendorCDR_20' ) end [2025-03-26 06:28:17] Production.INFO: ProcessCDR(1,14764995,1,1,2) [2025-03-26 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14764995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14764995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14764995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14764995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764995', 'tblTempUsageDetail_20' ) start [2025-03-26 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14764995', 'tblTempUsageDetail_20' ) end [2025-03-26 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:28:21] Production.INFO: ==8500== Releasing lock... [2025-03-26 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:29:05 [end_date_ymd] => 2025-03-26 06:29:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:29:05' and `end` < '2025-03-26 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-26 06:29:18] Production.INFO: count ==123 [2025-03-26 06:29:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:29:05 - End Time 2025-03-26 06:29:05 [2025-03-26 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765000', 'tblTempUsageDetail_20' ) start [2025-03-26 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765000', 'tblTempUsageDetail_20' ) end [2025-03-26 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765000', 'tblTempVendorCDR_20' ) start [2025-03-26 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765000', 'tblTempVendorCDR_20' ) end [2025-03-26 06:29:18] Production.INFO: ProcessCDR(1,14765000,1,1,2) [2025-03-26 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765000', 'tblTempUsageDetail_20' ) start [2025-03-26 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765000', 'tblTempUsageDetail_20' ) end [2025-03-26 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:29:21] Production.INFO: ==8578== Releasing lock... [2025-03-26 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:30:07 [end_date_ymd] => 2025-03-26 06:30:07 [RateCDR] => 1 ) [2025-03-26 06:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:30:07' and `end` < '2025-03-26 06:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:30:19] Production.INFO: count ==125 [2025-03-26 06:30:19] Production.ERROR: pbx CDR StartTime 2025-03-26 03:30:07 - End Time 2025-03-26 06:30:07 [2025-03-26 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765006', 'tblTempUsageDetail_20' ) start [2025-03-26 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765006', 'tblTempUsageDetail_20' ) end [2025-03-26 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765006', 'tblTempVendorCDR_20' ) start [2025-03-26 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765006', 'tblTempVendorCDR_20' ) end [2025-03-26 06:30:19] Production.INFO: ProcessCDR(1,14765006,1,1,2) [2025-03-26 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765006', 'tblTempUsageDetail_20' ) start [2025-03-26 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765006', 'tblTempUsageDetail_20' ) end [2025-03-26 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:30:22] Production.INFO: ==8663== Releasing lock... [2025-03-26 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:31:05 [end_date_ymd] => 2025-03-26 06:31:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:31:05' and `end` < '2025-03-26 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-26 06:31:18] Production.INFO: count ==125 [2025-03-26 06:31:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:31:05 - End Time 2025-03-26 06:31:05 [2025-03-26 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765011', 'tblTempUsageDetail_20' ) start [2025-03-26 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765011', 'tblTempUsageDetail_20' ) end [2025-03-26 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765011', 'tblTempVendorCDR_20' ) start [2025-03-26 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765011', 'tblTempVendorCDR_20' ) end [2025-03-26 06:31:18] Production.INFO: ProcessCDR(1,14765011,1,1,2) [2025-03-26 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765011', 'tblTempUsageDetail_20' ) start [2025-03-26 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765011', 'tblTempUsageDetail_20' ) end [2025-03-26 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:31:21] Production.INFO: ==8750== Releasing lock... [2025-03-26 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:32:06 [end_date_ymd] => 2025-03-26 06:32:06 [RateCDR] => 1 ) [2025-03-26 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-26 03:32:06' and `end` < '2025-03-26 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-26 06:32:18] Production.INFO: count ==124 [2025-03-26 06:32:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:32:06 - End Time 2025-03-26 06:32:06 [2025-03-26 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765016', 'tblTempUsageDetail_20' ) start [2025-03-26 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765016', 'tblTempUsageDetail_20' ) end [2025-03-26 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765016', 'tblTempVendorCDR_20' ) start [2025-03-26 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765016', 'tblTempVendorCDR_20' ) end [2025-03-26 06:32:18] Production.INFO: ProcessCDR(1,14765016,1,1,2) [2025-03-26 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765016', 'tblTempUsageDetail_20' ) start [2025-03-26 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765016', 'tblTempUsageDetail_20' ) end [2025-03-26 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:32:21] Production.INFO: ==8827== Releasing lock... [2025-03-26 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:33:05 [end_date_ymd] => 2025-03-26 06:33:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:33:05' and `end` < '2025-03-26 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-26 06:33:17] Production.INFO: count ==124 [2025-03-26 06:33:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:33:05 - End Time 2025-03-26 06:33:05 [2025-03-26 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765021', 'tblTempUsageDetail_20' ) start [2025-03-26 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765021', 'tblTempUsageDetail_20' ) end [2025-03-26 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765021', 'tblTempVendorCDR_20' ) start [2025-03-26 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765021', 'tblTempVendorCDR_20' ) end [2025-03-26 06:33:17] Production.INFO: ProcessCDR(1,14765021,1,1,2) [2025-03-26 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765021', 'tblTempUsageDetail_20' ) start [2025-03-26 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765021', 'tblTempUsageDetail_20' ) end [2025-03-26 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:33:20] Production.INFO: ==8903== Releasing lock... [2025-03-26 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:33:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:34:05 [end_date_ymd] => 2025-03-26 06:34:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:34:05' and `end` < '2025-03-26 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-26 06:34:18] Production.INFO: count ==124 [2025-03-26 06:34:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:34:05 - End Time 2025-03-26 06:34:05 [2025-03-26 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765026', 'tblTempUsageDetail_20' ) start [2025-03-26 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765026', 'tblTempUsageDetail_20' ) end [2025-03-26 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765026', 'tblTempVendorCDR_20' ) start [2025-03-26 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765026', 'tblTempVendorCDR_20' ) end [2025-03-26 06:34:18] Production.INFO: ProcessCDR(1,14765026,1,1,2) [2025-03-26 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765026', 'tblTempUsageDetail_20' ) start [2025-03-26 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765026', 'tblTempUsageDetail_20' ) end [2025-03-26 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:34:21] Production.INFO: ==8983== Releasing lock... [2025-03-26 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:35:05 [end_date_ymd] => 2025-03-26 06:35:05 [RateCDR] => 1 ) [2025-03-26 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:35:05' and `end` < '2025-03-26 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-26 06:35:17] Production.INFO: count ==121 [2025-03-26 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:35:05 - End Time 2025-03-26 06:35:05 [2025-03-26 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765031', 'tblTempUsageDetail_20' ) start [2025-03-26 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765031', 'tblTempUsageDetail_20' ) end [2025-03-26 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765031', 'tblTempVendorCDR_20' ) start [2025-03-26 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765031', 'tblTempVendorCDR_20' ) end [2025-03-26 06:35:17] Production.INFO: ProcessCDR(1,14765031,1,1,2) [2025-03-26 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765031', 'tblTempUsageDetail_20' ) start [2025-03-26 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765031', 'tblTempUsageDetail_20' ) end [2025-03-26 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:35:21] Production.INFO: ==9062== Releasing lock... [2025-03-26 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:36:06 [end_date_ymd] => 2025-03-26 06:36:06 [RateCDR] => 1 ) [2025-03-26 06: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-26 03:36:06' and `end` < '2025-03-26 06: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-26 06:36:18] Production.INFO: count ==121 [2025-03-26 06:36:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:36:06 - End Time 2025-03-26 06:36:06 [2025-03-26 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765036', 'tblTempUsageDetail_20' ) start [2025-03-26 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765036', 'tblTempUsageDetail_20' ) end [2025-03-26 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765036', 'tblTempVendorCDR_20' ) start [2025-03-26 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765036', 'tblTempVendorCDR_20' ) end [2025-03-26 06:36:18] Production.INFO: ProcessCDR(1,14765036,1,1,2) [2025-03-26 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765036', 'tblTempUsageDetail_20' ) start [2025-03-26 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765036', 'tblTempUsageDetail_20' ) end [2025-03-26 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:36:21] Production.INFO: ==9136== Releasing lock... [2025-03-26 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:37:05 [end_date_ymd] => 2025-03-26 06:37:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:37:05' and `end` < '2025-03-26 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-26 06:37:17] Production.INFO: count ==119 [2025-03-26 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:37:05 - End Time 2025-03-26 06:37:05 [2025-03-26 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765041', 'tblTempUsageDetail_20' ) start [2025-03-26 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765041', 'tblTempUsageDetail_20' ) end [2025-03-26 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765041', 'tblTempVendorCDR_20' ) start [2025-03-26 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765041', 'tblTempVendorCDR_20' ) end [2025-03-26 06:37:17] Production.INFO: ProcessCDR(1,14765041,1,1,2) [2025-03-26 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765041', 'tblTempUsageDetail_20' ) start [2025-03-26 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765041', 'tblTempUsageDetail_20' ) end [2025-03-26 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:37:20] Production.INFO: ==9212== Releasing lock... [2025-03-26 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:37:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:38:05 [end_date_ymd] => 2025-03-26 06:38:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:38:05' and `end` < '2025-03-26 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-26 06:38:17] Production.INFO: count ==119 [2025-03-26 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:38:05 - End Time 2025-03-26 06:38:05 [2025-03-26 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765046', 'tblTempUsageDetail_20' ) start [2025-03-26 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765046', 'tblTempUsageDetail_20' ) end [2025-03-26 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765046', 'tblTempVendorCDR_20' ) start [2025-03-26 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765046', 'tblTempVendorCDR_20' ) end [2025-03-26 06:38:17] Production.INFO: ProcessCDR(1,14765046,1,1,2) [2025-03-26 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765046', 'tblTempUsageDetail_20' ) start [2025-03-26 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765046', 'tblTempUsageDetail_20' ) end [2025-03-26 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:38:21] Production.INFO: ==9288== Releasing lock... [2025-03-26 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:39:06 [end_date_ymd] => 2025-03-26 06:39:06 [RateCDR] => 1 ) [2025-03-26 06:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:39:06' and `end` < '2025-03-26 06:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:39:18] Production.INFO: count ==119 [2025-03-26 06:39:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:39:06 - End Time 2025-03-26 06:39:06 [2025-03-26 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765051', 'tblTempUsageDetail_20' ) start [2025-03-26 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765051', 'tblTempUsageDetail_20' ) end [2025-03-26 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765051', 'tblTempVendorCDR_20' ) start [2025-03-26 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765051', 'tblTempVendorCDR_20' ) end [2025-03-26 06:39:18] Production.INFO: ProcessCDR(1,14765051,1,1,2) [2025-03-26 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765051', 'tblTempUsageDetail_20' ) start [2025-03-26 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765051', 'tblTempUsageDetail_20' ) end [2025-03-26 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:39:21] Production.INFO: ==9369== Releasing lock... [2025-03-26 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:40:06 [end_date_ymd] => 2025-03-26 06:40:06 [RateCDR] => 1 ) [2025-03-26 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:40:06' and `end` < '2025-03-26 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:40:19] Production.INFO: count ==119 [2025-03-26 06:40:19] Production.ERROR: pbx CDR StartTime 2025-03-26 03:40:06 - End Time 2025-03-26 06:40:06 [2025-03-26 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765057', 'tblTempUsageDetail_20' ) start [2025-03-26 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765057', 'tblTempUsageDetail_20' ) end [2025-03-26 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765057', 'tblTempVendorCDR_20' ) start [2025-03-26 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765057', 'tblTempVendorCDR_20' ) end [2025-03-26 06:40:19] Production.INFO: ProcessCDR(1,14765057,1,1,2) [2025-03-26 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765057', 'tblTempUsageDetail_20' ) start [2025-03-26 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765057', 'tblTempUsageDetail_20' ) end [2025-03-26 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:40:22] Production.INFO: ==9446== Releasing lock... [2025-03-26 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:41:05 [end_date_ymd] => 2025-03-26 06:41:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:41:05' and `end` < '2025-03-26 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-26 06:41:18] Production.INFO: count ==119 [2025-03-26 06:41:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:41:05 - End Time 2025-03-26 06:41:05 [2025-03-26 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765062', 'tblTempUsageDetail_20' ) start [2025-03-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765062', 'tblTempUsageDetail_20' ) end [2025-03-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765062', 'tblTempVendorCDR_20' ) start [2025-03-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765062', 'tblTempVendorCDR_20' ) end [2025-03-26 06:41:18] Production.INFO: ProcessCDR(1,14765062,1,1,2) [2025-03-26 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765062', 'tblTempUsageDetail_20' ) start [2025-03-26 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765062', 'tblTempUsageDetail_20' ) end [2025-03-26 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:41:21] Production.INFO: ==9575== Releasing lock... [2025-03-26 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:42:05 [end_date_ymd] => 2025-03-26 06:42:05 [RateCDR] => 1 ) [2025-03-26 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:42:05' and `end` < '2025-03-26 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:42:17] Production.INFO: count ==114 [2025-03-26 06:42:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:42:05 - End Time 2025-03-26 06:42:05 [2025-03-26 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765067', 'tblTempUsageDetail_20' ) start [2025-03-26 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765067', 'tblTempUsageDetail_20' ) end [2025-03-26 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765067', 'tblTempVendorCDR_20' ) start [2025-03-26 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765067', 'tblTempVendorCDR_20' ) end [2025-03-26 06:42:17] Production.INFO: ProcessCDR(1,14765067,1,1,2) [2025-03-26 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765067', 'tblTempUsageDetail_20' ) start [2025-03-26 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765067', 'tblTempUsageDetail_20' ) end [2025-03-26 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:42:20] Production.INFO: ==9688== Releasing lock... [2025-03-26 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:42:20] Production.INFO: 29 MB #Memory Used# [2025-03-26 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:43:05 [end_date_ymd] => 2025-03-26 06:43:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:43:05' and `end` < '2025-03-26 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-26 06:43:18] Production.INFO: count ==114 [2025-03-26 06:43:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:43:05 - End Time 2025-03-26 06:43:05 [2025-03-26 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765072', 'tblTempUsageDetail_20' ) start [2025-03-26 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765072', 'tblTempUsageDetail_20' ) end [2025-03-26 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765072', 'tblTempVendorCDR_20' ) start [2025-03-26 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765072', 'tblTempVendorCDR_20' ) end [2025-03-26 06:43:18] Production.INFO: ProcessCDR(1,14765072,1,1,2) [2025-03-26 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765072', 'tblTempUsageDetail_20' ) start [2025-03-26 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765072', 'tblTempUsageDetail_20' ) end [2025-03-26 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:43:21] Production.INFO: ==9805== Releasing lock... [2025-03-26 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:43:21] Production.INFO: 29 MB #Memory Used# [2025-03-26 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:44:05 [end_date_ymd] => 2025-03-26 06:44:05 [RateCDR] => 1 ) [2025-03-26 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:44:05' and `end` < '2025-03-26 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:44:17] Production.INFO: count ==114 [2025-03-26 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:44:05 - End Time 2025-03-26 06:44:05 [2025-03-26 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765077', 'tblTempUsageDetail_20' ) start [2025-03-26 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765077', 'tblTempUsageDetail_20' ) end [2025-03-26 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765077', 'tblTempVendorCDR_20' ) start [2025-03-26 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765077', 'tblTempVendorCDR_20' ) end [2025-03-26 06:44:17] Production.INFO: ProcessCDR(1,14765077,1,1,2) [2025-03-26 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765077', 'tblTempUsageDetail_20' ) start [2025-03-26 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765077', 'tblTempUsageDetail_20' ) end [2025-03-26 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:44:21] Production.INFO: ==9920== Releasing lock... [2025-03-26 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:44:21] Production.INFO: 29 MB #Memory Used# [2025-03-26 06:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:45:06 [end_date_ymd] => 2025-03-26 06:45:06 [RateCDR] => 1 ) [2025-03-26 06:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:45:06' and `end` < '2025-03-26 06:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:45:18] Production.INFO: count ==119 [2025-03-26 06:45:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:45:06 - End Time 2025-03-26 06:45:06 [2025-03-26 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765082', 'tblTempUsageDetail_20' ) start [2025-03-26 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765082', 'tblTempUsageDetail_20' ) end [2025-03-26 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765082', 'tblTempVendorCDR_20' ) start [2025-03-26 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765082', 'tblTempVendorCDR_20' ) end [2025-03-26 06:45:18] Production.INFO: ProcessCDR(1,14765082,1,1,2) [2025-03-26 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765082', 'tblTempUsageDetail_20' ) start [2025-03-26 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765082', 'tblTempUsageDetail_20' ) end [2025-03-26 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:45:22] Production.INFO: ==10037== Releasing lock... [2025-03-26 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:45:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:46:05 [end_date_ymd] => 2025-03-26 06:46:05 [RateCDR] => 1 ) [2025-03-26 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:46:05' and `end` < '2025-03-26 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:46:17] Production.INFO: count ==119 [2025-03-26 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:46:05 - End Time 2025-03-26 06:46:05 [2025-03-26 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765087', 'tblTempUsageDetail_20' ) start [2025-03-26 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765087', 'tblTempUsageDetail_20' ) end [2025-03-26 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765087', 'tblTempVendorCDR_20' ) start [2025-03-26 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765087', 'tblTempVendorCDR_20' ) end [2025-03-26 06:46:17] Production.INFO: ProcessCDR(1,14765087,1,1,2) [2025-03-26 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765087', 'tblTempUsageDetail_20' ) start [2025-03-26 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765087', 'tblTempUsageDetail_20' ) end [2025-03-26 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:46:21] Production.INFO: ==10152== Releasing lock... [2025-03-26 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:47:05 [end_date_ymd] => 2025-03-26 06:47:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:47:05' and `end` < '2025-03-26 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-26 06:47:17] Production.INFO: count ==119 [2025-03-26 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:47:05 - End Time 2025-03-26 06:47:05 [2025-03-26 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765092', 'tblTempUsageDetail_20' ) start [2025-03-26 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765092', 'tblTempUsageDetail_20' ) end [2025-03-26 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765092', 'tblTempVendorCDR_20' ) start [2025-03-26 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765092', 'tblTempVendorCDR_20' ) end [2025-03-26 06:47:17] Production.INFO: ProcessCDR(1,14765092,1,1,2) [2025-03-26 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765092', 'tblTempUsageDetail_20' ) start [2025-03-26 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765092', 'tblTempUsageDetail_20' ) end [2025-03-26 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:47:20] Production.INFO: ==10267== Releasing lock... [2025-03-26 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:47:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:48:05 [end_date_ymd] => 2025-03-26 06:48:05 [RateCDR] => 1 ) [2025-03-26 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:48:05' and `end` < '2025-03-26 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:48:18] Production.INFO: count ==119 [2025-03-26 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:48:05 - End Time 2025-03-26 06:48:05 [2025-03-26 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765097', 'tblTempUsageDetail_20' ) start [2025-03-26 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765097', 'tblTempUsageDetail_20' ) end [2025-03-26 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765097', 'tblTempVendorCDR_20' ) start [2025-03-26 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765097', 'tblTempVendorCDR_20' ) end [2025-03-26 06:48:18] Production.INFO: ProcessCDR(1,14765097,1,1,2) [2025-03-26 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765097', 'tblTempUsageDetail_20' ) start [2025-03-26 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765097', 'tblTempUsageDetail_20' ) end [2025-03-26 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:48:21] Production.INFO: ==10383== Releasing lock... [2025-03-26 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:49:05 [end_date_ymd] => 2025-03-26 06:49:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:49:05' and `end` < '2025-03-26 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-26 06:49:17] Production.INFO: count ==119 [2025-03-26 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:49:05 - End Time 2025-03-26 06:49:05 [2025-03-26 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765102', 'tblTempUsageDetail_20' ) start [2025-03-26 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765102', 'tblTempUsageDetail_20' ) end [2025-03-26 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765102', 'tblTempVendorCDR_20' ) start [2025-03-26 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765102', 'tblTempVendorCDR_20' ) end [2025-03-26 06:49:17] Production.INFO: ProcessCDR(1,14765102,1,1,2) [2025-03-26 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765102', 'tblTempUsageDetail_20' ) start [2025-03-26 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765102', 'tblTempUsageDetail_20' ) end [2025-03-26 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:49:21] Production.INFO: ==10495== Releasing lock... [2025-03-26 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:50:06 [end_date_ymd] => 2025-03-26 06:50:06 [RateCDR] => 1 ) [2025-03-26 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-26 03:50:06' and `end` < '2025-03-26 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-26 06:50:19] Production.INFO: count ==119 [2025-03-26 06:50:19] Production.ERROR: pbx CDR StartTime 2025-03-26 03:50:06 - End Time 2025-03-26 06:50:06 [2025-03-26 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765108', 'tblTempUsageDetail_20' ) start [2025-03-26 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765108', 'tblTempUsageDetail_20' ) end [2025-03-26 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765108', 'tblTempVendorCDR_20' ) start [2025-03-26 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765108', 'tblTempVendorCDR_20' ) end [2025-03-26 06:50:19] Production.INFO: ProcessCDR(1,14765108,1,1,2) [2025-03-26 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765108', 'tblTempUsageDetail_20' ) start [2025-03-26 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765108', 'tblTempUsageDetail_20' ) end [2025-03-26 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:50:22] Production.INFO: ==10612== Releasing lock... [2025-03-26 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:51:05 [end_date_ymd] => 2025-03-26 06:51:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:51:05' and `end` < '2025-03-26 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-26 06:51:17] Production.INFO: count ==119 [2025-03-26 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:51:05 - End Time 2025-03-26 06:51:05 [2025-03-26 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765113', 'tblTempUsageDetail_20' ) start [2025-03-26 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765113', 'tblTempUsageDetail_20' ) end [2025-03-26 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765113', 'tblTempVendorCDR_20' ) start [2025-03-26 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765113', 'tblTempVendorCDR_20' ) end [2025-03-26 06:51:17] Production.INFO: ProcessCDR(1,14765113,1,1,2) [2025-03-26 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765113', 'tblTempUsageDetail_20' ) start [2025-03-26 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765113', 'tblTempUsageDetail_20' ) end [2025-03-26 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:51:21] Production.INFO: ==10746== Releasing lock... [2025-03-26 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:52:05 [end_date_ymd] => 2025-03-26 06:52:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:52:05' and `end` < '2025-03-26 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-26 06:52:17] Production.INFO: count ==119 [2025-03-26 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:52:05 - End Time 2025-03-26 06:52:05 [2025-03-26 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765118', 'tblTempUsageDetail_20' ) start [2025-03-26 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765118', 'tblTempUsageDetail_20' ) end [2025-03-26 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765118', 'tblTempVendorCDR_20' ) start [2025-03-26 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765118', 'tblTempVendorCDR_20' ) end [2025-03-26 06:52:17] Production.INFO: ProcessCDR(1,14765118,1,1,2) [2025-03-26 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765118', 'tblTempUsageDetail_20' ) start [2025-03-26 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765118', 'tblTempUsageDetail_20' ) end [2025-03-26 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:52:21] Production.INFO: ==10857== Releasing lock... [2025-03-26 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:53:04 [end_date_ymd] => 2025-03-26 06:53:04 [RateCDR] => 1 ) [2025-03-26 06:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:53:04' and `end` < '2025-03-26 06:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:53:17] Production.INFO: count ==120 [2025-03-26 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:53:04 - End Time 2025-03-26 06:53:04 [2025-03-26 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765123', 'tblTempUsageDetail_20' ) start [2025-03-26 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765123', 'tblTempUsageDetail_20' ) end [2025-03-26 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765123', 'tblTempVendorCDR_20' ) start [2025-03-26 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765123', 'tblTempVendorCDR_20' ) end [2025-03-26 06:53:17] Production.INFO: ProcessCDR(1,14765123,1,1,2) [2025-03-26 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765123', 'tblTempUsageDetail_20' ) start [2025-03-26 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765123', 'tblTempUsageDetail_20' ) end [2025-03-26 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:53:20] Production.INFO: ==10968== Releasing lock... [2025-03-26 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:53:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:54:05 [end_date_ymd] => 2025-03-26 06:54:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:54:05' and `end` < '2025-03-26 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-26 06:54:18] Production.INFO: count ==123 [2025-03-26 06:54:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:54:05 - End Time 2025-03-26 06:54:05 [2025-03-26 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765128', 'tblTempUsageDetail_20' ) start [2025-03-26 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765128', 'tblTempUsageDetail_20' ) end [2025-03-26 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765128', 'tblTempVendorCDR_20' ) start [2025-03-26 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765128', 'tblTempVendorCDR_20' ) end [2025-03-26 06:54:18] Production.INFO: ProcessCDR(1,14765128,1,1,2) [2025-03-26 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765128', 'tblTempUsageDetail_20' ) start [2025-03-26 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765128', 'tblTempUsageDetail_20' ) end [2025-03-26 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:54:21] Production.INFO: ==11074== Releasing lock... [2025-03-26 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:55:05 [end_date_ymd] => 2025-03-26 06:55:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:55:05' and `end` < '2025-03-26 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-26 06:55:17] Production.INFO: count ==123 [2025-03-26 06:55:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:55:05 - End Time 2025-03-26 06:55:05 [2025-03-26 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765133', 'tblTempUsageDetail_20' ) start [2025-03-26 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765133', 'tblTempUsageDetail_20' ) end [2025-03-26 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765133', 'tblTempVendorCDR_20' ) start [2025-03-26 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765133', 'tblTempVendorCDR_20' ) end [2025-03-26 06:55:18] Production.INFO: ProcessCDR(1,14765133,1,1,2) [2025-03-26 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765133', 'tblTempUsageDetail_20' ) start [2025-03-26 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765133', 'tblTempUsageDetail_20' ) end [2025-03-26 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:55:21] Production.INFO: ==11146== Releasing lock... [2025-03-26 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:56:05 [end_date_ymd] => 2025-03-26 06:56:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:56:05' and `end` < '2025-03-26 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-26 06:56:18] Production.INFO: count ==123 [2025-03-26 06:56:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:56:05 - End Time 2025-03-26 06:56:05 [2025-03-26 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765138', 'tblTempUsageDetail_20' ) start [2025-03-26 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765138', 'tblTempUsageDetail_20' ) end [2025-03-26 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765138', 'tblTempVendorCDR_20' ) start [2025-03-26 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765138', 'tblTempVendorCDR_20' ) end [2025-03-26 06:56:18] Production.INFO: ProcessCDR(1,14765138,1,1,2) [2025-03-26 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765138', 'tblTempUsageDetail_20' ) start [2025-03-26 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765138', 'tblTempUsageDetail_20' ) end [2025-03-26 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:56:21] Production.INFO: ==11261== Releasing lock... [2025-03-26 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:57:05 [end_date_ymd] => 2025-03-26 06:57:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:57:05' and `end` < '2025-03-26 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-26 06:57:17] Production.INFO: count ==123 [2025-03-26 06:57:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:57:05 - End Time 2025-03-26 06:57:05 [2025-03-26 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765143', 'tblTempUsageDetail_20' ) start [2025-03-26 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765143', 'tblTempUsageDetail_20' ) end [2025-03-26 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765143', 'tblTempVendorCDR_20' ) start [2025-03-26 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765143', 'tblTempVendorCDR_20' ) end [2025-03-26 06:57:17] Production.INFO: ProcessCDR(1,14765143,1,1,2) [2025-03-26 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765143', 'tblTempUsageDetail_20' ) start [2025-03-26 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765143', 'tblTempUsageDetail_20' ) end [2025-03-26 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:57:21] Production.INFO: ==11329== Releasing lock... [2025-03-26 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:58:05 [end_date_ymd] => 2025-03-26 06:58:05 [RateCDR] => 1 ) [2025-03-26 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-26 03:58:05' and `end` < '2025-03-26 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-26 06:58:18] Production.INFO: count ==123 [2025-03-26 06:58:18] Production.ERROR: pbx CDR StartTime 2025-03-26 03:58:05 - End Time 2025-03-26 06:58:05 [2025-03-26 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765148', 'tblTempUsageDetail_20' ) start [2025-03-26 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765148', 'tblTempUsageDetail_20' ) end [2025-03-26 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765148', 'tblTempVendorCDR_20' ) start [2025-03-26 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765148', 'tblTempVendorCDR_20' ) end [2025-03-26 06:58:18] Production.INFO: ProcessCDR(1,14765148,1,1,2) [2025-03-26 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765148', 'tblTempUsageDetail_20' ) start [2025-03-26 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765148', 'tblTempUsageDetail_20' ) end [2025-03-26 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:58:21] Production.INFO: ==11407== Releasing lock... [2025-03-26 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 03:59:05 [end_date_ymd] => 2025-03-26 06:59:05 [RateCDR] => 1 ) [2025-03-26 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 03:59:05' and `end` < '2025-03-26 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 06:59:17] Production.INFO: count ==123 [2025-03-26 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-26 03:59:05 - End Time 2025-03-26 06:59:05 [2025-03-26 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765153', 'tblTempUsageDetail_20' ) start [2025-03-26 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765153', 'tblTempUsageDetail_20' ) end [2025-03-26 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765153', 'tblTempVendorCDR_20' ) start [2025-03-26 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765153', 'tblTempVendorCDR_20' ) end [2025-03-26 06:59:17] Production.INFO: ProcessCDR(1,14765153,1,1,2) [2025-03-26 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765153', 'tblTempUsageDetail_20' ) start [2025-03-26 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765153', 'tblTempUsageDetail_20' ) end [2025-03-26 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 06:59:20] Production.INFO: ==11475== Releasing lock... [2025-03-26 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 06:59:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:00:06 [end_date_ymd] => 2025-03-26 07:00:06 [RateCDR] => 1 ) [2025-03-26 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-26 04:00:06' and `end` < '2025-03-26 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-26 07:00:18] Production.INFO: count ==123 [2025-03-26 07:00:19] Production.ERROR: pbx CDR StartTime 2025-03-26 04:00:06 - End Time 2025-03-26 07:00:06 [2025-03-26 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765159', 'tblTempUsageDetail_20' ) start [2025-03-26 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765159', 'tblTempUsageDetail_20' ) end [2025-03-26 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765159', 'tblTempVendorCDR_20' ) start [2025-03-26 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765159', 'tblTempVendorCDR_20' ) end [2025-03-26 07:00:19] Production.INFO: ProcessCDR(1,14765159,1,1,2) [2025-03-26 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765159', 'tblTempUsageDetail_20' ) start [2025-03-26 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765159', 'tblTempUsageDetail_20' ) end [2025-03-26 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:00:22] Production.INFO: ==11554== Releasing lock... [2025-03-26 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:01:05 [end_date_ymd] => 2025-03-26 07:01:05 [RateCDR] => 1 ) [2025-03-26 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:01:05' and `end` < '2025-03-26 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:01:18] Production.INFO: count ==123 [2025-03-26 07:01:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:01:05 - End Time 2025-03-26 07:01:05 [2025-03-26 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765164', 'tblTempUsageDetail_20' ) start [2025-03-26 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765164', 'tblTempUsageDetail_20' ) end [2025-03-26 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765164', 'tblTempVendorCDR_20' ) start [2025-03-26 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765164', 'tblTempVendorCDR_20' ) end [2025-03-26 07:01:18] Production.INFO: ProcessCDR(1,14765164,1,1,2) [2025-03-26 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765164', 'tblTempUsageDetail_20' ) start [2025-03-26 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765164', 'tblTempUsageDetail_20' ) end [2025-03-26 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:01:21] Production.INFO: ==11639== Releasing lock... [2025-03-26 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:02:05 [end_date_ymd] => 2025-03-26 07:02:05 [RateCDR] => 1 ) [2025-03-26 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:02:05' and `end` < '2025-03-26 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:02:18] Production.INFO: count ==123 [2025-03-26 07:02:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:02:05 - End Time 2025-03-26 07:02:05 [2025-03-26 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765169', 'tblTempUsageDetail_20' ) start [2025-03-26 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765169', 'tblTempUsageDetail_20' ) end [2025-03-26 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765169', 'tblTempVendorCDR_20' ) start [2025-03-26 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765169', 'tblTempVendorCDR_20' ) end [2025-03-26 07:02:18] Production.INFO: ProcessCDR(1,14765169,1,1,2) [2025-03-26 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765169', 'tblTempUsageDetail_20' ) start [2025-03-26 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765169', 'tblTempUsageDetail_20' ) end [2025-03-26 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:02:22] Production.INFO: ==11789== Releasing lock... [2025-03-26 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:03:06 [end_date_ymd] => 2025-03-26 07:03:06 [RateCDR] => 1 ) [2025-03-26 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-26 04:03:06' and `end` < '2025-03-26 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-26 07:03:19] Production.INFO: count ==123 [2025-03-26 07:03:19] Production.ERROR: pbx CDR StartTime 2025-03-26 04:03:06 - End Time 2025-03-26 07:03:06 [2025-03-26 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765174', 'tblTempUsageDetail_20' ) start [2025-03-26 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765174', 'tblTempUsageDetail_20' ) end [2025-03-26 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765174', 'tblTempVendorCDR_20' ) start [2025-03-26 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765174', 'tblTempVendorCDR_20' ) end [2025-03-26 07:03:19] Production.INFO: ProcessCDR(1,14765174,1,1,2) [2025-03-26 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765174', 'tblTempUsageDetail_20' ) start [2025-03-26 07:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765174', 'tblTempUsageDetail_20' ) end [2025-03-26 07:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:03:25] Production.INFO: ==11863== Releasing lock... [2025-03-26 07:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:03:25] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:04:05 [end_date_ymd] => 2025-03-26 07:04:05 [RateCDR] => 1 ) [2025-03-26 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:04:05' and `end` < '2025-03-26 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:04:18] Production.INFO: count ==128 [2025-03-26 07:04:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:04:05 - End Time 2025-03-26 07:04:05 [2025-03-26 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765179', 'tblTempUsageDetail_20' ) start [2025-03-26 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765179', 'tblTempUsageDetail_20' ) end [2025-03-26 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765179', 'tblTempVendorCDR_20' ) start [2025-03-26 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765179', 'tblTempVendorCDR_20' ) end [2025-03-26 07:04:18] Production.INFO: ProcessCDR(1,14765179,1,1,2) [2025-03-26 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765179', 'tblTempUsageDetail_20' ) start [2025-03-26 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765179', 'tblTempUsageDetail_20' ) end [2025-03-26 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:04:22] Production.INFO: ==11933== Releasing lock... [2025-03-26 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:05:06 [end_date_ymd] => 2025-03-26 07:05:06 [RateCDR] => 1 ) [2025-03-26 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-26 04:05:06' and `end` < '2025-03-26 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-26 07:05:18] Production.INFO: count ==128 [2025-03-26 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:05:06 - End Time 2025-03-26 07:05:06 [2025-03-26 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765184', 'tblTempUsageDetail_20' ) start [2025-03-26 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765184', 'tblTempUsageDetail_20' ) end [2025-03-26 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765184', 'tblTempVendorCDR_20' ) start [2025-03-26 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765184', 'tblTempVendorCDR_20' ) end [2025-03-26 07:05:18] Production.INFO: ProcessCDR(1,14765184,1,1,2) [2025-03-26 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765184', 'tblTempUsageDetail_20' ) start [2025-03-26 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765184', 'tblTempUsageDetail_20' ) end [2025-03-26 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:05:22] Production.INFO: ==12084== Releasing lock... [2025-03-26 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:06:05 [end_date_ymd] => 2025-03-26 07:06:05 [RateCDR] => 1 ) [2025-03-26 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-26 04:06:05' and `end` < '2025-03-26 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-26 07:06:18] Production.INFO: count ==128 [2025-03-26 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:06:05 - End Time 2025-03-26 07:06:05 [2025-03-26 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765189', 'tblTempUsageDetail_20' ) start [2025-03-26 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765189', 'tblTempUsageDetail_20' ) end [2025-03-26 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765189', 'tblTempVendorCDR_20' ) start [2025-03-26 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765189', 'tblTempVendorCDR_20' ) end [2025-03-26 07:06:18] Production.INFO: ProcessCDR(1,14765189,1,1,2) [2025-03-26 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765189', 'tblTempUsageDetail_20' ) start [2025-03-26 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765189', 'tblTempUsageDetail_20' ) end [2025-03-26 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:06:21] Production.INFO: ==12155== Releasing lock... [2025-03-26 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:07:05 [end_date_ymd] => 2025-03-26 07:07:05 [RateCDR] => 1 ) [2025-03-26 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-26 04:07:05' and `end` < '2025-03-26 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-26 07:07:17] Production.INFO: count ==128 [2025-03-26 07:07:17] Production.ERROR: pbx CDR StartTime 2025-03-26 04:07:05 - End Time 2025-03-26 07:07:05 [2025-03-26 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765194', 'tblTempUsageDetail_20' ) start [2025-03-26 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765194', 'tblTempUsageDetail_20' ) end [2025-03-26 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765194', 'tblTempVendorCDR_20' ) start [2025-03-26 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765194', 'tblTempVendorCDR_20' ) end [2025-03-26 07:07:17] Production.INFO: ProcessCDR(1,14765194,1,1,2) [2025-03-26 07:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765194', 'tblTempUsageDetail_20' ) start [2025-03-26 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765194', 'tblTempUsageDetail_20' ) end [2025-03-26 07:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:07:20] Production.INFO: ==12226== Releasing lock... [2025-03-26 07:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:07:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:08:06 [end_date_ymd] => 2025-03-26 07:08:06 [RateCDR] => 1 ) [2025-03-26 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-26 04:08:06' and `end` < '2025-03-26 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-26 07:08:19] Production.INFO: count ==128 [2025-03-26 07:08:19] Production.ERROR: pbx CDR StartTime 2025-03-26 04:08:06 - End Time 2025-03-26 07:08:06 [2025-03-26 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765199', 'tblTempUsageDetail_20' ) start [2025-03-26 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765199', 'tblTempUsageDetail_20' ) end [2025-03-26 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765199', 'tblTempVendorCDR_20' ) start [2025-03-26 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765199', 'tblTempVendorCDR_20' ) end [2025-03-26 07:08:19] Production.INFO: ProcessCDR(1,14765199,1,1,2) [2025-03-26 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765199', 'tblTempUsageDetail_20' ) start [2025-03-26 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765199', 'tblTempUsageDetail_20' ) end [2025-03-26 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:08:22] Production.INFO: ==12338== Releasing lock... [2025-03-26 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:08:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:09:05 [end_date_ymd] => 2025-03-26 07:09:05 [RateCDR] => 1 ) [2025-03-26 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-26 04:09:05' and `end` < '2025-03-26 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-26 07:09:17] Production.INFO: count ==128 [2025-03-26 07:09:17] Production.ERROR: pbx CDR StartTime 2025-03-26 04:09:05 - End Time 2025-03-26 07:09:05 [2025-03-26 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765204', 'tblTempUsageDetail_20' ) start [2025-03-26 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765204', 'tblTempUsageDetail_20' ) end [2025-03-26 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765204', 'tblTempVendorCDR_20' ) start [2025-03-26 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765204', 'tblTempVendorCDR_20' ) end [2025-03-26 07:09:17] Production.INFO: ProcessCDR(1,14765204,1,1,2) [2025-03-26 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765204', 'tblTempUsageDetail_20' ) start [2025-03-26 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765204', 'tblTempUsageDetail_20' ) end [2025-03-26 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:09:21] Production.INFO: ==12446== Releasing lock... [2025-03-26 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:10:06 [end_date_ymd] => 2025-03-26 07:10:06 [RateCDR] => 1 ) [2025-03-26 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-26 04:10:06' and `end` < '2025-03-26 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-26 07:10:19] Production.INFO: count ==130 [2025-03-26 07:10:19] Production.ERROR: pbx CDR StartTime 2025-03-26 04:10:06 - End Time 2025-03-26 07:10:06 [2025-03-26 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765210', 'tblTempUsageDetail_20' ) start [2025-03-26 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765210', 'tblTempUsageDetail_20' ) end [2025-03-26 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765210', 'tblTempVendorCDR_20' ) start [2025-03-26 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765210', 'tblTempVendorCDR_20' ) end [2025-03-26 07:10:19] Production.INFO: ProcessCDR(1,14765210,1,1,2) [2025-03-26 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765210', 'tblTempUsageDetail_20' ) start [2025-03-26 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765210', 'tblTempUsageDetail_20' ) end [2025-03-26 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:10:23] Production.INFO: ==12524== Releasing lock... [2025-03-26 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:10:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:11:04 [end_date_ymd] => 2025-03-26 07:11:04 [RateCDR] => 1 ) [2025-03-26 07:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:11:04' and `end` < '2025-03-26 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:11:18] Production.INFO: count ==137 [2025-03-26 07:11:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:11:04 - End Time 2025-03-26 07:11:04 [2025-03-26 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765215', 'tblTempUsageDetail_20' ) start [2025-03-26 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765215', 'tblTempUsageDetail_20' ) end [2025-03-26 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765215', 'tblTempVendorCDR_20' ) start [2025-03-26 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765215', 'tblTempVendorCDR_20' ) end [2025-03-26 07:11:18] Production.INFO: ProcessCDR(1,14765215,1,1,2) [2025-03-26 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765215', 'tblTempUsageDetail_20' ) start [2025-03-26 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765215', 'tblTempUsageDetail_20' ) end [2025-03-26 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:11:23] Production.INFO: ==12601== Releasing lock... [2025-03-26 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:11:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:12:05 [end_date_ymd] => 2025-03-26 07:12:05 [RateCDR] => 1 ) [2025-03-26 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:12:05' and `end` < '2025-03-26 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:12:18] Production.INFO: count ==154 [2025-03-26 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:12:05 - End Time 2025-03-26 07:12:05 [2025-03-26 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765220', 'tblTempUsageDetail_20' ) start [2025-03-26 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765220', 'tblTempUsageDetail_20' ) end [2025-03-26 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765220', 'tblTempVendorCDR_20' ) start [2025-03-26 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765220', 'tblTempVendorCDR_20' ) end [2025-03-26 07:12:18] Production.INFO: ProcessCDR(1,14765220,1,1,2) [2025-03-26 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765220', 'tblTempUsageDetail_20' ) start [2025-03-26 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765220', 'tblTempUsageDetail_20' ) end [2025-03-26 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:12:23] Production.INFO: ==12791== Releasing lock... [2025-03-26 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:12:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:13:05 [end_date_ymd] => 2025-03-26 07:13:05 [RateCDR] => 1 ) [2025-03-26 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-26 04:13:05' and `end` < '2025-03-26 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-26 07:13:18] Production.INFO: count ==151 [2025-03-26 07:13:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:13:05 - End Time 2025-03-26 07:13:05 [2025-03-26 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765225', 'tblTempUsageDetail_20' ) start [2025-03-26 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765225', 'tblTempUsageDetail_20' ) end [2025-03-26 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765225', 'tblTempVendorCDR_20' ) start [2025-03-26 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765225', 'tblTempVendorCDR_20' ) end [2025-03-26 07:13:18] Production.INFO: ProcessCDR(1,14765225,1,1,2) [2025-03-26 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765225', 'tblTempUsageDetail_20' ) start [2025-03-26 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765225', 'tblTempUsageDetail_20' ) end [2025-03-26 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:13:21] Production.INFO: ==12864== Releasing lock... [2025-03-26 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:14:06 [end_date_ymd] => 2025-03-26 07:14:06 [RateCDR] => 1 ) [2025-03-26 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-26 04:14:06' and `end` < '2025-03-26 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-26 07:14:19] Production.INFO: count ==149 [2025-03-26 07:14:19] Production.ERROR: pbx CDR StartTime 2025-03-26 04:14:06 - End Time 2025-03-26 07:14:06 [2025-03-26 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765230', 'tblTempUsageDetail_20' ) start [2025-03-26 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765230', 'tblTempUsageDetail_20' ) end [2025-03-26 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765230', 'tblTempVendorCDR_20' ) start [2025-03-26 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765230', 'tblTempVendorCDR_20' ) end [2025-03-26 07:14:19] Production.INFO: ProcessCDR(1,14765230,1,1,2) [2025-03-26 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765230', 'tblTempUsageDetail_20' ) start [2025-03-26 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765230', 'tblTempUsageDetail_20' ) end [2025-03-26 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:14:22] Production.INFO: ==12935== Releasing lock... [2025-03-26 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:14:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:15:05 [end_date_ymd] => 2025-03-26 07:15:05 [RateCDR] => 1 ) [2025-03-26 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:15:05' and `end` < '2025-03-26 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:15:18] Production.INFO: count ==159 [2025-03-26 07:15:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:15:05 - End Time 2025-03-26 07:15:05 [2025-03-26 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765235', 'tblTempUsageDetail_20' ) start [2025-03-26 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765235', 'tblTempUsageDetail_20' ) end [2025-03-26 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765235', 'tblTempVendorCDR_20' ) start [2025-03-26 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765235', 'tblTempVendorCDR_20' ) end [2025-03-26 07:15:18] Production.INFO: ProcessCDR(1,14765235,1,1,2) [2025-03-26 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765235', 'tblTempUsageDetail_20' ) start [2025-03-26 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765235', 'tblTempUsageDetail_20' ) end [2025-03-26 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:15:22] Production.INFO: ==13005== Releasing lock... [2025-03-26 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:15:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:16:05 [end_date_ymd] => 2025-03-26 07:16:05 [RateCDR] => 1 ) [2025-03-26 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:16:05' and `end` < '2025-03-26 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:16:18] Production.INFO: count ==159 [2025-03-26 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:16:05 - End Time 2025-03-26 07:16:05 [2025-03-26 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765240', 'tblTempUsageDetail_20' ) start [2025-03-26 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765240', 'tblTempUsageDetail_20' ) end [2025-03-26 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765240', 'tblTempVendorCDR_20' ) start [2025-03-26 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765240', 'tblTempVendorCDR_20' ) end [2025-03-26 07:16:18] Production.INFO: ProcessCDR(1,14765240,1,1,2) [2025-03-26 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765240', 'tblTempUsageDetail_20' ) start [2025-03-26 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765240', 'tblTempUsageDetail_20' ) end [2025-03-26 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:16:22] Production.INFO: ==13155== Releasing lock... [2025-03-26 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:16:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:17:06 [end_date_ymd] => 2025-03-26 07:17:06 [RateCDR] => 1 ) [2025-03-26 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-26 04:17:06' and `end` < '2025-03-26 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-26 07:17:19] Production.INFO: count ==159 [2025-03-26 07:17:19] Production.ERROR: pbx CDR StartTime 2025-03-26 04:17:06 - End Time 2025-03-26 07:17:06 [2025-03-26 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765245', 'tblTempUsageDetail_20' ) start [2025-03-26 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765245', 'tblTempUsageDetail_20' ) end [2025-03-26 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765245', 'tblTempVendorCDR_20' ) start [2025-03-26 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765245', 'tblTempVendorCDR_20' ) end [2025-03-26 07:17:19] Production.INFO: ProcessCDR(1,14765245,1,1,2) [2025-03-26 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765245', 'tblTempUsageDetail_20' ) start [2025-03-26 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765245', 'tblTempUsageDetail_20' ) end [2025-03-26 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:17:23] Production.INFO: ==13229== Releasing lock... [2025-03-26 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:17:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-26 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:18:06 [end_date_ymd] => 2025-03-26 07:18:06 [RateCDR] => 1 ) [2025-03-26 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:18:06' and `end` < '2025-03-26 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:18:19] Production.INFO: count ==172 [2025-03-26 07:18:19] Production.ERROR: pbx CDR StartTime 2025-03-26 04:18:06 - End Time 2025-03-26 07:18:06 [2025-03-26 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765250', 'tblTempUsageDetail_20' ) start [2025-03-26 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765250', 'tblTempUsageDetail_20' ) end [2025-03-26 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765250', 'tblTempVendorCDR_20' ) start [2025-03-26 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765250', 'tblTempVendorCDR_20' ) end [2025-03-26 07:18:19] Production.INFO: ProcessCDR(1,14765250,1,1,2) [2025-03-26 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765250', 'tblTempUsageDetail_20' ) start [2025-03-26 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765250', 'tblTempUsageDetail_20' ) end [2025-03-26 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:18:23] Production.INFO: ==13300== Releasing lock... [2025-03-26 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:18:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-26 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:19:05 [end_date_ymd] => 2025-03-26 07:19:05 [RateCDR] => 1 ) [2025-03-26 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-26 04:19:05' and `end` < '2025-03-26 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-26 07:19:18] Production.INFO: count ==186 [2025-03-26 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:19:05 - End Time 2025-03-26 07:19:05 [2025-03-26 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765255', 'tblTempUsageDetail_20' ) start [2025-03-26 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765255', 'tblTempUsageDetail_20' ) end [2025-03-26 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765255', 'tblTempVendorCDR_20' ) start [2025-03-26 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765255', 'tblTempVendorCDR_20' ) end [2025-03-26 07:19:18] Production.INFO: ProcessCDR(1,14765255,1,1,2) [2025-03-26 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765255', 'tblTempUsageDetail_20' ) start [2025-03-26 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765255', 'tblTempUsageDetail_20' ) end [2025-03-26 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:19:22] Production.INFO: ==13372== Releasing lock... [2025-03-26 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:19:22] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:20:06 [end_date_ymd] => 2025-03-26 07:20:06 [RateCDR] => 1 ) [2025-03-26 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:20:06' and `end` < '2025-03-26 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:20:19] Production.INFO: count ==192 [2025-03-26 07:20:19] Production.ERROR: pbx CDR StartTime 2025-03-26 04:20:06 - End Time 2025-03-26 07:20:06 [2025-03-26 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765260', 'tblTempUsageDetail_20' ) start [2025-03-26 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765260', 'tblTempUsageDetail_20' ) end [2025-03-26 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765260', 'tblTempVendorCDR_20' ) start [2025-03-26 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765260', 'tblTempVendorCDR_20' ) end [2025-03-26 07:20:19] Production.INFO: ProcessCDR(1,14765260,1,1,2) [2025-03-26 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765260', 'tblTempUsageDetail_20' ) start [2025-03-26 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765260', 'tblTempUsageDetail_20' ) end [2025-03-26 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:20:22] Production.INFO: ==13444== Releasing lock... [2025-03-26 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:20:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:21:05 [end_date_ymd] => 2025-03-26 07:21:05 [RateCDR] => 1 ) [2025-03-26 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:21:05' and `end` < '2025-03-26 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-26 07:21:18] Production.INFO: count ==192 [2025-03-26 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:21:05 - End Time 2025-03-26 07:21:05 [2025-03-26 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765266', 'tblTempUsageDetail_20' ) start [2025-03-26 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765266', 'tblTempUsageDetail_20' ) end [2025-03-26 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765266', 'tblTempVendorCDR_20' ) start [2025-03-26 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765266', 'tblTempVendorCDR_20' ) end [2025-03-26 07:21:18] Production.INFO: ProcessCDR(1,14765266,1,1,2) [2025-03-26 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765266', 'tblTempUsageDetail_20' ) start [2025-03-26 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765266', 'tblTempUsageDetail_20' ) end [2025-03-26 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:21:21] Production.INFO: ==13517== Releasing lock... [2025-03-26 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:22:06 [end_date_ymd] => 2025-03-26 07:22:06 [RateCDR] => 1 ) [2025-03-26 07:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:22:06' and `end` < '2025-03-26 07:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:22:19] Production.INFO: count ==197 [2025-03-26 07:22:19] Production.ERROR: pbx CDR StartTime 2025-03-26 04:22:06 - End Time 2025-03-26 07:22:06 [2025-03-26 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765271', 'tblTempUsageDetail_20' ) start [2025-03-26 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765271', 'tblTempUsageDetail_20' ) end [2025-03-26 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765271', 'tblTempVendorCDR_20' ) start [2025-03-26 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765271', 'tblTempVendorCDR_20' ) end [2025-03-26 07:22:19] Production.INFO: ProcessCDR(1,14765271,1,1,2) [2025-03-26 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765271', 'tblTempUsageDetail_20' ) start [2025-03-26 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765271', 'tblTempUsageDetail_20' ) end [2025-03-26 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:22:23] Production.INFO: ==13590== Releasing lock... [2025-03-26 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:22:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-26 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:23:05 [end_date_ymd] => 2025-03-26 07:23:05 [RateCDR] => 1 ) [2025-03-26 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-26 04:23:05' and `end` < '2025-03-26 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-26 07:23:17] Production.INFO: count ==197 [2025-03-26 07:23:17] Production.ERROR: pbx CDR StartTime 2025-03-26 04:23:05 - End Time 2025-03-26 07:23:05 [2025-03-26 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765276', 'tblTempUsageDetail_20' ) start [2025-03-26 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765276', 'tblTempUsageDetail_20' ) end [2025-03-26 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765276', 'tblTempVendorCDR_20' ) start [2025-03-26 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765276', 'tblTempVendorCDR_20' ) end [2025-03-26 07:23:17] Production.INFO: ProcessCDR(1,14765276,1,1,2) [2025-03-26 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765276', 'tblTempUsageDetail_20' ) start [2025-03-26 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765276', 'tblTempUsageDetail_20' ) end [2025-03-26 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:23:21] Production.INFO: ==13660== Releasing lock... [2025-03-26 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-26 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:24:06 [end_date_ymd] => 2025-03-26 07:24:06 [RateCDR] => 1 ) [2025-03-26 07:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:24:06' and `end` < '2025-03-26 07:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:24:18] Production.INFO: count ==197 [2025-03-26 07:24:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:24:06 - End Time 2025-03-26 07:24:06 [2025-03-26 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765281', 'tblTempUsageDetail_20' ) start [2025-03-26 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765281', 'tblTempUsageDetail_20' ) end [2025-03-26 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765281', 'tblTempVendorCDR_20' ) start [2025-03-26 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765281', 'tblTempVendorCDR_20' ) end [2025-03-26 07:24:18] Production.INFO: ProcessCDR(1,14765281,1,1,2) [2025-03-26 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765281', 'tblTempUsageDetail_20' ) start [2025-03-26 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765281', 'tblTempUsageDetail_20' ) end [2025-03-26 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:24:22] Production.INFO: ==13731== Releasing lock... [2025-03-26 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:24:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-26 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:25:05 [end_date_ymd] => 2025-03-26 07:25:05 [RateCDR] => 1 ) [2025-03-26 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-26 04:25:05' and `end` < '2025-03-26 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-26 07:25:17] Production.INFO: count ==197 [2025-03-26 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-26 04:25:05 - End Time 2025-03-26 07:25:05 [2025-03-26 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765286', 'tblTempUsageDetail_20' ) start [2025-03-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765286', 'tblTempUsageDetail_20' ) end [2025-03-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765286', 'tblTempVendorCDR_20' ) start [2025-03-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765286', 'tblTempVendorCDR_20' ) end [2025-03-26 07:25:17] Production.INFO: ProcessCDR(1,14765286,1,1,2) [2025-03-26 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765286', 'tblTempUsageDetail_20' ) start [2025-03-26 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765286', 'tblTempUsageDetail_20' ) end [2025-03-26 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:25:21] Production.INFO: ==13801== Releasing lock... [2025-03-26 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-26 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:26:06 [end_date_ymd] => 2025-03-26 07:26:06 [RateCDR] => 1 ) [2025-03-26 07:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:26:06' and `end` < '2025-03-26 07:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:26:18] Production.INFO: count ==198 [2025-03-26 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:26:06 - End Time 2025-03-26 07:26:06 [2025-03-26 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765291', 'tblTempUsageDetail_20' ) start [2025-03-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765291', 'tblTempUsageDetail_20' ) end [2025-03-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765291', 'tblTempVendorCDR_20' ) start [2025-03-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765291', 'tblTempVendorCDR_20' ) end [2025-03-26 07:26:18] Production.INFO: ProcessCDR(1,14765291,1,1,2) [2025-03-26 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765291', 'tblTempUsageDetail_20' ) start [2025-03-26 07:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765291', 'tblTempUsageDetail_20' ) end [2025-03-26 07:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:26:24] Production.INFO: ==13878== Releasing lock... [2025-03-26 07:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:26:24] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:27:05 [end_date_ymd] => 2025-03-26 07:27:05 [RateCDR] => 1 ) [2025-03-26 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:27:05' and `end` < '2025-03-26 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:27:17] Production.INFO: count ==198 [2025-03-26 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-26 04:27:05 - End Time 2025-03-26 07:27:05 [2025-03-26 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765296', 'tblTempUsageDetail_20' ) start [2025-03-26 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765296', 'tblTempUsageDetail_20' ) end [2025-03-26 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765296', 'tblTempVendorCDR_20' ) start [2025-03-26 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765296', 'tblTempVendorCDR_20' ) end [2025-03-26 07:27:17] Production.INFO: ProcessCDR(1,14765296,1,1,2) [2025-03-26 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765296', 'tblTempUsageDetail_20' ) start [2025-03-26 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765296', 'tblTempUsageDetail_20' ) end [2025-03-26 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:27:21] Production.INFO: ==13986== Releasing lock... [2025-03-26 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:27:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:28:06 [end_date_ymd] => 2025-03-26 07:28:06 [RateCDR] => 1 ) [2025-03-26 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:28:06' and `end` < '2025-03-26 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:28:19] Production.INFO: count ==199 [2025-03-26 07:28:19] Production.ERROR: pbx CDR StartTime 2025-03-26 04:28:06 - End Time 2025-03-26 07:28:06 [2025-03-26 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765301', 'tblTempUsageDetail_20' ) start [2025-03-26 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765301', 'tblTempUsageDetail_20' ) end [2025-03-26 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765301', 'tblTempVendorCDR_20' ) start [2025-03-26 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765301', 'tblTempVendorCDR_20' ) end [2025-03-26 07:28:19] Production.INFO: ProcessCDR(1,14765301,1,1,2) [2025-03-26 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765301', 'tblTempUsageDetail_20' ) start [2025-03-26 07:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765301', 'tblTempUsageDetail_20' ) end [2025-03-26 07:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:28:24] Production.INFO: ==14060== Releasing lock... [2025-03-26 07:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:28:24] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:29:05 [end_date_ymd] => 2025-03-26 07:29:05 [RateCDR] => 1 ) [2025-03-26 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:29:05' and `end` < '2025-03-26 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:29:18] Production.INFO: count ==199 [2025-03-26 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:29:05 - End Time 2025-03-26 07:29:05 [2025-03-26 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765306', 'tblTempUsageDetail_20' ) start [2025-03-26 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765306', 'tblTempUsageDetail_20' ) end [2025-03-26 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765306', 'tblTempVendorCDR_20' ) start [2025-03-26 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765306', 'tblTempVendorCDR_20' ) end [2025-03-26 07:29:18] Production.INFO: ProcessCDR(1,14765306,1,1,2) [2025-03-26 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765306', 'tblTempUsageDetail_20' ) start [2025-03-26 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765306', 'tblTempUsageDetail_20' ) end [2025-03-26 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:29:22] Production.INFO: ==14136== Releasing lock... [2025-03-26 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:29:22] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:30:06 [end_date_ymd] => 2025-03-26 07:30:06 [RateCDR] => 1 ) [2025-03-26 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-26 04:30:06' and `end` < '2025-03-26 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-26 07:30:19] Production.INFO: count ==206 [2025-03-26 07:30:19] Production.ERROR: pbx CDR StartTime 2025-03-26 04:30:06 - End Time 2025-03-26 07:30:06 [2025-03-26 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765312', 'tblTempUsageDetail_20' ) start [2025-03-26 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765312', 'tblTempUsageDetail_20' ) end [2025-03-26 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765312', 'tblTempVendorCDR_20' ) start [2025-03-26 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765312', 'tblTempVendorCDR_20' ) end [2025-03-26 07:30:19] Production.INFO: ProcessCDR(1,14765312,1,1,2) [2025-03-26 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765312', 'tblTempUsageDetail_20' ) start [2025-03-26 07:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765312', 'tblTempUsageDetail_20' ) end [2025-03-26 07:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:30:24] Production.INFO: ==14210== Releasing lock... [2025-03-26 07:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:30:24] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:31:05 [end_date_ymd] => 2025-03-26 07:31:05 [RateCDR] => 1 ) [2025-03-26 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:31:05' and `end` < '2025-03-26 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:31:18] Production.INFO: count ==212 [2025-03-26 07:31:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:31:05 - End Time 2025-03-26 07:31:05 [2025-03-26 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765317', 'tblTempUsageDetail_20' ) start [2025-03-26 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765317', 'tblTempUsageDetail_20' ) end [2025-03-26 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765317', 'tblTempVendorCDR_20' ) start [2025-03-26 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765317', 'tblTempVendorCDR_20' ) end [2025-03-26 07:31:18] Production.INFO: ProcessCDR(1,14765317,1,1,2) [2025-03-26 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765317', 'tblTempUsageDetail_20' ) start [2025-03-26 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765317', 'tblTempUsageDetail_20' ) end [2025-03-26 07:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:31:23] Production.INFO: ==14282== Releasing lock... [2025-03-26 07:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:31:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:32:05 [end_date_ymd] => 2025-03-26 07:32:05 [RateCDR] => 1 ) [2025-03-26 07:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:32:05' and `end` < '2025-03-26 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-26 07:32:18] Production.INFO: count ==212 [2025-03-26 07:32:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:32:05 - End Time 2025-03-26 07:32:05 [2025-03-26 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765322', 'tblTempUsageDetail_20' ) start [2025-03-26 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765322', 'tblTempUsageDetail_20' ) end [2025-03-26 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765322', 'tblTempVendorCDR_20' ) start [2025-03-26 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765322', 'tblTempVendorCDR_20' ) end [2025-03-26 07:32:18] Production.INFO: ProcessCDR(1,14765322,1,1,2) [2025-03-26 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765322', 'tblTempUsageDetail_20' ) start [2025-03-26 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765322', 'tblTempUsageDetail_20' ) end [2025-03-26 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:32:22] Production.INFO: ==14354== Releasing lock... [2025-03-26 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:32:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:33:06 [end_date_ymd] => 2025-03-26 07:33:06 [RateCDR] => 1 ) [2025-03-26 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-26 04:33:06' and `end` < '2025-03-26 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-26 07:33:18] Production.INFO: count ==212 [2025-03-26 07:33:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:33:06 - End Time 2025-03-26 07:33:06 [2025-03-26 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765327', 'tblTempUsageDetail_20' ) start [2025-03-26 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765327', 'tblTempUsageDetail_20' ) end [2025-03-26 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765327', 'tblTempVendorCDR_20' ) start [2025-03-26 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765327', 'tblTempVendorCDR_20' ) end [2025-03-26 07:33:18] Production.INFO: ProcessCDR(1,14765327,1,1,2) [2025-03-26 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765327', 'tblTempUsageDetail_20' ) start [2025-03-26 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765327', 'tblTempUsageDetail_20' ) end [2025-03-26 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:33:22] Production.INFO: ==14423== Releasing lock... [2025-03-26 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:33:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:34:06 [end_date_ymd] => 2025-03-26 07:34:06 [RateCDR] => 1 ) [2025-03-26 07:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:34:06' and `end` < '2025-03-26 07:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:34:18] Production.INFO: count ==213 [2025-03-26 07:34:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:34:06 - End Time 2025-03-26 07:34:06 [2025-03-26 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765332', 'tblTempUsageDetail_20' ) start [2025-03-26 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765332', 'tblTempUsageDetail_20' ) end [2025-03-26 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765332', 'tblTempVendorCDR_20' ) start [2025-03-26 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765332', 'tblTempVendorCDR_20' ) end [2025-03-26 07:34:18] Production.INFO: ProcessCDR(1,14765332,1,1,2) [2025-03-26 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765332', 'tblTempUsageDetail_20' ) start [2025-03-26 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765332', 'tblTempUsageDetail_20' ) end [2025-03-26 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:34:22] Production.INFO: ==14495== Releasing lock... [2025-03-26 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:34:22] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:35:06 [end_date_ymd] => 2025-03-26 07:35:06 [RateCDR] => 1 ) [2025-03-26 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-26 04:35:06' and `end` < '2025-03-26 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-26 07:35:18] Production.INFO: count ==213 [2025-03-26 07:35:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:35:06 - End Time 2025-03-26 07:35:06 [2025-03-26 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765337', 'tblTempUsageDetail_20' ) start [2025-03-26 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765337', 'tblTempUsageDetail_20' ) end [2025-03-26 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765337', 'tblTempVendorCDR_20' ) start [2025-03-26 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765337', 'tblTempVendorCDR_20' ) end [2025-03-26 07:35:18] Production.INFO: ProcessCDR(1,14765337,1,1,2) [2025-03-26 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765337', 'tblTempUsageDetail_20' ) start [2025-03-26 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765337', 'tblTempUsageDetail_20' ) end [2025-03-26 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:35:22] Production.INFO: ==14566== Releasing lock... [2025-03-26 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:35:22] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:36:06 [end_date_ymd] => 2025-03-26 07:36:06 [RateCDR] => 1 ) [2025-03-26 07: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-26 04:36:06' and `end` < '2025-03-26 07: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-26 07:36:18] Production.INFO: count ==212 [2025-03-26 07:36:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:36:06 - End Time 2025-03-26 07:36:06 [2025-03-26 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765342', 'tblTempUsageDetail_20' ) start [2025-03-26 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765342', 'tblTempUsageDetail_20' ) end [2025-03-26 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765342', 'tblTempVendorCDR_20' ) start [2025-03-26 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765342', 'tblTempVendorCDR_20' ) end [2025-03-26 07:36:18] Production.INFO: ProcessCDR(1,14765342,1,1,2) [2025-03-26 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765342', 'tblTempUsageDetail_20' ) start [2025-03-26 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765342', 'tblTempUsageDetail_20' ) end [2025-03-26 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:36:22] Production.INFO: ==14635== Releasing lock... [2025-03-26 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:36:22] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:37:05 [end_date_ymd] => 2025-03-26 07:37:05 [RateCDR] => 1 ) [2025-03-26 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:37:05' and `end` < '2025-03-26 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:37:18] Production.INFO: count ==212 [2025-03-26 07:37:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:37:05 - End Time 2025-03-26 07:37:05 [2025-03-26 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765347', 'tblTempUsageDetail_20' ) start [2025-03-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765347', 'tblTempUsageDetail_20' ) end [2025-03-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765347', 'tblTempVendorCDR_20' ) start [2025-03-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765347', 'tblTempVendorCDR_20' ) end [2025-03-26 07:37:18] Production.INFO: ProcessCDR(1,14765347,1,1,2) [2025-03-26 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765347', 'tblTempUsageDetail_20' ) start [2025-03-26 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765347', 'tblTempUsageDetail_20' ) end [2025-03-26 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:37:21] Production.INFO: ==14705== Releasing lock... [2025-03-26 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:37:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:38:05 [end_date_ymd] => 2025-03-26 07:38:05 [RateCDR] => 1 ) [2025-03-26 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-26 04:38:05' and `end` < '2025-03-26 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-26 07:38:18] Production.INFO: count ==219 [2025-03-26 07:38:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:38:05 - End Time 2025-03-26 07:38:05 [2025-03-26 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765352', 'tblTempUsageDetail_20' ) start [2025-03-26 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765352', 'tblTempUsageDetail_20' ) end [2025-03-26 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765352', 'tblTempVendorCDR_20' ) start [2025-03-26 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765352', 'tblTempVendorCDR_20' ) end [2025-03-26 07:38:18] Production.INFO: ProcessCDR(1,14765352,1,1,2) [2025-03-26 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765352', 'tblTempUsageDetail_20' ) start [2025-03-26 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765352', 'tblTempUsageDetail_20' ) end [2025-03-26 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:38:21] Production.INFO: ==14776== Releasing lock... [2025-03-26 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:39:05 [end_date_ymd] => 2025-03-26 07:39:05 [RateCDR] => 1 ) [2025-03-26 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:39:05' and `end` < '2025-03-26 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:39:18] Production.INFO: count ==219 [2025-03-26 07:39:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:39:05 - End Time 2025-03-26 07:39:05 [2025-03-26 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765357', 'tblTempUsageDetail_20' ) start [2025-03-26 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765357', 'tblTempUsageDetail_20' ) end [2025-03-26 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765357', 'tblTempVendorCDR_20' ) start [2025-03-26 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765357', 'tblTempVendorCDR_20' ) end [2025-03-26 07:39:18] Production.INFO: ProcessCDR(1,14765357,1,1,2) [2025-03-26 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765357', 'tblTempUsageDetail_20' ) start [2025-03-26 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765357', 'tblTempUsageDetail_20' ) end [2025-03-26 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:39:21] Production.INFO: ==14848== Releasing lock... [2025-03-26 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:40:06 [end_date_ymd] => 2025-03-26 07:40:06 [RateCDR] => 1 ) [2025-03-26 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-26 04:40:06' and `end` < '2025-03-26 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-26 07:40:19] Production.INFO: count ==208 [2025-03-26 07:40:19] Production.ERROR: pbx CDR StartTime 2025-03-26 04:40:06 - End Time 2025-03-26 07:40:06 [2025-03-26 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765362', 'tblTempUsageDetail_20' ) start [2025-03-26 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765362', 'tblTempUsageDetail_20' ) end [2025-03-26 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765362', 'tblTempVendorCDR_20' ) start [2025-03-26 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765362', 'tblTempVendorCDR_20' ) end [2025-03-26 07:40:19] Production.INFO: ProcessCDR(1,14765362,1,1,2) [2025-03-26 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765362', 'tblTempUsageDetail_20' ) start [2025-03-26 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765362', 'tblTempUsageDetail_20' ) end [2025-03-26 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:40:22] Production.INFO: ==14927== Releasing lock... [2025-03-26 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:40:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-26 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:41:05 [end_date_ymd] => 2025-03-26 07:41:05 [RateCDR] => 1 ) [2025-03-26 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-26 04:41:05' and `end` < '2025-03-26 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-26 07:41:17] Production.INFO: count ==208 [2025-03-26 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-26 04:41:05 - End Time 2025-03-26 07:41:05 [2025-03-26 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765368', 'tblTempUsageDetail_20' ) start [2025-03-26 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765368', 'tblTempUsageDetail_20' ) end [2025-03-26 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765368', 'tblTempVendorCDR_20' ) start [2025-03-26 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765368', 'tblTempVendorCDR_20' ) end [2025-03-26 07:41:17] Production.INFO: ProcessCDR(1,14765368,1,1,2) [2025-03-26 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765368', 'tblTempUsageDetail_20' ) start [2025-03-26 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765368', 'tblTempUsageDetail_20' ) end [2025-03-26 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:41:21] Production.INFO: ==15000== Releasing lock... [2025-03-26 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-26 07:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:42:06 [end_date_ymd] => 2025-03-26 07:42:06 [RateCDR] => 1 ) [2025-03-26 07: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-26 04:42:06' and `end` < '2025-03-26 07: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-26 07:42:18] Production.INFO: count ==208 [2025-03-26 07:42:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:42:06 - End Time 2025-03-26 07:42:06 [2025-03-26 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765373', 'tblTempUsageDetail_20' ) start [2025-03-26 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765373', 'tblTempUsageDetail_20' ) end [2025-03-26 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765373', 'tblTempVendorCDR_20' ) start [2025-03-26 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765373', 'tblTempVendorCDR_20' ) end [2025-03-26 07:42:18] Production.INFO: ProcessCDR(1,14765373,1,1,2) [2025-03-26 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765373', 'tblTempUsageDetail_20' ) start [2025-03-26 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765373', 'tblTempUsageDetail_20' ) end [2025-03-26 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:42:22] Production.INFO: ==15071== Releasing lock... [2025-03-26 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:42:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-26 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:43:05 [end_date_ymd] => 2025-03-26 07:43:05 [RateCDR] => 1 ) [2025-03-26 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-26 04:43:05' and `end` < '2025-03-26 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-26 07:43:18] Production.INFO: count ==207 [2025-03-26 07:43:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:43:05 - End Time 2025-03-26 07:43:05 [2025-03-26 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765378', 'tblTempUsageDetail_20' ) start [2025-03-26 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765378', 'tblTempUsageDetail_20' ) end [2025-03-26 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765378', 'tblTempVendorCDR_20' ) start [2025-03-26 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765378', 'tblTempVendorCDR_20' ) end [2025-03-26 07:43:18] Production.INFO: ProcessCDR(1,14765378,1,1,2) [2025-03-26 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765378', 'tblTempUsageDetail_20' ) start [2025-03-26 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765378', 'tblTempUsageDetail_20' ) end [2025-03-26 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:43:21] Production.INFO: ==15183== Releasing lock... [2025-03-26 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:43:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:44:05 [end_date_ymd] => 2025-03-26 07:44:05 [RateCDR] => 1 ) [2025-03-26 07: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-26 04:44:05' and `end` < '2025-03-26 07: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-26 07:44:17] Production.INFO: count ==207 [2025-03-26 07:44:17] Production.ERROR: pbx CDR StartTime 2025-03-26 04:44:05 - End Time 2025-03-26 07:44:05 [2025-03-26 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765383', 'tblTempUsageDetail_20' ) start [2025-03-26 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765383', 'tblTempUsageDetail_20' ) end [2025-03-26 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765383', 'tblTempVendorCDR_20' ) start [2025-03-26 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765383', 'tblTempVendorCDR_20' ) end [2025-03-26 07:44:17] Production.INFO: ProcessCDR(1,14765383,1,1,2) [2025-03-26 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765383', 'tblTempUsageDetail_20' ) start [2025-03-26 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765383', 'tblTempUsageDetail_20' ) end [2025-03-26 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:44:21] Production.INFO: ==15252== Releasing lock... [2025-03-26 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:44:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:45:05 [end_date_ymd] => 2025-03-26 07:45:05 [RateCDR] => 1 ) [2025-03-26 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-26 04:45:05' and `end` < '2025-03-26 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-26 07:45:18] Production.INFO: count ==207 [2025-03-26 07:45:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:45:05 - End Time 2025-03-26 07:45:05 [2025-03-26 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765388', 'tblTempUsageDetail_20' ) start [2025-03-26 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765388', 'tblTempUsageDetail_20' ) end [2025-03-26 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765388', 'tblTempVendorCDR_20' ) start [2025-03-26 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765388', 'tblTempVendorCDR_20' ) end [2025-03-26 07:45:18] Production.INFO: ProcessCDR(1,14765388,1,1,2) [2025-03-26 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765388', 'tblTempUsageDetail_20' ) start [2025-03-26 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765388', 'tblTempUsageDetail_20' ) end [2025-03-26 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:45:22] Production.INFO: ==15323== Releasing lock... [2025-03-26 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:45:22] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:46:06 [end_date_ymd] => 2025-03-26 07:46:06 [RateCDR] => 1 ) [2025-03-26 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-26 04:46:06' and `end` < '2025-03-26 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-26 07:46:19] Production.INFO: count ==207 [2025-03-26 07:46:19] Production.ERROR: pbx CDR StartTime 2025-03-26 04:46:06 - End Time 2025-03-26 07:46:06 [2025-03-26 07:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765393', 'tblTempUsageDetail_20' ) start [2025-03-26 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765393', 'tblTempUsageDetail_20' ) end [2025-03-26 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765393', 'tblTempVendorCDR_20' ) start [2025-03-26 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765393', 'tblTempVendorCDR_20' ) end [2025-03-26 07:46:19] Production.INFO: ProcessCDR(1,14765393,1,1,2) [2025-03-26 07:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765393', 'tblTempUsageDetail_20' ) start [2025-03-26 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765393', 'tblTempUsageDetail_20' ) end [2025-03-26 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:46:22] Production.INFO: ==15396== Releasing lock... [2025-03-26 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:46:22] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:47:05 [end_date_ymd] => 2025-03-26 07:47:05 [RateCDR] => 1 ) [2025-03-26 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:47:05' and `end` < '2025-03-26 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:47:17] Production.INFO: count ==207 [2025-03-26 07:47:17] Production.ERROR: pbx CDR StartTime 2025-03-26 04:47:05 - End Time 2025-03-26 07:47:05 [2025-03-26 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765398', 'tblTempUsageDetail_20' ) start [2025-03-26 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765398', 'tblTempUsageDetail_20' ) end [2025-03-26 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765398', 'tblTempVendorCDR_20' ) start [2025-03-26 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765398', 'tblTempVendorCDR_20' ) end [2025-03-26 07:47:17] Production.INFO: ProcessCDR(1,14765398,1,1,2) [2025-03-26 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765398', 'tblTempUsageDetail_20' ) start [2025-03-26 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765398', 'tblTempUsageDetail_20' ) end [2025-03-26 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:47:21] Production.INFO: ==15465== Releasing lock... [2025-03-26 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:47:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:48:06 [end_date_ymd] => 2025-03-26 07:48:06 [RateCDR] => 1 ) [2025-03-26 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-26 04:48:06' and `end` < '2025-03-26 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-26 07:48:18] Production.INFO: count ==207 [2025-03-26 07:48:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:48:06 - End Time 2025-03-26 07:48:06 [2025-03-26 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765403', 'tblTempUsageDetail_20' ) start [2025-03-26 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765403', 'tblTempUsageDetail_20' ) end [2025-03-26 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765403', 'tblTempVendorCDR_20' ) start [2025-03-26 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765403', 'tblTempVendorCDR_20' ) end [2025-03-26 07:48:18] Production.INFO: ProcessCDR(1,14765403,1,1,2) [2025-03-26 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765403', 'tblTempUsageDetail_20' ) start [2025-03-26 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765403', 'tblTempUsageDetail_20' ) end [2025-03-26 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:48:22] Production.INFO: ==15542== Releasing lock... [2025-03-26 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:48:22] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:49:05 [end_date_ymd] => 2025-03-26 07:49:05 [RateCDR] => 1 ) [2025-03-26 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-26 04:49:05' and `end` < '2025-03-26 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-26 07:49:17] Production.INFO: count ==213 [2025-03-26 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-26 04:49:05 - End Time 2025-03-26 07:49:05 [2025-03-26 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765408', 'tblTempUsageDetail_20' ) start [2025-03-26 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765408', 'tblTempUsageDetail_20' ) end [2025-03-26 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765408', 'tblTempVendorCDR_20' ) start [2025-03-26 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765408', 'tblTempVendorCDR_20' ) end [2025-03-26 07:49:18] Production.INFO: ProcessCDR(1,14765408,1,1,2) [2025-03-26 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765408', 'tblTempUsageDetail_20' ) start [2025-03-26 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765408', 'tblTempUsageDetail_20' ) end [2025-03-26 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:49:21] Production.INFO: ==15611== Releasing lock... [2025-03-26 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:50:06 [end_date_ymd] => 2025-03-26 07:50:06 [RateCDR] => 1 ) [2025-03-26 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:50:06' and `end` < '2025-03-26 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:50:19] Production.INFO: count ==221 [2025-03-26 07:50:19] Production.ERROR: pbx CDR StartTime 2025-03-26 04:50:06 - End Time 2025-03-26 07:50:06 [2025-03-26 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765414', 'tblTempUsageDetail_20' ) start [2025-03-26 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765414', 'tblTempUsageDetail_20' ) end [2025-03-26 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765414', 'tblTempVendorCDR_20' ) start [2025-03-26 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765414', 'tblTempVendorCDR_20' ) end [2025-03-26 07:50:19] Production.INFO: ProcessCDR(1,14765414,1,1,2) [2025-03-26 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765414', 'tblTempUsageDetail_20' ) start [2025-03-26 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765414', 'tblTempUsageDetail_20' ) end [2025-03-26 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:50:22] Production.INFO: ==15710== Releasing lock... [2025-03-26 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:50:22] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:51:05 [end_date_ymd] => 2025-03-26 07:51:05 [RateCDR] => 1 ) [2025-03-26 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:51:05' and `end` < '2025-03-26 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-26 07:51:17] Production.INFO: count ==216 [2025-03-26 07:51:17] Production.ERROR: pbx CDR StartTime 2025-03-26 04:51:05 - End Time 2025-03-26 07:51:05 [2025-03-26 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765419', 'tblTempUsageDetail_20' ) start [2025-03-26 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765419', 'tblTempUsageDetail_20' ) end [2025-03-26 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765419', 'tblTempVendorCDR_20' ) start [2025-03-26 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765419', 'tblTempVendorCDR_20' ) end [2025-03-26 07:51:17] Production.INFO: ProcessCDR(1,14765419,1,1,2) [2025-03-26 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765419', 'tblTempUsageDetail_20' ) start [2025-03-26 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765419', 'tblTempUsageDetail_20' ) end [2025-03-26 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:51:21] Production.INFO: ==15830== Releasing lock... [2025-03-26 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:52:05 [end_date_ymd] => 2025-03-26 07:52:05 [RateCDR] => 1 ) [2025-03-26 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:52:05' and `end` < '2025-03-26 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:52:17] Production.INFO: count ==217 [2025-03-26 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-26 04:52:05 - End Time 2025-03-26 07:52:05 [2025-03-26 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765424', 'tblTempUsageDetail_20' ) start [2025-03-26 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765424', 'tblTempUsageDetail_20' ) end [2025-03-26 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765424', 'tblTempVendorCDR_20' ) start [2025-03-26 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765424', 'tblTempVendorCDR_20' ) end [2025-03-26 07:52:17] Production.INFO: ProcessCDR(1,14765424,1,1,2) [2025-03-26 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765424', 'tblTempUsageDetail_20' ) start [2025-03-26 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765424', 'tblTempUsageDetail_20' ) end [2025-03-26 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:52:20] Production.INFO: ==15914== Releasing lock... [2025-03-26 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:52:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:53:04 [end_date_ymd] => 2025-03-26 07:53:04 [RateCDR] => 1 ) [2025-03-26 07:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:53:04' and `end` < '2025-03-26 07:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:53:17] Production.INFO: count ==221 [2025-03-26 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-26 04:53:04 - End Time 2025-03-26 07:53:04 [2025-03-26 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765429', 'tblTempUsageDetail_20' ) start [2025-03-26 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765429', 'tblTempUsageDetail_20' ) end [2025-03-26 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765429', 'tblTempVendorCDR_20' ) start [2025-03-26 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765429', 'tblTempVendorCDR_20' ) end [2025-03-26 07:53:17] Production.INFO: ProcessCDR(1,14765429,1,1,2) [2025-03-26 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765429', 'tblTempUsageDetail_20' ) start [2025-03-26 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765429', 'tblTempUsageDetail_20' ) end [2025-03-26 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:53:21] Production.INFO: ==15985== Releasing lock... [2025-03-26 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:54:05 [end_date_ymd] => 2025-03-26 07:54:05 [RateCDR] => 1 ) [2025-03-26 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:54:05' and `end` < '2025-03-26 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:54:18] Production.INFO: count ==221 [2025-03-26 07:54:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:54:05 - End Time 2025-03-26 07:54:05 [2025-03-26 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765434', 'tblTempUsageDetail_20' ) start [2025-03-26 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765434', 'tblTempUsageDetail_20' ) end [2025-03-26 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765434', 'tblTempVendorCDR_20' ) start [2025-03-26 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765434', 'tblTempVendorCDR_20' ) end [2025-03-26 07:54:18] Production.INFO: ProcessCDR(1,14765434,1,1,2) [2025-03-26 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765434', 'tblTempUsageDetail_20' ) start [2025-03-26 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765434', 'tblTempUsageDetail_20' ) end [2025-03-26 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:54:21] Production.INFO: ==16063== Releasing lock... [2025-03-26 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:54:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:55:05 [end_date_ymd] => 2025-03-26 07:55:05 [RateCDR] => 1 ) [2025-03-26 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:55:05' and `end` < '2025-03-26 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:55:17] Production.INFO: count ==221 [2025-03-26 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-26 04:55:05 - End Time 2025-03-26 07:55:05 [2025-03-26 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765439', 'tblTempUsageDetail_20' ) start [2025-03-26 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765439', 'tblTempUsageDetail_20' ) end [2025-03-26 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765439', 'tblTempVendorCDR_20' ) start [2025-03-26 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765439', 'tblTempVendorCDR_20' ) end [2025-03-26 07:55:17] Production.INFO: ProcessCDR(1,14765439,1,1,2) [2025-03-26 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765439', 'tblTempUsageDetail_20' ) start [2025-03-26 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765439', 'tblTempUsageDetail_20' ) end [2025-03-26 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:55:21] Production.INFO: ==16132== Releasing lock... [2025-03-26 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:56:05 [end_date_ymd] => 2025-03-26 07:56:05 [RateCDR] => 1 ) [2025-03-26 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:56:05' and `end` < '2025-03-26 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:56:18] Production.INFO: count ==226 [2025-03-26 07:56:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:56:05 - End Time 2025-03-26 07:56:05 [2025-03-26 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765444', 'tblTempUsageDetail_20' ) start [2025-03-26 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765444', 'tblTempUsageDetail_20' ) end [2025-03-26 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765444', 'tblTempVendorCDR_20' ) start [2025-03-26 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765444', 'tblTempVendorCDR_20' ) end [2025-03-26 07:56:18] Production.INFO: ProcessCDR(1,14765444,1,1,2) [2025-03-26 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765444', 'tblTempUsageDetail_20' ) start [2025-03-26 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765444', 'tblTempUsageDetail_20' ) end [2025-03-26 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:56:21] Production.INFO: ==16210== Releasing lock... [2025-03-26 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:56:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:57:05 [end_date_ymd] => 2025-03-26 07:57:05 [RateCDR] => 1 ) [2025-03-26 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-26 04:57:05' and `end` < '2025-03-26 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-26 07:57:17] Production.INFO: count ==227 [2025-03-26 07:57:17] Production.ERROR: pbx CDR StartTime 2025-03-26 04:57:05 - End Time 2025-03-26 07:57:05 [2025-03-26 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765449', 'tblTempUsageDetail_20' ) start [2025-03-26 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765449', 'tblTempUsageDetail_20' ) end [2025-03-26 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765449', 'tblTempVendorCDR_20' ) start [2025-03-26 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765449', 'tblTempVendorCDR_20' ) end [2025-03-26 07:57:17] Production.INFO: ProcessCDR(1,14765449,1,1,2) [2025-03-26 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765449', 'tblTempUsageDetail_20' ) start [2025-03-26 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765449', 'tblTempUsageDetail_20' ) end [2025-03-26 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:57:21] Production.INFO: ==16282== Releasing lock... [2025-03-26 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:57:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:58:05 [end_date_ymd] => 2025-03-26 07:58:05 [RateCDR] => 1 ) [2025-03-26 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:58:05' and `end` < '2025-03-26 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:58:18] Production.INFO: count ==227 [2025-03-26 07:58:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:58:05 - End Time 2025-03-26 07:58:05 [2025-03-26 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765454', 'tblTempUsageDetail_20' ) start [2025-03-26 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765454', 'tblTempUsageDetail_20' ) end [2025-03-26 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765454', 'tblTempVendorCDR_20' ) start [2025-03-26 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765454', 'tblTempVendorCDR_20' ) end [2025-03-26 07:58:18] Production.INFO: ProcessCDR(1,14765454,1,1,2) [2025-03-26 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765454', 'tblTempUsageDetail_20' ) start [2025-03-26 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765454', 'tblTempUsageDetail_20' ) end [2025-03-26 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:58:21] Production.INFO: ==16399== Releasing lock... [2025-03-26 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:58:21] Production.INFO: 30 MB #Memory Used# [2025-03-26 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 04:59:05 [end_date_ymd] => 2025-03-26 07:59:05 [RateCDR] => 1 ) [2025-03-26 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 04:59:05' and `end` < '2025-03-26 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 07:59:18] Production.INFO: count ==238 [2025-03-26 07:59:18] Production.ERROR: pbx CDR StartTime 2025-03-26 04:59:05 - End Time 2025-03-26 07:59:05 [2025-03-26 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765459', 'tblTempUsageDetail_20' ) start [2025-03-26 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765459', 'tblTempUsageDetail_20' ) end [2025-03-26 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765459', 'tblTempVendorCDR_20' ) start [2025-03-26 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765459', 'tblTempVendorCDR_20' ) end [2025-03-26 07:59:18] Production.INFO: ProcessCDR(1,14765459,1,1,2) [2025-03-26 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 07:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765459', 'tblTempUsageDetail_20' ) start [2025-03-26 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765459', 'tblTempUsageDetail_20' ) end [2025-03-26 07:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 07:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 07:59:23] Production.INFO: ==16473== Releasing lock... [2025-03-26 07:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 07:59:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:00:06 [end_date_ymd] => 2025-03-26 08:00:06 [RateCDR] => 1 ) [2025-03-26 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:00:06' and `end` < '2025-03-26 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:00:18] Production.INFO: count ==254 [2025-03-26 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:00:06 - End Time 2025-03-26 08:00:06 [2025-03-26 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765465', 'tblTempUsageDetail_20' ) start [2025-03-26 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765465', 'tblTempUsageDetail_20' ) end [2025-03-26 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765465', 'tblTempVendorCDR_20' ) start [2025-03-26 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765465', 'tblTempVendorCDR_20' ) end [2025-03-26 08:00:18] Production.INFO: ProcessCDR(1,14765465,1,1,2) [2025-03-26 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765465', 'tblTempUsageDetail_20' ) start [2025-03-26 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765465', 'tblTempUsageDetail_20' ) end [2025-03-26 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:00:23] Production.INFO: ==16556== Releasing lock... [2025-03-26 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:00:23] Production.INFO: 30 MB #Memory Used# [2025-03-26 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:01:05 [end_date_ymd] => 2025-03-26 08:01:05 [RateCDR] => 1 ) [2025-03-26 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:01:05' and `end` < '2025-03-26 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:01:18] Production.INFO: count ==251 [2025-03-26 08:01:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:01:05 - End Time 2025-03-26 08:01:05 [2025-03-26 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765470', 'tblTempUsageDetail_20' ) start [2025-03-26 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765470', 'tblTempUsageDetail_20' ) end [2025-03-26 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765470', 'tblTempVendorCDR_20' ) start [2025-03-26 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765470', 'tblTempVendorCDR_20' ) end [2025-03-26 08:01:18] Production.INFO: ProcessCDR(1,14765470,1,1,2) [2025-03-26 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765470', 'tblTempUsageDetail_20' ) start [2025-03-26 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765470', 'tblTempUsageDetail_20' ) end [2025-03-26 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:01:21] Production.INFO: ==16648== Releasing lock... [2025-03-26 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:02:05 [end_date_ymd] => 2025-03-26 08:02:05 [RateCDR] => 1 ) [2025-03-26 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:02:05' and `end` < '2025-03-26 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:02:17] Production.INFO: count ==247 [2025-03-26 08:02:17] Production.ERROR: pbx CDR StartTime 2025-03-26 05:02:05 - End Time 2025-03-26 08:02:05 [2025-03-26 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765475', 'tblTempUsageDetail_20' ) start [2025-03-26 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765475', 'tblTempUsageDetail_20' ) end [2025-03-26 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765475', 'tblTempVendorCDR_20' ) start [2025-03-26 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765475', 'tblTempVendorCDR_20' ) end [2025-03-26 08:02:17] Production.INFO: ProcessCDR(1,14765475,1,1,2) [2025-03-26 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765475', 'tblTempUsageDetail_20' ) start [2025-03-26 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765475', 'tblTempUsageDetail_20' ) end [2025-03-26 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:02:23] Production.INFO: ==16725== Releasing lock... [2025-03-26 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:02:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:03:05 [end_date_ymd] => 2025-03-26 08:03:05 [RateCDR] => 1 ) [2025-03-26 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-26 05:03:05' and `end` < '2025-03-26 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-26 08:03:17] Production.INFO: count ==266 [2025-03-26 08:03:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:03:05 - End Time 2025-03-26 08:03:05 [2025-03-26 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765480', 'tblTempUsageDetail_20' ) start [2025-03-26 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765480', 'tblTempUsageDetail_20' ) end [2025-03-26 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765480', 'tblTempVendorCDR_20' ) start [2025-03-26 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765480', 'tblTempVendorCDR_20' ) end [2025-03-26 08:03:18] Production.INFO: ProcessCDR(1,14765480,1,1,2) [2025-03-26 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765480', 'tblTempUsageDetail_20' ) start [2025-03-26 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765480', 'tblTempUsageDetail_20' ) end [2025-03-26 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:03:21] Production.INFO: ==16810== Releasing lock... [2025-03-26 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:04:05 [end_date_ymd] => 2025-03-26 08:04:05 [RateCDR] => 1 ) [2025-03-26 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:04:05' and `end` < '2025-03-26 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:04:18] Production.INFO: count ==268 [2025-03-26 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:04:05 - End Time 2025-03-26 08:04:05 [2025-03-26 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765485', 'tblTempUsageDetail_20' ) start [2025-03-26 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765485', 'tblTempUsageDetail_20' ) end [2025-03-26 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765485', 'tblTempVendorCDR_20' ) start [2025-03-26 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765485', 'tblTempVendorCDR_20' ) end [2025-03-26 08:04:18] Production.INFO: ProcessCDR(1,14765485,1,1,2) [2025-03-26 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765485', 'tblTempUsageDetail_20' ) start [2025-03-26 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765485', 'tblTempUsageDetail_20' ) end [2025-03-26 08:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:04:24] Production.INFO: ==16886== Releasing lock... [2025-03-26 08:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:04:24] Production.INFO: 31 MB #Memory Used# [2025-03-26 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:05:05 [end_date_ymd] => 2025-03-26 08:05:05 [RateCDR] => 1 ) [2025-03-26 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-26 05:05:05' and `end` < '2025-03-26 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-26 08:05:18] Production.INFO: count ==275 [2025-03-26 08:05:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:05:05 - End Time 2025-03-26 08:05:05 [2025-03-26 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765490', 'tblTempUsageDetail_20' ) start [2025-03-26 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765490', 'tblTempUsageDetail_20' ) end [2025-03-26 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765490', 'tblTempVendorCDR_20' ) start [2025-03-26 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765490', 'tblTempVendorCDR_20' ) end [2025-03-26 08:05:18] Production.INFO: ProcessCDR(1,14765490,1,1,2) [2025-03-26 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765490', 'tblTempUsageDetail_20' ) start [2025-03-26 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765490', 'tblTempUsageDetail_20' ) end [2025-03-26 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:05:22] Production.INFO: ==16973== Releasing lock... [2025-03-26 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:05:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-26 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:06:05 [end_date_ymd] => 2025-03-26 08:06:05 [RateCDR] => 1 ) [2025-03-26 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:06:05' and `end` < '2025-03-26 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:06:18] Production.INFO: count ==283 [2025-03-26 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:06:05 - End Time 2025-03-26 08:06:05 [2025-03-26 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765495', 'tblTempUsageDetail_20' ) start [2025-03-26 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765495', 'tblTempUsageDetail_20' ) end [2025-03-26 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765495', 'tblTempVendorCDR_20' ) start [2025-03-26 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765495', 'tblTempVendorCDR_20' ) end [2025-03-26 08:06:18] Production.INFO: ProcessCDR(1,14765495,1,1,2) [2025-03-26 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765495', 'tblTempUsageDetail_20' ) start [2025-03-26 08:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765495', 'tblTempUsageDetail_20' ) end [2025-03-26 08:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:06:24] Production.INFO: ==17051== Releasing lock... [2025-03-26 08:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:06:24] Production.INFO: 30.5 MB #Memory Used# [2025-03-26 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:07:05 [end_date_ymd] => 2025-03-26 08:07:05 [RateCDR] => 1 ) [2025-03-26 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:07:05' and `end` < '2025-03-26 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:07:18] Production.INFO: count ==301 [2025-03-26 08:07:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:07:05 - End Time 2025-03-26 08:07:05 [2025-03-26 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765500', 'tblTempUsageDetail_20' ) start [2025-03-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765500', 'tblTempUsageDetail_20' ) end [2025-03-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765500', 'tblTempVendorCDR_20' ) start [2025-03-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765500', 'tblTempVendorCDR_20' ) end [2025-03-26 08:07:18] Production.INFO: ProcessCDR(1,14765500,1,1,2) [2025-03-26 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765500', 'tblTempUsageDetail_20' ) start [2025-03-26 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765500', 'tblTempUsageDetail_20' ) end [2025-03-26 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:07:22] Production.INFO: ==17136== Releasing lock... [2025-03-26 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:07:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-26 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:08:05 [end_date_ymd] => 2025-03-26 08:08:05 [RateCDR] => 1 ) [2025-03-26 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:08:05' and `end` < '2025-03-26 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:08:18] Production.INFO: count ==313 [2025-03-26 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:08:05 - End Time 2025-03-26 08:08:05 [2025-03-26 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765505', 'tblTempUsageDetail_20' ) start [2025-03-26 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765505', 'tblTempUsageDetail_20' ) end [2025-03-26 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765505', 'tblTempVendorCDR_20' ) start [2025-03-26 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765505', 'tblTempVendorCDR_20' ) end [2025-03-26 08:08:18] Production.INFO: ProcessCDR(1,14765505,1,1,2) [2025-03-26 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765505', 'tblTempUsageDetail_20' ) start [2025-03-26 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765505', 'tblTempUsageDetail_20' ) end [2025-03-26 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:08:24] Production.INFO: ==17223== Releasing lock... [2025-03-26 08:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:08:24] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:09:06 [end_date_ymd] => 2025-03-26 08:09:06 [RateCDR] => 1 ) [2025-03-26 08:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:09:06' and `end` < '2025-03-26 08:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:09:18] Production.INFO: count ==310 [2025-03-26 08:09:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:09:06 - End Time 2025-03-26 08:09:06 [2025-03-26 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765510', 'tblTempUsageDetail_20' ) start [2025-03-26 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765510', 'tblTempUsageDetail_20' ) end [2025-03-26 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765510', 'tblTempVendorCDR_20' ) start [2025-03-26 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765510', 'tblTempVendorCDR_20' ) end [2025-03-26 08:09:18] Production.INFO: ProcessCDR(1,14765510,1,1,2) [2025-03-26 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765510', 'tblTempUsageDetail_20' ) start [2025-03-26 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765510', 'tblTempUsageDetail_20' ) end [2025-03-26 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:09:22] Production.INFO: ==17304== Releasing lock... [2025-03-26 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:09:22] Production.INFO: 31 MB #Memory Used# [2025-03-26 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:10:06 [end_date_ymd] => 2025-03-26 08:10:06 [RateCDR] => 1 ) [2025-03-26 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:10:06' and `end` < '2025-03-26 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:10:18] Production.INFO: count ==315 [2025-03-26 08:10:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:10:06 - End Time 2025-03-26 08:10:06 [2025-03-26 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765515', 'tblTempUsageDetail_20' ) start [2025-03-26 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765515', 'tblTempUsageDetail_20' ) end [2025-03-26 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765515', 'tblTempVendorCDR_20' ) start [2025-03-26 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765515', 'tblTempVendorCDR_20' ) end [2025-03-26 08:10:18] Production.INFO: ProcessCDR(1,14765515,1,1,2) [2025-03-26 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765515', 'tblTempUsageDetail_20' ) start [2025-03-26 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765515', 'tblTempUsageDetail_20' ) end [2025-03-26 08:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:10:24] Production.INFO: ==17386== Releasing lock... [2025-03-26 08:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:10:24] Production.INFO: 31 MB #Memory Used# [2025-03-26 08:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:11:06 [end_date_ymd] => 2025-03-26 08:11:06 [RateCDR] => 1 ) [2025-03-26 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-26 05:11:06' and `end` < '2025-03-26 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-26 08:11:18] Production.INFO: count ==351 [2025-03-26 08:11:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:11:06 - End Time 2025-03-26 08:11:06 [2025-03-26 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765521', 'tblTempUsageDetail_20' ) start [2025-03-26 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765521', 'tblTempUsageDetail_20' ) end [2025-03-26 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765521', 'tblTempVendorCDR_20' ) start [2025-03-26 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765521', 'tblTempVendorCDR_20' ) end [2025-03-26 08:11:19] Production.INFO: ProcessCDR(1,14765521,1,1,2) [2025-03-26 08:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765521', 'tblTempUsageDetail_20' ) start [2025-03-26 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765521', 'tblTempUsageDetail_20' ) end [2025-03-26 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:11:22] Production.INFO: ==17474== Releasing lock... [2025-03-26 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:11:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-26 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:12:05 [end_date_ymd] => 2025-03-26 08:12:05 [RateCDR] => 1 ) [2025-03-26 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-26 05:12:05' and `end` < '2025-03-26 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-26 08:12:18] Production.INFO: count ==370 [2025-03-26 08:12:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:12:05 - End Time 2025-03-26 08:12:05 [2025-03-26 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765526', 'tblTempUsageDetail_20' ) start [2025-03-26 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765526', 'tblTempUsageDetail_20' ) end [2025-03-26 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765526', 'tblTempVendorCDR_20' ) start [2025-03-26 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765526', 'tblTempVendorCDR_20' ) end [2025-03-26 08:12:18] Production.INFO: ProcessCDR(1,14765526,1,1,2) [2025-03-26 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765526', 'tblTempUsageDetail_20' ) start [2025-03-26 08:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765526', 'tblTempUsageDetail_20' ) end [2025-03-26 08:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:12:24] Production.INFO: ==17555== Releasing lock... [2025-03-26 08:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:12:24] Production.INFO: 31 MB #Memory Used# [2025-03-26 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:13:06 [end_date_ymd] => 2025-03-26 08:13:06 [RateCDR] => 1 ) [2025-03-26 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-26 05:13:06' and `end` < '2025-03-26 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-26 08:13:18] Production.INFO: count ==373 [2025-03-26 08:13:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:13:06 - End Time 2025-03-26 08:13:06 [2025-03-26 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765531', 'tblTempUsageDetail_20' ) start [2025-03-26 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765531', 'tblTempUsageDetail_20' ) end [2025-03-26 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765531', 'tblTempVendorCDR_20' ) start [2025-03-26 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765531', 'tblTempVendorCDR_20' ) end [2025-03-26 08:13:18] Production.INFO: ProcessCDR(1,14765531,1,1,2) [2025-03-26 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765531', 'tblTempUsageDetail_20' ) start [2025-03-26 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765531', 'tblTempUsageDetail_20' ) end [2025-03-26 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:13:22] Production.INFO: ==17676== Releasing lock... [2025-03-26 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:13:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:14:05 [end_date_ymd] => 2025-03-26 08:14:05 [RateCDR] => 1 ) [2025-03-26 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:14:05' and `end` < '2025-03-26 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:14:18] Production.INFO: count ==377 [2025-03-26 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:14:05 - End Time 2025-03-26 08:14:05 [2025-03-26 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765536', 'tblTempUsageDetail_20' ) start [2025-03-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765536', 'tblTempUsageDetail_20' ) end [2025-03-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765536', 'tblTempVendorCDR_20' ) start [2025-03-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765536', 'tblTempVendorCDR_20' ) end [2025-03-26 08:14:18] Production.INFO: ProcessCDR(1,14765536,1,1,2) [2025-03-26 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765536', 'tblTempUsageDetail_20' ) start [2025-03-26 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765536', 'tblTempUsageDetail_20' ) end [2025-03-26 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:14:22] Production.INFO: ==17754== Releasing lock... [2025-03-26 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:14:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:15:06 [end_date_ymd] => 2025-03-26 08:15:06 [RateCDR] => 1 ) [2025-03-26 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-26 05:15:06' and `end` < '2025-03-26 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-26 08:15:19] Production.INFO: count ==380 [2025-03-26 08:15:19] Production.ERROR: pbx CDR StartTime 2025-03-26 05:15:06 - End Time 2025-03-26 08:15:06 [2025-03-26 08:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765541', 'tblTempUsageDetail_20' ) start [2025-03-26 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765541', 'tblTempUsageDetail_20' ) end [2025-03-26 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765541', 'tblTempVendorCDR_20' ) start [2025-03-26 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765541', 'tblTempVendorCDR_20' ) end [2025-03-26 08:15:19] Production.INFO: ProcessCDR(1,14765541,1,1,2) [2025-03-26 08:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765541', 'tblTempUsageDetail_20' ) start [2025-03-26 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765541', 'tblTempUsageDetail_20' ) end [2025-03-26 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:15:22] Production.INFO: ==17839== Releasing lock... [2025-03-26 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:15:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:16:05 [end_date_ymd] => 2025-03-26 08:16:05 [RateCDR] => 1 ) [2025-03-26 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-26 05:16:05' and `end` < '2025-03-26 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-26 08:16:17] Production.INFO: count ==392 [2025-03-26 08:16:17] Production.ERROR: pbx CDR StartTime 2025-03-26 05:16:05 - End Time 2025-03-26 08:16:05 [2025-03-26 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765546', 'tblTempUsageDetail_20' ) start [2025-03-26 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765546', 'tblTempUsageDetail_20' ) end [2025-03-26 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765546', 'tblTempVendorCDR_20' ) start [2025-03-26 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765546', 'tblTempVendorCDR_20' ) end [2025-03-26 08:16:18] Production.INFO: ProcessCDR(1,14765546,1,1,2) [2025-03-26 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765546', 'tblTempUsageDetail_20' ) start [2025-03-26 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765546', 'tblTempUsageDetail_20' ) end [2025-03-26 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:16:21] Production.INFO: ==17927== Releasing lock... [2025-03-26 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:17:05 [end_date_ymd] => 2025-03-26 08:17:05 [RateCDR] => 1 ) [2025-03-26 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-26 05:17:05' and `end` < '2025-03-26 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-26 08:17:18] Production.INFO: count ==393 [2025-03-26 08:17:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:17:05 - End Time 2025-03-26 08:17:05 [2025-03-26 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765551', 'tblTempUsageDetail_20' ) start [2025-03-26 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765551', 'tblTempUsageDetail_20' ) end [2025-03-26 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765551', 'tblTempVendorCDR_20' ) start [2025-03-26 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765551', 'tblTempVendorCDR_20' ) end [2025-03-26 08:17:18] Production.INFO: ProcessCDR(1,14765551,1,1,2) [2025-03-26 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765551', 'tblTempUsageDetail_20' ) start [2025-03-26 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765551', 'tblTempUsageDetail_20' ) end [2025-03-26 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:17:22] Production.INFO: ==18010== Releasing lock... [2025-03-26 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:17:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:18:05 [end_date_ymd] => 2025-03-26 08:18:05 [RateCDR] => 1 ) [2025-03-26 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-26 05:18:05' and `end` < '2025-03-26 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-26 08:18:17] Production.INFO: count ==398 [2025-03-26 08:18:17] Production.ERROR: pbx CDR StartTime 2025-03-26 05:18:05 - End Time 2025-03-26 08:18:05 [2025-03-26 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765556', 'tblTempUsageDetail_20' ) start [2025-03-26 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765556', 'tblTempUsageDetail_20' ) end [2025-03-26 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765556', 'tblTempVendorCDR_20' ) start [2025-03-26 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765556', 'tblTempVendorCDR_20' ) end [2025-03-26 08:18:17] Production.INFO: ProcessCDR(1,14765556,1,1,2) [2025-03-26 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765556', 'tblTempUsageDetail_20' ) start [2025-03-26 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765556', 'tblTempUsageDetail_20' ) end [2025-03-26 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:18:21] Production.INFO: ==18095== Releasing lock... [2025-03-26 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:18:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:19:05 [end_date_ymd] => 2025-03-26 08:19:05 [RateCDR] => 1 ) [2025-03-26 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:19:05' and `end` < '2025-03-26 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:19:18] Production.INFO: count ==403 [2025-03-26 08:19:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:19:05 - End Time 2025-03-26 08:19:05 [2025-03-26 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765561', 'tblTempUsageDetail_20' ) start [2025-03-26 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765561', 'tblTempUsageDetail_20' ) end [2025-03-26 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765561', 'tblTempVendorCDR_20' ) start [2025-03-26 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765561', 'tblTempVendorCDR_20' ) end [2025-03-26 08:19:18] Production.INFO: ProcessCDR(1,14765561,1,1,2) [2025-03-26 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765561', 'tblTempUsageDetail_20' ) start [2025-03-26 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765561', 'tblTempUsageDetail_20' ) end [2025-03-26 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:19:21] Production.INFO: ==18176== Releasing lock... [2025-03-26 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:19:21] Production.INFO: 32 MB #Memory Used# [2025-03-26 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:20:05 [end_date_ymd] => 2025-03-26 08:20:05 [RateCDR] => 1 ) [2025-03-26 08:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:20:05' and `end` < '2025-03-26 08:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:20:18] Production.INFO: count ==413 [2025-03-26 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:20:05 - End Time 2025-03-26 08:20:05 [2025-03-26 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765566', 'tblTempUsageDetail_20' ) start [2025-03-26 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765566', 'tblTempUsageDetail_20' ) end [2025-03-26 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765566', 'tblTempVendorCDR_20' ) start [2025-03-26 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765566', 'tblTempVendorCDR_20' ) end [2025-03-26 08:20:18] Production.INFO: ProcessCDR(1,14765566,1,1,2) [2025-03-26 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765566', 'tblTempUsageDetail_20' ) start [2025-03-26 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765566', 'tblTempUsageDetail_20' ) end [2025-03-26 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:20:22] Production.INFO: ==18265== Releasing lock... [2025-03-26 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:21:05 [end_date_ymd] => 2025-03-26 08:21:05 [RateCDR] => 1 ) [2025-03-26 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-26 05:21:05' and `end` < '2025-03-26 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-26 08:21:18] Production.INFO: count ==439 [2025-03-26 08:21:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:21:05 - End Time 2025-03-26 08:21:05 [2025-03-26 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765572', 'tblTempUsageDetail_20' ) start [2025-03-26 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765572', 'tblTempUsageDetail_20' ) end [2025-03-26 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765572', 'tblTempVendorCDR_20' ) start [2025-03-26 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765572', 'tblTempVendorCDR_20' ) end [2025-03-26 08:21:18] Production.INFO: ProcessCDR(1,14765572,1,1,2) [2025-03-26 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765572', 'tblTempUsageDetail_20' ) start [2025-03-26 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765572', 'tblTempUsageDetail_20' ) end [2025-03-26 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:21:21] Production.INFO: ==18350== Releasing lock... [2025-03-26 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:22:05 [end_date_ymd] => 2025-03-26 08:22:05 [RateCDR] => 1 ) [2025-03-26 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-26 05:22:05' and `end` < '2025-03-26 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-26 08:22:18] Production.INFO: count ==436 [2025-03-26 08:22:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:22:05 - End Time 2025-03-26 08:22:05 [2025-03-26 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765577', 'tblTempUsageDetail_20' ) start [2025-03-26 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765577', 'tblTempUsageDetail_20' ) end [2025-03-26 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765577', 'tblTempVendorCDR_20' ) start [2025-03-26 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765577', 'tblTempVendorCDR_20' ) end [2025-03-26 08:22:18] Production.INFO: ProcessCDR(1,14765577,1,1,2) [2025-03-26 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765577', 'tblTempUsageDetail_20' ) start [2025-03-26 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765577', 'tblTempUsageDetail_20' ) end [2025-03-26 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:22:21] Production.INFO: ==18436== Releasing lock... [2025-03-26 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:22:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-26 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:23:05 [end_date_ymd] => 2025-03-26 08:23:05 [RateCDR] => 1 ) [2025-03-26 08: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-26 05:23:05' and `end` < '2025-03-26 08: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-26 08:23:18] Production.INFO: count ==434 [2025-03-26 08:23:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:23:05 - End Time 2025-03-26 08:23:05 [2025-03-26 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765582', 'tblTempUsageDetail_20' ) start [2025-03-26 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765582', 'tblTempUsageDetail_20' ) end [2025-03-26 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765582', 'tblTempVendorCDR_20' ) start [2025-03-26 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765582', 'tblTempVendorCDR_20' ) end [2025-03-26 08:23:18] Production.INFO: ProcessCDR(1,14765582,1,1,2) [2025-03-26 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765582', 'tblTempUsageDetail_20' ) start [2025-03-26 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765582', 'tblTempUsageDetail_20' ) end [2025-03-26 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:23:21] Production.INFO: ==18518== Releasing lock... [2025-03-26 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:23:21] Production.INFO: 32 MB #Memory Used# [2025-03-26 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:24:05 [end_date_ymd] => 2025-03-26 08:24:05 [RateCDR] => 1 ) [2025-03-26 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:24:05' and `end` < '2025-03-26 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:24:18] Production.INFO: count ==450 [2025-03-26 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:24:05 - End Time 2025-03-26 08:24:05 [2025-03-26 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765587', 'tblTempUsageDetail_20' ) start [2025-03-26 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765587', 'tblTempUsageDetail_20' ) end [2025-03-26 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765587', 'tblTempVendorCDR_20' ) start [2025-03-26 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765587', 'tblTempVendorCDR_20' ) end [2025-03-26 08:24:18] Production.INFO: ProcessCDR(1,14765587,1,1,2) [2025-03-26 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765587', 'tblTempUsageDetail_20' ) start [2025-03-26 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765587', 'tblTempUsageDetail_20' ) end [2025-03-26 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:24:22] Production.INFO: ==18604== Releasing lock... [2025-03-26 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:24:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:25:04 [end_date_ymd] => 2025-03-26 08:25:04 [RateCDR] => 1 ) [2025-03-26 08:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:25:04' and `end` < '2025-03-26 08:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:25:17] Production.INFO: count ==456 [2025-03-26 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-26 05:25:04 - End Time 2025-03-26 08:25:04 [2025-03-26 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765592', 'tblTempUsageDetail_20' ) start [2025-03-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765592', 'tblTempUsageDetail_20' ) end [2025-03-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765592', 'tblTempVendorCDR_20' ) start [2025-03-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765592', 'tblTempVendorCDR_20' ) end [2025-03-26 08:25:17] Production.INFO: ProcessCDR(1,14765592,1,1,2) [2025-03-26 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765592', 'tblTempUsageDetail_20' ) start [2025-03-26 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765592', 'tblTempUsageDetail_20' ) end [2025-03-26 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:25:21] Production.INFO: ==18686== Releasing lock... [2025-03-26 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:25:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:26:06 [end_date_ymd] => 2025-03-26 08:26:06 [RateCDR] => 1 ) [2025-03-26 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-26 05:26:06' and `end` < '2025-03-26 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-26 08:26:18] Production.INFO: count ==473 [2025-03-26 08:26:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:26:06 - End Time 2025-03-26 08:26:06 [2025-03-26 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765597', 'tblTempUsageDetail_20' ) start [2025-03-26 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765597', 'tblTempUsageDetail_20' ) end [2025-03-26 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765597', 'tblTempVendorCDR_20' ) start [2025-03-26 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765597', 'tblTempVendorCDR_20' ) end [2025-03-26 08:26:18] Production.INFO: ProcessCDR(1,14765597,1,1,2) [2025-03-26 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765597', 'tblTempUsageDetail_20' ) start [2025-03-26 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765597', 'tblTempUsageDetail_20' ) end [2025-03-26 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:26:22] Production.INFO: ==18773== Releasing lock... [2025-03-26 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:26:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-26 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:27:05 [end_date_ymd] => 2025-03-26 08:27:05 [RateCDR] => 1 ) [2025-03-26 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:27:05' and `end` < '2025-03-26 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:27:17] Production.INFO: count ==497 [2025-03-26 08:27:17] Production.ERROR: pbx CDR StartTime 2025-03-26 05:27:05 - End Time 2025-03-26 08:27:05 [2025-03-26 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765602', 'tblTempUsageDetail_20' ) start [2025-03-26 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765602', 'tblTempUsageDetail_20' ) end [2025-03-26 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765602', 'tblTempVendorCDR_20' ) start [2025-03-26 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765602', 'tblTempVendorCDR_20' ) end [2025-03-26 08:27:17] Production.INFO: ProcessCDR(1,14765602,1,1,2) [2025-03-26 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765602', 'tblTempUsageDetail_20' ) start [2025-03-26 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765602', 'tblTempUsageDetail_20' ) end [2025-03-26 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:27:21] Production.INFO: ==18860== Releasing lock... [2025-03-26 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:27:21] Production.INFO: 32 MB #Memory Used# [2025-03-26 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:28:05 [end_date_ymd] => 2025-03-26 08:28:05 [RateCDR] => 1 ) [2025-03-26 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-26 05:28:05' and `end` < '2025-03-26 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-26 08:28:18] Production.INFO: count ==499 [2025-03-26 08:28:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:28:05 - End Time 2025-03-26 08:28:05 [2025-03-26 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765607', 'tblTempUsageDetail_20' ) start [2025-03-26 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765607', 'tblTempUsageDetail_20' ) end [2025-03-26 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765607', 'tblTempVendorCDR_20' ) start [2025-03-26 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765607', 'tblTempVendorCDR_20' ) end [2025-03-26 08:28:18] Production.INFO: ProcessCDR(1,14765607,1,1,2) [2025-03-26 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765607', 'tblTempUsageDetail_20' ) start [2025-03-26 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765607', 'tblTempUsageDetail_20' ) end [2025-03-26 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:28:21] Production.INFO: ==18946== Releasing lock... [2025-03-26 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:28:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-26 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:29:05 [end_date_ymd] => 2025-03-26 08:29:05 [RateCDR] => 1 ) [2025-03-26 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:29:05' and `end` < '2025-03-26 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:29:18] Production.INFO: count ==502 [2025-03-26 08:29:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:29:05 - End Time 2025-03-26 08:29:05 [2025-03-26 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765612', 'tblTempUsageDetail_20' ) start [2025-03-26 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765612', 'tblTempUsageDetail_20' ) end [2025-03-26 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765612', 'tblTempVendorCDR_20' ) start [2025-03-26 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765612', 'tblTempVendorCDR_20' ) end [2025-03-26 08:29:18] Production.INFO: ProcessCDR(1,14765612,1,1,2) [2025-03-26 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765612', 'tblTempUsageDetail_20' ) start [2025-03-26 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765612', 'tblTempUsageDetail_20' ) end [2025-03-26 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:29:21] Production.INFO: ==19067== Releasing lock... [2025-03-26 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-26 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:30:06 [end_date_ymd] => 2025-03-26 08:30:06 [RateCDR] => 1 ) [2025-03-26 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-26 05:30:06' and `end` < '2025-03-26 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-26 08:30:19] Production.INFO: count ==519 [2025-03-26 08:30:19] Production.ERROR: pbx CDR StartTime 2025-03-26 05:30:06 - End Time 2025-03-26 08:30:06 [2025-03-26 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765618', 'tblTempUsageDetail_20' ) start [2025-03-26 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765618', 'tblTempUsageDetail_20' ) end [2025-03-26 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765618', 'tblTempVendorCDR_20' ) start [2025-03-26 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765618', 'tblTempVendorCDR_20' ) end [2025-03-26 08:30:19] Production.INFO: ProcessCDR(1,14765618,1,1,2) [2025-03-26 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765618', 'tblTempUsageDetail_20' ) start [2025-03-26 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765618', 'tblTempUsageDetail_20' ) end [2025-03-26 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:30:24] Production.INFO: ==19158== Releasing lock... [2025-03-26 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:30:24] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:31:05 [end_date_ymd] => 2025-03-26 08:31:05 [RateCDR] => 1 ) [2025-03-26 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:31:05' and `end` < '2025-03-26 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:31:17] Production.INFO: count ==538 [2025-03-26 08:31:17] Production.ERROR: pbx CDR StartTime 2025-03-26 05:31:05 - End Time 2025-03-26 08:31:05 [2025-03-26 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765623', 'tblTempUsageDetail_20' ) start [2025-03-26 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765623', 'tblTempUsageDetail_20' ) end [2025-03-26 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765623', 'tblTempVendorCDR_20' ) start [2025-03-26 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765623', 'tblTempVendorCDR_20' ) end [2025-03-26 08:31:17] Production.INFO: ProcessCDR(1,14765623,1,1,2) [2025-03-26 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765623', 'tblTempUsageDetail_20' ) start [2025-03-26 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765623', 'tblTempUsageDetail_20' ) end [2025-03-26 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:31:22] Production.INFO: ==19246== Releasing lock... [2025-03-26 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:31:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:32:06 [end_date_ymd] => 2025-03-26 08:32:06 [RateCDR] => 1 ) [2025-03-26 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-26 05:32:06' and `end` < '2025-03-26 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-26 08:32:18] Production.INFO: count ==538 [2025-03-26 08:32:19] Production.ERROR: pbx CDR StartTime 2025-03-26 05:32:06 - End Time 2025-03-26 08:32:06 [2025-03-26 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765628', 'tblTempUsageDetail_20' ) start [2025-03-26 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765628', 'tblTempUsageDetail_20' ) end [2025-03-26 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765628', 'tblTempVendorCDR_20' ) start [2025-03-26 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765628', 'tblTempVendorCDR_20' ) end [2025-03-26 08:32:19] Production.INFO: ProcessCDR(1,14765628,1,1,2) [2025-03-26 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765628', 'tblTempUsageDetail_20' ) start [2025-03-26 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765628', 'tblTempUsageDetail_20' ) end [2025-03-26 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:32:22] Production.INFO: ==19327== Releasing lock... [2025-03-26 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:32:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:33:05 [end_date_ymd] => 2025-03-26 08:33:05 [RateCDR] => 1 ) [2025-03-26 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:33:05' and `end` < '2025-03-26 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:33:17] Production.INFO: count ==547 [2025-03-26 08:33:17] Production.ERROR: pbx CDR StartTime 2025-03-26 05:33:05 - End Time 2025-03-26 08:33:05 [2025-03-26 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765633', 'tblTempUsageDetail_20' ) start [2025-03-26 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765633', 'tblTempUsageDetail_20' ) end [2025-03-26 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765633', 'tblTempVendorCDR_20' ) start [2025-03-26 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765633', 'tblTempVendorCDR_20' ) end [2025-03-26 08:33:18] Production.INFO: ProcessCDR(1,14765633,1,1,2) [2025-03-26 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765633', 'tblTempUsageDetail_20' ) start [2025-03-26 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765633', 'tblTempUsageDetail_20' ) end [2025-03-26 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:33:22] Production.INFO: ==19407== Releasing lock... [2025-03-26 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:33:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:34:05 [end_date_ymd] => 2025-03-26 08:34:05 [RateCDR] => 1 ) [2025-03-26 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-26 05:34:05' and `end` < '2025-03-26 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-26 08:34:18] Production.INFO: count ==547 [2025-03-26 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:34:05 - End Time 2025-03-26 08:34:05 [2025-03-26 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765638', 'tblTempUsageDetail_20' ) start [2025-03-26 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765638', 'tblTempUsageDetail_20' ) end [2025-03-26 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765638', 'tblTempVendorCDR_20' ) start [2025-03-26 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765638', 'tblTempVendorCDR_20' ) end [2025-03-26 08:34:18] Production.INFO: ProcessCDR(1,14765638,1,1,2) [2025-03-26 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765638', 'tblTempUsageDetail_20' ) start [2025-03-26 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765638', 'tblTempUsageDetail_20' ) end [2025-03-26 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:34:21] Production.INFO: ==19485== Releasing lock... [2025-03-26 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:34:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:35:05 [end_date_ymd] => 2025-03-26 08:35:05 [RateCDR] => 1 ) [2025-03-26 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:35:05' and `end` < '2025-03-26 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:35:17] Production.INFO: count ==553 [2025-03-26 08:35:17] Production.ERROR: pbx CDR StartTime 2025-03-26 05:35:05 - End Time 2025-03-26 08:35:05 [2025-03-26 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765643', 'tblTempUsageDetail_20' ) start [2025-03-26 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765643', 'tblTempUsageDetail_20' ) end [2025-03-26 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765643', 'tblTempVendorCDR_20' ) start [2025-03-26 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765643', 'tblTempVendorCDR_20' ) end [2025-03-26 08:35:17] Production.INFO: ProcessCDR(1,14765643,1,1,2) [2025-03-26 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765643', 'tblTempUsageDetail_20' ) start [2025-03-26 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765643', 'tblTempUsageDetail_20' ) end [2025-03-26 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:35:22] Production.INFO: ==19560== Releasing lock... [2025-03-26 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:35:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:36:05 [end_date_ymd] => 2025-03-26 08:36:05 [RateCDR] => 1 ) [2025-03-26 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-26 05:36:05' and `end` < '2025-03-26 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-26 08:36:18] Production.INFO: count ==568 [2025-03-26 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:36:05 - End Time 2025-03-26 08:36:05 [2025-03-26 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765648', 'tblTempUsageDetail_20' ) start [2025-03-26 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765648', 'tblTempUsageDetail_20' ) end [2025-03-26 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765648', 'tblTempVendorCDR_20' ) start [2025-03-26 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765648', 'tblTempVendorCDR_20' ) end [2025-03-26 08:36:18] Production.INFO: ProcessCDR(1,14765648,1,1,2) [2025-03-26 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765648', 'tblTempUsageDetail_20' ) start [2025-03-26 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765648', 'tblTempUsageDetail_20' ) end [2025-03-26 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:36:22] Production.INFO: ==19642== Releasing lock... [2025-03-26 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:36:22] Production.INFO: 33 MB #Memory Used# [2025-03-26 08:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:37:06 [end_date_ymd] => 2025-03-26 08:37:06 [RateCDR] => 1 ) [2025-03-26 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-26 05:37:06' and `end` < '2025-03-26 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-26 08:37:18] Production.INFO: count ==575 [2025-03-26 08:37:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:37:06 - End Time 2025-03-26 08:37:06 [2025-03-26 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765653', 'tblTempUsageDetail_20' ) start [2025-03-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765653', 'tblTempUsageDetail_20' ) end [2025-03-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765653', 'tblTempVendorCDR_20' ) start [2025-03-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765653', 'tblTempVendorCDR_20' ) end [2025-03-26 08:37:18] Production.INFO: ProcessCDR(1,14765653,1,1,2) [2025-03-26 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765653', 'tblTempUsageDetail_20' ) start [2025-03-26 08:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765653', 'tblTempUsageDetail_20' ) end [2025-03-26 08:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:37:24] Production.INFO: ==19725== Releasing lock... [2025-03-26 08:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:37:24] Production.INFO: 32.75 MB #Memory Used# [2025-03-26 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:38:05 [end_date_ymd] => 2025-03-26 08:38:05 [RateCDR] => 1 ) [2025-03-26 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:38:05' and `end` < '2025-03-26 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:38:17] Production.INFO: count ==583 [2025-03-26 08:38:17] Production.ERROR: pbx CDR StartTime 2025-03-26 05:38:05 - End Time 2025-03-26 08:38:05 [2025-03-26 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765658', 'tblTempUsageDetail_20' ) start [2025-03-26 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765658', 'tblTempUsageDetail_20' ) end [2025-03-26 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765658', 'tblTempVendorCDR_20' ) start [2025-03-26 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765658', 'tblTempVendorCDR_20' ) end [2025-03-26 08:38:17] Production.INFO: ProcessCDR(1,14765658,1,1,2) [2025-03-26 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765658', 'tblTempUsageDetail_20' ) start [2025-03-26 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765658', 'tblTempUsageDetail_20' ) end [2025-03-26 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:38:22] Production.INFO: ==19803== Releasing lock... [2025-03-26 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:38:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-26 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:39:05 [end_date_ymd] => 2025-03-26 08:39:05 [RateCDR] => 1 ) [2025-03-26 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:39:05' and `end` < '2025-03-26 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:39:18] Production.INFO: count ==585 [2025-03-26 08:39:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:39:05 - End Time 2025-03-26 08:39:05 [2025-03-26 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765663', 'tblTempUsageDetail_20' ) start [2025-03-26 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765663', 'tblTempUsageDetail_20' ) end [2025-03-26 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765663', 'tblTempVendorCDR_20' ) start [2025-03-26 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765663', 'tblTempVendorCDR_20' ) end [2025-03-26 08:39:18] Production.INFO: ProcessCDR(1,14765663,1,1,2) [2025-03-26 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765663', 'tblTempUsageDetail_20' ) start [2025-03-26 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765663', 'tblTempUsageDetail_20' ) end [2025-03-26 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:39:23] Production.INFO: ==19880== Releasing lock... [2025-03-26 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:39:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-26 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:40:05 [end_date_ymd] => 2025-03-26 08:40:05 [RateCDR] => 1 ) [2025-03-26 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:40:05' and `end` < '2025-03-26 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:40:18] Production.INFO: count ==597 [2025-03-26 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:40:05 - End Time 2025-03-26 08:40:05 [2025-03-26 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765665', 'tblTempUsageDetail_20' ) start [2025-03-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765665', 'tblTempUsageDetail_20' ) end [2025-03-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765665', 'tblTempVendorCDR_20' ) start [2025-03-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765665', 'tblTempVendorCDR_20' ) end [2025-03-26 08:40:18] Production.INFO: ProcessCDR(1,14765665,1,1,2) [2025-03-26 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765665', 'tblTempUsageDetail_20' ) start [2025-03-26 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765665', 'tblTempUsageDetail_20' ) end [2025-03-26 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:40:22] Production.INFO: ==19962== Releasing lock... [2025-03-26 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:40:22] Production.INFO: 33 MB #Memory Used# [2025-03-26 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:41:05 [end_date_ymd] => 2025-03-26 08:41:05 [RateCDR] => 1 ) [2025-03-26 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:41:05' and `end` < '2025-03-26 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:41:17] Production.INFO: count ==625 [2025-03-26 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:41:05 - End Time 2025-03-26 08:41:05 [2025-03-26 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765674', 'tblTempUsageDetail_20' ) start [2025-03-26 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765674', 'tblTempUsageDetail_20' ) end [2025-03-26 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765674', 'tblTempVendorCDR_20' ) start [2025-03-26 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765674', 'tblTempVendorCDR_20' ) end [2025-03-26 08:41:18] Production.INFO: ProcessCDR(1,14765674,1,1,2) [2025-03-26 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765674', 'tblTempUsageDetail_20' ) start [2025-03-26 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765674', 'tblTempUsageDetail_20' ) end [2025-03-26 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:41:23] Production.INFO: ==20043== Releasing lock... [2025-03-26 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:41:23] Production.INFO: 33 MB #Memory Used# [2025-03-26 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:42:05 [end_date_ymd] => 2025-03-26 08:42:05 [RateCDR] => 1 ) [2025-03-26 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:42:05' and `end` < '2025-03-26 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:42:17] Production.INFO: count ==627 [2025-03-26 08:42:17] Production.ERROR: pbx CDR StartTime 2025-03-26 05:42:05 - End Time 2025-03-26 08:42:05 [2025-03-26 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765679', 'tblTempUsageDetail_20' ) start [2025-03-26 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765679', 'tblTempUsageDetail_20' ) end [2025-03-26 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765679', 'tblTempVendorCDR_20' ) start [2025-03-26 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765679', 'tblTempVendorCDR_20' ) end [2025-03-26 08:42:17] Production.INFO: ProcessCDR(1,14765679,1,1,2) [2025-03-26 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765679', 'tblTempUsageDetail_20' ) start [2025-03-26 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765679', 'tblTempUsageDetail_20' ) end [2025-03-26 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:42:23] Production.INFO: ==20133== Releasing lock... [2025-03-26 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:42:23] Production.INFO: 33 MB #Memory Used# [2025-03-26 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:43:06 [end_date_ymd] => 2025-03-26 08:43:06 [RateCDR] => 1 ) [2025-03-26 08: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-26 05:43:06' and `end` < '2025-03-26 08: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-26 08:43:18] Production.INFO: count ==631 [2025-03-26 08:43:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:43:06 - End Time 2025-03-26 08:43:06 [2025-03-26 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765684', 'tblTempUsageDetail_20' ) start [2025-03-26 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765684', 'tblTempUsageDetail_20' ) end [2025-03-26 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765684', 'tblTempVendorCDR_20' ) start [2025-03-26 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765684', 'tblTempVendorCDR_20' ) end [2025-03-26 08:43:18] Production.INFO: ProcessCDR(1,14765684,1,1,2) [2025-03-26 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765684', 'tblTempUsageDetail_20' ) start [2025-03-26 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765684', 'tblTempUsageDetail_20' ) end [2025-03-26 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:43:22] Production.INFO: ==20251== Releasing lock... [2025-03-26 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:43:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-26 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:44:05 [end_date_ymd] => 2025-03-26 08:44:05 [RateCDR] => 1 ) [2025-03-26 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:44:05' and `end` < '2025-03-26 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:44:18] Production.INFO: count ==635 [2025-03-26 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:44:05 - End Time 2025-03-26 08:44:05 [2025-03-26 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765689', 'tblTempUsageDetail_20' ) start [2025-03-26 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765689', 'tblTempUsageDetail_20' ) end [2025-03-26 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765689', 'tblTempVendorCDR_20' ) start [2025-03-26 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765689', 'tblTempVendorCDR_20' ) end [2025-03-26 08:44:18] Production.INFO: ProcessCDR(1,14765689,1,1,2) [2025-03-26 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765689', 'tblTempUsageDetail_20' ) start [2025-03-26 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765689', 'tblTempUsageDetail_20' ) end [2025-03-26 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:44:21] Production.INFO: ==20407== Releasing lock... [2025-03-26 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:44:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-26 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:45:05 [end_date_ymd] => 2025-03-26 08:45:05 [RateCDR] => 1 ) [2025-03-26 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-26 05:45:05' and `end` < '2025-03-26 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-26 08:45:17] Production.INFO: count ==636 [2025-03-26 08:45:17] Production.ERROR: pbx CDR StartTime 2025-03-26 05:45:05 - End Time 2025-03-26 08:45:05 [2025-03-26 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765694', 'tblTempUsageDetail_20' ) start [2025-03-26 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765694', 'tblTempUsageDetail_20' ) end [2025-03-26 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765694', 'tblTempVendorCDR_20' ) start [2025-03-26 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765694', 'tblTempVendorCDR_20' ) end [2025-03-26 08:45:17] Production.INFO: ProcessCDR(1,14765694,1,1,2) [2025-03-26 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765694', 'tblTempUsageDetail_20' ) start [2025-03-26 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765694', 'tblTempUsageDetail_20' ) end [2025-03-26 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:45:23] Production.INFO: ==20525== Releasing lock... [2025-03-26 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:45:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-26 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:46:05 [end_date_ymd] => 2025-03-26 08:46:05 [RateCDR] => 1 ) [2025-03-26 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:46:05' and `end` < '2025-03-26 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:46:18] Production.INFO: count ==641 [2025-03-26 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:46:05 - End Time 2025-03-26 08:46:05 [2025-03-26 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765699', 'tblTempUsageDetail_20' ) start [2025-03-26 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765699', 'tblTempUsageDetail_20' ) end [2025-03-26 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765699', 'tblTempVendorCDR_20' ) start [2025-03-26 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765699', 'tblTempVendorCDR_20' ) end [2025-03-26 08:46:18] Production.INFO: ProcessCDR(1,14765699,1,1,2) [2025-03-26 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765699', 'tblTempUsageDetail_20' ) start [2025-03-26 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765699', 'tblTempUsageDetail_20' ) end [2025-03-26 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:46:22] Production.INFO: ==20651== Releasing lock... [2025-03-26 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:46:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-26 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:47:06 [end_date_ymd] => 2025-03-26 08:47:06 [RateCDR] => 1 ) [2025-03-26 08:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:47:06' and `end` < '2025-03-26 08:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:47:18] Production.INFO: count ==646 [2025-03-26 08:47:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:47:06 - End Time 2025-03-26 08:47:06 [2025-03-26 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765704', 'tblTempUsageDetail_20' ) start [2025-03-26 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765704', 'tblTempUsageDetail_20' ) end [2025-03-26 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765704', 'tblTempVendorCDR_20' ) start [2025-03-26 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765704', 'tblTempVendorCDR_20' ) end [2025-03-26 08:47:18] Production.INFO: ProcessCDR(1,14765704,1,1,2) [2025-03-26 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765704', 'tblTempUsageDetail_20' ) start [2025-03-26 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765704', 'tblTempUsageDetail_20' ) end [2025-03-26 08:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:47:24] Production.INFO: ==20771== Releasing lock... [2025-03-26 08:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:47:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-26 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:48:05 [end_date_ymd] => 2025-03-26 08:48:05 [RateCDR] => 1 ) [2025-03-26 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:48:05' and `end` < '2025-03-26 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:48:18] Production.INFO: count ==656 [2025-03-26 08:48:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:48:05 - End Time 2025-03-26 08:48:05 [2025-03-26 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765709', 'tblTempUsageDetail_20' ) start [2025-03-26 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765709', 'tblTempUsageDetail_20' ) end [2025-03-26 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765709', 'tblTempVendorCDR_20' ) start [2025-03-26 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765709', 'tblTempVendorCDR_20' ) end [2025-03-26 08:48:18] Production.INFO: ProcessCDR(1,14765709,1,1,2) [2025-03-26 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765709', 'tblTempUsageDetail_20' ) start [2025-03-26 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765709', 'tblTempUsageDetail_20' ) end [2025-03-26 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:48:22] Production.INFO: ==20893== Releasing lock... [2025-03-26 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:48:22] Production.INFO: 33 MB #Memory Used# [2025-03-26 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:49:06 [end_date_ymd] => 2025-03-26 08:49:06 [RateCDR] => 1 ) [2025-03-26 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-26 05:49:06' and `end` < '2025-03-26 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-26 08:49:19] Production.INFO: count ==679 [2025-03-26 08:49:19] Production.ERROR: pbx CDR StartTime 2025-03-26 05:49:06 - End Time 2025-03-26 08:49:06 [2025-03-26 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765714', 'tblTempUsageDetail_20' ) start [2025-03-26 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765714', 'tblTempUsageDetail_20' ) end [2025-03-26 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765714', 'tblTempVendorCDR_20' ) start [2025-03-26 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765714', 'tblTempVendorCDR_20' ) end [2025-03-26 08:49:19] Production.INFO: ProcessCDR(1,14765714,1,1,2) [2025-03-26 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765714', 'tblTempUsageDetail_20' ) start [2025-03-26 08:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765714', 'tblTempUsageDetail_20' ) end [2025-03-26 08:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:49:25] Production.INFO: ==21012== Releasing lock... [2025-03-26 08:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:49:25] Production.INFO: 33 MB #Memory Used# [2025-03-26 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:50:06 [end_date_ymd] => 2025-03-26 08:50:06 [RateCDR] => 1 ) [2025-03-26 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:50:06' and `end` < '2025-03-26 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:50:18] Production.INFO: count ==691 [2025-03-26 08:50:19] Production.ERROR: pbx CDR StartTime 2025-03-26 05:50:06 - End Time 2025-03-26 08:50:06 [2025-03-26 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765719', 'tblTempUsageDetail_20' ) start [2025-03-26 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765719', 'tblTempUsageDetail_20' ) end [2025-03-26 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765719', 'tblTempVendorCDR_20' ) start [2025-03-26 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765719', 'tblTempVendorCDR_20' ) end [2025-03-26 08:50:19] Production.INFO: ProcessCDR(1,14765719,1,1,2) [2025-03-26 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765719', 'tblTempUsageDetail_20' ) start [2025-03-26 08:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765719', 'tblTempUsageDetail_20' ) end [2025-03-26 08:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:50:25] Production.INFO: ==21137== Releasing lock... [2025-03-26 08:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:50:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-26 08:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:51:06 [end_date_ymd] => 2025-03-26 08:51:06 [RateCDR] => 1 ) [2025-03-26 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-26 05:51:06' and `end` < '2025-03-26 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-26 08:51:18] Production.INFO: count ==717 [2025-03-26 08:51:19] Production.ERROR: pbx CDR StartTime 2025-03-26 05:51:06 - End Time 2025-03-26 08:51:06 [2025-03-26 08:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765725', 'tblTempUsageDetail_20' ) start [2025-03-26 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765725', 'tblTempUsageDetail_20' ) end [2025-03-26 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765725', 'tblTempVendorCDR_20' ) start [2025-03-26 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765725', 'tblTempVendorCDR_20' ) end [2025-03-26 08:51:19] Production.INFO: ProcessCDR(1,14765725,1,1,2) [2025-03-26 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765725', 'tblTempUsageDetail_20' ) start [2025-03-26 08:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765725', 'tblTempUsageDetail_20' ) end [2025-03-26 08:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:51:24] Production.INFO: ==21257== Releasing lock... [2025-03-26 08:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:51:24] Production.INFO: 34 MB #Memory Used# [2025-03-26 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:52:05 [end_date_ymd] => 2025-03-26 08:52:05 [RateCDR] => 1 ) [2025-03-26 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:52:05' and `end` < '2025-03-26 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:52:18] Production.INFO: count ==723 [2025-03-26 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:52:05 - End Time 2025-03-26 08:52:05 [2025-03-26 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765730', 'tblTempUsageDetail_20' ) start [2025-03-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765730', 'tblTempUsageDetail_20' ) end [2025-03-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765730', 'tblTempVendorCDR_20' ) start [2025-03-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765730', 'tblTempVendorCDR_20' ) end [2025-03-26 08:52:18] Production.INFO: ProcessCDR(1,14765730,1,1,2) [2025-03-26 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765730', 'tblTempUsageDetail_20' ) start [2025-03-26 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765730', 'tblTempUsageDetail_20' ) end [2025-03-26 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:52:22] Production.INFO: ==21376== Releasing lock... [2025-03-26 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:52:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-26 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:53:06 [end_date_ymd] => 2025-03-26 08:53:06 [RateCDR] => 1 ) [2025-03-26 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-26 05:53:06' and `end` < '2025-03-26 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-26 08:53:19] Production.INFO: count ==738 [2025-03-26 08:53:19] Production.ERROR: pbx CDR StartTime 2025-03-26 05:53:06 - End Time 2025-03-26 08:53:06 [2025-03-26 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765735', 'tblTempUsageDetail_20' ) start [2025-03-26 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765735', 'tblTempUsageDetail_20' ) end [2025-03-26 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765735', 'tblTempVendorCDR_20' ) start [2025-03-26 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765735', 'tblTempVendorCDR_20' ) end [2025-03-26 08:53:19] Production.INFO: ProcessCDR(1,14765735,1,1,2) [2025-03-26 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765735', 'tblTempUsageDetail_20' ) start [2025-03-26 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765735', 'tblTempUsageDetail_20' ) end [2025-03-26 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:53:23] Production.INFO: ==21492== Releasing lock... [2025-03-26 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:53:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-26 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:54:05 [end_date_ymd] => 2025-03-26 08:54:05 [RateCDR] => 1 ) [2025-03-26 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-26 05:54:05' and `end` < '2025-03-26 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-26 08:54:18] Production.INFO: count ==740 [2025-03-26 08:54:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:54:05 - End Time 2025-03-26 08:54:05 [2025-03-26 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765740', 'tblTempUsageDetail_20' ) start [2025-03-26 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765740', 'tblTempUsageDetail_20' ) end [2025-03-26 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765740', 'tblTempVendorCDR_20' ) start [2025-03-26 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765740', 'tblTempVendorCDR_20' ) end [2025-03-26 08:54:18] Production.INFO: ProcessCDR(1,14765740,1,1,2) [2025-03-26 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765740', 'tblTempUsageDetail_20' ) start [2025-03-26 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765740', 'tblTempUsageDetail_20' ) end [2025-03-26 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:54:23] Production.INFO: ==21609== Releasing lock... [2025-03-26 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:54:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-26 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:55:06 [end_date_ymd] => 2025-03-26 08:55:06 [RateCDR] => 1 ) [2025-03-26 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-26 05:55:06' and `end` < '2025-03-26 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-26 08:55:19] Production.INFO: count ==740 [2025-03-26 08:55:19] Production.ERROR: pbx CDR StartTime 2025-03-26 05:55:06 - End Time 2025-03-26 08:55:06 [2025-03-26 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765745', 'tblTempUsageDetail_20' ) start [2025-03-26 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765745', 'tblTempUsageDetail_20' ) end [2025-03-26 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765745', 'tblTempVendorCDR_20' ) start [2025-03-26 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765745', 'tblTempVendorCDR_20' ) end [2025-03-26 08:55:19] Production.INFO: ProcessCDR(1,14765745,1,1,2) [2025-03-26 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765745', 'tblTempUsageDetail_20' ) start [2025-03-26 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765745', 'tblTempUsageDetail_20' ) end [2025-03-26 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:55:23] Production.INFO: ==21695== Releasing lock... [2025-03-26 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:55:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-26 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:56:05 [end_date_ymd] => 2025-03-26 08:56:05 [RateCDR] => 1 ) [2025-03-26 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:56:05' and `end` < '2025-03-26 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:56:18] Production.INFO: count ==754 [2025-03-26 08:56:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:56:05 - End Time 2025-03-26 08:56:05 [2025-03-26 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765750', 'tblTempUsageDetail_20' ) start [2025-03-26 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765750', 'tblTempUsageDetail_20' ) end [2025-03-26 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765750', 'tblTempVendorCDR_20' ) start [2025-03-26 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765750', 'tblTempVendorCDR_20' ) end [2025-03-26 08:56:18] Production.INFO: ProcessCDR(1,14765750,1,1,2) [2025-03-26 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765750', 'tblTempUsageDetail_20' ) start [2025-03-26 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765750', 'tblTempUsageDetail_20' ) end [2025-03-26 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:56:21] Production.INFO: ==21771== Releasing lock... [2025-03-26 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:56:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-26 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:57:06 [end_date_ymd] => 2025-03-26 08:57:06 [RateCDR] => 1 ) [2025-03-26 08:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:57:06' and `end` < '2025-03-26 08:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:57:18] Production.INFO: count ==758 [2025-03-26 08:57:19] Production.ERROR: pbx CDR StartTime 2025-03-26 05:57:06 - End Time 2025-03-26 08:57:06 [2025-03-26 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765755', 'tblTempUsageDetail_20' ) start [2025-03-26 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765755', 'tblTempUsageDetail_20' ) end [2025-03-26 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765755', 'tblTempVendorCDR_20' ) start [2025-03-26 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765755', 'tblTempVendorCDR_20' ) end [2025-03-26 08:57:19] Production.INFO: ProcessCDR(1,14765755,1,1,2) [2025-03-26 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765755', 'tblTempUsageDetail_20' ) start [2025-03-26 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765755', 'tblTempUsageDetail_20' ) end [2025-03-26 08:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:57:24] Production.INFO: ==21846== Releasing lock... [2025-03-26 08:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:57:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-26 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:58:06 [end_date_ymd] => 2025-03-26 08:58:06 [RateCDR] => 1 ) [2025-03-26 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-26 05:58:06' and `end` < '2025-03-26 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-26 08:58:18] Production.INFO: count ==777 [2025-03-26 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:58:06 - End Time 2025-03-26 08:58:06 [2025-03-26 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765760', 'tblTempUsageDetail_20' ) start [2025-03-26 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765760', 'tblTempUsageDetail_20' ) end [2025-03-26 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765760', 'tblTempVendorCDR_20' ) start [2025-03-26 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765760', 'tblTempVendorCDR_20' ) end [2025-03-26 08:58:18] Production.INFO: ProcessCDR(1,14765760,1,1,2) [2025-03-26 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765760', 'tblTempUsageDetail_20' ) start [2025-03-26 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765760', 'tblTempUsageDetail_20' ) end [2025-03-26 08:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:58:24] Production.INFO: ==21918== Releasing lock... [2025-03-26 08:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:58:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-26 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 05:59:05 [end_date_ymd] => 2025-03-26 08:59:05 [RateCDR] => 1 ) [2025-03-26 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 05:59:05' and `end` < '2025-03-26 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 08:59:18] Production.INFO: count ==786 [2025-03-26 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-26 05:59:05 - End Time 2025-03-26 08:59:05 [2025-03-26 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765765', 'tblTempUsageDetail_20' ) start [2025-03-26 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765765', 'tblTempUsageDetail_20' ) end [2025-03-26 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765765', 'tblTempVendorCDR_20' ) start [2025-03-26 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765765', 'tblTempVendorCDR_20' ) end [2025-03-26 08:59:18] Production.INFO: ProcessCDR(1,14765765,1,1,2) [2025-03-26 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765765', 'tblTempUsageDetail_20' ) start [2025-03-26 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765765', 'tblTempUsageDetail_20' ) end [2025-03-26 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 08:59:21] Production.INFO: ==21993== Releasing lock... [2025-03-26 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 08:59:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-26 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:00:06 [end_date_ymd] => 2025-03-26 09:00:06 [RateCDR] => 1 ) [2025-03-26 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:00:06' and `end` < '2025-03-26 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:00:19] Production.INFO: count ==805 [2025-03-26 09:00:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:00:06 - End Time 2025-03-26 09:00:06 [2025-03-26 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765770', 'tblTempUsageDetail_20' ) start [2025-03-26 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765770', 'tblTempUsageDetail_20' ) end [2025-03-26 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765770', 'tblTempVendorCDR_20' ) start [2025-03-26 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765770', 'tblTempVendorCDR_20' ) end [2025-03-26 09:00:19] Production.INFO: ProcessCDR(1,14765770,1,1,2) [2025-03-26 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765770', 'tblTempUsageDetail_20' ) start [2025-03-26 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765770', 'tblTempUsageDetail_20' ) end [2025-03-26 09:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:00:25] Production.INFO: ==22105== Releasing lock... [2025-03-26 09:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:00:25] Production.INFO: 34.25 MB #Memory Used# [2025-03-26 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:01:06 [end_date_ymd] => 2025-03-26 09:01:06 [RateCDR] => 1 ) [2025-03-26 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-26 06:01:06' and `end` < '2025-03-26 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-26 09:01:18] Production.INFO: count ==840 [2025-03-26 09:01:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:01:06 - End Time 2025-03-26 09:01:06 [2025-03-26 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765776', 'tblTempUsageDetail_20' ) start [2025-03-26 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765776', 'tblTempUsageDetail_20' ) end [2025-03-26 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765776', 'tblTempVendorCDR_20' ) start [2025-03-26 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765776', 'tblTempVendorCDR_20' ) end [2025-03-26 09:01:19] Production.INFO: ProcessCDR(1,14765776,1,1,2) [2025-03-26 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765776', 'tblTempUsageDetail_20' ) start [2025-03-26 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765776', 'tblTempUsageDetail_20' ) end [2025-03-26 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:01:23] Production.INFO: ==22194== Releasing lock... [2025-03-26 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:01:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-26 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:02:05 [end_date_ymd] => 2025-03-26 09:02:05 [RateCDR] => 1 ) [2025-03-26 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:02:05' and `end` < '2025-03-26 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:02:18] Production.INFO: count ==852 [2025-03-26 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:02:05 - End Time 2025-03-26 09:02:05 [2025-03-26 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765781', 'tblTempUsageDetail_20' ) start [2025-03-26 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765781', 'tblTempUsageDetail_20' ) end [2025-03-26 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765781', 'tblTempVendorCDR_20' ) start [2025-03-26 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765781', 'tblTempVendorCDR_20' ) end [2025-03-26 09:02:18] Production.INFO: ProcessCDR(1,14765781,1,1,2) [2025-03-26 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765781', 'tblTempUsageDetail_20' ) start [2025-03-26 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765781', 'tblTempUsageDetail_20' ) end [2025-03-26 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:02:24] Production.INFO: ==22266== Releasing lock... [2025-03-26 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:02:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-26 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:03:06 [end_date_ymd] => 2025-03-26 09:03:06 [RateCDR] => 1 ) [2025-03-26 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-26 06:03:06' and `end` < '2025-03-26 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-26 09:03:19] Production.INFO: count ==863 [2025-03-26 09:03:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:03:06 - End Time 2025-03-26 09:03:06 [2025-03-26 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765786', 'tblTempUsageDetail_20' ) start [2025-03-26 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765786', 'tblTempUsageDetail_20' ) end [2025-03-26 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765786', 'tblTempVendorCDR_20' ) start [2025-03-26 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765786', 'tblTempVendorCDR_20' ) end [2025-03-26 09:03:19] Production.INFO: ProcessCDR(1,14765786,1,1,2) [2025-03-26 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765786', 'tblTempUsageDetail_20' ) start [2025-03-26 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765786', 'tblTempUsageDetail_20' ) end [2025-03-26 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:03:24] Production.INFO: ==22340== Releasing lock... [2025-03-26 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:03:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-26 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:04:05 [end_date_ymd] => 2025-03-26 09:04:05 [RateCDR] => 1 ) [2025-03-26 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:04:05' and `end` < '2025-03-26 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:04:17] Production.INFO: count ==885 [2025-03-26 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:04:05 - End Time 2025-03-26 09:04:05 [2025-03-26 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765791', 'tblTempUsageDetail_20' ) start [2025-03-26 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765791', 'tblTempUsageDetail_20' ) end [2025-03-26 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765791', 'tblTempVendorCDR_20' ) start [2025-03-26 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765791', 'tblTempVendorCDR_20' ) end [2025-03-26 09:04:18] Production.INFO: ProcessCDR(1,14765791,1,1,2) [2025-03-26 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765791', 'tblTempUsageDetail_20' ) start [2025-03-26 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765791', 'tblTempUsageDetail_20' ) end [2025-03-26 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:04:23] Production.INFO: ==22412== Releasing lock... [2025-03-26 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:04:23] Production.INFO: 35 MB #Memory Used# [2025-03-26 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:05:05 [end_date_ymd] => 2025-03-26 09:05:05 [RateCDR] => 1 ) [2025-03-26 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:05:05' and `end` < '2025-03-26 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:05:18] Production.INFO: count ==886 [2025-03-26 09:05:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:05:05 - End Time 2025-03-26 09:05:05 [2025-03-26 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765796', 'tblTempUsageDetail_20' ) start [2025-03-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765796', 'tblTempUsageDetail_20' ) end [2025-03-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765796', 'tblTempVendorCDR_20' ) start [2025-03-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765796', 'tblTempVendorCDR_20' ) end [2025-03-26 09:05:18] Production.INFO: ProcessCDR(1,14765796,1,1,2) [2025-03-26 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765796', 'tblTempUsageDetail_20' ) start [2025-03-26 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765796', 'tblTempUsageDetail_20' ) end [2025-03-26 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:05:23] Production.INFO: ==22488== Releasing lock... [2025-03-26 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:05:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-26 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:06:05 [end_date_ymd] => 2025-03-26 09:06:05 [RateCDR] => 1 ) [2025-03-26 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:06:05' and `end` < '2025-03-26 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:06:17] Production.INFO: count ==898 [2025-03-26 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:06:05 - End Time 2025-03-26 09:06:05 [2025-03-26 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765801', 'tblTempUsageDetail_20' ) start [2025-03-26 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765801', 'tblTempUsageDetail_20' ) end [2025-03-26 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765801', 'tblTempVendorCDR_20' ) start [2025-03-26 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765801', 'tblTempVendorCDR_20' ) end [2025-03-26 09:06:18] Production.INFO: ProcessCDR(1,14765801,1,1,2) [2025-03-26 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765801', 'tblTempUsageDetail_20' ) start [2025-03-26 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765801', 'tblTempUsageDetail_20' ) end [2025-03-26 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:06:23] Production.INFO: ==22564== Releasing lock... [2025-03-26 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:06:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-26 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:07:05 [end_date_ymd] => 2025-03-26 09:07:05 [RateCDR] => 1 ) [2025-03-26 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-26 06:07:05' and `end` < '2025-03-26 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-26 09:07:18] Production.INFO: count ==912 [2025-03-26 09:07:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:07:05 - End Time 2025-03-26 09:07:05 [2025-03-26 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765806', 'tblTempUsageDetail_20' ) start [2025-03-26 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765806', 'tblTempUsageDetail_20' ) end [2025-03-26 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765806', 'tblTempVendorCDR_20' ) start [2025-03-26 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765806', 'tblTempVendorCDR_20' ) end [2025-03-26 09:07:18] Production.INFO: ProcessCDR(1,14765806,1,1,2) [2025-03-26 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765806', 'tblTempUsageDetail_20' ) start [2025-03-26 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765806', 'tblTempUsageDetail_20' ) end [2025-03-26 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:07:23] Production.INFO: ==22635== Releasing lock... [2025-03-26 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:07:23] Production.INFO: 35 MB #Memory Used# [2025-03-26 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:08:05 [end_date_ymd] => 2025-03-26 09:08:05 [RateCDR] => 1 ) [2025-03-26 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:08:05' and `end` < '2025-03-26 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:08:17] Production.INFO: count ==928 [2025-03-26 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:08:05 - End Time 2025-03-26 09:08:05 [2025-03-26 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765811', 'tblTempUsageDetail_20' ) start [2025-03-26 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765811', 'tblTempUsageDetail_20' ) end [2025-03-26 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765811', 'tblTempVendorCDR_20' ) start [2025-03-26 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765811', 'tblTempVendorCDR_20' ) end [2025-03-26 09:08:18] Production.INFO: ProcessCDR(1,14765811,1,1,2) [2025-03-26 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765811', 'tblTempUsageDetail_20' ) start [2025-03-26 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765811', 'tblTempUsageDetail_20' ) end [2025-03-26 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:08:23] Production.INFO: ==22711== Releasing lock... [2025-03-26 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:08:23] Production.INFO: 35 MB #Memory Used# [2025-03-26 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:09:05 [end_date_ymd] => 2025-03-26 09:09:05 [RateCDR] => 1 ) [2025-03-26 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:09:05' and `end` < '2025-03-26 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:09:17] Production.INFO: count ==944 [2025-03-26 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:09:05 - End Time 2025-03-26 09:09:05 [2025-03-26 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765816', 'tblTempUsageDetail_20' ) start [2025-03-26 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765816', 'tblTempUsageDetail_20' ) end [2025-03-26 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765816', 'tblTempVendorCDR_20' ) start [2025-03-26 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765816', 'tblTempVendorCDR_20' ) end [2025-03-26 09:09:18] Production.INFO: ProcessCDR(1,14765816,1,1,2) [2025-03-26 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765816', 'tblTempUsageDetail_20' ) start [2025-03-26 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765816', 'tblTempUsageDetail_20' ) end [2025-03-26 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:09:23] Production.INFO: ==22788== Releasing lock... [2025-03-26 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:09:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-26 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:10:07 [end_date_ymd] => 2025-03-26 09:10:07 [RateCDR] => 1 ) [2025-03-26 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-26 06:10:07' and `end` < '2025-03-26 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-26 09:10:20] Production.INFO: count ==981 [2025-03-26 09:10:20] Production.ERROR: pbx CDR StartTime 2025-03-26 06:10:07 - End Time 2025-03-26 09:10:07 [2025-03-26 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765822', 'tblTempUsageDetail_20' ) start [2025-03-26 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765822', 'tblTempUsageDetail_20' ) end [2025-03-26 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765822', 'tblTempVendorCDR_20' ) start [2025-03-26 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765822', 'tblTempVendorCDR_20' ) end [2025-03-26 09:10:20] Production.INFO: ProcessCDR(1,14765822,1,1,2) [2025-03-26 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765822', 'tblTempUsageDetail_20' ) start [2025-03-26 09:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765822', 'tblTempUsageDetail_20' ) end [2025-03-26 09:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:10:26] Production.INFO: ==22862== Releasing lock... [2025-03-26 09:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:10:26] Production.INFO: 36.25 MB #Memory Used# [2025-03-26 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:11:05 [end_date_ymd] => 2025-03-26 09:11:05 [RateCDR] => 1 ) [2025-03-26 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-26 06:11:05' and `end` < '2025-03-26 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-26 09:11:18] Production.INFO: count ==1056 [2025-03-26 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:11:05 - End Time 2025-03-26 09:11:05 [2025-03-26 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765827', 'tblTempUsageDetail_20' ) start [2025-03-26 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765827', 'tblTempUsageDetail_20' ) end [2025-03-26 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765827', 'tblTempVendorCDR_20' ) start [2025-03-26 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765827', 'tblTempVendorCDR_20' ) end [2025-03-26 09:11:18] Production.INFO: ProcessCDR(1,14765827,1,1,2) [2025-03-26 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765827', 'tblTempUsageDetail_20' ) start [2025-03-26 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765827', 'tblTempUsageDetail_20' ) end [2025-03-26 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:11:23] Production.INFO: ==22965== Releasing lock... [2025-03-26 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:11:23] Production.INFO: 36 MB #Memory Used# [2025-03-26 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:12:06 [end_date_ymd] => 2025-03-26 09:12:06 [RateCDR] => 1 ) [2025-03-26 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-26 06:12:06' and `end` < '2025-03-26 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-26 09:12:18] Production.INFO: count ==1068 [2025-03-26 09:12:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:12:06 - End Time 2025-03-26 09:12:06 [2025-03-26 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765832', 'tblTempUsageDetail_20' ) start [2025-03-26 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765832', 'tblTempUsageDetail_20' ) end [2025-03-26 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765832', 'tblTempVendorCDR_20' ) start [2025-03-26 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765832', 'tblTempVendorCDR_20' ) end [2025-03-26 09:12:19] Production.INFO: ProcessCDR(1,14765832,1,1,2) [2025-03-26 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765832', 'tblTempUsageDetail_20' ) start [2025-03-26 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765832', 'tblTempUsageDetail_20' ) end [2025-03-26 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:12:24] Production.INFO: ==23070== Releasing lock... [2025-03-26 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:12:24] Production.INFO: 36 MB #Memory Used# [2025-03-26 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:13:06 [end_date_ymd] => 2025-03-26 09:13:06 [RateCDR] => 1 ) [2025-03-26 09:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:13:06' and `end` < '2025-03-26 09:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:13:18] Production.INFO: count ==1081 [2025-03-26 09:13:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:13:06 - End Time 2025-03-26 09:13:06 [2025-03-26 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765837', 'tblTempUsageDetail_20' ) start [2025-03-26 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765837', 'tblTempUsageDetail_20' ) end [2025-03-26 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765837', 'tblTempVendorCDR_20' ) start [2025-03-26 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765837', 'tblTempVendorCDR_20' ) end [2025-03-26 09:13:19] Production.INFO: ProcessCDR(1,14765837,1,1,2) [2025-03-26 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765837', 'tblTempUsageDetail_20' ) start [2025-03-26 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765837', 'tblTempUsageDetail_20' ) end [2025-03-26 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:13:24] Production.INFO: ==23166== Releasing lock... [2025-03-26 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:13:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-26 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:14:06 [end_date_ymd] => 2025-03-26 09:14:06 [RateCDR] => 1 ) [2025-03-26 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-26 06:14:06' and `end` < '2025-03-26 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-26 09:14:18] Production.INFO: count ==1086 [2025-03-26 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:14:06 - End Time 2025-03-26 09:14:06 [2025-03-26 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765842', 'tblTempUsageDetail_20' ) start [2025-03-26 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765842', 'tblTempUsageDetail_20' ) end [2025-03-26 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765842', 'tblTempVendorCDR_20' ) start [2025-03-26 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765842', 'tblTempVendorCDR_20' ) end [2025-03-26 09:14:18] Production.INFO: ProcessCDR(1,14765842,1,1,2) [2025-03-26 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765842', 'tblTempUsageDetail_20' ) start [2025-03-26 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765842', 'tblTempUsageDetail_20' ) end [2025-03-26 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:14:23] Production.INFO: ==23242== Releasing lock... [2025-03-26 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:14:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-26 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:15:05 [end_date_ymd] => 2025-03-26 09:15:05 [RateCDR] => 1 ) [2025-03-26 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-26 06:15:05' and `end` < '2025-03-26 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-26 09:15:17] Production.INFO: count ==1086 [2025-03-26 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:15:05 - End Time 2025-03-26 09:15:05 [2025-03-26 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765847', 'tblTempUsageDetail_20' ) start [2025-03-26 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765847', 'tblTempUsageDetail_20' ) end [2025-03-26 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765847', 'tblTempVendorCDR_20' ) start [2025-03-26 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765847', 'tblTempVendorCDR_20' ) end [2025-03-26 09:15:18] Production.INFO: ProcessCDR(1,14765847,1,1,2) [2025-03-26 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765847', 'tblTempUsageDetail_20' ) start [2025-03-26 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765847', 'tblTempUsageDetail_20' ) end [2025-03-26 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:15:23] Production.INFO: ==23353== Releasing lock... [2025-03-26 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:15:23] Production.INFO: 36 MB #Memory Used# [2025-03-26 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:16:06 [end_date_ymd] => 2025-03-26 09:16:06 [RateCDR] => 1 ) [2025-03-26 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-26 06:16:06' and `end` < '2025-03-26 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-26 09:16:18] Production.INFO: count ==1080 [2025-03-26 09:16:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:16:06 - End Time 2025-03-26 09:16:06 [2025-03-26 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765852', 'tblTempUsageDetail_20' ) start [2025-03-26 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765852', 'tblTempUsageDetail_20' ) end [2025-03-26 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765852', 'tblTempVendorCDR_20' ) start [2025-03-26 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765852', 'tblTempVendorCDR_20' ) end [2025-03-26 09:16:19] Production.INFO: ProcessCDR(1,14765852,1,1,2) [2025-03-26 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765852', 'tblTempUsageDetail_20' ) start [2025-03-26 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765852', 'tblTempUsageDetail_20' ) end [2025-03-26 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:16:24] Production.INFO: ==23426== Releasing lock... [2025-03-26 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:16:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-26 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:17:05 [end_date_ymd] => 2025-03-26 09:17:05 [RateCDR] => 1 ) [2025-03-26 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:17:05' and `end` < '2025-03-26 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:17:18] Production.INFO: count ==1094 [2025-03-26 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:17:05 - End Time 2025-03-26 09:17:05 [2025-03-26 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765857', 'tblTempUsageDetail_20' ) start [2025-03-26 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765857', 'tblTempUsageDetail_20' ) end [2025-03-26 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765857', 'tblTempVendorCDR_20' ) start [2025-03-26 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765857', 'tblTempVendorCDR_20' ) end [2025-03-26 09:17:18] Production.INFO: ProcessCDR(1,14765857,1,1,2) [2025-03-26 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765857', 'tblTempUsageDetail_20' ) start [2025-03-26 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765857', 'tblTempUsageDetail_20' ) end [2025-03-26 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:17:23] Production.INFO: ==23498== Releasing lock... [2025-03-26 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:17:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-26 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:18:06 [end_date_ymd] => 2025-03-26 09:18:06 [RateCDR] => 1 ) [2025-03-26 09: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-26 06:18:06' and `end` < '2025-03-26 09: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-26 09:18:19] Production.INFO: count ==1114 [2025-03-26 09:18:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:18:06 - End Time 2025-03-26 09:18:06 [2025-03-26 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765862', 'tblTempUsageDetail_20' ) start [2025-03-26 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765862', 'tblTempUsageDetail_20' ) end [2025-03-26 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765862', 'tblTempVendorCDR_20' ) start [2025-03-26 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765862', 'tblTempVendorCDR_20' ) end [2025-03-26 09:18:19] Production.INFO: ProcessCDR(1,14765862,1,1,2) [2025-03-26 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765862', 'tblTempUsageDetail_20' ) start [2025-03-26 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765862', 'tblTempUsageDetail_20' ) end [2025-03-26 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:18:24] Production.INFO: ==23581== Releasing lock... [2025-03-26 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:18:24] Production.INFO: 37 MB #Memory Used# [2025-03-26 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:19:05 [end_date_ymd] => 2025-03-26 09:19:05 [RateCDR] => 1 ) [2025-03-26 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-26 06:19:05' and `end` < '2025-03-26 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-26 09:19:18] Production.INFO: count ==1143 [2025-03-26 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:19:05 - End Time 2025-03-26 09:19:05 [2025-03-26 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765867', 'tblTempUsageDetail_20' ) start [2025-03-26 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765867', 'tblTempUsageDetail_20' ) end [2025-03-26 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765867', 'tblTempVendorCDR_20' ) start [2025-03-26 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765867', 'tblTempVendorCDR_20' ) end [2025-03-26 09:19:18] Production.INFO: ProcessCDR(1,14765867,1,1,2) [2025-03-26 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765867', 'tblTempUsageDetail_20' ) start [2025-03-26 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765867', 'tblTempUsageDetail_20' ) end [2025-03-26 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:19:23] Production.INFO: ==23659== Releasing lock... [2025-03-26 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:19:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-26 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:20:06 [end_date_ymd] => 2025-03-26 09:20:06 [RateCDR] => 1 ) [2025-03-26 09: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-26 06:20:06' and `end` < '2025-03-26 09: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-26 09:20:19] Production.INFO: count ==1180 [2025-03-26 09:20:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:20:06 - End Time 2025-03-26 09:20:06 [2025-03-26 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765873', 'tblTempUsageDetail_20' ) start [2025-03-26 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765873', 'tblTempUsageDetail_20' ) end [2025-03-26 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765873', 'tblTempVendorCDR_20' ) start [2025-03-26 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765873', 'tblTempVendorCDR_20' ) end [2025-03-26 09:20:20] Production.INFO: ProcessCDR(1,14765873,1,1,2) [2025-03-26 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765873', 'tblTempUsageDetail_20' ) start [2025-03-26 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765873', 'tblTempUsageDetail_20' ) end [2025-03-26 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:20:25] Production.INFO: ==23734== Releasing lock... [2025-03-26 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:20:25] Production.INFO: 37.25 MB #Memory Used# [2025-03-26 09:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:21:04 [end_date_ymd] => 2025-03-26 09:21:04 [RateCDR] => 1 ) [2025-03-26 09:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:21:04' and `end` < '2025-03-26 09:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:21:17] Production.INFO: count ==1262 [2025-03-26 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:21:04 - End Time 2025-03-26 09:21:04 [2025-03-26 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765878', 'tblTempUsageDetail_20' ) start [2025-03-26 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765878', 'tblTempUsageDetail_20' ) end [2025-03-26 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765878', 'tblTempVendorCDR_20' ) start [2025-03-26 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765878', 'tblTempVendorCDR_20' ) end [2025-03-26 09:21:18] Production.INFO: ProcessCDR(1,14765878,1,1,2) [2025-03-26 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765878', 'tblTempUsageDetail_20' ) start [2025-03-26 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765878', 'tblTempUsageDetail_20' ) end [2025-03-26 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:21:23] Production.INFO: ==23808== Releasing lock... [2025-03-26 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:21:23] Production.INFO: 38 MB #Memory Used# [2025-03-26 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:22:06 [end_date_ymd] => 2025-03-26 09:22:06 [RateCDR] => 1 ) [2025-03-26 09:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:22:06' and `end` < '2025-03-26 09:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:22:19] Production.INFO: count ==1270 [2025-03-26 09:22:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:22:06 - End Time 2025-03-26 09:22:06 [2025-03-26 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765883', 'tblTempUsageDetail_20' ) start [2025-03-26 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765883', 'tblTempUsageDetail_20' ) end [2025-03-26 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765883', 'tblTempVendorCDR_20' ) start [2025-03-26 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765883', 'tblTempVendorCDR_20' ) end [2025-03-26 09:22:19] Production.INFO: ProcessCDR(1,14765883,1,1,2) [2025-03-26 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765883', 'tblTempUsageDetail_20' ) start [2025-03-26 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765883', 'tblTempUsageDetail_20' ) end [2025-03-26 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:22:25] Production.INFO: ==23878== Releasing lock... [2025-03-26 09:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:22:25] Production.INFO: 37.25 MB #Memory Used# [2025-03-26 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:23:06 [end_date_ymd] => 2025-03-26 09:23:06 [RateCDR] => 1 ) [2025-03-26 09: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-26 06:23:06' and `end` < '2025-03-26 09: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-26 09:23:18] Production.INFO: count ==1284 [2025-03-26 09:23:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:23:06 - End Time 2025-03-26 09:23:06 [2025-03-26 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765888', 'tblTempUsageDetail_20' ) start [2025-03-26 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765888', 'tblTempUsageDetail_20' ) end [2025-03-26 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765888', 'tblTempVendorCDR_20' ) start [2025-03-26 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765888', 'tblTempVendorCDR_20' ) end [2025-03-26 09:23:19] Production.INFO: ProcessCDR(1,14765888,1,1,2) [2025-03-26 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765888', 'tblTempUsageDetail_20' ) start [2025-03-26 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765888', 'tblTempUsageDetail_20' ) end [2025-03-26 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:23:24] Production.INFO: ==23953== Releasing lock... [2025-03-26 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:23:24] Production.INFO: 38 MB #Memory Used# [2025-03-26 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:24:06 [end_date_ymd] => 2025-03-26 09:24:06 [RateCDR] => 1 ) [2025-03-26 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:24:06' and `end` < '2025-03-26 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:24:18] Production.INFO: count ==1302 [2025-03-26 09:24:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:24:06 - End Time 2025-03-26 09:24:06 [2025-03-26 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765893', 'tblTempUsageDetail_20' ) start [2025-03-26 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765893', 'tblTempUsageDetail_20' ) end [2025-03-26 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765893', 'tblTempVendorCDR_20' ) start [2025-03-26 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765893', 'tblTempVendorCDR_20' ) end [2025-03-26 09:24:19] Production.INFO: ProcessCDR(1,14765893,1,1,2) [2025-03-26 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765893', 'tblTempUsageDetail_20' ) start [2025-03-26 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765893', 'tblTempUsageDetail_20' ) end [2025-03-26 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:24:24] Production.INFO: ==24026== Releasing lock... [2025-03-26 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:24:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-26 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:25:04 [end_date_ymd] => 2025-03-26 09:25:04 [RateCDR] => 1 ) [2025-03-26 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:25:04' and `end` < '2025-03-26 09:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:25:17] Production.INFO: count ==1326 [2025-03-26 09:25:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:25:04 - End Time 2025-03-26 09:25:04 [2025-03-26 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765898', 'tblTempUsageDetail_20' ) start [2025-03-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765898', 'tblTempUsageDetail_20' ) end [2025-03-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765898', 'tblTempVendorCDR_20' ) start [2025-03-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765898', 'tblTempVendorCDR_20' ) end [2025-03-26 09:25:18] Production.INFO: ProcessCDR(1,14765898,1,1,2) [2025-03-26 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765898', 'tblTempUsageDetail_20' ) start [2025-03-26 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765898', 'tblTempUsageDetail_20' ) end [2025-03-26 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:25:23] Production.INFO: ==24100== Releasing lock... [2025-03-26 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:25:23] Production.INFO: 38 MB #Memory Used# [2025-03-26 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:26:05 [end_date_ymd] => 2025-03-26 09:26:05 [RateCDR] => 1 ) [2025-03-26 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:26:05' and `end` < '2025-03-26 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:26:18] Production.INFO: count ==1340 [2025-03-26 09:26:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:26:05 - End Time 2025-03-26 09:26:05 [2025-03-26 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765903', 'tblTempUsageDetail_20' ) start [2025-03-26 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765903', 'tblTempUsageDetail_20' ) end [2025-03-26 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765903', 'tblTempVendorCDR_20' ) start [2025-03-26 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765903', 'tblTempVendorCDR_20' ) end [2025-03-26 09:26:18] Production.INFO: ProcessCDR(1,14765903,1,1,2) [2025-03-26 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765903', 'tblTempUsageDetail_20' ) start [2025-03-26 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765903', 'tblTempUsageDetail_20' ) end [2025-03-26 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:26:24] Production.INFO: ==24175== Releasing lock... [2025-03-26 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:26:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-26 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:27:05 [end_date_ymd] => 2025-03-26 09:27:05 [RateCDR] => 1 ) [2025-03-26 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:27:05' and `end` < '2025-03-26 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:27:18] Production.INFO: count ==1353 [2025-03-26 09:27:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:27:05 - End Time 2025-03-26 09:27:05 [2025-03-26 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765908', 'tblTempUsageDetail_20' ) start [2025-03-26 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765908', 'tblTempUsageDetail_20' ) end [2025-03-26 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765908', 'tblTempVendorCDR_20' ) start [2025-03-26 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765908', 'tblTempVendorCDR_20' ) end [2025-03-26 09:27:19] Production.INFO: ProcessCDR(1,14765908,1,1,2) [2025-03-26 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765908', 'tblTempUsageDetail_20' ) start [2025-03-26 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765908', 'tblTempUsageDetail_20' ) end [2025-03-26 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:27:24] Production.INFO: ==24248== Releasing lock... [2025-03-26 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:27:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-26 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:28:05 [end_date_ymd] => 2025-03-26 09:28:05 [RateCDR] => 1 ) [2025-03-26 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:28:05' and `end` < '2025-03-26 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:28:18] Production.INFO: count ==1359 [2025-03-26 09:28:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:28:05 - End Time 2025-03-26 09:28:05 [2025-03-26 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765913', 'tblTempUsageDetail_20' ) start [2025-03-26 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765913', 'tblTempUsageDetail_20' ) end [2025-03-26 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765913', 'tblTempVendorCDR_20' ) start [2025-03-26 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765913', 'tblTempVendorCDR_20' ) end [2025-03-26 09:28:19] Production.INFO: ProcessCDR(1,14765913,1,1,2) [2025-03-26 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765913', 'tblTempUsageDetail_20' ) start [2025-03-26 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765913', 'tblTempUsageDetail_20' ) end [2025-03-26 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:28:24] Production.INFO: ==24318== Releasing lock... [2025-03-26 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:28:24] Production.INFO: 38 MB #Memory Used# [2025-03-26 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:29:05 [end_date_ymd] => 2025-03-26 09:29:05 [RateCDR] => 1 ) [2025-03-26 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:29:05' and `end` < '2025-03-26 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:29:18] Production.INFO: count ==1361 [2025-03-26 09:29:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:29:05 - End Time 2025-03-26 09:29:05 [2025-03-26 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765918', 'tblTempUsageDetail_20' ) start [2025-03-26 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765918', 'tblTempUsageDetail_20' ) end [2025-03-26 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765918', 'tblTempVendorCDR_20' ) start [2025-03-26 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765918', 'tblTempVendorCDR_20' ) end [2025-03-26 09:29:18] Production.INFO: ProcessCDR(1,14765918,1,1,2) [2025-03-26 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765918', 'tblTempUsageDetail_20' ) start [2025-03-26 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765918', 'tblTempUsageDetail_20' ) end [2025-03-26 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:29:24] Production.INFO: ==24392== Releasing lock... [2025-03-26 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:29:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-26 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:30:06 [end_date_ymd] => 2025-03-26 09:30:06 [RateCDR] => 1 ) [2025-03-26 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:30:06' and `end` < '2025-03-26 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:30:18] Production.INFO: count ==1383 [2025-03-26 09:30:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:30:06 - End Time 2025-03-26 09:30:06 [2025-03-26 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765924', 'tblTempUsageDetail_20' ) start [2025-03-26 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765924', 'tblTempUsageDetail_20' ) end [2025-03-26 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765924', 'tblTempVendorCDR_20' ) start [2025-03-26 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765924', 'tblTempVendorCDR_20' ) end [2025-03-26 09:30:19] Production.INFO: ProcessCDR(1,14765924,1,1,2) [2025-03-26 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765924', 'tblTempUsageDetail_20' ) start [2025-03-26 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765924', 'tblTempUsageDetail_20' ) end [2025-03-26 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:30:23] Production.INFO: ==24466== Releasing lock... [2025-03-26 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:30:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-26 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:31:05 [end_date_ymd] => 2025-03-26 09:31:05 [RateCDR] => 1 ) [2025-03-26 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:31:05' and `end` < '2025-03-26 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:31:17] Production.INFO: count ==1459 [2025-03-26 09:31:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:31:05 - End Time 2025-03-26 09:31:05 [2025-03-26 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765929', 'tblTempUsageDetail_20' ) start [2025-03-26 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765929', 'tblTempUsageDetail_20' ) end [2025-03-26 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765929', 'tblTempVendorCDR_20' ) start [2025-03-26 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765929', 'tblTempVendorCDR_20' ) end [2025-03-26 09:31:18] Production.INFO: ProcessCDR(1,14765929,1,1,2) [2025-03-26 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765929', 'tblTempUsageDetail_20' ) start [2025-03-26 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765929', 'tblTempUsageDetail_20' ) end [2025-03-26 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:31:23] Production.INFO: ==24578== Releasing lock... [2025-03-26 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:31:23] Production.INFO: 39 MB #Memory Used# [2025-03-26 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:32:06 [end_date_ymd] => 2025-03-26 09:32:06 [RateCDR] => 1 ) [2025-03-26 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:32:06' and `end` < '2025-03-26 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:32:19] Production.INFO: count ==1497 [2025-03-26 09:32:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:32:06 - End Time 2025-03-26 09:32:06 [2025-03-26 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765934', 'tblTempUsageDetail_20' ) start [2025-03-26 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765934', 'tblTempUsageDetail_20' ) end [2025-03-26 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765934', 'tblTempVendorCDR_20' ) start [2025-03-26 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765934', 'tblTempVendorCDR_20' ) end [2025-03-26 09:32:19] Production.INFO: ProcessCDR(1,14765934,1,1,2) [2025-03-26 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765934', 'tblTempUsageDetail_20' ) start [2025-03-26 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765934', 'tblTempUsageDetail_20' ) end [2025-03-26 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:32:25] Production.INFO: ==24652== Releasing lock... [2025-03-26 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:32:25] Production.INFO: 39.5 MB #Memory Used# [2025-03-26 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:33:05 [end_date_ymd] => 2025-03-26 09:33:05 [RateCDR] => 1 ) [2025-03-26 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-26 06:33:05' and `end` < '2025-03-26 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-26 09:33:18] Production.INFO: count ==1524 [2025-03-26 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:33:05 - End Time 2025-03-26 09:33:05 [2025-03-26 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765939', 'tblTempUsageDetail_20' ) start [2025-03-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765939', 'tblTempUsageDetail_20' ) end [2025-03-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765939', 'tblTempVendorCDR_20' ) start [2025-03-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765939', 'tblTempVendorCDR_20' ) end [2025-03-26 09:33:18] Production.INFO: ProcessCDR(1,14765939,1,1,2) [2025-03-26 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765939', 'tblTempUsageDetail_20' ) start [2025-03-26 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765939', 'tblTempUsageDetail_20' ) end [2025-03-26 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:33:23] Production.INFO: ==24729== Releasing lock... [2025-03-26 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:33:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-26 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:34:05 [end_date_ymd] => 2025-03-26 09:34:05 [RateCDR] => 1 ) [2025-03-26 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:34:05' and `end` < '2025-03-26 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:34:18] Production.INFO: count ==1552 [2025-03-26 09:34:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:34:05 - End Time 2025-03-26 09:34:05 [2025-03-26 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765944', 'tblTempUsageDetail_20' ) start [2025-03-26 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765944', 'tblTempUsageDetail_20' ) end [2025-03-26 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765944', 'tblTempVendorCDR_20' ) start [2025-03-26 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765944', 'tblTempVendorCDR_20' ) end [2025-03-26 09:34:19] Production.INFO: ProcessCDR(1,14765944,1,1,2) [2025-03-26 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765944', 'tblTempUsageDetail_20' ) start [2025-03-26 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765944', 'tblTempUsageDetail_20' ) end [2025-03-26 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:34:24] Production.INFO: ==24802== Releasing lock... [2025-03-26 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:34:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-26 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:35:06 [end_date_ymd] => 2025-03-26 09:35:06 [RateCDR] => 1 ) [2025-03-26 09:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:35:06' and `end` < '2025-03-26 09:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:35:19] Production.INFO: count ==1556 [2025-03-26 09:35:20] Production.ERROR: pbx CDR StartTime 2025-03-26 06:35:06 - End Time 2025-03-26 09:35:06 [2025-03-26 09:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765949', 'tblTempUsageDetail_20' ) start [2025-03-26 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765949', 'tblTempUsageDetail_20' ) end [2025-03-26 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765949', 'tblTempVendorCDR_20' ) start [2025-03-26 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765949', 'tblTempVendorCDR_20' ) end [2025-03-26 09:35:20] Production.INFO: ProcessCDR(1,14765949,1,1,2) [2025-03-26 09:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765949', 'tblTempUsageDetail_20' ) start [2025-03-26 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765949', 'tblTempUsageDetail_20' ) end [2025-03-26 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:35:25] Production.INFO: ==24878== Releasing lock... [2025-03-26 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:35:25] Production.INFO: 39.75 MB #Memory Used# [2025-03-26 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:36:05 [end_date_ymd] => 2025-03-26 09:36:05 [RateCDR] => 1 ) [2025-03-26 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:36:05' and `end` < '2025-03-26 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:36:18] Production.INFO: count ==1564 [2025-03-26 09:36:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:36:05 - End Time 2025-03-26 09:36:05 [2025-03-26 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765954', 'tblTempUsageDetail_20' ) start [2025-03-26 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765954', 'tblTempUsageDetail_20' ) end [2025-03-26 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765954', 'tblTempVendorCDR_20' ) start [2025-03-26 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765954', 'tblTempVendorCDR_20' ) end [2025-03-26 09:36:18] Production.INFO: ProcessCDR(1,14765954,1,1,2) [2025-03-26 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765954', 'tblTempUsageDetail_20' ) start [2025-03-26 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765954', 'tblTempUsageDetail_20' ) end [2025-03-26 09:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:36:23] Production.INFO: ==24950== Releasing lock... [2025-03-26 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:36:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-26 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:37:06 [end_date_ymd] => 2025-03-26 09:37:06 [RateCDR] => 1 ) [2025-03-26 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-26 06:37:06' and `end` < '2025-03-26 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-26 09:37:19] Production.INFO: count ==1592 [2025-03-26 09:37:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:37:06 - End Time 2025-03-26 09:37:06 [2025-03-26 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765959', 'tblTempUsageDetail_20' ) start [2025-03-26 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765959', 'tblTempUsageDetail_20' ) end [2025-03-26 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765959', 'tblTempVendorCDR_20' ) start [2025-03-26 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765959', 'tblTempVendorCDR_20' ) end [2025-03-26 09:37:19] Production.INFO: ProcessCDR(1,14765959,1,1,2) [2025-03-26 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765959', 'tblTempUsageDetail_20' ) start [2025-03-26 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765959', 'tblTempUsageDetail_20' ) end [2025-03-26 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:37:24] Production.INFO: ==25022== Releasing lock... [2025-03-26 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:37:24] Production.INFO: 40 MB #Memory Used# [2025-03-26 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:38:05 [end_date_ymd] => 2025-03-26 09:38:05 [RateCDR] => 1 ) [2025-03-26 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:38:05' and `end` < '2025-03-26 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:38:18] Production.INFO: count ==1602 [2025-03-26 09:38:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:38:05 - End Time 2025-03-26 09:38:05 [2025-03-26 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765964', 'tblTempUsageDetail_20' ) start [2025-03-26 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765964', 'tblTempUsageDetail_20' ) end [2025-03-26 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765964', 'tblTempVendorCDR_20' ) start [2025-03-26 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765964', 'tblTempVendorCDR_20' ) end [2025-03-26 09:38:19] Production.INFO: ProcessCDR(1,14765964,1,1,2) [2025-03-26 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765964', 'tblTempUsageDetail_20' ) start [2025-03-26 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765964', 'tblTempUsageDetail_20' ) end [2025-03-26 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:38:25] Production.INFO: ==25096== Releasing lock... [2025-03-26 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:38:25] Production.INFO: 40 MB #Memory Used# [2025-03-26 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:39:05 [end_date_ymd] => 2025-03-26 09:39:05 [RateCDR] => 1 ) [2025-03-26 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:39:05' and `end` < '2025-03-26 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:39:18] Production.INFO: count ==1622 [2025-03-26 09:39:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:39:05 - End Time 2025-03-26 09:39:05 [2025-03-26 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765969', 'tblTempUsageDetail_20' ) start [2025-03-26 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765969', 'tblTempUsageDetail_20' ) end [2025-03-26 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765969', 'tblTempVendorCDR_20' ) start [2025-03-26 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765969', 'tblTempVendorCDR_20' ) end [2025-03-26 09:39:19] Production.INFO: ProcessCDR(1,14765969,1,1,2) [2025-03-26 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765969', 'tblTempUsageDetail_20' ) start [2025-03-26 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765969', 'tblTempUsageDetail_20' ) end [2025-03-26 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:39:24] Production.INFO: ==25166== Releasing lock... [2025-03-26 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:39:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-26 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:40:06 [end_date_ymd] => 2025-03-26 09:40:06 [RateCDR] => 1 ) [2025-03-26 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:40:06' and `end` < '2025-03-26 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:40:19] Production.INFO: count ==1667 [2025-03-26 09:40:20] Production.ERROR: pbx CDR StartTime 2025-03-26 06:40:06 - End Time 2025-03-26 09:40:06 [2025-03-26 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765975', 'tblTempUsageDetail_20' ) start [2025-03-26 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765975', 'tblTempUsageDetail_20' ) end [2025-03-26 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765975', 'tblTempVendorCDR_20' ) start [2025-03-26 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765975', 'tblTempVendorCDR_20' ) end [2025-03-26 09:40:20] Production.INFO: ProcessCDR(1,14765975,1,1,2) [2025-03-26 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765975', 'tblTempUsageDetail_20' ) start [2025-03-26 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765975', 'tblTempUsageDetail_20' ) end [2025-03-26 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:40:26] Production.INFO: ==25241== Releasing lock... [2025-03-26 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:40:26] Production.INFO: 40.5 MB #Memory Used# [2025-03-26 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:41:05 [end_date_ymd] => 2025-03-26 09:41:05 [RateCDR] => 1 ) [2025-03-26 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:41:05' and `end` < '2025-03-26 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-26 09:41:18] Production.INFO: count ==1757 [2025-03-26 09:41:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:41:05 - End Time 2025-03-26 09:41:05 [2025-03-26 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765980', 'tblTempUsageDetail_20' ) start [2025-03-26 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765980', 'tblTempUsageDetail_20' ) end [2025-03-26 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765980', 'tblTempVendorCDR_20' ) start [2025-03-26 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765980', 'tblTempVendorCDR_20' ) end [2025-03-26 09:41:19] Production.INFO: ProcessCDR(1,14765980,1,1,2) [2025-03-26 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765980', 'tblTempUsageDetail_20' ) start [2025-03-26 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765980', 'tblTempUsageDetail_20' ) end [2025-03-26 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:41:24] Production.INFO: ==25317== Releasing lock... [2025-03-26 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:41:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-26 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:42:06 [end_date_ymd] => 2025-03-26 09:42:06 [RateCDR] => 1 ) [2025-03-26 09:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:42:06' and `end` < '2025-03-26 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-26 09:42:18] Production.INFO: count ==1760 [2025-03-26 09:42:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:42:06 - End Time 2025-03-26 09:42:06 [2025-03-26 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765985', 'tblTempUsageDetail_20' ) start [2025-03-26 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765985', 'tblTempUsageDetail_20' ) end [2025-03-26 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765985', 'tblTempVendorCDR_20' ) start [2025-03-26 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765985', 'tblTempVendorCDR_20' ) end [2025-03-26 09:42:19] Production.INFO: ProcessCDR(1,14765985,1,1,2) [2025-03-26 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765985', 'tblTempUsageDetail_20' ) start [2025-03-26 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765985', 'tblTempUsageDetail_20' ) end [2025-03-26 09:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:42:25] Production.INFO: ==25387== Releasing lock... [2025-03-26 09:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:42:25] Production.INFO: 41.25 MB #Memory Used# [2025-03-26 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:43:05 [end_date_ymd] => 2025-03-26 09:43:05 [RateCDR] => 1 ) [2025-03-26 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:43:05' and `end` < '2025-03-26 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:43:18] Production.INFO: count ==1774 [2025-03-26 09:43:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:43:05 - End Time 2025-03-26 09:43:05 [2025-03-26 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765990', 'tblTempUsageDetail_20' ) start [2025-03-26 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765990', 'tblTempUsageDetail_20' ) end [2025-03-26 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765990', 'tblTempVendorCDR_20' ) start [2025-03-26 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765990', 'tblTempVendorCDR_20' ) end [2025-03-26 09:43:19] Production.INFO: ProcessCDR(1,14765990,1,1,2) [2025-03-26 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765990', 'tblTempUsageDetail_20' ) start [2025-03-26 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765990', 'tblTempUsageDetail_20' ) end [2025-03-26 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:43:24] Production.INFO: ==25460== Releasing lock... [2025-03-26 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:43:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-26 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:44:05 [end_date_ymd] => 2025-03-26 09:44:05 [RateCDR] => 1 ) [2025-03-26 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-26 06:44:05' and `end` < '2025-03-26 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-26 09:44:18] Production.INFO: count ==1793 [2025-03-26 09:44:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:44:05 - End Time 2025-03-26 09:44:05 [2025-03-26 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765995', 'tblTempUsageDetail_20' ) start [2025-03-26 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14765995', 'tblTempUsageDetail_20' ) end [2025-03-26 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765995', 'tblTempVendorCDR_20' ) start [2025-03-26 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14765995', 'tblTempVendorCDR_20' ) end [2025-03-26 09:44:19] Production.INFO: ProcessCDR(1,14765995,1,1,2) [2025-03-26 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14765995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14765995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14765995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14765995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765995', 'tblTempUsageDetail_20' ) start [2025-03-26 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14765995', 'tblTempUsageDetail_20' ) end [2025-03-26 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:44:24] Production.INFO: ==25529== Releasing lock... [2025-03-26 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:44:24] Production.INFO: 42 MB #Memory Used# [2025-03-26 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:45:05 [end_date_ymd] => 2025-03-26 09:45:05 [RateCDR] => 1 ) [2025-03-26 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-26 06:45:05' and `end` < '2025-03-26 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-26 09:45:18] Production.INFO: count ==1801 [2025-03-26 09:45:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:45:05 - End Time 2025-03-26 09:45:05 [2025-03-26 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766000', 'tblTempUsageDetail_20' ) start [2025-03-26 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766000', 'tblTempUsageDetail_20' ) end [2025-03-26 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766000', 'tblTempVendorCDR_20' ) start [2025-03-26 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766000', 'tblTempVendorCDR_20' ) end [2025-03-26 09:45:19] Production.INFO: ProcessCDR(1,14766000,1,1,2) [2025-03-26 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766000', 'tblTempUsageDetail_20' ) start [2025-03-26 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766000', 'tblTempUsageDetail_20' ) end [2025-03-26 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:45:24] Production.INFO: ==25608== Releasing lock... [2025-03-26 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:45:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-26 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:46:05 [end_date_ymd] => 2025-03-26 09:46:05 [RateCDR] => 1 ) [2025-03-26 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-26 06:46:05' and `end` < '2025-03-26 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-26 09:46:18] Production.INFO: count ==1809 [2025-03-26 09:46:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:46:05 - End Time 2025-03-26 09:46:05 [2025-03-26 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766005', 'tblTempUsageDetail_20' ) start [2025-03-26 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766005', 'tblTempUsageDetail_20' ) end [2025-03-26 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766005', 'tblTempVendorCDR_20' ) start [2025-03-26 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766005', 'tblTempVendorCDR_20' ) end [2025-03-26 09:46:19] Production.INFO: ProcessCDR(1,14766005,1,1,2) [2025-03-26 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766005', 'tblTempUsageDetail_20' ) start [2025-03-26 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766005', 'tblTempUsageDetail_20' ) end [2025-03-26 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:46:24] Production.INFO: ==25719== Releasing lock... [2025-03-26 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:46:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-26 09:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:47:04 [end_date_ymd] => 2025-03-26 09:47:04 [RateCDR] => 1 ) [2025-03-26 09:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:47:04' and `end` < '2025-03-26 09:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:47:17] Production.INFO: count ==1836 [2025-03-26 09:47:18] Production.ERROR: pbx CDR StartTime 2025-03-26 06:47:04 - End Time 2025-03-26 09:47:04 [2025-03-26 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766010', 'tblTempUsageDetail_20' ) start [2025-03-26 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766010', 'tblTempUsageDetail_20' ) end [2025-03-26 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766010', 'tblTempVendorCDR_20' ) start [2025-03-26 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766010', 'tblTempVendorCDR_20' ) end [2025-03-26 09:47:18] Production.INFO: ProcessCDR(1,14766010,1,1,2) [2025-03-26 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766010', 'tblTempUsageDetail_20' ) start [2025-03-26 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766010', 'tblTempUsageDetail_20' ) end [2025-03-26 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:47:23] Production.INFO: ==25794== Releasing lock... [2025-03-26 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:47:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-26 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:48:05 [end_date_ymd] => 2025-03-26 09:48:05 [RateCDR] => 1 ) [2025-03-26 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-26 06:48:05' and `end` < '2025-03-26 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-26 09:48:18] Production.INFO: count ==1849 [2025-03-26 09:48:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:48:05 - End Time 2025-03-26 09:48:05 [2025-03-26 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766015', 'tblTempUsageDetail_20' ) start [2025-03-26 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766015', 'tblTempUsageDetail_20' ) end [2025-03-26 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766015', 'tblTempVendorCDR_20' ) start [2025-03-26 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766015', 'tblTempVendorCDR_20' ) end [2025-03-26 09:48:19] Production.INFO: ProcessCDR(1,14766015,1,1,2) [2025-03-26 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766015', 'tblTempUsageDetail_20' ) start [2025-03-26 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766015', 'tblTempUsageDetail_20' ) end [2025-03-26 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:48:24] Production.INFO: ==25867== Releasing lock... [2025-03-26 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:48:24] Production.INFO: 42 MB #Memory Used# [2025-03-26 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:49:05 [end_date_ymd] => 2025-03-26 09:49:05 [RateCDR] => 1 ) [2025-03-26 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:49:05' and `end` < '2025-03-26 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:49:18] Production.INFO: count ==1855 [2025-03-26 09:49:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:49:05 - End Time 2025-03-26 09:49:05 [2025-03-26 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766020', 'tblTempUsageDetail_20' ) start [2025-03-26 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766020', 'tblTempUsageDetail_20' ) end [2025-03-26 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766020', 'tblTempVendorCDR_20' ) start [2025-03-26 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766020', 'tblTempVendorCDR_20' ) end [2025-03-26 09:49:19] Production.INFO: ProcessCDR(1,14766020,1,1,2) [2025-03-26 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766020', 'tblTempUsageDetail_20' ) start [2025-03-26 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766020', 'tblTempUsageDetail_20' ) end [2025-03-26 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:49:24] Production.INFO: ==25944== Releasing lock... [2025-03-26 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:49:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-26 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:50:06 [end_date_ymd] => 2025-03-26 09:50:06 [RateCDR] => 1 ) [2025-03-26 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:50:06' and `end` < '2025-03-26 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:50:19] Production.INFO: count ==1882 [2025-03-26 09:50:20] Production.ERROR: pbx CDR StartTime 2025-03-26 06:50:06 - End Time 2025-03-26 09:50:06 [2025-03-26 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766026', 'tblTempUsageDetail_20' ) start [2025-03-26 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766026', 'tblTempUsageDetail_20' ) end [2025-03-26 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766026', 'tblTempVendorCDR_20' ) start [2025-03-26 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766026', 'tblTempVendorCDR_20' ) end [2025-03-26 09:50:20] Production.INFO: ProcessCDR(1,14766026,1,1,2) [2025-03-26 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766026', 'tblTempUsageDetail_20' ) start [2025-03-26 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766026', 'tblTempUsageDetail_20' ) end [2025-03-26 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:50:25] Production.INFO: ==26016== Releasing lock... [2025-03-26 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:50:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-26 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:51:06 [end_date_ymd] => 2025-03-26 09:51:06 [RateCDR] => 1 ) [2025-03-26 09:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:51:06' and `end` < '2025-03-26 09:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:51:19] Production.INFO: count ==2025 [2025-03-26 09:51:20] Production.ERROR: pbx CDR StartTime 2025-03-26 06:51:06 - End Time 2025-03-26 09:51:06 [2025-03-26 09:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766031', 'tblTempUsageDetail_20' ) start [2025-03-26 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766031', 'tblTempUsageDetail_20' ) end [2025-03-26 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766031', 'tblTempVendorCDR_20' ) start [2025-03-26 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766031', 'tblTempVendorCDR_20' ) end [2025-03-26 09:51:20] Production.INFO: ProcessCDR(1,14766031,1,1,2) [2025-03-26 09:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766031', 'tblTempUsageDetail_20' ) start [2025-03-26 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766031', 'tblTempUsageDetail_20' ) end [2025-03-26 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:51:25] Production.INFO: ==26089== Releasing lock... [2025-03-26 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:51:25] Production.INFO: 43.5 MB #Memory Used# [2025-03-26 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:52:05 [end_date_ymd] => 2025-03-26 09:52:05 [RateCDR] => 1 ) [2025-03-26 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:52:05' and `end` < '2025-03-26 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:52:18] Production.INFO: count ==2052 [2025-03-26 09:52:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:52:05 - End Time 2025-03-26 09:52:05 [2025-03-26 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766036', 'tblTempUsageDetail_20' ) start [2025-03-26 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766036', 'tblTempUsageDetail_20' ) end [2025-03-26 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766036', 'tblTempVendorCDR_20' ) start [2025-03-26 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766036', 'tblTempVendorCDR_20' ) end [2025-03-26 09:52:19] Production.INFO: ProcessCDR(1,14766036,1,1,2) [2025-03-26 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766036', 'tblTempUsageDetail_20' ) start [2025-03-26 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766036', 'tblTempUsageDetail_20' ) end [2025-03-26 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:52:24] Production.INFO: ==26163== Releasing lock... [2025-03-26 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:52:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-26 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:53:06 [end_date_ymd] => 2025-03-26 09:53:06 [RateCDR] => 1 ) [2025-03-26 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-26 06:53:06' and `end` < '2025-03-26 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-26 09:53:19] Production.INFO: count ==2069 [2025-03-26 09:53:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:53:06 - End Time 2025-03-26 09:53:06 [2025-03-26 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766041', 'tblTempUsageDetail_20' ) start [2025-03-26 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766041', 'tblTempUsageDetail_20' ) end [2025-03-26 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766041', 'tblTempVendorCDR_20' ) start [2025-03-26 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766041', 'tblTempVendorCDR_20' ) end [2025-03-26 09:53:19] Production.INFO: ProcessCDR(1,14766041,1,1,2) [2025-03-26 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766041', 'tblTempUsageDetail_20' ) start [2025-03-26 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766041', 'tblTempUsageDetail_20' ) end [2025-03-26 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:53:25] Production.INFO: ==26234== Releasing lock... [2025-03-26 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:53:25] Production.INFO: 43.5 MB #Memory Used# [2025-03-26 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:54:05 [end_date_ymd] => 2025-03-26 09:54:05 [RateCDR] => 1 ) [2025-03-26 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-26 06:54:05' and `end` < '2025-03-26 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-26 09:54:18] Production.INFO: count ==2076 [2025-03-26 09:54:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:54:05 - End Time 2025-03-26 09:54:05 [2025-03-26 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766046', 'tblTempUsageDetail_20' ) start [2025-03-26 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766046', 'tblTempUsageDetail_20' ) end [2025-03-26 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766046', 'tblTempVendorCDR_20' ) start [2025-03-26 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766046', 'tblTempVendorCDR_20' ) end [2025-03-26 09:54:19] Production.INFO: ProcessCDR(1,14766046,1,1,2) [2025-03-26 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766046', 'tblTempUsageDetail_20' ) start [2025-03-26 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766046', 'tblTempUsageDetail_20' ) end [2025-03-26 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:54:24] Production.INFO: ==26305== Releasing lock... [2025-03-26 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:54:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-26 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:55:06 [end_date_ymd] => 2025-03-26 09:55:06 [RateCDR] => 1 ) [2025-03-26 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-26 06:55:06' and `end` < '2025-03-26 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-26 09:55:19] Production.INFO: count ==2100 [2025-03-26 09:55:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:55:06 - End Time 2025-03-26 09:55:06 [2025-03-26 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766051', 'tblTempUsageDetail_20' ) start [2025-03-26 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766051', 'tblTempUsageDetail_20' ) end [2025-03-26 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766051', 'tblTempVendorCDR_20' ) start [2025-03-26 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766051', 'tblTempVendorCDR_20' ) end [2025-03-26 09:55:19] Production.INFO: ProcessCDR(1,14766051,1,1,2) [2025-03-26 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766051', 'tblTempUsageDetail_20' ) start [2025-03-26 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766051', 'tblTempUsageDetail_20' ) end [2025-03-26 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:55:25] Production.INFO: ==26378== Releasing lock... [2025-03-26 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:55:25] Production.INFO: 44 MB #Memory Used# [2025-03-26 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:56:05 [end_date_ymd] => 2025-03-26 09:56:05 [RateCDR] => 1 ) [2025-03-26 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:56:05' and `end` < '2025-03-26 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:56:18] Production.INFO: count ==2124 [2025-03-26 09:56:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:56:05 - End Time 2025-03-26 09:56:05 [2025-03-26 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766056', 'tblTempUsageDetail_20' ) start [2025-03-26 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766056', 'tblTempUsageDetail_20' ) end [2025-03-26 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766056', 'tblTempVendorCDR_20' ) start [2025-03-26 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766056', 'tblTempVendorCDR_20' ) end [2025-03-26 09:56:19] Production.INFO: ProcessCDR(1,14766056,1,1,2) [2025-03-26 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766056', 'tblTempUsageDetail_20' ) start [2025-03-26 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766056', 'tblTempUsageDetail_20' ) end [2025-03-26 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:56:24] Production.INFO: ==26451== Releasing lock... [2025-03-26 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:56:24] Production.INFO: 44 MB #Memory Used# [2025-03-26 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:57:05 [end_date_ymd] => 2025-03-26 09:57:05 [RateCDR] => 1 ) [2025-03-26 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:57:05' and `end` < '2025-03-26 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:57:18] Production.INFO: count ==2141 [2025-03-26 09:57:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:57:05 - End Time 2025-03-26 09:57:05 [2025-03-26 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766061', 'tblTempUsageDetail_20' ) start [2025-03-26 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766061', 'tblTempUsageDetail_20' ) end [2025-03-26 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766061', 'tblTempVendorCDR_20' ) start [2025-03-26 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766061', 'tblTempVendorCDR_20' ) end [2025-03-26 09:57:19] Production.INFO: ProcessCDR(1,14766061,1,1,2) [2025-03-26 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766061', 'tblTempUsageDetail_20' ) start [2025-03-26 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766061', 'tblTempUsageDetail_20' ) end [2025-03-26 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:57:24] Production.INFO: ==26525== Releasing lock... [2025-03-26 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:57:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-26 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:58:05 [end_date_ymd] => 2025-03-26 09:58:05 [RateCDR] => 1 ) [2025-03-26 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:58:05' and `end` < '2025-03-26 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:58:18] Production.INFO: count ==2144 [2025-03-26 09:58:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:58:05 - End Time 2025-03-26 09:58:05 [2025-03-26 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766066', 'tblTempUsageDetail_20' ) start [2025-03-26 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766066', 'tblTempUsageDetail_20' ) end [2025-03-26 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766066', 'tblTempVendorCDR_20' ) start [2025-03-26 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766066', 'tblTempVendorCDR_20' ) end [2025-03-26 09:58:19] Production.INFO: ProcessCDR(1,14766066,1,1,2) [2025-03-26 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766066', 'tblTempUsageDetail_20' ) start [2025-03-26 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766066', 'tblTempUsageDetail_20' ) end [2025-03-26 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:58:24] Production.INFO: ==26595== Releasing lock... [2025-03-26 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:58:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-26 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 06:59:05 [end_date_ymd] => 2025-03-26 09:59:05 [RateCDR] => 1 ) [2025-03-26 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 06:59:05' and `end` < '2025-03-26 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 09:59:19] Production.INFO: count ==2168 [2025-03-26 09:59:19] Production.ERROR: pbx CDR StartTime 2025-03-26 06:59:05 - End Time 2025-03-26 09:59:05 [2025-03-26 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766071', 'tblTempUsageDetail_20' ) start [2025-03-26 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766071', 'tblTempUsageDetail_20' ) end [2025-03-26 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766071', 'tblTempVendorCDR_20' ) start [2025-03-26 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766071', 'tblTempVendorCDR_20' ) end [2025-03-26 09:59:20] Production.INFO: ProcessCDR(1,14766071,1,1,2) [2025-03-26 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766071', 'tblTempUsageDetail_20' ) start [2025-03-26 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766071', 'tblTempUsageDetail_20' ) end [2025-03-26 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 09:59:25] Production.INFO: ==26678== Releasing lock... [2025-03-26 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 09:59:25] Production.INFO: 44.25 MB #Memory Used# [2025-03-26 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:00:05 [end_date_ymd] => 2025-03-26 10:00:05 [RateCDR] => 1 ) [2025-03-26 10: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-26 07:00:05' and `end` < '2025-03-26 10: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-26 10:00:19] Production.INFO: count ==2194 [2025-03-26 10:00:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:00:05 - End Time 2025-03-26 10:00:05 [2025-03-26 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766077', 'tblTempUsageDetail_20' ) start [2025-03-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766077', 'tblTempUsageDetail_20' ) end [2025-03-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766077', 'tblTempVendorCDR_20' ) start [2025-03-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766077', 'tblTempVendorCDR_20' ) end [2025-03-26 10:00:19] Production.INFO: ProcessCDR(1,14766077,1,1,2) [2025-03-26 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766077', 'tblTempUsageDetail_20' ) start [2025-03-26 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766077', 'tblTempUsageDetail_20' ) end [2025-03-26 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:00:24] Production.INFO: ==26749== Releasing lock... [2025-03-26 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:00:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-26 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:01:06 [end_date_ymd] => 2025-03-26 10:01:06 [RateCDR] => 1 ) [2025-03-26 10: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-26 07:01:06' and `end` < '2025-03-26 10: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-26 10:01:19] Production.INFO: count ==2321 [2025-03-26 10:01:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:01:06 - End Time 2025-03-26 10:01:06 [2025-03-26 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766082', 'tblTempUsageDetail_20' ) start [2025-03-26 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766082', 'tblTempUsageDetail_20' ) end [2025-03-26 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766082', 'tblTempVendorCDR_20' ) start [2025-03-26 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766082', 'tblTempVendorCDR_20' ) end [2025-03-26 10:01:20] Production.INFO: ProcessCDR(1,14766082,1,1,2) [2025-03-26 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766082', 'tblTempUsageDetail_20' ) start [2025-03-26 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766082', 'tblTempUsageDetail_20' ) end [2025-03-26 10:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:01:26] Production.INFO: ==26876== Releasing lock... [2025-03-26 10:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:01:26] Production.INFO: 45.5 MB #Memory Used# [2025-03-26 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:02:05 [end_date_ymd] => 2025-03-26 10:02:05 [RateCDR] => 1 ) [2025-03-26 10: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-26 07:02:05' and `end` < '2025-03-26 10: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-26 10:02:18] Production.INFO: count ==2335 [2025-03-26 10:02:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:02:05 - End Time 2025-03-26 10:02:05 [2025-03-26 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766087', 'tblTempUsageDetail_20' ) start [2025-03-26 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766087', 'tblTempUsageDetail_20' ) end [2025-03-26 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766087', 'tblTempVendorCDR_20' ) start [2025-03-26 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766087', 'tblTempVendorCDR_20' ) end [2025-03-26 10:02:19] Production.INFO: ProcessCDR(1,14766087,1,1,2) [2025-03-26 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766087', 'tblTempUsageDetail_20' ) start [2025-03-26 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766087', 'tblTempUsageDetail_20' ) end [2025-03-26 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:02:24] Production.INFO: ==26951== Releasing lock... [2025-03-26 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:02:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-26 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:03:05 [end_date_ymd] => 2025-03-26 10:03:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:03:05' and `end` < '2025-03-26 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-26 10:03:18] Production.INFO: count ==2375 [2025-03-26 10:03:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:03:05 - End Time 2025-03-26 10:03:05 [2025-03-26 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766092', 'tblTempUsageDetail_20' ) start [2025-03-26 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766092', 'tblTempUsageDetail_20' ) end [2025-03-26 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766092', 'tblTempVendorCDR_20' ) start [2025-03-26 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766092', 'tblTempVendorCDR_20' ) end [2025-03-26 10:03:19] Production.INFO: ProcessCDR(1,14766092,1,1,2) [2025-03-26 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766092', 'tblTempUsageDetail_20' ) start [2025-03-26 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766092', 'tblTempUsageDetail_20' ) end [2025-03-26 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:03:25] Production.INFO: ==27022== Releasing lock... [2025-03-26 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:03:25] Production.INFO: 45.75 MB #Memory Used# [2025-03-26 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:04:05 [end_date_ymd] => 2025-03-26 10:04:05 [RateCDR] => 1 ) [2025-03-26 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:04:05' and `end` < '2025-03-26 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-26 10:04:18] Production.INFO: count ==2389 [2025-03-26 10:04:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:04:05 - End Time 2025-03-26 10:04:05 [2025-03-26 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766097', 'tblTempUsageDetail_20' ) start [2025-03-26 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766097', 'tblTempUsageDetail_20' ) end [2025-03-26 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766097', 'tblTempVendorCDR_20' ) start [2025-03-26 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766097', 'tblTempVendorCDR_20' ) end [2025-03-26 10:04:19] Production.INFO: ProcessCDR(1,14766097,1,1,2) [2025-03-26 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766097', 'tblTempUsageDetail_20' ) start [2025-03-26 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766097', 'tblTempUsageDetail_20' ) end [2025-03-26 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:04:24] Production.INFO: ==27100== Releasing lock... [2025-03-26 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:04:24] Production.INFO: 46 MB #Memory Used# [2025-03-26 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:05:05 [end_date_ymd] => 2025-03-26 10:05:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:05:05' and `end` < '2025-03-26 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-26 10:05:18] Production.INFO: count ==2403 [2025-03-26 10:05:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:05:05 - End Time 2025-03-26 10:05:05 [2025-03-26 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766102', 'tblTempUsageDetail_20' ) start [2025-03-26 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766102', 'tblTempUsageDetail_20' ) end [2025-03-26 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766102', 'tblTempVendorCDR_20' ) start [2025-03-26 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766102', 'tblTempVendorCDR_20' ) end [2025-03-26 10:05:19] Production.INFO: ProcessCDR(1,14766102,1,1,2) [2025-03-26 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766102', 'tblTempUsageDetail_20' ) start [2025-03-26 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766102', 'tblTempUsageDetail_20' ) end [2025-03-26 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:05:24] Production.INFO: ==27173== Releasing lock... [2025-03-26 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:05:24] Production.INFO: 46 MB #Memory Used# [2025-03-26 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:06:05 [end_date_ymd] => 2025-03-26 10:06:05 [RateCDR] => 1 ) [2025-03-26 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:06:05' and `end` < '2025-03-26 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:06:18] Production.INFO: count ==2430 [2025-03-26 10:06:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:06:05 - End Time 2025-03-26 10:06:05 [2025-03-26 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766107', 'tblTempUsageDetail_20' ) start [2025-03-26 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766107', 'tblTempUsageDetail_20' ) end [2025-03-26 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766107', 'tblTempVendorCDR_20' ) start [2025-03-26 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766107', 'tblTempVendorCDR_20' ) end [2025-03-26 10:06:19] Production.INFO: ProcessCDR(1,14766107,1,1,2) [2025-03-26 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766107', 'tblTempUsageDetail_20' ) start [2025-03-26 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766107', 'tblTempUsageDetail_20' ) end [2025-03-26 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:06:24] Production.INFO: ==27244== Releasing lock... [2025-03-26 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:06:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-26 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:07:05 [end_date_ymd] => 2025-03-26 10:07:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:07:05' and `end` < '2025-03-26 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-26 10:07:18] Production.INFO: count ==2450 [2025-03-26 10:07:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:07:05 - End Time 2025-03-26 10:07:05 [2025-03-26 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766112', 'tblTempUsageDetail_20' ) start [2025-03-26 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766112', 'tblTempUsageDetail_20' ) end [2025-03-26 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766112', 'tblTempVendorCDR_20' ) start [2025-03-26 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766112', 'tblTempVendorCDR_20' ) end [2025-03-26 10:07:19] Production.INFO: ProcessCDR(1,14766112,1,1,2) [2025-03-26 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766112', 'tblTempUsageDetail_20' ) start [2025-03-26 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766112', 'tblTempUsageDetail_20' ) end [2025-03-26 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:07:25] Production.INFO: ==27318== Releasing lock... [2025-03-26 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:07:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-26 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:08:05 [end_date_ymd] => 2025-03-26 10:08:05 [RateCDR] => 1 ) [2025-03-26 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:08:05' and `end` < '2025-03-26 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:08:18] Production.INFO: count ==2475 [2025-03-26 10:08:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:08:05 - End Time 2025-03-26 10:08:05 [2025-03-26 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766117', 'tblTempUsageDetail_20' ) start [2025-03-26 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766117', 'tblTempUsageDetail_20' ) end [2025-03-26 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766117', 'tblTempVendorCDR_20' ) start [2025-03-26 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766117', 'tblTempVendorCDR_20' ) end [2025-03-26 10:08:19] Production.INFO: ProcessCDR(1,14766117,1,1,2) [2025-03-26 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766117', 'tblTempUsageDetail_20' ) start [2025-03-26 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766117', 'tblTempUsageDetail_20' ) end [2025-03-26 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:08:24] Production.INFO: ==27390== Releasing lock... [2025-03-26 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:08:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-26 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:09:05 [end_date_ymd] => 2025-03-26 10:09:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:09:05' and `end` < '2025-03-26 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-26 10:09:18] Production.INFO: count ==2493 [2025-03-26 10:09:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:09:05 - End Time 2025-03-26 10:09:05 [2025-03-26 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766122', 'tblTempUsageDetail_20' ) start [2025-03-26 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766122', 'tblTempUsageDetail_20' ) end [2025-03-26 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766122', 'tblTempVendorCDR_20' ) start [2025-03-26 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766122', 'tblTempVendorCDR_20' ) end [2025-03-26 10:09:19] Production.INFO: ProcessCDR(1,14766122,1,1,2) [2025-03-26 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766122', 'tblTempUsageDetail_20' ) start [2025-03-26 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766122', 'tblTempUsageDetail_20' ) end [2025-03-26 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:09:24] Production.INFO: ==27462== Releasing lock... [2025-03-26 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:09:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-26 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:10:06 [end_date_ymd] => 2025-03-26 10:10:06 [RateCDR] => 1 ) [2025-03-26 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:10:06' and `end` < '2025-03-26 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:10:19] Production.INFO: count ==2524 [2025-03-26 10:10:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:10:06 - End Time 2025-03-26 10:10:06 [2025-03-26 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766128', 'tblTempUsageDetail_20' ) start [2025-03-26 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766128', 'tblTempUsageDetail_20' ) end [2025-03-26 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766128', 'tblTempVendorCDR_20' ) start [2025-03-26 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766128', 'tblTempVendorCDR_20' ) end [2025-03-26 10:10:20] Production.INFO: ProcessCDR(1,14766128,1,1,2) [2025-03-26 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766128', 'tblTempUsageDetail_20' ) start [2025-03-26 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766128', 'tblTempUsageDetail_20' ) end [2025-03-26 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:10:25] Production.INFO: ==27536== Releasing lock... [2025-03-26 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:10:25] Production.INFO: 47 MB #Memory Used# [2025-03-26 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:11:05 [end_date_ymd] => 2025-03-26 10:11:05 [RateCDR] => 1 ) [2025-03-26 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:11:05' and `end` < '2025-03-26 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:11:19] Production.INFO: count ==2625 [2025-03-26 10:11:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:11:05 - End Time 2025-03-26 10:11:05 [2025-03-26 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766133', 'tblTempUsageDetail_20' ) start [2025-03-26 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766133', 'tblTempUsageDetail_20' ) end [2025-03-26 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766133', 'tblTempVendorCDR_20' ) start [2025-03-26 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766133', 'tblTempVendorCDR_20' ) end [2025-03-26 10:11:20] Production.INFO: ProcessCDR(1,14766133,1,1,2) [2025-03-26 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766133', 'tblTempUsageDetail_20' ) start [2025-03-26 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766133', 'tblTempUsageDetail_20' ) end [2025-03-26 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:11:25] Production.INFO: ==27614== Releasing lock... [2025-03-26 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:11:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-26 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:12:06 [end_date_ymd] => 2025-03-26 10:12:06 [RateCDR] => 1 ) [2025-03-26 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-26 07:12:06' and `end` < '2025-03-26 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-26 10:12:19] Production.INFO: count ==2624 [2025-03-26 10:12:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:12:06 - End Time 2025-03-26 10:12:06 [2025-03-26 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766138', 'tblTempUsageDetail_20' ) start [2025-03-26 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766138', 'tblTempUsageDetail_20' ) end [2025-03-26 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766138', 'tblTempVendorCDR_20' ) start [2025-03-26 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766138', 'tblTempVendorCDR_20' ) end [2025-03-26 10:12:20] Production.INFO: ProcessCDR(1,14766138,1,1,2) [2025-03-26 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766138', 'tblTempUsageDetail_20' ) start [2025-03-26 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766138', 'tblTempUsageDetail_20' ) end [2025-03-26 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:12:25] Production.INFO: ==27685== Releasing lock... [2025-03-26 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:12:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-26 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:13:05 [end_date_ymd] => 2025-03-26 10:13:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:13:05' and `end` < '2025-03-26 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-26 10:13:18] Production.INFO: count ==2661 [2025-03-26 10:13:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:13:05 - End Time 2025-03-26 10:13:05 [2025-03-26 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766143', 'tblTempUsageDetail_20' ) start [2025-03-26 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766143', 'tblTempUsageDetail_20' ) end [2025-03-26 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766143', 'tblTempVendorCDR_20' ) start [2025-03-26 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766143', 'tblTempVendorCDR_20' ) end [2025-03-26 10:13:19] Production.INFO: ProcessCDR(1,14766143,1,1,2) [2025-03-26 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766143', 'tblTempUsageDetail_20' ) start [2025-03-26 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766143', 'tblTempUsageDetail_20' ) end [2025-03-26 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:13:24] Production.INFO: ==27757== Releasing lock... [2025-03-26 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:13:24] Production.INFO: 48 MB #Memory Used# [2025-03-26 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:14:05 [end_date_ymd] => 2025-03-26 10:14:05 [RateCDR] => 1 ) [2025-03-26 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:14:05' and `end` < '2025-03-26 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:14:18] Production.INFO: count ==2691 [2025-03-26 10:14:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:14:05 - End Time 2025-03-26 10:14:05 [2025-03-26 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766148', 'tblTempUsageDetail_20' ) start [2025-03-26 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766148', 'tblTempUsageDetail_20' ) end [2025-03-26 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766148', 'tblTempVendorCDR_20' ) start [2025-03-26 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766148', 'tblTempVendorCDR_20' ) end [2025-03-26 10:14:19] Production.INFO: ProcessCDR(1,14766148,1,1,2) [2025-03-26 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766148', 'tblTempUsageDetail_20' ) start [2025-03-26 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766148', 'tblTempUsageDetail_20' ) end [2025-03-26 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:14:25] Production.INFO: ==27828== Releasing lock... [2025-03-26 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:14:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-26 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:15:05 [end_date_ymd] => 2025-03-26 10:15:05 [RateCDR] => 1 ) [2025-03-26 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:15:05' and `end` < '2025-03-26 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:15:18] Production.INFO: count ==2699 [2025-03-26 10:15:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:15:05 - End Time 2025-03-26 10:15:05 [2025-03-26 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766153', 'tblTempUsageDetail_20' ) start [2025-03-26 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766153', 'tblTempUsageDetail_20' ) end [2025-03-26 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766153', 'tblTempVendorCDR_20' ) start [2025-03-26 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766153', 'tblTempVendorCDR_20' ) end [2025-03-26 10:15:19] Production.INFO: ProcessCDR(1,14766153,1,1,2) [2025-03-26 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766153', 'tblTempUsageDetail_20' ) start [2025-03-26 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766153', 'tblTempUsageDetail_20' ) end [2025-03-26 10:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:15:24] Production.INFO: ==27900== Releasing lock... [2025-03-26 10:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:15:24] Production.INFO: 48 MB #Memory Used# [2025-03-26 10:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:16:04 [end_date_ymd] => 2025-03-26 10:16:04 [RateCDR] => 1 ) [2025-03-26 10: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-26 07:16:04' and `end` < '2025-03-26 10: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-26 10:16:18] Production.INFO: count ==2710 [2025-03-26 10:16:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:16:04 - End Time 2025-03-26 10:16:04 [2025-03-26 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766158', 'tblTempUsageDetail_20' ) start [2025-03-26 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766158', 'tblTempUsageDetail_20' ) end [2025-03-26 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766158', 'tblTempVendorCDR_20' ) start [2025-03-26 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766158', 'tblTempVendorCDR_20' ) end [2025-03-26 10:16:19] Production.INFO: ProcessCDR(1,14766158,1,1,2) [2025-03-26 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766158', 'tblTempUsageDetail_20' ) start [2025-03-26 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766158', 'tblTempUsageDetail_20' ) end [2025-03-26 10:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:16:22] Production.INFO: ==27970== Releasing lock... [2025-03-26 10:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:16:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-26 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:17:05 [end_date_ymd] => 2025-03-26 10:17:05 [RateCDR] => 1 ) [2025-03-26 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:17:05' and `end` < '2025-03-26 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:17:18] Production.INFO: count ==2723 [2025-03-26 10:17:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:17:05 - End Time 2025-03-26 10:17:05 [2025-03-26 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766163', 'tblTempUsageDetail_20' ) start [2025-03-26 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766163', 'tblTempUsageDetail_20' ) end [2025-03-26 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766163', 'tblTempVendorCDR_20' ) start [2025-03-26 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766163', 'tblTempVendorCDR_20' ) end [2025-03-26 10:17:19] Production.INFO: ProcessCDR(1,14766163,1,1,2) [2025-03-26 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766163', 'tblTempUsageDetail_20' ) start [2025-03-26 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766163', 'tblTempUsageDetail_20' ) end [2025-03-26 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:17:24] Production.INFO: ==28084== Releasing lock... [2025-03-26 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:17:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-26 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:18:06 [end_date_ymd] => 2025-03-26 10:18:06 [RateCDR] => 1 ) [2025-03-26 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-26 07:18:06' and `end` < '2025-03-26 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-26 10:18:19] Production.INFO: count ==2707 [2025-03-26 10:18:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:18:06 - End Time 2025-03-26 10:18:06 [2025-03-26 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766168', 'tblTempUsageDetail_20' ) start [2025-03-26 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766168', 'tblTempUsageDetail_20' ) end [2025-03-26 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766168', 'tblTempVendorCDR_20' ) start [2025-03-26 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766168', 'tblTempVendorCDR_20' ) end [2025-03-26 10:18:20] Production.INFO: ProcessCDR(1,14766168,1,1,2) [2025-03-26 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766168', 'tblTempUsageDetail_20' ) start [2025-03-26 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766168', 'tblTempUsageDetail_20' ) end [2025-03-26 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:18:26] Production.INFO: ==28153== Releasing lock... [2025-03-26 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:18:26] Production.INFO: 48.5 MB #Memory Used# [2025-03-26 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:19:05 [end_date_ymd] => 2025-03-26 10:19:05 [RateCDR] => 1 ) [2025-03-26 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:19:05' and `end` < '2025-03-26 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:19:18] Production.INFO: count ==2713 [2025-03-26 10:19:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:19:05 - End Time 2025-03-26 10:19:05 [2025-03-26 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766173', 'tblTempUsageDetail_20' ) start [2025-03-26 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766173', 'tblTempUsageDetail_20' ) end [2025-03-26 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766173', 'tblTempVendorCDR_20' ) start [2025-03-26 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766173', 'tblTempVendorCDR_20' ) end [2025-03-26 10:19:19] Production.INFO: ProcessCDR(1,14766173,1,1,2) [2025-03-26 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766173', 'tblTempUsageDetail_20' ) start [2025-03-26 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766173', 'tblTempUsageDetail_20' ) end [2025-03-26 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:19:24] Production.INFO: ==28224== Releasing lock... [2025-03-26 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:19:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-26 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:20:06 [end_date_ymd] => 2025-03-26 10:20:06 [RateCDR] => 1 ) [2025-03-26 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:20:06' and `end` < '2025-03-26 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:20:19] Production.INFO: count ==2734 [2025-03-26 10:20:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:20:06 - End Time 2025-03-26 10:20:06 [2025-03-26 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766179', 'tblTempUsageDetail_20' ) start [2025-03-26 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766179', 'tblTempUsageDetail_20' ) end [2025-03-26 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766179', 'tblTempVendorCDR_20' ) start [2025-03-26 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766179', 'tblTempVendorCDR_20' ) end [2025-03-26 10:20:20] Production.INFO: ProcessCDR(1,14766179,1,1,2) [2025-03-26 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766179', 'tblTempUsageDetail_20' ) start [2025-03-26 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766179', 'tblTempUsageDetail_20' ) end [2025-03-26 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:20:25] Production.INFO: ==28298== Releasing lock... [2025-03-26 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:20:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-26 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:21:05 [end_date_ymd] => 2025-03-26 10:21:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:21:05' and `end` < '2025-03-26 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-26 10:21:18] Production.INFO: count ==2852 [2025-03-26 10:21:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:21:05 - End Time 2025-03-26 10:21:05 [2025-03-26 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766184', 'tblTempUsageDetail_20' ) start [2025-03-26 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766184', 'tblTempUsageDetail_20' ) end [2025-03-26 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766184', 'tblTempVendorCDR_20' ) start [2025-03-26 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766184', 'tblTempVendorCDR_20' ) end [2025-03-26 10:21:19] Production.INFO: ProcessCDR(1,14766184,1,1,2) [2025-03-26 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766184', 'tblTempUsageDetail_20' ) start [2025-03-26 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766184', 'tblTempUsageDetail_20' ) end [2025-03-26 10:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:21:24] Production.INFO: ==28372== Releasing lock... [2025-03-26 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:21:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-26 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:22:05 [end_date_ymd] => 2025-03-26 10:22:05 [RateCDR] => 1 ) [2025-03-26 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:22:05' and `end` < '2025-03-26 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:22:18] Production.INFO: count ==2859 [2025-03-26 10:22:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:22:05 - End Time 2025-03-26 10:22:05 [2025-03-26 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766189', 'tblTempUsageDetail_20' ) start [2025-03-26 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766189', 'tblTempUsageDetail_20' ) end [2025-03-26 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766189', 'tblTempVendorCDR_20' ) start [2025-03-26 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766189', 'tblTempVendorCDR_20' ) end [2025-03-26 10:22:20] Production.INFO: ProcessCDR(1,14766189,1,1,2) [2025-03-26 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766189', 'tblTempUsageDetail_20' ) start [2025-03-26 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766189', 'tblTempUsageDetail_20' ) end [2025-03-26 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:22:25] Production.INFO: ==28443== Releasing lock... [2025-03-26 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:22:25] Production.INFO: 49.25 MB #Memory Used# [2025-03-26 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:23:05 [end_date_ymd] => 2025-03-26 10:23:05 [RateCDR] => 1 ) [2025-03-26 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:23:05' and `end` < '2025-03-26 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:23:18] Production.INFO: count ==2881 [2025-03-26 10:23:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:23:05 - End Time 2025-03-26 10:23:05 [2025-03-26 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766194', 'tblTempUsageDetail_20' ) start [2025-03-26 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766194', 'tblTempUsageDetail_20' ) end [2025-03-26 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766194', 'tblTempVendorCDR_20' ) start [2025-03-26 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766194', 'tblTempVendorCDR_20' ) end [2025-03-26 10:23:19] Production.INFO: ProcessCDR(1,14766194,1,1,2) [2025-03-26 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766194', 'tblTempUsageDetail_20' ) start [2025-03-26 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766194', 'tblTempUsageDetail_20' ) end [2025-03-26 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:23:24] Production.INFO: ==28519== Releasing lock... [2025-03-26 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:23:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-26 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:24:06 [end_date_ymd] => 2025-03-26 10:24:06 [RateCDR] => 1 ) [2025-03-26 10:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:24:06' and `end` < '2025-03-26 10:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:24:19] Production.INFO: count ==2914 [2025-03-26 10:24:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:24:06 - End Time 2025-03-26 10:24:06 [2025-03-26 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766199', 'tblTempUsageDetail_20' ) start [2025-03-26 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766199', 'tblTempUsageDetail_20' ) end [2025-03-26 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766199', 'tblTempVendorCDR_20' ) start [2025-03-26 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766199', 'tblTempVendorCDR_20' ) end [2025-03-26 10:24:20] Production.INFO: ProcessCDR(1,14766199,1,1,2) [2025-03-26 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766199', 'tblTempUsageDetail_20' ) start [2025-03-26 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766199', 'tblTempUsageDetail_20' ) end [2025-03-26 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:24:25] Production.INFO: ==28590== Releasing lock... [2025-03-26 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:24:25] Production.INFO: 49.5 MB #Memory Used# [2025-03-26 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:25:05 [end_date_ymd] => 2025-03-26 10:25:05 [RateCDR] => 1 ) [2025-03-26 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:25:05' and `end` < '2025-03-26 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:25:18] Production.INFO: count ==2927 [2025-03-26 10:25:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:25:05 - End Time 2025-03-26 10:25:05 [2025-03-26 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766204', 'tblTempUsageDetail_20' ) start [2025-03-26 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766204', 'tblTempUsageDetail_20' ) end [2025-03-26 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766204', 'tblTempVendorCDR_20' ) start [2025-03-26 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766204', 'tblTempVendorCDR_20' ) end [2025-03-26 10:25:19] Production.INFO: ProcessCDR(1,14766204,1,1,2) [2025-03-26 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766204', 'tblTempUsageDetail_20' ) start [2025-03-26 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766204', 'tblTempUsageDetail_20' ) end [2025-03-26 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:25:24] Production.INFO: ==28660== Releasing lock... [2025-03-26 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:25:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-26 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:26:05 [end_date_ymd] => 2025-03-26 10:26:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:26:05' and `end` < '2025-03-26 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-26 10:26:18] Production.INFO: count ==2942 [2025-03-26 10:26:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:26:05 - End Time 2025-03-26 10:26:05 [2025-03-26 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766209', 'tblTempUsageDetail_20' ) start [2025-03-26 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766209', 'tblTempUsageDetail_20' ) end [2025-03-26 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766209', 'tblTempVendorCDR_20' ) start [2025-03-26 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766209', 'tblTempVendorCDR_20' ) end [2025-03-26 10:26:20] Production.INFO: ProcessCDR(1,14766209,1,1,2) [2025-03-26 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766209', 'tblTempUsageDetail_20' ) start [2025-03-26 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766209', 'tblTempUsageDetail_20' ) end [2025-03-26 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:26:25] Production.INFO: ==28734== Releasing lock... [2025-03-26 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:26:25] Production.INFO: 49.75 MB #Memory Used# [2025-03-26 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:27:05 [end_date_ymd] => 2025-03-26 10:27:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:27:05' and `end` < '2025-03-26 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-26 10:27:18] Production.INFO: count ==2950 [2025-03-26 10:27:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:27:05 - End Time 2025-03-26 10:27:05 [2025-03-26 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766214', 'tblTempUsageDetail_20' ) start [2025-03-26 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766214', 'tblTempUsageDetail_20' ) end [2025-03-26 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766214', 'tblTempVendorCDR_20' ) start [2025-03-26 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766214', 'tblTempVendorCDR_20' ) end [2025-03-26 10:27:20] Production.INFO: ProcessCDR(1,14766214,1,1,2) [2025-03-26 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766214', 'tblTempUsageDetail_20' ) start [2025-03-26 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766214', 'tblTempUsageDetail_20' ) end [2025-03-26 10:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:27:23] Production.INFO: ==28806== Releasing lock... [2025-03-26 10:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:27:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-26 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:28:05 [end_date_ymd] => 2025-03-26 10:28:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:28:05' and `end` < '2025-03-26 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-26 10:28:18] Production.INFO: count ==2962 [2025-03-26 10:28:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:28:05 - End Time 2025-03-26 10:28:05 [2025-03-26 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766219', 'tblTempUsageDetail_20' ) start [2025-03-26 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766219', 'tblTempUsageDetail_20' ) end [2025-03-26 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766219', 'tblTempVendorCDR_20' ) start [2025-03-26 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766219', 'tblTempVendorCDR_20' ) end [2025-03-26 10:28:20] Production.INFO: ProcessCDR(1,14766219,1,1,2) [2025-03-26 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766219', 'tblTempUsageDetail_20' ) start [2025-03-26 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766219', 'tblTempUsageDetail_20' ) end [2025-03-26 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:28:25] Production.INFO: ==28876== Releasing lock... [2025-03-26 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:28:25] Production.INFO: 49.75 MB #Memory Used# [2025-03-26 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:29:05 [end_date_ymd] => 2025-03-26 10:29:05 [RateCDR] => 1 ) [2025-03-26 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:29:05' and `end` < '2025-03-26 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:29:18] Production.INFO: count ==2982 [2025-03-26 10:29:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:29:05 - End Time 2025-03-26 10:29:05 [2025-03-26 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766224', 'tblTempUsageDetail_20' ) start [2025-03-26 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766224', 'tblTempUsageDetail_20' ) end [2025-03-26 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766224', 'tblTempVendorCDR_20' ) start [2025-03-26 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766224', 'tblTempVendorCDR_20' ) end [2025-03-26 10:29:20] Production.INFO: ProcessCDR(1,14766224,1,1,2) [2025-03-26 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766224', 'tblTempUsageDetail_20' ) start [2025-03-26 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766224', 'tblTempUsageDetail_20' ) end [2025-03-26 10:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:29:25] Production.INFO: ==28946== Releasing lock... [2025-03-26 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:29:25] Production.INFO: 50.25 MB #Memory Used# [2025-03-26 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:30:06 [end_date_ymd] => 2025-03-26 10:30:06 [RateCDR] => 1 ) [2025-03-26 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-26 07:30:06' and `end` < '2025-03-26 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-26 10:30:19] Production.INFO: count ==3006 [2025-03-26 10:30:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:30:06 - End Time 2025-03-26 10:30:06 [2025-03-26 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766230', 'tblTempUsageDetail_20' ) start [2025-03-26 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766230', 'tblTempUsageDetail_20' ) end [2025-03-26 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766230', 'tblTempVendorCDR_20' ) start [2025-03-26 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766230', 'tblTempVendorCDR_20' ) end [2025-03-26 10:30:20] Production.INFO: ProcessCDR(1,14766230,1,1,2) [2025-03-26 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766230', 'tblTempUsageDetail_20' ) start [2025-03-26 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766230', 'tblTempUsageDetail_20' ) end [2025-03-26 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:30:26] Production.INFO: ==29024== Releasing lock... [2025-03-26 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:30:26] Production.INFO: 50.75 MB #Memory Used# [2025-03-26 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:31:05 [end_date_ymd] => 2025-03-26 10:31:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:31:05' and `end` < '2025-03-26 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-26 10:31:18] Production.INFO: count ==3106 [2025-03-26 10:31:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:31:05 - End Time 2025-03-26 10:31:05 [2025-03-26 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766235', 'tblTempUsageDetail_20' ) start [2025-03-26 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766235', 'tblTempUsageDetail_20' ) end [2025-03-26 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766235', 'tblTempVendorCDR_20' ) start [2025-03-26 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766235', 'tblTempVendorCDR_20' ) end [2025-03-26 10:31:19] Production.INFO: ProcessCDR(1,14766235,1,1,2) [2025-03-26 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766235', 'tblTempUsageDetail_20' ) start [2025-03-26 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766235', 'tblTempUsageDetail_20' ) end [2025-03-26 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:31:25] Production.INFO: ==29110== Releasing lock... [2025-03-26 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:31:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-26 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:32:05 [end_date_ymd] => 2025-03-26 10:32:05 [RateCDR] => 1 ) [2025-03-26 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:32:05' and `end` < '2025-03-26 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:32:19] Production.INFO: count ==3161 [2025-03-26 10:32:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:32:05 - End Time 2025-03-26 10:32:05 [2025-03-26 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766240', 'tblTempUsageDetail_20' ) start [2025-03-26 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766240', 'tblTempUsageDetail_20' ) end [2025-03-26 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766240', 'tblTempVendorCDR_20' ) start [2025-03-26 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766240', 'tblTempVendorCDR_20' ) end [2025-03-26 10:32:20] Production.INFO: ProcessCDR(1,14766240,1,1,2) [2025-03-26 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766240', 'tblTempUsageDetail_20' ) start [2025-03-26 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766240', 'tblTempUsageDetail_20' ) end [2025-03-26 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:32:26] Production.INFO: ==29224== Releasing lock... [2025-03-26 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:32:26] Production.INFO: 51.75 MB #Memory Used# [2025-03-26 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:33:06 [end_date_ymd] => 2025-03-26 10:33:06 [RateCDR] => 1 ) [2025-03-26 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-26 07:33:06' and `end` < '2025-03-26 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-26 10:33:19] Production.INFO: count ==3186 [2025-03-26 10:33:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:33:06 - End Time 2025-03-26 10:33:06 [2025-03-26 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766245', 'tblTempUsageDetail_20' ) start [2025-03-26 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766245', 'tblTempUsageDetail_20' ) end [2025-03-26 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766245', 'tblTempVendorCDR_20' ) start [2025-03-26 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766245', 'tblTempVendorCDR_20' ) end [2025-03-26 10:33:20] Production.INFO: ProcessCDR(1,14766245,1,1,2) [2025-03-26 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766245', 'tblTempUsageDetail_20' ) start [2025-03-26 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766245', 'tblTempUsageDetail_20' ) end [2025-03-26 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:33:25] Production.INFO: ==29298== Releasing lock... [2025-03-26 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:33:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-26 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:34:05 [end_date_ymd] => 2025-03-26 10:34:05 [RateCDR] => 1 ) [2025-03-26 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:34:05' and `end` < '2025-03-26 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:34:18] Production.INFO: count ==3192 [2025-03-26 10:34:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:34:05 - End Time 2025-03-26 10:34:05 [2025-03-26 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766250', 'tblTempUsageDetail_20' ) start [2025-03-26 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766250', 'tblTempUsageDetail_20' ) end [2025-03-26 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766250', 'tblTempVendorCDR_20' ) start [2025-03-26 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766250', 'tblTempVendorCDR_20' ) end [2025-03-26 10:34:20] Production.INFO: ProcessCDR(1,14766250,1,1,2) [2025-03-26 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766250', 'tblTempUsageDetail_20' ) start [2025-03-26 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766250', 'tblTempUsageDetail_20' ) end [2025-03-26 10:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:34:25] Production.INFO: ==29369== Releasing lock... [2025-03-26 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:34:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-26 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:35:06 [end_date_ymd] => 2025-03-26 10:35:06 [RateCDR] => 1 ) [2025-03-26 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-26 07:35:06' and `end` < '2025-03-26 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-26 10:35:19] Production.INFO: count ==3218 [2025-03-26 10:35:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:35:06 - End Time 2025-03-26 10:35:06 [2025-03-26 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766255', 'tblTempUsageDetail_20' ) start [2025-03-26 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766255', 'tblTempUsageDetail_20' ) end [2025-03-26 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766255', 'tblTempVendorCDR_20' ) start [2025-03-26 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766255', 'tblTempVendorCDR_20' ) end [2025-03-26 10:35:20] Production.INFO: ProcessCDR(1,14766255,1,1,2) [2025-03-26 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766255', 'tblTempUsageDetail_20' ) start [2025-03-26 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766255', 'tblTempUsageDetail_20' ) end [2025-03-26 10:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:35:26] Production.INFO: ==29440== Releasing lock... [2025-03-26 10:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:35:26] Production.INFO: 52.5 MB #Memory Used# [2025-03-26 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:36:05 [end_date_ymd] => 2025-03-26 10:36:05 [RateCDR] => 1 ) [2025-03-26 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:36:05' and `end` < '2025-03-26 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:36:18] Production.INFO: count ==3234 [2025-03-26 10:36:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:36:05 - End Time 2025-03-26 10:36:05 [2025-03-26 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766260', 'tblTempUsageDetail_20' ) start [2025-03-26 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766260', 'tblTempUsageDetail_20' ) end [2025-03-26 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766260', 'tblTempVendorCDR_20' ) start [2025-03-26 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766260', 'tblTempVendorCDR_20' ) end [2025-03-26 10:36:20] Production.INFO: ProcessCDR(1,14766260,1,1,2) [2025-03-26 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766260', 'tblTempUsageDetail_20' ) start [2025-03-26 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766260', 'tblTempUsageDetail_20' ) end [2025-03-26 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:36:25] Production.INFO: ==29509== Releasing lock... [2025-03-26 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:36:25] Production.INFO: 52.5 MB #Memory Used# [2025-03-26 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:37:06 [end_date_ymd] => 2025-03-26 10:37:06 [RateCDR] => 1 ) [2025-03-26 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-26 07:37:06' and `end` < '2025-03-26 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-26 10:37:19] Production.INFO: count ==3249 [2025-03-26 10:37:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:37:06 - End Time 2025-03-26 10:37:06 [2025-03-26 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766265', 'tblTempUsageDetail_20' ) start [2025-03-26 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766265', 'tblTempUsageDetail_20' ) end [2025-03-26 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766265', 'tblTempVendorCDR_20' ) start [2025-03-26 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766265', 'tblTempVendorCDR_20' ) end [2025-03-26 10:37:20] Production.INFO: ProcessCDR(1,14766265,1,1,2) [2025-03-26 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766265', 'tblTempUsageDetail_20' ) start [2025-03-26 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766265', 'tblTempUsageDetail_20' ) end [2025-03-26 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:37:25] Production.INFO: ==29579== Releasing lock... [2025-03-26 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:37:25] Production.INFO: 53.75 MB #Memory Used# [2025-03-26 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:38:06 [end_date_ymd] => 2025-03-26 10:38:06 [RateCDR] => 1 ) [2025-03-26 10: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-26 07:38:06' and `end` < '2025-03-26 10: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-26 10:38:19] Production.INFO: count ==3268 [2025-03-26 10:38:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:38:06 - End Time 2025-03-26 10:38:06 [2025-03-26 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766270', 'tblTempUsageDetail_20' ) start [2025-03-26 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766270', 'tblTempUsageDetail_20' ) end [2025-03-26 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766270', 'tblTempVendorCDR_20' ) start [2025-03-26 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766270', 'tblTempVendorCDR_20' ) end [2025-03-26 10:38:20] Production.INFO: ProcessCDR(1,14766270,1,1,2) [2025-03-26 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766270', 'tblTempUsageDetail_20' ) start [2025-03-26 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766270', 'tblTempUsageDetail_20' ) end [2025-03-26 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:38:26] Production.INFO: ==29653== Releasing lock... [2025-03-26 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:38:26] Production.INFO: 53 MB #Memory Used# [2025-03-26 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:39:06 [end_date_ymd] => 2025-03-26 10:39:06 [RateCDR] => 1 ) [2025-03-26 10: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-26 07:39:06' and `end` < '2025-03-26 10: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-26 10:39:19] Production.INFO: count ==3284 [2025-03-26 10:39:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:39:06 - End Time 2025-03-26 10:39:06 [2025-03-26 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766275', 'tblTempUsageDetail_20' ) start [2025-03-26 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766275', 'tblTempUsageDetail_20' ) end [2025-03-26 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766275', 'tblTempVendorCDR_20' ) start [2025-03-26 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766275', 'tblTempVendorCDR_20' ) end [2025-03-26 10:39:20] Production.INFO: ProcessCDR(1,14766275,1,1,2) [2025-03-26 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766275', 'tblTempUsageDetail_20' ) start [2025-03-26 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766275', 'tblTempUsageDetail_20' ) end [2025-03-26 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:39:25] Production.INFO: ==29729== Releasing lock... [2025-03-26 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:39:25] Production.INFO: 53 MB #Memory Used# [2025-03-26 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:40:06 [end_date_ymd] => 2025-03-26 10:40:06 [RateCDR] => 1 ) [2025-03-26 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-26 07:40:06' and `end` < '2025-03-26 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-26 10:40:19] Production.INFO: count ==3297 [2025-03-26 10:40:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:40:06 - End Time 2025-03-26 10:40:06 [2025-03-26 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766281', 'tblTempUsageDetail_20' ) start [2025-03-26 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766281', 'tblTempUsageDetail_20' ) end [2025-03-26 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766281', 'tblTempVendorCDR_20' ) start [2025-03-26 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766281', 'tblTempVendorCDR_20' ) end [2025-03-26 10:40:21] Production.INFO: ProcessCDR(1,14766281,1,1,2) [2025-03-26 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766281', 'tblTempUsageDetail_20' ) start [2025-03-26 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766281', 'tblTempUsageDetail_20' ) end [2025-03-26 10:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:40:25] Production.INFO: ==29802== Releasing lock... [2025-03-26 10:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:40:25] Production.INFO: 53 MB #Memory Used# [2025-03-26 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:41:06 [end_date_ymd] => 2025-03-26 10:41:06 [RateCDR] => 1 ) [2025-03-26 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-26 07:41:06' and `end` < '2025-03-26 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-26 10:41:19] Production.INFO: count ==3415 [2025-03-26 10:41:21] Production.ERROR: pbx CDR StartTime 2025-03-26 07:41:06 - End Time 2025-03-26 10:41:06 [2025-03-26 10:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766286', 'tblTempUsageDetail_20' ) start [2025-03-26 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766286', 'tblTempUsageDetail_20' ) end [2025-03-26 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766286', 'tblTempVendorCDR_20' ) start [2025-03-26 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766286', 'tblTempVendorCDR_20' ) end [2025-03-26 10:41:21] Production.INFO: ProcessCDR(1,14766286,1,1,2) [2025-03-26 10:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766286', 'tblTempUsageDetail_20' ) start [2025-03-26 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766286', 'tblTempUsageDetail_20' ) end [2025-03-26 10:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:41:26] Production.INFO: ==29876== Releasing lock... [2025-03-26 10:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:41:26] Production.INFO: 54 MB #Memory Used# [2025-03-26 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:42:06 [end_date_ymd] => 2025-03-26 10:42:06 [RateCDR] => 1 ) [2025-03-26 10:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:42:06' and `end` < '2025-03-26 10:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:42:19] Production.INFO: count ==3448 [2025-03-26 10:42:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:42:06 - End Time 2025-03-26 10:42:06 [2025-03-26 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766291', 'tblTempUsageDetail_20' ) start [2025-03-26 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766291', 'tblTempUsageDetail_20' ) end [2025-03-26 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766291', 'tblTempVendorCDR_20' ) start [2025-03-26 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766291', 'tblTempVendorCDR_20' ) end [2025-03-26 10:42:20] Production.INFO: ProcessCDR(1,14766291,1,1,2) [2025-03-26 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766291', 'tblTempUsageDetail_20' ) start [2025-03-26 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766291', 'tblTempUsageDetail_20' ) end [2025-03-26 10:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:42:26] Production.INFO: ==29945== Releasing lock... [2025-03-26 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:42:26] Production.INFO: 54.25 MB #Memory Used# [2025-03-26 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:43:06 [end_date_ymd] => 2025-03-26 10:43:06 [RateCDR] => 1 ) [2025-03-26 10:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:43:06' and `end` < '2025-03-26 10:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:43:19] Production.INFO: count ==3471 [2025-03-26 10:43:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:43:06 - End Time 2025-03-26 10:43:06 [2025-03-26 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766296', 'tblTempUsageDetail_20' ) start [2025-03-26 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766296', 'tblTempUsageDetail_20' ) end [2025-03-26 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766296', 'tblTempVendorCDR_20' ) start [2025-03-26 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766296', 'tblTempVendorCDR_20' ) end [2025-03-26 10:43:21] Production.INFO: ProcessCDR(1,14766296,1,1,2) [2025-03-26 10:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766296', 'tblTempUsageDetail_20' ) start [2025-03-26 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766296', 'tblTempUsageDetail_20' ) end [2025-03-26 10:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:43:26] Production.INFO: ==30021== Releasing lock... [2025-03-26 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:43:26] Production.INFO: 54.25 MB #Memory Used# [2025-03-26 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:44:05 [end_date_ymd] => 2025-03-26 10:44:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:44:05' and `end` < '2025-03-26 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-26 10:44:18] Production.INFO: count ==3486 [2025-03-26 10:44:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:44:05 - End Time 2025-03-26 10:44:05 [2025-03-26 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766301', 'tblTempUsageDetail_20' ) start [2025-03-26 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766301', 'tblTempUsageDetail_20' ) end [2025-03-26 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766301', 'tblTempVendorCDR_20' ) start [2025-03-26 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766301', 'tblTempVendorCDR_20' ) end [2025-03-26 10:44:20] Production.INFO: ProcessCDR(1,14766301,1,1,2) [2025-03-26 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766301', 'tblTempUsageDetail_20' ) start [2025-03-26 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766301', 'tblTempUsageDetail_20' ) end [2025-03-26 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:44:25] Production.INFO: ==30095== Releasing lock... [2025-03-26 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:44:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-26 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:45:06 [end_date_ymd] => 2025-03-26 10:45:06 [RateCDR] => 1 ) [2025-03-26 10:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:45:06' and `end` < '2025-03-26 10:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:45:19] Production.INFO: count ==3509 [2025-03-26 10:45:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:45:06 - End Time 2025-03-26 10:45:06 [2025-03-26 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766306', 'tblTempUsageDetail_20' ) start [2025-03-26 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766306', 'tblTempUsageDetail_20' ) end [2025-03-26 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766306', 'tblTempVendorCDR_20' ) start [2025-03-26 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766306', 'tblTempVendorCDR_20' ) end [2025-03-26 10:45:20] Production.INFO: ProcessCDR(1,14766306,1,1,2) [2025-03-26 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766306', 'tblTempUsageDetail_20' ) start [2025-03-26 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766306', 'tblTempUsageDetail_20' ) end [2025-03-26 10:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:45:26] Production.INFO: ==30166== Releasing lock... [2025-03-26 10:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:45:26] Production.INFO: 54.75 MB #Memory Used# [2025-03-26 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:46:05 [end_date_ymd] => 2025-03-26 10:46:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:46:05' and `end` < '2025-03-26 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-26 10:46:18] Production.INFO: count ==3520 [2025-03-26 10:46:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:46:05 - End Time 2025-03-26 10:46:05 [2025-03-26 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766311', 'tblTempUsageDetail_20' ) start [2025-03-26 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766311', 'tblTempUsageDetail_20' ) end [2025-03-26 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766311', 'tblTempVendorCDR_20' ) start [2025-03-26 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766311', 'tblTempVendorCDR_20' ) end [2025-03-26 10:46:20] Production.INFO: ProcessCDR(1,14766311,1,1,2) [2025-03-26 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766311', 'tblTempUsageDetail_20' ) start [2025-03-26 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766311', 'tblTempUsageDetail_20' ) end [2025-03-26 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:46:25] Production.INFO: ==30241== Releasing lock... [2025-03-26 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:46:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-26 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:47:06 [end_date_ymd] => 2025-03-26 10:47:06 [RateCDR] => 1 ) [2025-03-26 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-26 07:47:06' and `end` < '2025-03-26 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-26 10:47:19] Production.INFO: count ==3559 [2025-03-26 10:47:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:47:06 - End Time 2025-03-26 10:47:06 [2025-03-26 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766316', 'tblTempUsageDetail_20' ) start [2025-03-26 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766316', 'tblTempUsageDetail_20' ) end [2025-03-26 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766316', 'tblTempVendorCDR_20' ) start [2025-03-26 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766316', 'tblTempVendorCDR_20' ) end [2025-03-26 10:47:21] Production.INFO: ProcessCDR(1,14766316,1,1,2) [2025-03-26 10:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766316', 'tblTempUsageDetail_20' ) start [2025-03-26 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766316', 'tblTempUsageDetail_20' ) end [2025-03-26 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:47:26] Production.INFO: ==30311== Releasing lock... [2025-03-26 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:47:26] Production.INFO: 55 MB #Memory Used# [2025-03-26 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:48:05 [end_date_ymd] => 2025-03-26 10:48:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:48:05' and `end` < '2025-03-26 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-26 10:48:19] Production.INFO: count ==3588 [2025-03-26 10:48:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:48:05 - End Time 2025-03-26 10:48:05 [2025-03-26 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766321', 'tblTempUsageDetail_20' ) start [2025-03-26 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766321', 'tblTempUsageDetail_20' ) end [2025-03-26 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766321', 'tblTempVendorCDR_20' ) start [2025-03-26 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766321', 'tblTempVendorCDR_20' ) end [2025-03-26 10:48:20] Production.INFO: ProcessCDR(1,14766321,1,1,2) [2025-03-26 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766321', 'tblTempUsageDetail_20' ) start [2025-03-26 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766321', 'tblTempUsageDetail_20' ) end [2025-03-26 10:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:48:26] Production.INFO: ==30421== Releasing lock... [2025-03-26 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:48:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-26 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:49:05 [end_date_ymd] => 2025-03-26 10:49:05 [RateCDR] => 1 ) [2025-03-26 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:49:05' and `end` < '2025-03-26 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:49:19] Production.INFO: count ==3641 [2025-03-26 10:49:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:49:05 - End Time 2025-03-26 10:49:05 [2025-03-26 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766326', 'tblTempUsageDetail_20' ) start [2025-03-26 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766326', 'tblTempUsageDetail_20' ) end [2025-03-26 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766326', 'tblTempVendorCDR_20' ) start [2025-03-26 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766326', 'tblTempVendorCDR_20' ) end [2025-03-26 10:49:20] Production.INFO: ProcessCDR(1,14766326,1,1,2) [2025-03-26 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766326', 'tblTempUsageDetail_20' ) start [2025-03-26 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766326', 'tblTempUsageDetail_20' ) end [2025-03-26 10:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:49:26] Production.INFO: ==30492== Releasing lock... [2025-03-26 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:49:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-26 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:50:05 [end_date_ymd] => 2025-03-26 10:50:05 [RateCDR] => 1 ) [2025-03-26 10:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:50:05' and `end` < '2025-03-26 10:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:50:18] Production.INFO: count ==3657 [2025-03-26 10:50:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:50:05 - End Time 2025-03-26 10:50:05 [2025-03-26 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766331', 'tblTempUsageDetail_20' ) start [2025-03-26 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766331', 'tblTempUsageDetail_20' ) end [2025-03-26 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766331', 'tblTempVendorCDR_20' ) start [2025-03-26 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766331', 'tblTempVendorCDR_20' ) end [2025-03-26 10:50:20] Production.INFO: ProcessCDR(1,14766331,1,1,2) [2025-03-26 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766331', 'tblTempUsageDetail_20' ) start [2025-03-26 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766331', 'tblTempUsageDetail_20' ) end [2025-03-26 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:50:25] Production.INFO: ==30563== Releasing lock... [2025-03-26 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:50:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-26 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:51:05 [end_date_ymd] => 2025-03-26 10:51:05 [RateCDR] => 1 ) [2025-03-26 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:51:05' and `end` < '2025-03-26 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:51:18] Production.INFO: count ==3755 [2025-03-26 10:51:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:51:05 - End Time 2025-03-26 10:51:05 [2025-03-26 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766337', 'tblTempUsageDetail_20' ) start [2025-03-26 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766337', 'tblTempUsageDetail_20' ) end [2025-03-26 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766337', 'tblTempVendorCDR_20' ) start [2025-03-26 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766337', 'tblTempVendorCDR_20' ) end [2025-03-26 10:51:20] Production.INFO: ProcessCDR(1,14766337,1,1,2) [2025-03-26 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766337', 'tblTempUsageDetail_20' ) start [2025-03-26 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766337', 'tblTempUsageDetail_20' ) end [2025-03-26 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:51:25] Production.INFO: ==30637== Releasing lock... [2025-03-26 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:51:25] Production.INFO: 56 MB #Memory Used# [2025-03-26 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:52:05 [end_date_ymd] => 2025-03-26 10:52:05 [RateCDR] => 1 ) [2025-03-26 10: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-26 07:52:05' and `end` < '2025-03-26 10: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-26 10:52:18] Production.INFO: count ==3758 [2025-03-26 10:52:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:52:05 - End Time 2025-03-26 10:52:05 [2025-03-26 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766342', 'tblTempUsageDetail_20' ) start [2025-03-26 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766342', 'tblTempUsageDetail_20' ) end [2025-03-26 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766342', 'tblTempVendorCDR_20' ) start [2025-03-26 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766342', 'tblTempVendorCDR_20' ) end [2025-03-26 10:52:20] Production.INFO: ProcessCDR(1,14766342,1,1,2) [2025-03-26 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766342', 'tblTempUsageDetail_20' ) start [2025-03-26 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766342', 'tblTempUsageDetail_20' ) end [2025-03-26 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:52:25] Production.INFO: ==30711== Releasing lock... [2025-03-26 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:52:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-26 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:53:05 [end_date_ymd] => 2025-03-26 10:53:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:53:05' and `end` < '2025-03-26 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-26 10:53:18] Production.INFO: count ==3761 [2025-03-26 10:53:19] Production.ERROR: pbx CDR StartTime 2025-03-26 07:53:05 - End Time 2025-03-26 10:53:05 [2025-03-26 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766347', 'tblTempUsageDetail_20' ) start [2025-03-26 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766347', 'tblTempUsageDetail_20' ) end [2025-03-26 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766347', 'tblTempVendorCDR_20' ) start [2025-03-26 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766347', 'tblTempVendorCDR_20' ) end [2025-03-26 10:53:19] Production.INFO: ProcessCDR(1,14766347,1,1,2) [2025-03-26 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766347', 'tblTempUsageDetail_20' ) start [2025-03-26 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766347', 'tblTempUsageDetail_20' ) end [2025-03-26 10:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:53:24] Production.INFO: ==30782== Releasing lock... [2025-03-26 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:53:24] Production.INFO: 56 MB #Memory Used# [2025-03-26 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:54:06 [end_date_ymd] => 2025-03-26 10:54:06 [RateCDR] => 1 ) [2025-03-26 10: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-26 07:54:06' and `end` < '2025-03-26 10: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-26 10:54:19] Production.INFO: count ==3783 [2025-03-26 10:54:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:54:06 - End Time 2025-03-26 10:54:06 [2025-03-26 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766352', 'tblTempUsageDetail_20' ) start [2025-03-26 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766352', 'tblTempUsageDetail_20' ) end [2025-03-26 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766352', 'tblTempVendorCDR_20' ) start [2025-03-26 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766352', 'tblTempVendorCDR_20' ) end [2025-03-26 10:54:21] Production.INFO: ProcessCDR(1,14766352,1,1,2) [2025-03-26 10:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766352', 'tblTempUsageDetail_20' ) start [2025-03-26 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766352', 'tblTempUsageDetail_20' ) end [2025-03-26 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:54:26] Production.INFO: ==30852== Releasing lock... [2025-03-26 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:54:26] Production.INFO: 56.25 MB #Memory Used# [2025-03-26 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:55:06 [end_date_ymd] => 2025-03-26 10:55:06 [RateCDR] => 1 ) [2025-03-26 10:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:55:06' and `end` < '2025-03-26 10:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:55:19] Production.INFO: count ==3802 [2025-03-26 10:55:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:55:06 - End Time 2025-03-26 10:55:06 [2025-03-26 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766357', 'tblTempUsageDetail_20' ) start [2025-03-26 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766357', 'tblTempUsageDetail_20' ) end [2025-03-26 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766357', 'tblTempVendorCDR_20' ) start [2025-03-26 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766357', 'tblTempVendorCDR_20' ) end [2025-03-26 10:55:21] Production.INFO: ProcessCDR(1,14766357,1,1,2) [2025-03-26 10:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766357', 'tblTempUsageDetail_20' ) start [2025-03-26 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766357', 'tblTempUsageDetail_20' ) end [2025-03-26 10:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:55:26] Production.INFO: ==30922== Releasing lock... [2025-03-26 10:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:55:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-26 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:56:06 [end_date_ymd] => 2025-03-26 10:56:06 [RateCDR] => 1 ) [2025-03-26 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:56:06' and `end` < '2025-03-26 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:56:19] Production.INFO: count ==3821 [2025-03-26 10:56:21] Production.ERROR: pbx CDR StartTime 2025-03-26 07:56:06 - End Time 2025-03-26 10:56:06 [2025-03-26 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766362', 'tblTempUsageDetail_20' ) start [2025-03-26 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766362', 'tblTempUsageDetail_20' ) end [2025-03-26 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766362', 'tblTempVendorCDR_20' ) start [2025-03-26 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766362', 'tblTempVendorCDR_20' ) end [2025-03-26 10:56:21] Production.INFO: ProcessCDR(1,14766362,1,1,2) [2025-03-26 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766362', 'tblTempUsageDetail_20' ) start [2025-03-26 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766362', 'tblTempUsageDetail_20' ) end [2025-03-26 10:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:56:26] Production.INFO: ==30994== Releasing lock... [2025-03-26 10:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:56:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-26 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:57:05 [end_date_ymd] => 2025-03-26 10:57:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:57:05' and `end` < '2025-03-26 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-26 10:57:19] Production.INFO: count ==3832 [2025-03-26 10:57:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:57:05 - End Time 2025-03-26 10:57:05 [2025-03-26 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766367', 'tblTempUsageDetail_20' ) start [2025-03-26 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766367', 'tblTempUsageDetail_20' ) end [2025-03-26 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766367', 'tblTempVendorCDR_20' ) start [2025-03-26 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766367', 'tblTempVendorCDR_20' ) end [2025-03-26 10:57:20] Production.INFO: ProcessCDR(1,14766367,1,1,2) [2025-03-26 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766367', 'tblTempUsageDetail_20' ) start [2025-03-26 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766367', 'tblTempUsageDetail_20' ) end [2025-03-26 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:57:26] Production.INFO: ==31064== Releasing lock... [2025-03-26 10:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:57:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-26 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:58:05 [end_date_ymd] => 2025-03-26 10:58:05 [RateCDR] => 1 ) [2025-03-26 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 07:58:05' and `end` < '2025-03-26 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 10:58:18] Production.INFO: count ==3849 [2025-03-26 10:58:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:58:05 - End Time 2025-03-26 10:58:05 [2025-03-26 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766372', 'tblTempUsageDetail_20' ) start [2025-03-26 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766372', 'tblTempUsageDetail_20' ) end [2025-03-26 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766372', 'tblTempVendorCDR_20' ) start [2025-03-26 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766372', 'tblTempVendorCDR_20' ) end [2025-03-26 10:58:20] Production.INFO: ProcessCDR(1,14766372,1,1,2) [2025-03-26 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766372', 'tblTempUsageDetail_20' ) start [2025-03-26 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766372', 'tblTempUsageDetail_20' ) end [2025-03-26 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:58:25] Production.INFO: ==31141== Releasing lock... [2025-03-26 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:58:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-26 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 07:59:05 [end_date_ymd] => 2025-03-26 10:59:05 [RateCDR] => 1 ) [2025-03-26 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-26 07:59:05' and `end` < '2025-03-26 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-26 10:59:19] Production.INFO: count ==3849 [2025-03-26 10:59:20] Production.ERROR: pbx CDR StartTime 2025-03-26 07:59:05 - End Time 2025-03-26 10:59:05 [2025-03-26 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766377', 'tblTempUsageDetail_20' ) start [2025-03-26 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766377', 'tblTempUsageDetail_20' ) end [2025-03-26 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766377', 'tblTempVendorCDR_20' ) start [2025-03-26 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766377', 'tblTempVendorCDR_20' ) end [2025-03-26 10:59:20] Production.INFO: ProcessCDR(1,14766377,1,1,2) [2025-03-26 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766377', 'tblTempUsageDetail_20' ) start [2025-03-26 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766377', 'tblTempUsageDetail_20' ) end [2025-03-26 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 10:59:25] Production.INFO: ==31210== Releasing lock... [2025-03-26 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 10:59:25] Production.INFO: 57 MB #Memory Used# [2025-03-26 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:00:07 [end_date_ymd] => 2025-03-26 11:00:07 [RateCDR] => 1 ) [2025-03-26 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-26 08:00:07' and `end` < '2025-03-26 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-26 11:00:20] Production.INFO: count ==3847 [2025-03-26 11:00:22] Production.ERROR: pbx CDR StartTime 2025-03-26 08:00:07 - End Time 2025-03-26 11:00:07 [2025-03-26 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766383', 'tblTempUsageDetail_20' ) start [2025-03-26 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766383', 'tblTempUsageDetail_20' ) end [2025-03-26 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766383', 'tblTempVendorCDR_20' ) start [2025-03-26 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766383', 'tblTempVendorCDR_20' ) end [2025-03-26 11:00:22] Production.INFO: ProcessCDR(1,14766383,1,1,2) [2025-03-26 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766383', 'tblTempUsageDetail_20' ) start [2025-03-26 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766383', 'tblTempUsageDetail_20' ) end [2025-03-26 11:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:00:25] Production.INFO: ==31292== Releasing lock... [2025-03-26 11:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:00:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-26 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:01:05 [end_date_ymd] => 2025-03-26 11:01:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:01:05' and `end` < '2025-03-26 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-26 11:01:18] Production.INFO: count ==3975 [2025-03-26 11:01:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:01:05 - End Time 2025-03-26 11:01:05 [2025-03-26 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766388', 'tblTempUsageDetail_20' ) start [2025-03-26 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766388', 'tblTempUsageDetail_20' ) end [2025-03-26 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766388', 'tblTempVendorCDR_20' ) start [2025-03-26 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766388', 'tblTempVendorCDR_20' ) end [2025-03-26 11:01:20] Production.INFO: ProcessCDR(1,14766388,1,1,2) [2025-03-26 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766388', 'tblTempUsageDetail_20' ) start [2025-03-26 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766388', 'tblTempUsageDetail_20' ) end [2025-03-26 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:01:26] Production.INFO: ==31381== Releasing lock... [2025-03-26 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:01:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-26 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:02:06 [end_date_ymd] => 2025-03-26 11:02:06 [RateCDR] => 1 ) [2025-03-26 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-26 08:02:06' and `end` < '2025-03-26 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-26 11:02:20] Production.INFO: count ==3998 [2025-03-26 11:02:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:02:06 - End Time 2025-03-26 11:02:06 [2025-03-26 11:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766393', 'tblTempUsageDetail_20' ) start [2025-03-26 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766393', 'tblTempUsageDetail_20' ) end [2025-03-26 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766393', 'tblTempVendorCDR_20' ) start [2025-03-26 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766393', 'tblTempVendorCDR_20' ) end [2025-03-26 11:02:21] Production.INFO: ProcessCDR(1,14766393,1,1,2) [2025-03-26 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766393', 'tblTempUsageDetail_20' ) start [2025-03-26 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766393', 'tblTempUsageDetail_20' ) end [2025-03-26 11:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:02:27] Production.INFO: ==31536== Releasing lock... [2025-03-26 11:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:02:27] Production.INFO: 57.75 MB #Memory Used# [2025-03-26 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:03:05 [end_date_ymd] => 2025-03-26 11:03:05 [RateCDR] => 1 ) [2025-03-26 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:03:05' and `end` < '2025-03-26 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:03:19] Production.INFO: count ==4003 [2025-03-26 11:03:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:03:05 - End Time 2025-03-26 11:03:05 [2025-03-26 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766398', 'tblTempUsageDetail_20' ) start [2025-03-26 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766398', 'tblTempUsageDetail_20' ) end [2025-03-26 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766398', 'tblTempVendorCDR_20' ) start [2025-03-26 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766398', 'tblTempVendorCDR_20' ) end [2025-03-26 11:03:21] Production.INFO: ProcessCDR(1,14766398,1,1,2) [2025-03-26 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766398', 'tblTempUsageDetail_20' ) start [2025-03-26 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766398', 'tblTempUsageDetail_20' ) end [2025-03-26 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:03:26] Production.INFO: ==31651== Releasing lock... [2025-03-26 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:03:26] Production.INFO: 58 MB #Memory Used# [2025-03-26 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:04:06 [end_date_ymd] => 2025-03-26 11:04:06 [RateCDR] => 1 ) [2025-03-26 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:04:06' and `end` < '2025-03-26 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:04:19] Production.INFO: count ==4016 [2025-03-26 11:04:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:04:06 - End Time 2025-03-26 11:04:06 [2025-03-26 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766403', 'tblTempUsageDetail_20' ) start [2025-03-26 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766403', 'tblTempUsageDetail_20' ) end [2025-03-26 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766403', 'tblTempVendorCDR_20' ) start [2025-03-26 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766403', 'tblTempVendorCDR_20' ) end [2025-03-26 11:04:21] Production.INFO: ProcessCDR(1,14766403,1,1,2) [2025-03-26 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766403', 'tblTempUsageDetail_20' ) start [2025-03-26 11:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766403', 'tblTempUsageDetail_20' ) end [2025-03-26 11:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:04:28] Production.INFO: ==31722== Releasing lock... [2025-03-26 11:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:04:28] Production.INFO: 58 MB #Memory Used# [2025-03-26 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:05:05 [end_date_ymd] => 2025-03-26 11:05:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:05:05' and `end` < '2025-03-26 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-26 11:05:18] Production.INFO: count ==4019 [2025-03-26 11:05:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:05:05 - End Time 2025-03-26 11:05:05 [2025-03-26 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766408', 'tblTempUsageDetail_20' ) start [2025-03-26 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766408', 'tblTempUsageDetail_20' ) end [2025-03-26 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766408', 'tblTempVendorCDR_20' ) start [2025-03-26 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766408', 'tblTempVendorCDR_20' ) end [2025-03-26 11:05:20] Production.INFO: ProcessCDR(1,14766408,1,1,2) [2025-03-26 11:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766408', 'tblTempUsageDetail_20' ) start [2025-03-26 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766408', 'tblTempUsageDetail_20' ) end [2025-03-26 11:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:05:25] Production.INFO: ==31878== Releasing lock... [2025-03-26 11:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:05:25] Production.INFO: 58 MB #Memory Used# [2025-03-26 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:06:05 [end_date_ymd] => 2025-03-26 11:06:05 [RateCDR] => 1 ) [2025-03-26 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:06:05' and `end` < '2025-03-26 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:06:19] Production.INFO: count ==4006 [2025-03-26 11:06:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:06:05 - End Time 2025-03-26 11:06:05 [2025-03-26 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766413', 'tblTempUsageDetail_20' ) start [2025-03-26 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766413', 'tblTempUsageDetail_20' ) end [2025-03-26 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766413', 'tblTempVendorCDR_20' ) start [2025-03-26 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766413', 'tblTempVendorCDR_20' ) end [2025-03-26 11:06:20] Production.INFO: ProcessCDR(1,14766413,1,1,2) [2025-03-26 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766413', 'tblTempUsageDetail_20' ) start [2025-03-26 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766413', 'tblTempUsageDetail_20' ) end [2025-03-26 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:06:26] Production.INFO: ==31951== Releasing lock... [2025-03-26 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:06:26] Production.INFO: 58 MB #Memory Used# [2025-03-26 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:07:05 [end_date_ymd] => 2025-03-26 11:07:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:07:05' and `end` < '2025-03-26 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-26 11:07:18] Production.INFO: count ==3999 [2025-03-26 11:07:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:07:05 - End Time 2025-03-26 11:07:05 [2025-03-26 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766418', 'tblTempUsageDetail_20' ) start [2025-03-26 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766418', 'tblTempUsageDetail_20' ) end [2025-03-26 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766418', 'tblTempVendorCDR_20' ) start [2025-03-26 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766418', 'tblTempVendorCDR_20' ) end [2025-03-26 11:07:20] Production.INFO: ProcessCDR(1,14766418,1,1,2) [2025-03-26 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766418', 'tblTempUsageDetail_20' ) start [2025-03-26 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766418', 'tblTempUsageDetail_20' ) end [2025-03-26 11:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:07:25] Production.INFO: ==32024== Releasing lock... [2025-03-26 11:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:07:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-26 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:08:05 [end_date_ymd] => 2025-03-26 11:08:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:08:05' and `end` < '2025-03-26 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-26 11:08:19] Production.INFO: count ==4002 [2025-03-26 11:08:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:08:05 - End Time 2025-03-26 11:08:05 [2025-03-26 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766423', 'tblTempUsageDetail_20' ) start [2025-03-26 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766423', 'tblTempUsageDetail_20' ) end [2025-03-26 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766423', 'tblTempVendorCDR_20' ) start [2025-03-26 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766423', 'tblTempVendorCDR_20' ) end [2025-03-26 11:08:21] Production.INFO: ProcessCDR(1,14766423,1,1,2) [2025-03-26 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766423', 'tblTempUsageDetail_20' ) start [2025-03-26 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766423', 'tblTempUsageDetail_20' ) end [2025-03-26 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:08:26] Production.INFO: ==32182== Releasing lock... [2025-03-26 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:08:26] Production.INFO: 58 MB #Memory Used# [2025-03-26 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:09:05 [end_date_ymd] => 2025-03-26 11:09:05 [RateCDR] => 1 ) [2025-03-26 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:09:05' and `end` < '2025-03-26 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:09:18] Production.INFO: count ==4016 [2025-03-26 11:09:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:09:05 - End Time 2025-03-26 11:09:05 [2025-03-26 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766428', 'tblTempUsageDetail_20' ) start [2025-03-26 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766428', 'tblTempUsageDetail_20' ) end [2025-03-26 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766428', 'tblTempVendorCDR_20' ) start [2025-03-26 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766428', 'tblTempVendorCDR_20' ) end [2025-03-26 11:09:20] Production.INFO: ProcessCDR(1,14766428,1,1,2) [2025-03-26 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766428', 'tblTempUsageDetail_20' ) start [2025-03-26 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766428', 'tblTempUsageDetail_20' ) end [2025-03-26 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:09:25] Production.INFO: ==32258== Releasing lock... [2025-03-26 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:09:25] Production.INFO: 58 MB #Memory Used# [2025-03-26 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:10:06 [end_date_ymd] => 2025-03-26 11:10:06 [RateCDR] => 1 ) [2025-03-26 11:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:10:06' and `end` < '2025-03-26 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-26 11:10:20] Production.INFO: count ==4024 [2025-03-26 11:10:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:10:06 - End Time 2025-03-26 11:10:06 [2025-03-26 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766434', 'tblTempUsageDetail_20' ) start [2025-03-26 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766434', 'tblTempUsageDetail_20' ) end [2025-03-26 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766434', 'tblTempVendorCDR_20' ) start [2025-03-26 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766434', 'tblTempVendorCDR_20' ) end [2025-03-26 11:10:22] Production.INFO: ProcessCDR(1,14766434,1,1,2) [2025-03-26 11:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766434', 'tblTempUsageDetail_20' ) start [2025-03-26 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766434', 'tblTempUsageDetail_20' ) end [2025-03-26 11:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:10:27] Production.INFO: ==32334== Releasing lock... [2025-03-26 11:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:10:27] Production.INFO: 58 MB #Memory Used# [2025-03-26 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:11:05 [end_date_ymd] => 2025-03-26 11:11:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:11:05' and `end` < '2025-03-26 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-26 11:11:18] Production.INFO: count ==4091 [2025-03-26 11:11:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:11:05 - End Time 2025-03-26 11:11:05 [2025-03-26 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766439', 'tblTempUsageDetail_20' ) start [2025-03-26 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766439', 'tblTempUsageDetail_20' ) end [2025-03-26 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766439', 'tblTempVendorCDR_20' ) start [2025-03-26 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766439', 'tblTempVendorCDR_20' ) end [2025-03-26 11:11:20] Production.INFO: ProcessCDR(1,14766439,1,1,2) [2025-03-26 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766439', 'tblTempUsageDetail_20' ) start [2025-03-26 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766439', 'tblTempUsageDetail_20' ) end [2025-03-26 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:11:25] Production.INFO: ==32418== Releasing lock... [2025-03-26 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:11:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-26 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:12:05 [end_date_ymd] => 2025-03-26 11:12:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:12:05' and `end` < '2025-03-26 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-26 11:12:18] Production.INFO: count ==4079 [2025-03-26 11:12:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:12:05 - End Time 2025-03-26 11:12:05 [2025-03-26 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766444', 'tblTempUsageDetail_20' ) start [2025-03-26 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766444', 'tblTempUsageDetail_20' ) end [2025-03-26 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766444', 'tblTempVendorCDR_20' ) start [2025-03-26 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766444', 'tblTempVendorCDR_20' ) end [2025-03-26 11:12:20] Production.INFO: ProcessCDR(1,14766444,1,1,2) [2025-03-26 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766444', 'tblTempUsageDetail_20' ) start [2025-03-26 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766444', 'tblTempUsageDetail_20' ) end [2025-03-26 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:12:25] Production.INFO: ==32572== Releasing lock... [2025-03-26 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:12:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-26 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:13:05 [end_date_ymd] => 2025-03-26 11:13:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:13:05' and `end` < '2025-03-26 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-26 11:13:19] Production.INFO: count ==4098 [2025-03-26 11:13:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:13:05 - End Time 2025-03-26 11:13:05 [2025-03-26 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766449', 'tblTempUsageDetail_20' ) start [2025-03-26 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766449', 'tblTempUsageDetail_20' ) end [2025-03-26 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766449', 'tblTempVendorCDR_20' ) start [2025-03-26 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766449', 'tblTempVendorCDR_20' ) end [2025-03-26 11:13:20] Production.INFO: ProcessCDR(1,14766449,1,1,2) [2025-03-26 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766449', 'tblTempUsageDetail_20' ) start [2025-03-26 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766449', 'tblTempUsageDetail_20' ) end [2025-03-26 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:13:26] Production.INFO: ==32653== Releasing lock... [2025-03-26 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:13:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-26 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:14:05 [end_date_ymd] => 2025-03-26 11:14:05 [RateCDR] => 1 ) [2025-03-26 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:14:05' and `end` < '2025-03-26 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:14:18] Production.INFO: count ==4105 [2025-03-26 11:14:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:14:05 - End Time 2025-03-26 11:14:05 [2025-03-26 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766454', 'tblTempUsageDetail_20' ) start [2025-03-26 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766454', 'tblTempUsageDetail_20' ) end [2025-03-26 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766454', 'tblTempVendorCDR_20' ) start [2025-03-26 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766454', 'tblTempVendorCDR_20' ) end [2025-03-26 11:14:20] Production.INFO: ProcessCDR(1,14766454,1,1,2) [2025-03-26 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766454', 'tblTempUsageDetail_20' ) start [2025-03-26 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766454', 'tblTempUsageDetail_20' ) end [2025-03-26 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:14:25] Production.INFO: ==32725== Releasing lock... [2025-03-26 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:14:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-26 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:15:05 [end_date_ymd] => 2025-03-26 11:15:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:15:05' and `end` < '2025-03-26 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-26 11:15:18] Production.INFO: count ==4108 [2025-03-26 11:15:19] Production.ERROR: pbx CDR StartTime 2025-03-26 08:15:05 - End Time 2025-03-26 11:15:05 [2025-03-26 11:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766459', 'tblTempUsageDetail_20' ) start [2025-03-26 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766459', 'tblTempUsageDetail_20' ) end [2025-03-26 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766459', 'tblTempVendorCDR_20' ) start [2025-03-26 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766459', 'tblTempVendorCDR_20' ) end [2025-03-26 11:15:19] Production.INFO: ProcessCDR(1,14766459,1,1,2) [2025-03-26 11:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766459', 'tblTempUsageDetail_20' ) start [2025-03-26 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766459', 'tblTempUsageDetail_20' ) end [2025-03-26 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:15:25] Production.INFO: ==432== Releasing lock... [2025-03-26 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:15:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-26 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:16:05 [end_date_ymd] => 2025-03-26 11:16:05 [RateCDR] => 1 ) [2025-03-26 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:16:05' and `end` < '2025-03-26 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:16:19] Production.INFO: count ==4122 [2025-03-26 11:16:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:16:05 - End Time 2025-03-26 11:16:05 [2025-03-26 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766464', 'tblTempUsageDetail_20' ) start [2025-03-26 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766464', 'tblTempUsageDetail_20' ) end [2025-03-26 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766464', 'tblTempVendorCDR_20' ) start [2025-03-26 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766464', 'tblTempVendorCDR_20' ) end [2025-03-26 11:16:20] Production.INFO: ProcessCDR(1,14766464,1,1,2) [2025-03-26 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766464', 'tblTempUsageDetail_20' ) start [2025-03-26 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766464', 'tblTempUsageDetail_20' ) end [2025-03-26 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:16:26] Production.INFO: ==510== Releasing lock... [2025-03-26 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:16:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-26 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:17:05 [end_date_ymd] => 2025-03-26 11:17:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:17:05' and `end` < '2025-03-26 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-26 11:17:18] Production.INFO: count ==4125 [2025-03-26 11:17:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:17:05 - End Time 2025-03-26 11:17:05 [2025-03-26 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766469', 'tblTempUsageDetail_20' ) start [2025-03-26 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766469', 'tblTempUsageDetail_20' ) end [2025-03-26 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766469', 'tblTempVendorCDR_20' ) start [2025-03-26 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766469', 'tblTempVendorCDR_20' ) end [2025-03-26 11:17:20] Production.INFO: ProcessCDR(1,14766469,1,1,2) [2025-03-26 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766469', 'tblTempUsageDetail_20' ) start [2025-03-26 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766469', 'tblTempUsageDetail_20' ) end [2025-03-26 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:17:25] Production.INFO: ==589== Releasing lock... [2025-03-26 11:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:17:25] Production.INFO: 59 MB #Memory Used# [2025-03-26 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:18:06 [end_date_ymd] => 2025-03-26 11:18:06 [RateCDR] => 1 ) [2025-03-26 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-26 08:18:06' and `end` < '2025-03-26 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-26 11:18:19] Production.INFO: count ==4142 [2025-03-26 11:18:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:18:06 - End Time 2025-03-26 11:18:06 [2025-03-26 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766474', 'tblTempUsageDetail_20' ) start [2025-03-26 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766474', 'tblTempUsageDetail_20' ) end [2025-03-26 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766474', 'tblTempVendorCDR_20' ) start [2025-03-26 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766474', 'tblTempVendorCDR_20' ) end [2025-03-26 11:18:21] Production.INFO: ProcessCDR(1,14766474,1,1,2) [2025-03-26 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766474', 'tblTempUsageDetail_20' ) start [2025-03-26 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766474', 'tblTempUsageDetail_20' ) end [2025-03-26 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:18:26] Production.INFO: ==690== Releasing lock... [2025-03-26 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:18:26] Production.INFO: 59 MB #Memory Used# [2025-03-26 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:19:05 [end_date_ymd] => 2025-03-26 11:19:05 [RateCDR] => 1 ) [2025-03-26 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:19:05' and `end` < '2025-03-26 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:19:18] Production.INFO: count ==4151 [2025-03-26 11:19:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:19:05 - End Time 2025-03-26 11:19:05 [2025-03-26 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766479', 'tblTempUsageDetail_20' ) start [2025-03-26 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766479', 'tblTempUsageDetail_20' ) end [2025-03-26 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766479', 'tblTempVendorCDR_20' ) start [2025-03-26 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766479', 'tblTempVendorCDR_20' ) end [2025-03-26 11:19:20] Production.INFO: ProcessCDR(1,14766479,1,1,2) [2025-03-26 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766479', 'tblTempUsageDetail_20' ) start [2025-03-26 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766479', 'tblTempUsageDetail_20' ) end [2025-03-26 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:19:25] Production.INFO: ==815== Releasing lock... [2025-03-26 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:19:25] Production.INFO: 59 MB #Memory Used# [2025-03-26 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:20:06 [end_date_ymd] => 2025-03-26 11:20:06 [RateCDR] => 1 ) [2025-03-26 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:20:06' and `end` < '2025-03-26 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:20:19] Production.INFO: count ==4144 [2025-03-26 11:20:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:20:06 - End Time 2025-03-26 11:20:06 [2025-03-26 11:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766484', 'tblTempUsageDetail_20' ) start [2025-03-26 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766484', 'tblTempUsageDetail_20' ) end [2025-03-26 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766484', 'tblTempVendorCDR_20' ) start [2025-03-26 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766484', 'tblTempVendorCDR_20' ) end [2025-03-26 11:20:21] Production.INFO: ProcessCDR(1,14766484,1,1,2) [2025-03-26 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766484', 'tblTempUsageDetail_20' ) start [2025-03-26 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766484', 'tblTempUsageDetail_20' ) end [2025-03-26 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:20:26] Production.INFO: ==892== Releasing lock... [2025-03-26 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:20:26] Production.INFO: 59 MB #Memory Used# [2025-03-26 11:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:21:04 [end_date_ymd] => 2025-03-26 11:21:04 [RateCDR] => 1 ) [2025-03-26 11: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-26 08:21:04' and `end` < '2025-03-26 11: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-26 11:21:18] Production.INFO: count ==4244 [2025-03-26 11:21:19] Production.ERROR: pbx CDR StartTime 2025-03-26 08:21:04 - End Time 2025-03-26 11:21:04 [2025-03-26 11:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766490', 'tblTempUsageDetail_20' ) start [2025-03-26 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766490', 'tblTempUsageDetail_20' ) end [2025-03-26 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766490', 'tblTempVendorCDR_20' ) start [2025-03-26 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766490', 'tblTempVendorCDR_20' ) end [2025-03-26 11:21:20] Production.INFO: ProcessCDR(1,14766490,1,1,2) [2025-03-26 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766490', 'tblTempUsageDetail_20' ) start [2025-03-26 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766490', 'tblTempUsageDetail_20' ) end [2025-03-26 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:21:25] Production.INFO: ==975== Releasing lock... [2025-03-26 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:21:25] Production.INFO: 59.75 MB #Memory Used# [2025-03-26 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:22:06 [end_date_ymd] => 2025-03-26 11:22:06 [RateCDR] => 1 ) [2025-03-26 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-26 08:22:06' and `end` < '2025-03-26 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-26 11:22:19] Production.INFO: count ==4286 [2025-03-26 11:22:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:22:06 - End Time 2025-03-26 11:22:06 [2025-03-26 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766495', 'tblTempUsageDetail_20' ) start [2025-03-26 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766495', 'tblTempUsageDetail_20' ) end [2025-03-26 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766495', 'tblTempVendorCDR_20' ) start [2025-03-26 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766495', 'tblTempVendorCDR_20' ) end [2025-03-26 11:22:21] Production.INFO: ProcessCDR(1,14766495,1,1,2) [2025-03-26 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766495', 'tblTempUsageDetail_20' ) start [2025-03-26 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766495', 'tblTempUsageDetail_20' ) end [2025-03-26 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:22:26] Production.INFO: ==1051== Releasing lock... [2025-03-26 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:22:26] Production.INFO: 60 MB #Memory Used# [2025-03-26 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:23:05 [end_date_ymd] => 2025-03-26 11:23:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:23:05' and `end` < '2025-03-26 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-26 11:23:18] Production.INFO: count ==4306 [2025-03-26 11:23:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:23:05 - End Time 2025-03-26 11:23:05 [2025-03-26 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766500', 'tblTempUsageDetail_20' ) start [2025-03-26 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766500', 'tblTempUsageDetail_20' ) end [2025-03-26 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766500', 'tblTempVendorCDR_20' ) start [2025-03-26 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766500', 'tblTempVendorCDR_20' ) end [2025-03-26 11:23:20] Production.INFO: ProcessCDR(1,14766500,1,1,2) [2025-03-26 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766500', 'tblTempUsageDetail_20' ) start [2025-03-26 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766500', 'tblTempUsageDetail_20' ) end [2025-03-26 11:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:23:25] Production.INFO: ==1129== Releasing lock... [2025-03-26 11:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:23:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-26 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:24:05 [end_date_ymd] => 2025-03-26 11:24:05 [RateCDR] => 1 ) [2025-03-26 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:24:05' and `end` < '2025-03-26 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:24:19] Production.INFO: count ==4310 [2025-03-26 11:24:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:24:05 - End Time 2025-03-26 11:24:05 [2025-03-26 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766505', 'tblTempUsageDetail_20' ) start [2025-03-26 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766505', 'tblTempUsageDetail_20' ) end [2025-03-26 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766505', 'tblTempVendorCDR_20' ) start [2025-03-26 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766505', 'tblTempVendorCDR_20' ) end [2025-03-26 11:24:20] Production.INFO: ProcessCDR(1,14766505,1,1,2) [2025-03-26 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766505', 'tblTempUsageDetail_20' ) start [2025-03-26 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766505', 'tblTempUsageDetail_20' ) end [2025-03-26 11:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:24:25] Production.INFO: ==1216== Releasing lock... [2025-03-26 11:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:24:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-26 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:25:05 [end_date_ymd] => 2025-03-26 11:25:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:25:05' and `end` < '2025-03-26 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-26 11:25:19] Production.INFO: count ==4324 [2025-03-26 11:25:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:25:05 - End Time 2025-03-26 11:25:05 [2025-03-26 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766510', 'tblTempUsageDetail_20' ) start [2025-03-26 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766510', 'tblTempUsageDetail_20' ) end [2025-03-26 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766510', 'tblTempVendorCDR_20' ) start [2025-03-26 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766510', 'tblTempVendorCDR_20' ) end [2025-03-26 11:25:21] Production.INFO: ProcessCDR(1,14766510,1,1,2) [2025-03-26 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766510', 'tblTempUsageDetail_20' ) start [2025-03-26 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766510', 'tblTempUsageDetail_20' ) end [2025-03-26 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:25:26] Production.INFO: ==1301== Releasing lock... [2025-03-26 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:25:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-26 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:26:05 [end_date_ymd] => 2025-03-26 11:26:05 [RateCDR] => 1 ) [2025-03-26 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:26:05' and `end` < '2025-03-26 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:26:18] Production.INFO: count ==4326 [2025-03-26 11:26:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:26:05 - End Time 2025-03-26 11:26:05 [2025-03-26 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766515', 'tblTempUsageDetail_20' ) start [2025-03-26 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766515', 'tblTempUsageDetail_20' ) end [2025-03-26 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766515', 'tblTempVendorCDR_20' ) start [2025-03-26 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766515', 'tblTempVendorCDR_20' ) end [2025-03-26 11:26:20] Production.INFO: ProcessCDR(1,14766515,1,1,2) [2025-03-26 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766515', 'tblTempUsageDetail_20' ) start [2025-03-26 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766515', 'tblTempUsageDetail_20' ) end [2025-03-26 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:26:25] Production.INFO: ==1378== Releasing lock... [2025-03-26 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:26:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-26 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:27:05 [end_date_ymd] => 2025-03-26 11:27:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:27:05' and `end` < '2025-03-26 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-26 11:27:19] Production.INFO: count ==4328 [2025-03-26 11:27:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:27:05 - End Time 2025-03-26 11:27:05 [2025-03-26 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766520', 'tblTempUsageDetail_20' ) start [2025-03-26 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766520', 'tblTempUsageDetail_20' ) end [2025-03-26 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766520', 'tblTempVendorCDR_20' ) start [2025-03-26 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766520', 'tblTempVendorCDR_20' ) end [2025-03-26 11:27:21] Production.INFO: ProcessCDR(1,14766520,1,1,2) [2025-03-26 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766520', 'tblTempUsageDetail_20' ) start [2025-03-26 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766520', 'tblTempUsageDetail_20' ) end [2025-03-26 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:27:26] Production.INFO: ==1457== Releasing lock... [2025-03-26 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:27:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-26 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:28:05 [end_date_ymd] => 2025-03-26 11:28:05 [RateCDR] => 1 ) [2025-03-26 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:28:05' and `end` < '2025-03-26 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:28:18] Production.INFO: count ==4342 [2025-03-26 11:28:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:28:05 - End Time 2025-03-26 11:28:05 [2025-03-26 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766525', 'tblTempUsageDetail_20' ) start [2025-03-26 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766525', 'tblTempUsageDetail_20' ) end [2025-03-26 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766525', 'tblTempVendorCDR_20' ) start [2025-03-26 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766525', 'tblTempVendorCDR_20' ) end [2025-03-26 11:28:20] Production.INFO: ProcessCDR(1,14766525,1,1,2) [2025-03-26 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766525', 'tblTempUsageDetail_20' ) start [2025-03-26 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766525', 'tblTempUsageDetail_20' ) end [2025-03-26 11:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:28:25] Production.INFO: ==1563== Releasing lock... [2025-03-26 11:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:28:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-26 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:29:06 [end_date_ymd] => 2025-03-26 11:29:06 [RateCDR] => 1 ) [2025-03-26 11:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:29:06' and `end` < '2025-03-26 11:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:29:19] Production.INFO: count ==4346 [2025-03-26 11:29:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:29:06 - End Time 2025-03-26 11:29:06 [2025-03-26 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766530', 'tblTempUsageDetail_20' ) start [2025-03-26 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766530', 'tblTempUsageDetail_20' ) end [2025-03-26 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766530', 'tblTempVendorCDR_20' ) start [2025-03-26 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766530', 'tblTempVendorCDR_20' ) end [2025-03-26 11:29:21] Production.INFO: ProcessCDR(1,14766530,1,1,2) [2025-03-26 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766530', 'tblTempUsageDetail_20' ) start [2025-03-26 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766530', 'tblTempUsageDetail_20' ) end [2025-03-26 11:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:29:26] Production.INFO: ==1636== Releasing lock... [2025-03-26 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:29:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-26 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:30:06 [end_date_ymd] => 2025-03-26 11:30:06 [RateCDR] => 1 ) [2025-03-26 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-26 08:30:06' and `end` < '2025-03-26 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-26 11:30:19] Production.INFO: count ==4364 [2025-03-26 11:30:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:30:06 - End Time 2025-03-26 11:30:06 [2025-03-26 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766536', 'tblTempUsageDetail_20' ) start [2025-03-26 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766536', 'tblTempUsageDetail_20' ) end [2025-03-26 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766536', 'tblTempVendorCDR_20' ) start [2025-03-26 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766536', 'tblTempVendorCDR_20' ) end [2025-03-26 11:30:21] Production.INFO: ProcessCDR(1,14766536,1,1,2) [2025-03-26 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766536', 'tblTempUsageDetail_20' ) start [2025-03-26 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766536', 'tblTempUsageDetail_20' ) end [2025-03-26 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:30:27] Production.INFO: ==1713== Releasing lock... [2025-03-26 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:30:27] Production.INFO: 60.75 MB #Memory Used# [2025-03-26 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:31:05 [end_date_ymd] => 2025-03-26 11:31:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:31:05' and `end` < '2025-03-26 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-26 11:31:19] Production.INFO: count ==4463 [2025-03-26 11:31:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:31:05 - End Time 2025-03-26 11:31:05 [2025-03-26 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766541', 'tblTempUsageDetail_20' ) start [2025-03-26 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766541', 'tblTempUsageDetail_20' ) end [2025-03-26 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766541', 'tblTempVendorCDR_20' ) start [2025-03-26 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766541', 'tblTempVendorCDR_20' ) end [2025-03-26 11:31:21] Production.INFO: ProcessCDR(1,14766541,1,1,2) [2025-03-26 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766541', 'tblTempUsageDetail_20' ) start [2025-03-26 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766541', 'tblTempUsageDetail_20' ) end [2025-03-26 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:31:26] Production.INFO: ==1800== Releasing lock... [2025-03-26 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:31:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-26 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:32:05 [end_date_ymd] => 2025-03-26 11:32:05 [RateCDR] => 1 ) [2025-03-26 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:32:05' and `end` < '2025-03-26 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:32:18] Production.INFO: count ==4478 [2025-03-26 11:32:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:32:05 - End Time 2025-03-26 11:32:05 [2025-03-26 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766546', 'tblTempUsageDetail_20' ) start [2025-03-26 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766546', 'tblTempUsageDetail_20' ) end [2025-03-26 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766546', 'tblTempVendorCDR_20' ) start [2025-03-26 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766546', 'tblTempVendorCDR_20' ) end [2025-03-26 11:32:20] Production.INFO: ProcessCDR(1,14766546,1,1,2) [2025-03-26 11:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766546', 'tblTempUsageDetail_20' ) start [2025-03-26 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766546', 'tblTempUsageDetail_20' ) end [2025-03-26 11:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:32:25] Production.INFO: ==1876== Releasing lock... [2025-03-26 11:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:32:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-26 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:33:05 [end_date_ymd] => 2025-03-26 11:33:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:33:05' and `end` < '2025-03-26 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-26 11:33:19] Production.INFO: count ==4495 [2025-03-26 11:33:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:33:05 - End Time 2025-03-26 11:33:05 [2025-03-26 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766551', 'tblTempUsageDetail_20' ) start [2025-03-26 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766551', 'tblTempUsageDetail_20' ) end [2025-03-26 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766551', 'tblTempVendorCDR_20' ) start [2025-03-26 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766551', 'tblTempVendorCDR_20' ) end [2025-03-26 11:33:21] Production.INFO: ProcessCDR(1,14766551,1,1,2) [2025-03-26 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766551', 'tblTempUsageDetail_20' ) start [2025-03-26 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766551', 'tblTempUsageDetail_20' ) end [2025-03-26 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:33:26] Production.INFO: ==1949== Releasing lock... [2025-03-26 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:33:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-26 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:34:06 [end_date_ymd] => 2025-03-26 11:34:06 [RateCDR] => 1 ) [2025-03-26 11:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:34:06' and `end` < '2025-03-26 11:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:34:19] Production.INFO: count ==4503 [2025-03-26 11:34:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:34:06 - End Time 2025-03-26 11:34:06 [2025-03-26 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766556', 'tblTempUsageDetail_20' ) start [2025-03-26 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766556', 'tblTempUsageDetail_20' ) end [2025-03-26 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766556', 'tblTempVendorCDR_20' ) start [2025-03-26 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766556', 'tblTempVendorCDR_20' ) end [2025-03-26 11:34:21] Production.INFO: ProcessCDR(1,14766556,1,1,2) [2025-03-26 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766556', 'tblTempUsageDetail_20' ) start [2025-03-26 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766556', 'tblTempUsageDetail_20' ) end [2025-03-26 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:34:26] Production.INFO: ==2063== Releasing lock... [2025-03-26 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:34:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-26 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:35:05 [end_date_ymd] => 2025-03-26 11:35:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:35:05' and `end` < '2025-03-26 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-26 11:35:19] Production.INFO: count ==4538 [2025-03-26 11:35:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:35:05 - End Time 2025-03-26 11:35:05 [2025-03-26 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766561', 'tblTempUsageDetail_20' ) start [2025-03-26 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766561', 'tblTempUsageDetail_20' ) end [2025-03-26 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766561', 'tblTempVendorCDR_20' ) start [2025-03-26 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766561', 'tblTempVendorCDR_20' ) end [2025-03-26 11:35:21] Production.INFO: ProcessCDR(1,14766561,1,1,2) [2025-03-26 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766561', 'tblTempUsageDetail_20' ) start [2025-03-26 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766561', 'tblTempUsageDetail_20' ) end [2025-03-26 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:35:26] Production.INFO: ==2135== Releasing lock... [2025-03-26 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:35:26] Production.INFO: 62 MB #Memory Used# [2025-03-26 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:36:06 [end_date_ymd] => 2025-03-26 11:36:06 [RateCDR] => 1 ) [2025-03-26 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:36:06' and `end` < '2025-03-26 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:36:19] Production.INFO: count ==4549 [2025-03-26 11:36:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:36:06 - End Time 2025-03-26 11:36:06 [2025-03-26 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766566', 'tblTempUsageDetail_20' ) start [2025-03-26 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766566', 'tblTempUsageDetail_20' ) end [2025-03-26 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766566', 'tblTempVendorCDR_20' ) start [2025-03-26 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766566', 'tblTempVendorCDR_20' ) end [2025-03-26 11:36:21] Production.INFO: ProcessCDR(1,14766566,1,1,2) [2025-03-26 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766566', 'tblTempUsageDetail_20' ) start [2025-03-26 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766566', 'tblTempUsageDetail_20' ) end [2025-03-26 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:36:27] Production.INFO: ==2209== Releasing lock... [2025-03-26 11:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:36:27] Production.INFO: 62 MB #Memory Used# [2025-03-26 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:37:05 [end_date_ymd] => 2025-03-26 11:37:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:37:05' and `end` < '2025-03-26 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-26 11:37:18] Production.INFO: count ==4546 [2025-03-26 11:37:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:37:05 - End Time 2025-03-26 11:37:05 [2025-03-26 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766571', 'tblTempUsageDetail_20' ) start [2025-03-26 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766571', 'tblTempUsageDetail_20' ) end [2025-03-26 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766571', 'tblTempVendorCDR_20' ) start [2025-03-26 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766571', 'tblTempVendorCDR_20' ) end [2025-03-26 11:37:20] Production.INFO: ProcessCDR(1,14766571,1,1,2) [2025-03-26 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766571', 'tblTempUsageDetail_20' ) start [2025-03-26 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766571', 'tblTempUsageDetail_20' ) end [2025-03-26 11:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:37:25] Production.INFO: ==2282== Releasing lock... [2025-03-26 11:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:37:25] Production.INFO: 62 MB #Memory Used# [2025-03-26 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:38:06 [end_date_ymd] => 2025-03-26 11:38:06 [RateCDR] => 1 ) [2025-03-26 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-26 08:38:06' and `end` < '2025-03-26 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-26 11:38:19] Production.INFO: count ==4567 [2025-03-26 11:38:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:38:06 - End Time 2025-03-26 11:38:06 [2025-03-26 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766576', 'tblTempUsageDetail_20' ) start [2025-03-26 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766576', 'tblTempUsageDetail_20' ) end [2025-03-26 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766576', 'tblTempVendorCDR_20' ) start [2025-03-26 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766576', 'tblTempVendorCDR_20' ) end [2025-03-26 11:38:21] Production.INFO: ProcessCDR(1,14766576,1,1,2) [2025-03-26 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766576', 'tblTempUsageDetail_20' ) start [2025-03-26 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766576', 'tblTempUsageDetail_20' ) end [2025-03-26 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:38:26] Production.INFO: ==2358== Releasing lock... [2025-03-26 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:38:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-26 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:39:05 [end_date_ymd] => 2025-03-26 11:39:05 [RateCDR] => 1 ) [2025-03-26 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:39:05' and `end` < '2025-03-26 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:39:18] Production.INFO: count ==4571 [2025-03-26 11:39:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:39:05 - End Time 2025-03-26 11:39:05 [2025-03-26 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766581', 'tblTempUsageDetail_20' ) start [2025-03-26 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766581', 'tblTempUsageDetail_20' ) end [2025-03-26 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766581', 'tblTempVendorCDR_20' ) start [2025-03-26 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766581', 'tblTempVendorCDR_20' ) end [2025-03-26 11:39:21] Production.INFO: ProcessCDR(1,14766581,1,1,2) [2025-03-26 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766581', 'tblTempUsageDetail_20' ) start [2025-03-26 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766581', 'tblTempUsageDetail_20' ) end [2025-03-26 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:39:26] Production.INFO: ==2430== Releasing lock... [2025-03-26 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:39:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-26 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:40:07 [end_date_ymd] => 2025-03-26 11:40:07 [RateCDR] => 1 ) [2025-03-26 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-26 08:40:07' and `end` < '2025-03-26 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-26 11:40:20] Production.INFO: count ==4603 [2025-03-26 11:40:22] Production.ERROR: pbx CDR StartTime 2025-03-26 08:40:07 - End Time 2025-03-26 11:40:07 [2025-03-26 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766586', 'tblTempUsageDetail_20' ) start [2025-03-26 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766586', 'tblTempUsageDetail_20' ) end [2025-03-26 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766586', 'tblTempVendorCDR_20' ) start [2025-03-26 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766586', 'tblTempVendorCDR_20' ) end [2025-03-26 11:40:22] Production.INFO: ProcessCDR(1,14766586,1,1,2) [2025-03-26 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766586', 'tblTempUsageDetail_20' ) start [2025-03-26 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766586', 'tblTempUsageDetail_20' ) end [2025-03-26 11:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:40:28] Production.INFO: ==2502== Releasing lock... [2025-03-26 11:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:40:28] Production.INFO: 62.5 MB #Memory Used# [2025-03-26 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:41:05 [end_date_ymd] => 2025-03-26 11:41:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:41:05' and `end` < '2025-03-26 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-26 11:41:18] Production.INFO: count ==4673 [2025-03-26 11:41:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:41:05 - End Time 2025-03-26 11:41:05 [2025-03-26 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766592', 'tblTempUsageDetail_20' ) start [2025-03-26 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766592', 'tblTempUsageDetail_20' ) end [2025-03-26 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766592', 'tblTempVendorCDR_20' ) start [2025-03-26 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766592', 'tblTempVendorCDR_20' ) end [2025-03-26 11:41:20] Production.INFO: ProcessCDR(1,14766592,1,1,2) [2025-03-26 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766592', 'tblTempUsageDetail_20' ) start [2025-03-26 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766592', 'tblTempUsageDetail_20' ) end [2025-03-26 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:41:25] Production.INFO: ==2592== Releasing lock... [2025-03-26 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:41:25] Production.INFO: 63 MB #Memory Used# [2025-03-26 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:42:05 [end_date_ymd] => 2025-03-26 11:42:05 [RateCDR] => 1 ) [2025-03-26 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:42:05' and `end` < '2025-03-26 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:42:19] Production.INFO: count ==4685 [2025-03-26 11:42:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:42:05 - End Time 2025-03-26 11:42:05 [2025-03-26 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766597', 'tblTempUsageDetail_20' ) start [2025-03-26 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766597', 'tblTempUsageDetail_20' ) end [2025-03-26 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766597', 'tblTempVendorCDR_20' ) start [2025-03-26 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766597', 'tblTempVendorCDR_20' ) end [2025-03-26 11:42:21] Production.INFO: ProcessCDR(1,14766597,1,1,2) [2025-03-26 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766597', 'tblTempUsageDetail_20' ) start [2025-03-26 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766597', 'tblTempUsageDetail_20' ) end [2025-03-26 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:42:26] Production.INFO: ==2668== Releasing lock... [2025-03-26 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:42:26] Production.INFO: 63 MB #Memory Used# [2025-03-26 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:43:05 [end_date_ymd] => 2025-03-26 11:43:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:43:05' and `end` < '2025-03-26 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-26 11:43:19] Production.INFO: count ==4694 [2025-03-26 11:43:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:43:05 - End Time 2025-03-26 11:43:05 [2025-03-26 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766602', 'tblTempUsageDetail_20' ) start [2025-03-26 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766602', 'tblTempUsageDetail_20' ) end [2025-03-26 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766602', 'tblTempVendorCDR_20' ) start [2025-03-26 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766602', 'tblTempVendorCDR_20' ) end [2025-03-26 11:43:21] Production.INFO: ProcessCDR(1,14766602,1,1,2) [2025-03-26 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766602', 'tblTempUsageDetail_20' ) start [2025-03-26 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766602', 'tblTempUsageDetail_20' ) end [2025-03-26 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:43:26] Production.INFO: ==2742== Releasing lock... [2025-03-26 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:43:26] Production.INFO: 63 MB #Memory Used# [2025-03-26 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:44:05 [end_date_ymd] => 2025-03-26 11:44:05 [RateCDR] => 1 ) [2025-03-26 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:44:05' and `end` < '2025-03-26 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:44:18] Production.INFO: count ==4696 [2025-03-26 11:44:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:44:05 - End Time 2025-03-26 11:44:05 [2025-03-26 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766607', 'tblTempUsageDetail_20' ) start [2025-03-26 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766607', 'tblTempUsageDetail_20' ) end [2025-03-26 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766607', 'tblTempVendorCDR_20' ) start [2025-03-26 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766607', 'tblTempVendorCDR_20' ) end [2025-03-26 11:44:20] Production.INFO: ProcessCDR(1,14766607,1,1,2) [2025-03-26 11:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766607', 'tblTempUsageDetail_20' ) start [2025-03-26 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766607', 'tblTempUsageDetail_20' ) end [2025-03-26 11:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:44:25] Production.INFO: ==2812== Releasing lock... [2025-03-26 11:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:44:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-26 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:45:05 [end_date_ymd] => 2025-03-26 11:45:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:45:05' and `end` < '2025-03-26 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-26 11:45:18] Production.INFO: count ==4709 [2025-03-26 11:45:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:45:05 - End Time 2025-03-26 11:45:05 [2025-03-26 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766612', 'tblTempUsageDetail_20' ) start [2025-03-26 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766612', 'tblTempUsageDetail_20' ) end [2025-03-26 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766612', 'tblTempVendorCDR_20' ) start [2025-03-26 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766612', 'tblTempVendorCDR_20' ) end [2025-03-26 11:45:20] Production.INFO: ProcessCDR(1,14766612,1,1,2) [2025-03-26 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766612', 'tblTempUsageDetail_20' ) start [2025-03-26 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766612', 'tblTempUsageDetail_20' ) end [2025-03-26 11:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:45:25] Production.INFO: ==2883== Releasing lock... [2025-03-26 11:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:45:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-26 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:46:06 [end_date_ymd] => 2025-03-26 11:46:06 [RateCDR] => 1 ) [2025-03-26 11:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:46:06' and `end` < '2025-03-26 11:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:46:19] Production.INFO: count ==4723 [2025-03-26 11:46:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:46:06 - End Time 2025-03-26 11:46:06 [2025-03-26 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766617', 'tblTempUsageDetail_20' ) start [2025-03-26 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766617', 'tblTempUsageDetail_20' ) end [2025-03-26 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766617', 'tblTempVendorCDR_20' ) start [2025-03-26 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766617', 'tblTempVendorCDR_20' ) end [2025-03-26 11:46:21] Production.INFO: ProcessCDR(1,14766617,1,1,2) [2025-03-26 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766617', 'tblTempUsageDetail_20' ) start [2025-03-26 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766617', 'tblTempUsageDetail_20' ) end [2025-03-26 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:46:27] Production.INFO: ==2953== Releasing lock... [2025-03-26 11:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:46:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-26 11:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:47:04 [end_date_ymd] => 2025-03-26 11:47:04 [RateCDR] => 1 ) [2025-03-26 11:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:47:04' and `end` < '2025-03-26 11:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:47:18] Production.INFO: count ==4716 [2025-03-26 11:47:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:47:04 - End Time 2025-03-26 11:47:04 [2025-03-26 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766622', 'tblTempUsageDetail_20' ) start [2025-03-26 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766622', 'tblTempUsageDetail_20' ) end [2025-03-26 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766622', 'tblTempVendorCDR_20' ) start [2025-03-26 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766622', 'tblTempVendorCDR_20' ) end [2025-03-26 11:47:20] Production.INFO: ProcessCDR(1,14766622,1,1,2) [2025-03-26 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766622', 'tblTempUsageDetail_20' ) start [2025-03-26 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766622', 'tblTempUsageDetail_20' ) end [2025-03-26 11:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:47:25] Production.INFO: ==3025== Releasing lock... [2025-03-26 11:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:47:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-26 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:48:05 [end_date_ymd] => 2025-03-26 11:48:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:48:05' and `end` < '2025-03-26 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-26 11:48:19] Production.INFO: count ==4728 [2025-03-26 11:48:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:48:05 - End Time 2025-03-26 11:48:05 [2025-03-26 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766627', 'tblTempUsageDetail_20' ) start [2025-03-26 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766627', 'tblTempUsageDetail_20' ) end [2025-03-26 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766627', 'tblTempVendorCDR_20' ) start [2025-03-26 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766627', 'tblTempVendorCDR_20' ) end [2025-03-26 11:48:21] Production.INFO: ProcessCDR(1,14766627,1,1,2) [2025-03-26 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766627', 'tblTempUsageDetail_20' ) start [2025-03-26 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766627', 'tblTempUsageDetail_20' ) end [2025-03-26 11:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:48:26] Production.INFO: ==3099== Releasing lock... [2025-03-26 11:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:48:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-26 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:49:05 [end_date_ymd] => 2025-03-26 11:49:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:49:05' and `end` < '2025-03-26 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-26 11:49:18] Production.INFO: count ==4743 [2025-03-26 11:49:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:49:05 - End Time 2025-03-26 11:49:05 [2025-03-26 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766632', 'tblTempUsageDetail_20' ) start [2025-03-26 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766632', 'tblTempUsageDetail_20' ) end [2025-03-26 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766632', 'tblTempVendorCDR_20' ) start [2025-03-26 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766632', 'tblTempVendorCDR_20' ) end [2025-03-26 11:49:20] Production.INFO: ProcessCDR(1,14766632,1,1,2) [2025-03-26 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766632', 'tblTempUsageDetail_20' ) start [2025-03-26 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766632', 'tblTempUsageDetail_20' ) end [2025-03-26 11:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:49:25] Production.INFO: ==3213== Releasing lock... [2025-03-26 11:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:49:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-26 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:50:06 [end_date_ymd] => 2025-03-26 11:50:06 [RateCDR] => 1 ) [2025-03-26 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-26 08:50:06' and `end` < '2025-03-26 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-26 11:50:19] Production.INFO: count ==4738 [2025-03-26 11:50:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:50:06 - End Time 2025-03-26 11:50:06 [2025-03-26 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766638', 'tblTempUsageDetail_20' ) start [2025-03-26 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766638', 'tblTempUsageDetail_20' ) end [2025-03-26 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766638', 'tblTempVendorCDR_20' ) start [2025-03-26 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766638', 'tblTempVendorCDR_20' ) end [2025-03-26 11:50:21] Production.INFO: ProcessCDR(1,14766638,1,1,2) [2025-03-26 11:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766638', 'tblTempUsageDetail_20' ) start [2025-03-26 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766638', 'tblTempUsageDetail_20' ) end [2025-03-26 11:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:50:27] Production.INFO: ==3289== Releasing lock... [2025-03-26 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:50:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-26 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:51:05 [end_date_ymd] => 2025-03-26 11:51:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:51:05' and `end` < '2025-03-26 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-26 11:51:19] Production.INFO: count ==4795 [2025-03-26 11:51:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:51:05 - End Time 2025-03-26 11:51:05 [2025-03-26 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766643', 'tblTempUsageDetail_20' ) start [2025-03-26 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766643', 'tblTempUsageDetail_20' ) end [2025-03-26 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766643', 'tblTempVendorCDR_20' ) start [2025-03-26 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766643', 'tblTempVendorCDR_20' ) end [2025-03-26 11:51:21] Production.INFO: ProcessCDR(1,14766643,1,1,2) [2025-03-26 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766643', 'tblTempUsageDetail_20' ) start [2025-03-26 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766643', 'tblTempUsageDetail_20' ) end [2025-03-26 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:51:26] Production.INFO: ==3362== Releasing lock... [2025-03-26 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:51:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-26 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:52:05 [end_date_ymd] => 2025-03-26 11:52:05 [RateCDR] => 1 ) [2025-03-26 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:52:05' and `end` < '2025-03-26 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:52:19] Production.INFO: count ==4820 [2025-03-26 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:52:05 - End Time 2025-03-26 11:52:05 [2025-03-26 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766648', 'tblTempUsageDetail_20' ) start [2025-03-26 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766648', 'tblTempUsageDetail_20' ) end [2025-03-26 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766648', 'tblTempVendorCDR_20' ) start [2025-03-26 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766648', 'tblTempVendorCDR_20' ) end [2025-03-26 11:52:21] Production.INFO: ProcessCDR(1,14766648,1,1,2) [2025-03-26 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766648', 'tblTempUsageDetail_20' ) start [2025-03-26 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766648', 'tblTempUsageDetail_20' ) end [2025-03-26 11:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:52:26] Production.INFO: ==3436== Releasing lock... [2025-03-26 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:52:26] Production.INFO: 64 MB #Memory Used# [2025-03-26 11:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:53:06 [end_date_ymd] => 2025-03-26 11:53:06 [RateCDR] => 1 ) [2025-03-26 11: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-26 08:53:06' and `end` < '2025-03-26 11: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-26 11:53:19] Production.INFO: count ==4818 [2025-03-26 11:53:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:53:06 - End Time 2025-03-26 11:53:06 [2025-03-26 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766653', 'tblTempUsageDetail_20' ) start [2025-03-26 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766653', 'tblTempUsageDetail_20' ) end [2025-03-26 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766653', 'tblTempVendorCDR_20' ) start [2025-03-26 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766653', 'tblTempVendorCDR_20' ) end [2025-03-26 11:53:21] Production.INFO: ProcessCDR(1,14766653,1,1,2) [2025-03-26 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766653', 'tblTempUsageDetail_20' ) start [2025-03-26 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766653', 'tblTempUsageDetail_20' ) end [2025-03-26 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:53:26] Production.INFO: ==3511== Releasing lock... [2025-03-26 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:53:26] Production.INFO: 64 MB #Memory Used# [2025-03-26 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:54:05 [end_date_ymd] => 2025-03-26 11:54:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:54:05' and `end` < '2025-03-26 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-26 11:54:18] Production.INFO: count ==4859 [2025-03-26 11:54:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:54:05 - End Time 2025-03-26 11:54:05 [2025-03-26 11:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766658', 'tblTempUsageDetail_20' ) start [2025-03-26 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766658', 'tblTempUsageDetail_20' ) end [2025-03-26 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766658', 'tblTempVendorCDR_20' ) start [2025-03-26 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766658', 'tblTempVendorCDR_20' ) end [2025-03-26 11:54:20] Production.INFO: ProcessCDR(1,14766658,1,1,2) [2025-03-26 11:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766658', 'tblTempUsageDetail_20' ) start [2025-03-26 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766658', 'tblTempUsageDetail_20' ) end [2025-03-26 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:54:26] Production.INFO: ==3585== Releasing lock... [2025-03-26 11:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:54:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-26 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:55:06 [end_date_ymd] => 2025-03-26 11:55:06 [RateCDR] => 1 ) [2025-03-26 11: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-26 08:55:06' and `end` < '2025-03-26 11: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-26 11:55:19] Production.INFO: count ==4873 [2025-03-26 11:55:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:55:06 - End Time 2025-03-26 11:55:06 [2025-03-26 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766663', 'tblTempUsageDetail_20' ) start [2025-03-26 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766663', 'tblTempUsageDetail_20' ) end [2025-03-26 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766663', 'tblTempVendorCDR_20' ) start [2025-03-26 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766663', 'tblTempVendorCDR_20' ) end [2025-03-26 11:55:21] Production.INFO: ProcessCDR(1,14766663,1,1,2) [2025-03-26 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766663', 'tblTempUsageDetail_20' ) start [2025-03-26 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766663', 'tblTempUsageDetail_20' ) end [2025-03-26 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:55:26] Production.INFO: ==3670== Releasing lock... [2025-03-26 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:55:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-26 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:56:06 [end_date_ymd] => 2025-03-26 11:56:06 [RateCDR] => 1 ) [2025-03-26 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-26 08:56:06' and `end` < '2025-03-26 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-26 11:56:19] Production.INFO: count ==4867 [2025-03-26 11:56:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:56:06 - End Time 2025-03-26 11:56:06 [2025-03-26 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766668', 'tblTempUsageDetail_20' ) start [2025-03-26 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766668', 'tblTempUsageDetail_20' ) end [2025-03-26 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766668', 'tblTempVendorCDR_20' ) start [2025-03-26 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766668', 'tblTempVendorCDR_20' ) end [2025-03-26 11:56:21] Production.INFO: ProcessCDR(1,14766668,1,1,2) [2025-03-26 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766668', 'tblTempUsageDetail_20' ) start [2025-03-26 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766668', 'tblTempUsageDetail_20' ) end [2025-03-26 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:56:26] Production.INFO: ==3748== Releasing lock... [2025-03-26 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:56:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-26 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:57:05 [end_date_ymd] => 2025-03-26 11:57:05 [RateCDR] => 1 ) [2025-03-26 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-26 08:57:05' and `end` < '2025-03-26 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-26 11:57:18] Production.INFO: count ==4875 [2025-03-26 11:57:20] Production.ERROR: pbx CDR StartTime 2025-03-26 08:57:05 - End Time 2025-03-26 11:57:05 [2025-03-26 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766673', 'tblTempUsageDetail_20' ) start [2025-03-26 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766673', 'tblTempUsageDetail_20' ) end [2025-03-26 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766673', 'tblTempVendorCDR_20' ) start [2025-03-26 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766673', 'tblTempVendorCDR_20' ) end [2025-03-26 11:57:21] Production.INFO: ProcessCDR(1,14766673,1,1,2) [2025-03-26 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766673', 'tblTempUsageDetail_20' ) start [2025-03-26 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766673', 'tblTempUsageDetail_20' ) end [2025-03-26 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:57:26] Production.INFO: ==3820== Releasing lock... [2025-03-26 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:57:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-26 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:58:05 [end_date_ymd] => 2025-03-26 11:58:05 [RateCDR] => 1 ) [2025-03-26 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:58:05' and `end` < '2025-03-26 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:58:19] Production.INFO: count ==4877 [2025-03-26 11:58:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:58:05 - End Time 2025-03-26 11:58:05 [2025-03-26 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766678', 'tblTempUsageDetail_20' ) start [2025-03-26 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766678', 'tblTempUsageDetail_20' ) end [2025-03-26 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766678', 'tblTempVendorCDR_20' ) start [2025-03-26 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766678', 'tblTempVendorCDR_20' ) end [2025-03-26 11:58:21] Production.INFO: ProcessCDR(1,14766678,1,1,2) [2025-03-26 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766678', 'tblTempUsageDetail_20' ) start [2025-03-26 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766678', 'tblTempUsageDetail_20' ) end [2025-03-26 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:58:26] Production.INFO: ==3897== Releasing lock... [2025-03-26 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:58:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-26 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 08:59:05 [end_date_ymd] => 2025-03-26 11:59:05 [RateCDR] => 1 ) [2025-03-26 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 08:59:05' and `end` < '2025-03-26 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 11:59:19] Production.INFO: count ==4882 [2025-03-26 11:59:21] Production.ERROR: pbx CDR StartTime 2025-03-26 08:59:05 - End Time 2025-03-26 11:59:05 [2025-03-26 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766683', 'tblTempUsageDetail_20' ) start [2025-03-26 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766683', 'tblTempUsageDetail_20' ) end [2025-03-26 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766683', 'tblTempVendorCDR_20' ) start [2025-03-26 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766683', 'tblTempVendorCDR_20' ) end [2025-03-26 11:59:21] Production.INFO: ProcessCDR(1,14766683,1,1,2) [2025-03-26 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766683', 'tblTempUsageDetail_20' ) start [2025-03-26 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766683', 'tblTempUsageDetail_20' ) end [2025-03-26 11:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 11:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 11:59:27] Production.INFO: ==3969== Releasing lock... [2025-03-26 11:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 11:59:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-26 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:00:06 [end_date_ymd] => 2025-03-26 12:00:06 [RateCDR] => 1 ) [2025-03-26 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-26 09:00:06' and `end` < '2025-03-26 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-26 12:00:20] Production.INFO: count ==4887 [2025-03-26 12:00:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:00:06 - End Time 2025-03-26 12:00:06 [2025-03-26 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766689', 'tblTempUsageDetail_20' ) start [2025-03-26 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766689', 'tblTempUsageDetail_20' ) end [2025-03-26 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766689', 'tblTempVendorCDR_20' ) start [2025-03-26 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766689', 'tblTempVendorCDR_20' ) end [2025-03-26 12:00:22] Production.INFO: ProcessCDR(1,14766689,1,1,2) [2025-03-26 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766689', 'tblTempUsageDetail_20' ) start [2025-03-26 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766689', 'tblTempUsageDetail_20' ) end [2025-03-26 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:00:28] Production.INFO: ==4054== Releasing lock... [2025-03-26 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:00:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-26 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:01:05 [end_date_ymd] => 2025-03-26 12:01:05 [RateCDR] => 1 ) [2025-03-26 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:01:05' and `end` < '2025-03-26 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:01:19] Production.INFO: count ==4937 [2025-03-26 12:01:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:01:05 - End Time 2025-03-26 12:01:05 [2025-03-26 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766694', 'tblTempUsageDetail_20' ) start [2025-03-26 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766694', 'tblTempUsageDetail_20' ) end [2025-03-26 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766694', 'tblTempVendorCDR_20' ) start [2025-03-26 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766694', 'tblTempVendorCDR_20' ) end [2025-03-26 12:01:21] Production.INFO: ProcessCDR(1,14766694,1,1,2) [2025-03-26 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766694', 'tblTempUsageDetail_20' ) start [2025-03-26 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766694', 'tblTempUsageDetail_20' ) end [2025-03-26 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:01:26] Production.INFO: ==4145== Releasing lock... [2025-03-26 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:01:26] Production.INFO: 65 MB #Memory Used# [2025-03-26 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:02:06 [end_date_ymd] => 2025-03-26 12:02:06 [RateCDR] => 1 ) [2025-03-26 12: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-26 09:02:06' and `end` < '2025-03-26 12: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-26 12:02:19] Production.INFO: count ==4934 [2025-03-26 12:02:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:02:06 - End Time 2025-03-26 12:02:06 [2025-03-26 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766699', 'tblTempUsageDetail_20' ) start [2025-03-26 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766699', 'tblTempUsageDetail_20' ) end [2025-03-26 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766699', 'tblTempVendorCDR_20' ) start [2025-03-26 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766699', 'tblTempVendorCDR_20' ) end [2025-03-26 12:02:22] Production.INFO: ProcessCDR(1,14766699,1,1,2) [2025-03-26 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766699', 'tblTempUsageDetail_20' ) start [2025-03-26 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766699', 'tblTempUsageDetail_20' ) end [2025-03-26 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:02:27] Production.INFO: ==4223== Releasing lock... [2025-03-26 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:02:27] Production.INFO: 65 MB #Memory Used# [2025-03-26 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:03:05 [end_date_ymd] => 2025-03-26 12:03:05 [RateCDR] => 1 ) [2025-03-26 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:03:05' and `end` < '2025-03-26 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:03:19] Production.INFO: count ==4955 [2025-03-26 12:03:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:03:05 - End Time 2025-03-26 12:03:05 [2025-03-26 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766704', 'tblTempUsageDetail_20' ) start [2025-03-26 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766704', 'tblTempUsageDetail_20' ) end [2025-03-26 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766704', 'tblTempVendorCDR_20' ) start [2025-03-26 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766704', 'tblTempVendorCDR_20' ) end [2025-03-26 12:03:21] Production.INFO: ProcessCDR(1,14766704,1,1,2) [2025-03-26 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766704', 'tblTempUsageDetail_20' ) start [2025-03-26 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766704', 'tblTempUsageDetail_20' ) end [2025-03-26 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:03:26] Production.INFO: ==4297== Releasing lock... [2025-03-26 12:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:03:26] Production.INFO: 65 MB #Memory Used# [2025-03-26 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:04:05 [end_date_ymd] => 2025-03-26 12:04:05 [RateCDR] => 1 ) [2025-03-26 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:04:05' and `end` < '2025-03-26 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:04:19] Production.INFO: count ==4963 [2025-03-26 12:04:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:04:05 - End Time 2025-03-26 12:04:05 [2025-03-26 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766709', 'tblTempUsageDetail_20' ) start [2025-03-26 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766709', 'tblTempUsageDetail_20' ) end [2025-03-26 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766709', 'tblTempVendorCDR_20' ) start [2025-03-26 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766709', 'tblTempVendorCDR_20' ) end [2025-03-26 12:04:21] Production.INFO: ProcessCDR(1,14766709,1,1,2) [2025-03-26 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766709', 'tblTempUsageDetail_20' ) start [2025-03-26 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766709', 'tblTempUsageDetail_20' ) end [2025-03-26 12:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:04:26] Production.INFO: ==4375== Releasing lock... [2025-03-26 12:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:04:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-26 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:05:06 [end_date_ymd] => 2025-03-26 12:05:06 [RateCDR] => 1 ) [2025-03-26 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-26 09:05:06' and `end` < '2025-03-26 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-26 12:05:20] Production.INFO: count ==4970 [2025-03-26 12:05:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:05:06 - End Time 2025-03-26 12:05:06 [2025-03-26 12:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766714', 'tblTempUsageDetail_20' ) start [2025-03-26 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766714', 'tblTempUsageDetail_20' ) end [2025-03-26 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766714', 'tblTempVendorCDR_20' ) start [2025-03-26 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766714', 'tblTempVendorCDR_20' ) end [2025-03-26 12:05:22] Production.INFO: ProcessCDR(1,14766714,1,1,2) [2025-03-26 12:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766714', 'tblTempUsageDetail_20' ) start [2025-03-26 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766714', 'tblTempUsageDetail_20' ) end [2025-03-26 12:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:05:28] Production.INFO: ==4489== Releasing lock... [2025-03-26 12:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:05:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-26 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:06:06 [end_date_ymd] => 2025-03-26 12:06:06 [RateCDR] => 1 ) [2025-03-26 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:06:06' and `end` < '2025-03-26 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:06:19] Production.INFO: count ==4968 [2025-03-26 12:06:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:06:06 - End Time 2025-03-26 12:06:06 [2025-03-26 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766719', 'tblTempUsageDetail_20' ) start [2025-03-26 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766719', 'tblTempUsageDetail_20' ) end [2025-03-26 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766719', 'tblTempVendorCDR_20' ) start [2025-03-26 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766719', 'tblTempVendorCDR_20' ) end [2025-03-26 12:06:21] Production.INFO: ProcessCDR(1,14766719,1,1,2) [2025-03-26 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766719', 'tblTempUsageDetail_20' ) start [2025-03-26 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766719', 'tblTempUsageDetail_20' ) end [2025-03-26 12:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:06:26] Production.INFO: ==4563== Releasing lock... [2025-03-26 12:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:06:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-26 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:07:06 [end_date_ymd] => 2025-03-26 12:07:06 [RateCDR] => 1 ) [2025-03-26 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-26 09:07:06' and `end` < '2025-03-26 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-26 12:07:19] Production.INFO: count ==4982 [2025-03-26 12:07:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:07:06 - End Time 2025-03-26 12:07:06 [2025-03-26 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766724', 'tblTempUsageDetail_20' ) start [2025-03-26 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766724', 'tblTempUsageDetail_20' ) end [2025-03-26 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766724', 'tblTempVendorCDR_20' ) start [2025-03-26 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766724', 'tblTempVendorCDR_20' ) end [2025-03-26 12:07:22] Production.INFO: ProcessCDR(1,14766724,1,1,2) [2025-03-26 12:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766724', 'tblTempUsageDetail_20' ) start [2025-03-26 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766724', 'tblTempUsageDetail_20' ) end [2025-03-26 12:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:07:27] Production.INFO: ==4642== Releasing lock... [2025-03-26 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:07:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-26 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:08:05 [end_date_ymd] => 2025-03-26 12:08:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:08:05' and `end` < '2025-03-26 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-26 12:08:19] Production.INFO: count ==4990 [2025-03-26 12:08:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:08:05 - End Time 2025-03-26 12:08:05 [2025-03-26 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766729', 'tblTempUsageDetail_20' ) start [2025-03-26 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766729', 'tblTempUsageDetail_20' ) end [2025-03-26 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766729', 'tblTempVendorCDR_20' ) start [2025-03-26 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766729', 'tblTempVendorCDR_20' ) end [2025-03-26 12:08:21] Production.INFO: ProcessCDR(1,14766729,1,1,2) [2025-03-26 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766729', 'tblTempUsageDetail_20' ) start [2025-03-26 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766729', 'tblTempUsageDetail_20' ) end [2025-03-26 12:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:08:26] Production.INFO: ==4725== Releasing lock... [2025-03-26 12:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:08:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-26 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:09:06 [end_date_ymd] => 2025-03-26 12:09:06 [RateCDR] => 1 ) [2025-03-26 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-26 09:09:06' and `end` < '2025-03-26 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-26 12:09:19] Production.INFO: count ==5003 [2025-03-26 12:09:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:09:06 - End Time 2025-03-26 12:09:06 [2025-03-26 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766734', 'tblTempUsageDetail_20' ) start [2025-03-26 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766734', 'tblTempUsageDetail_20' ) end [2025-03-26 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766734', 'tblTempVendorCDR_20' ) start [2025-03-26 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766734', 'tblTempVendorCDR_20' ) end [2025-03-26 12:09:22] Production.INFO: ProcessCDR(1,14766734,1,1,2) [2025-03-26 12:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766734', 'tblTempUsageDetail_20' ) start [2025-03-26 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766734', 'tblTempUsageDetail_20' ) end [2025-03-26 12:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:09:27] Production.INFO: ==4802== Releasing lock... [2025-03-26 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:09:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-26 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:10:06 [end_date_ymd] => 2025-03-26 12:10:06 [RateCDR] => 1 ) [2025-03-26 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-26 09:10:06' and `end` < '2025-03-26 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-26 12:10:20] Production.INFO: count ==5019 [2025-03-26 12:10:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:10:06 - End Time 2025-03-26 12:10:06 [2025-03-26 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766740', 'tblTempUsageDetail_20' ) start [2025-03-26 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766740', 'tblTempUsageDetail_20' ) end [2025-03-26 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766740', 'tblTempVendorCDR_20' ) start [2025-03-26 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766740', 'tblTempVendorCDR_20' ) end [2025-03-26 12:10:22] Production.INFO: ProcessCDR(1,14766740,1,1,2) [2025-03-26 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766740', 'tblTempUsageDetail_20' ) start [2025-03-26 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766740', 'tblTempUsageDetail_20' ) end [2025-03-26 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:10:27] Production.INFO: ==4881== Releasing lock... [2025-03-26 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:10:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-26 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:11:05 [end_date_ymd] => 2025-03-26 12:11:05 [RateCDR] => 1 ) [2025-03-26 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:11:05' and `end` < '2025-03-26 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:11:19] Production.INFO: count ==5046 [2025-03-26 12:11:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:11:05 - End Time 2025-03-26 12:11:05 [2025-03-26 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766745', 'tblTempUsageDetail_20' ) start [2025-03-26 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766745', 'tblTempUsageDetail_20' ) end [2025-03-26 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766745', 'tblTempVendorCDR_20' ) start [2025-03-26 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766745', 'tblTempVendorCDR_20' ) end [2025-03-26 12:11:21] Production.INFO: ProcessCDR(1,14766745,1,1,2) [2025-03-26 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766745', 'tblTempUsageDetail_20' ) start [2025-03-26 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766745', 'tblTempUsageDetail_20' ) end [2025-03-26 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:11:26] Production.INFO: ==4960== Releasing lock... [2025-03-26 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:11:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-26 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:12:05 [end_date_ymd] => 2025-03-26 12:12:05 [RateCDR] => 1 ) [2025-03-26 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:12:05' and `end` < '2025-03-26 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:12:19] Production.INFO: count ==5047 [2025-03-26 12:12:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:12:05 - End Time 2025-03-26 12:12:05 [2025-03-26 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766750', 'tblTempUsageDetail_20' ) start [2025-03-26 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766750', 'tblTempUsageDetail_20' ) end [2025-03-26 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766750', 'tblTempVendorCDR_20' ) start [2025-03-26 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766750', 'tblTempVendorCDR_20' ) end [2025-03-26 12:12:21] Production.INFO: ProcessCDR(1,14766750,1,1,2) [2025-03-26 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766750', 'tblTempUsageDetail_20' ) start [2025-03-26 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766750', 'tblTempUsageDetail_20' ) end [2025-03-26 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:12:26] Production.INFO: ==5036== Releasing lock... [2025-03-26 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:12:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-26 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:13:06 [end_date_ymd] => 2025-03-26 12:13:06 [RateCDR] => 1 ) [2025-03-26 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-26 09:13:06' and `end` < '2025-03-26 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-26 12:13:19] Production.INFO: count ==5071 [2025-03-26 12:13:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:13:06 - End Time 2025-03-26 12:13:06 [2025-03-26 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766755', 'tblTempUsageDetail_20' ) start [2025-03-26 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766755', 'tblTempUsageDetail_20' ) end [2025-03-26 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766755', 'tblTempVendorCDR_20' ) start [2025-03-26 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766755', 'tblTempVendorCDR_20' ) end [2025-03-26 12:13:21] Production.INFO: ProcessCDR(1,14766755,1,1,2) [2025-03-26 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766755', 'tblTempUsageDetail_20' ) start [2025-03-26 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766755', 'tblTempUsageDetail_20' ) end [2025-03-26 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:13:26] Production.INFO: ==5109== Releasing lock... [2025-03-26 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:13:26] Production.INFO: 66 MB #Memory Used# [2025-03-26 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:14:05 [end_date_ymd] => 2025-03-26 12:14:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:14:05' and `end` < '2025-03-26 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-26 12:14:19] Production.INFO: count ==5086 [2025-03-26 12:14:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:14:05 - End Time 2025-03-26 12:14:05 [2025-03-26 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766760', 'tblTempUsageDetail_20' ) start [2025-03-26 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766760', 'tblTempUsageDetail_20' ) end [2025-03-26 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766760', 'tblTempVendorCDR_20' ) start [2025-03-26 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766760', 'tblTempVendorCDR_20' ) end [2025-03-26 12:14:21] Production.INFO: ProcessCDR(1,14766760,1,1,2) [2025-03-26 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766760', 'tblTempUsageDetail_20' ) start [2025-03-26 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766760', 'tblTempUsageDetail_20' ) end [2025-03-26 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:14:26] Production.INFO: ==5187== Releasing lock... [2025-03-26 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:14:26] Production.INFO: 66 MB #Memory Used# [2025-03-26 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:15:06 [end_date_ymd] => 2025-03-26 12:15:06 [RateCDR] => 1 ) [2025-03-26 12:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:15:06' and `end` < '2025-03-26 12:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:15:19] Production.INFO: count ==5101 [2025-03-26 12:15:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:15:06 - End Time 2025-03-26 12:15:06 [2025-03-26 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766765', 'tblTempUsageDetail_20' ) start [2025-03-26 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766765', 'tblTempUsageDetail_20' ) end [2025-03-26 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766765', 'tblTempVendorCDR_20' ) start [2025-03-26 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766765', 'tblTempVendorCDR_20' ) end [2025-03-26 12:15:22] Production.INFO: ProcessCDR(1,14766765,1,1,2) [2025-03-26 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766765', 'tblTempUsageDetail_20' ) start [2025-03-26 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766765', 'tblTempUsageDetail_20' ) end [2025-03-26 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:15:27] Production.INFO: ==5266== Releasing lock... [2025-03-26 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:15:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-26 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:16:05 [end_date_ymd] => 2025-03-26 12:16:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:16:05' and `end` < '2025-03-26 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-26 12:16:19] Production.INFO: count ==5109 [2025-03-26 12:16:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:16:05 - End Time 2025-03-26 12:16:05 [2025-03-26 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766770', 'tblTempUsageDetail_20' ) start [2025-03-26 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766770', 'tblTempUsageDetail_20' ) end [2025-03-26 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766770', 'tblTempVendorCDR_20' ) start [2025-03-26 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766770', 'tblTempVendorCDR_20' ) end [2025-03-26 12:16:21] Production.INFO: ProcessCDR(1,14766770,1,1,2) [2025-03-26 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766770', 'tblTempUsageDetail_20' ) start [2025-03-26 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766770', 'tblTempUsageDetail_20' ) end [2025-03-26 12:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:16:26] Production.INFO: ==5355== Releasing lock... [2025-03-26 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:16:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-26 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:17:05 [end_date_ymd] => 2025-03-26 12:17:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:17:05' and `end` < '2025-03-26 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-26 12:17:18] Production.INFO: count ==5128 [2025-03-26 12:17:20] Production.ERROR: pbx CDR StartTime 2025-03-26 09:17:05 - End Time 2025-03-26 12:17:05 [2025-03-26 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766775', 'tblTempUsageDetail_20' ) start [2025-03-26 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766775', 'tblTempUsageDetail_20' ) end [2025-03-26 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766775', 'tblTempVendorCDR_20' ) start [2025-03-26 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766775', 'tblTempVendorCDR_20' ) end [2025-03-26 12:17:21] Production.INFO: ProcessCDR(1,14766775,1,1,2) [2025-03-26 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766775', 'tblTempUsageDetail_20' ) start [2025-03-26 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766775', 'tblTempUsageDetail_20' ) end [2025-03-26 12:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:17:26] Production.INFO: ==5455== Releasing lock... [2025-03-26 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:17:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-26 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:18:06 [end_date_ymd] => 2025-03-26 12:18:06 [RateCDR] => 1 ) [2025-03-26 12: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-26 09:18:06' and `end` < '2025-03-26 12: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-26 12:18:19] Production.INFO: count ==5104 [2025-03-26 12:18:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:18:06 - End Time 2025-03-26 12:18:06 [2025-03-26 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766780', 'tblTempUsageDetail_20' ) start [2025-03-26 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766780', 'tblTempUsageDetail_20' ) end [2025-03-26 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766780', 'tblTempVendorCDR_20' ) start [2025-03-26 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766780', 'tblTempVendorCDR_20' ) end [2025-03-26 12:18:22] Production.INFO: ProcessCDR(1,14766780,1,1,2) [2025-03-26 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766780', 'tblTempUsageDetail_20' ) start [2025-03-26 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766780', 'tblTempUsageDetail_20' ) end [2025-03-26 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:18:27] Production.INFO: ==5559== Releasing lock... [2025-03-26 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:18:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-26 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:19:05 [end_date_ymd] => 2025-03-26 12:19:05 [RateCDR] => 1 ) [2025-03-26 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:19:05' and `end` < '2025-03-26 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:19:19] Production.INFO: count ==5113 [2025-03-26 12:19:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:19:05 - End Time 2025-03-26 12:19:05 [2025-03-26 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766785', 'tblTempUsageDetail_20' ) start [2025-03-26 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766785', 'tblTempUsageDetail_20' ) end [2025-03-26 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766785', 'tblTempVendorCDR_20' ) start [2025-03-26 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766785', 'tblTempVendorCDR_20' ) end [2025-03-26 12:19:21] Production.INFO: ProcessCDR(1,14766785,1,1,2) [2025-03-26 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766785', 'tblTempUsageDetail_20' ) start [2025-03-26 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766785', 'tblTempUsageDetail_20' ) end [2025-03-26 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:19:26] Production.INFO: ==5664== Releasing lock... [2025-03-26 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:19:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-26 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:20:06 [end_date_ymd] => 2025-03-26 12:20:06 [RateCDR] => 1 ) [2025-03-26 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-26 09:20:06' and `end` < '2025-03-26 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-26 12:20:20] Production.INFO: count ==5113 [2025-03-26 12:20:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:20:06 - End Time 2025-03-26 12:20:06 [2025-03-26 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766791', 'tblTempUsageDetail_20' ) start [2025-03-26 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766791', 'tblTempUsageDetail_20' ) end [2025-03-26 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766791', 'tblTempVendorCDR_20' ) start [2025-03-26 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766791', 'tblTempVendorCDR_20' ) end [2025-03-26 12:20:22] Production.INFO: ProcessCDR(1,14766791,1,1,2) [2025-03-26 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766791', 'tblTempUsageDetail_20' ) start [2025-03-26 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766791', 'tblTempUsageDetail_20' ) end [2025-03-26 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:20:27] Production.INFO: ==5811== Releasing lock... [2025-03-26 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:20:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-26 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:21:06 [end_date_ymd] => 2025-03-26 12:21:06 [RateCDR] => 1 ) [2025-03-26 12:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:21:06' and `end` < '2025-03-26 12:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:21:19] Production.INFO: count ==5148 [2025-03-26 12:21:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:21:06 - End Time 2025-03-26 12:21:06 [2025-03-26 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766796', 'tblTempUsageDetail_20' ) start [2025-03-26 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766796', 'tblTempUsageDetail_20' ) end [2025-03-26 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766796', 'tblTempVendorCDR_20' ) start [2025-03-26 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766796', 'tblTempVendorCDR_20' ) end [2025-03-26 12:21:22] Production.INFO: ProcessCDR(1,14766796,1,1,2) [2025-03-26 12:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766796', 'tblTempUsageDetail_20' ) start [2025-03-26 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766796', 'tblTempUsageDetail_20' ) end [2025-03-26 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:21:27] Production.INFO: ==5914== Releasing lock... [2025-03-26 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:21:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-26 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:22:05 [end_date_ymd] => 2025-03-26 12:22:05 [RateCDR] => 1 ) [2025-03-26 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:22:05' and `end` < '2025-03-26 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:22:18] Production.INFO: count ==5182 [2025-03-26 12:22:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:22:05 - End Time 2025-03-26 12:22:05 [2025-03-26 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766801', 'tblTempUsageDetail_20' ) start [2025-03-26 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766801', 'tblTempUsageDetail_20' ) end [2025-03-26 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766801', 'tblTempVendorCDR_20' ) start [2025-03-26 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766801', 'tblTempVendorCDR_20' ) end [2025-03-26 12:22:21] Production.INFO: ProcessCDR(1,14766801,1,1,2) [2025-03-26 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766801', 'tblTempUsageDetail_20' ) start [2025-03-26 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766801', 'tblTempUsageDetail_20' ) end [2025-03-26 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:22:26] Production.INFO: ==6017== Releasing lock... [2025-03-26 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:22:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:23:05 [end_date_ymd] => 2025-03-26 12:23:05 [RateCDR] => 1 ) [2025-03-26 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:23:05' and `end` < '2025-03-26 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:23:18] Production.INFO: count ==5174 [2025-03-26 12:23:20] Production.ERROR: pbx CDR StartTime 2025-03-26 09:23:05 - End Time 2025-03-26 12:23:05 [2025-03-26 12:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766806', 'tblTempUsageDetail_20' ) start [2025-03-26 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766806', 'tblTempUsageDetail_20' ) end [2025-03-26 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766806', 'tblTempVendorCDR_20' ) start [2025-03-26 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766806', 'tblTempVendorCDR_20' ) end [2025-03-26 12:23:21] Production.INFO: ProcessCDR(1,14766806,1,1,2) [2025-03-26 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766806', 'tblTempUsageDetail_20' ) start [2025-03-26 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766806', 'tblTempUsageDetail_20' ) end [2025-03-26 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:23:26] Production.INFO: ==6127== Releasing lock... [2025-03-26 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:23:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:24:05 [end_date_ymd] => 2025-03-26 12:24:05 [RateCDR] => 1 ) [2025-03-26 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:24:05' and `end` < '2025-03-26 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:24:19] Production.INFO: count ==5158 [2025-03-26 12:24:20] Production.ERROR: pbx CDR StartTime 2025-03-26 09:24:05 - End Time 2025-03-26 12:24:05 [2025-03-26 12:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766811', 'tblTempUsageDetail_20' ) start [2025-03-26 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766811', 'tblTempUsageDetail_20' ) end [2025-03-26 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766811', 'tblTempVendorCDR_20' ) start [2025-03-26 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766811', 'tblTempVendorCDR_20' ) end [2025-03-26 12:24:21] Production.INFO: ProcessCDR(1,14766811,1,1,2) [2025-03-26 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766811', 'tblTempUsageDetail_20' ) start [2025-03-26 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766811', 'tblTempUsageDetail_20' ) end [2025-03-26 12:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:24:26] Production.INFO: ==6232== Releasing lock... [2025-03-26 12:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:24:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-26 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:25:05 [end_date_ymd] => 2025-03-26 12:25:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:25:05' and `end` < '2025-03-26 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-26 12:25:19] Production.INFO: count ==5143 [2025-03-26 12:25:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:25:05 - End Time 2025-03-26 12:25:05 [2025-03-26 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766816', 'tblTempUsageDetail_20' ) start [2025-03-26 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766816', 'tblTempUsageDetail_20' ) end [2025-03-26 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766816', 'tblTempVendorCDR_20' ) start [2025-03-26 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766816', 'tblTempVendorCDR_20' ) end [2025-03-26 12:25:21] Production.INFO: ProcessCDR(1,14766816,1,1,2) [2025-03-26 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766816', 'tblTempUsageDetail_20' ) start [2025-03-26 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766816', 'tblTempUsageDetail_20' ) end [2025-03-26 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:25:26] Production.INFO: ==6333== Releasing lock... [2025-03-26 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:25:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-26 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:26:05 [end_date_ymd] => 2025-03-26 12:26:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:26:05' and `end` < '2025-03-26 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-26 12:26:19] Production.INFO: count ==5168 [2025-03-26 12:26:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:26:05 - End Time 2025-03-26 12:26:05 [2025-03-26 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766821', 'tblTempUsageDetail_20' ) start [2025-03-26 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766821', 'tblTempUsageDetail_20' ) end [2025-03-26 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766821', 'tblTempVendorCDR_20' ) start [2025-03-26 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766821', 'tblTempVendorCDR_20' ) end [2025-03-26 12:26:21] Production.INFO: ProcessCDR(1,14766821,1,1,2) [2025-03-26 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766821', 'tblTempUsageDetail_20' ) start [2025-03-26 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766821', 'tblTempUsageDetail_20' ) end [2025-03-26 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:26:26] Production.INFO: ==6438== Releasing lock... [2025-03-26 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:26:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:27:06 [end_date_ymd] => 2025-03-26 12:27:06 [RateCDR] => 1 ) [2025-03-26 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-26 09:27:06' and `end` < '2025-03-26 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-26 12:27:19] Production.INFO: count ==5178 [2025-03-26 12:27:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:27:06 - End Time 2025-03-26 12:27:06 [2025-03-26 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766826', 'tblTempUsageDetail_20' ) start [2025-03-26 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766826', 'tblTempUsageDetail_20' ) end [2025-03-26 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766826', 'tblTempVendorCDR_20' ) start [2025-03-26 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766826', 'tblTempVendorCDR_20' ) end [2025-03-26 12:27:21] Production.INFO: ProcessCDR(1,14766826,1,1,2) [2025-03-26 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766826', 'tblTempUsageDetail_20' ) start [2025-03-26 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766826', 'tblTempUsageDetail_20' ) end [2025-03-26 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:27:26] Production.INFO: ==6540== Releasing lock... [2025-03-26 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:27:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:28:05 [end_date_ymd] => 2025-03-26 12:28:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:28:05' and `end` < '2025-03-26 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-26 12:28:19] Production.INFO: count ==5175 [2025-03-26 12:28:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:28:05 - End Time 2025-03-26 12:28:05 [2025-03-26 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766831', 'tblTempUsageDetail_20' ) start [2025-03-26 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766831', 'tblTempUsageDetail_20' ) end [2025-03-26 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766831', 'tblTempVendorCDR_20' ) start [2025-03-26 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766831', 'tblTempVendorCDR_20' ) end [2025-03-26 12:28:21] Production.INFO: ProcessCDR(1,14766831,1,1,2) [2025-03-26 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766831', 'tblTempUsageDetail_20' ) start [2025-03-26 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766831', 'tblTempUsageDetail_20' ) end [2025-03-26 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:28:26] Production.INFO: ==6641== Releasing lock... [2025-03-26 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:28:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:29:06 [end_date_ymd] => 2025-03-26 12:29:06 [RateCDR] => 1 ) [2025-03-26 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-26 09:29:06' and `end` < '2025-03-26 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-26 12:29:20] Production.INFO: count ==5174 [2025-03-26 12:29:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:29:06 - End Time 2025-03-26 12:29:06 [2025-03-26 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766836', 'tblTempUsageDetail_20' ) start [2025-03-26 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766836', 'tblTempUsageDetail_20' ) end [2025-03-26 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766836', 'tblTempVendorCDR_20' ) start [2025-03-26 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766836', 'tblTempVendorCDR_20' ) end [2025-03-26 12:29:22] Production.INFO: ProcessCDR(1,14766836,1,1,2) [2025-03-26 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766836', 'tblTempUsageDetail_20' ) start [2025-03-26 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766836', 'tblTempUsageDetail_20' ) end [2025-03-26 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:29:27] Production.INFO: ==6743== Releasing lock... [2025-03-26 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:29:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:30:06 [end_date_ymd] => 2025-03-26 12:30:06 [RateCDR] => 1 ) [2025-03-26 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-26 09:30:06' and `end` < '2025-03-26 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-26 12:30:19] Production.INFO: count ==5174 [2025-03-26 12:30:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:30:06 - End Time 2025-03-26 12:30:06 [2025-03-26 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766842', 'tblTempUsageDetail_20' ) start [2025-03-26 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766842', 'tblTempUsageDetail_20' ) end [2025-03-26 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766842', 'tblTempVendorCDR_20' ) start [2025-03-26 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766842', 'tblTempVendorCDR_20' ) end [2025-03-26 12:30:22] Production.INFO: ProcessCDR(1,14766842,1,1,2) [2025-03-26 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766842', 'tblTempUsageDetail_20' ) start [2025-03-26 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766842', 'tblTempUsageDetail_20' ) end [2025-03-26 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:30:27] Production.INFO: ==6845== Releasing lock... [2025-03-26 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:30:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:31:05 [end_date_ymd] => 2025-03-26 12:31:05 [RateCDR] => 1 ) [2025-03-26 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:31:05' and `end` < '2025-03-26 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:31:19] Production.INFO: count ==5173 [2025-03-26 12:31:20] Production.ERROR: pbx CDR StartTime 2025-03-26 09:31:05 - End Time 2025-03-26 12:31:05 [2025-03-26 12:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766847', 'tblTempUsageDetail_20' ) start [2025-03-26 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766847', 'tblTempUsageDetail_20' ) end [2025-03-26 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766847', 'tblTempVendorCDR_20' ) start [2025-03-26 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766847', 'tblTempVendorCDR_20' ) end [2025-03-26 12:31:21] Production.INFO: ProcessCDR(1,14766847,1,1,2) [2025-03-26 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766847', 'tblTempUsageDetail_20' ) start [2025-03-26 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766847', 'tblTempUsageDetail_20' ) end [2025-03-26 12:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:31:25] Production.INFO: ==6951== Releasing lock... [2025-03-26 12:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:31:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:32:05 [end_date_ymd] => 2025-03-26 12:32:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:32:05' and `end` < '2025-03-26 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-26 12:32:18] Production.INFO: count ==5172 [2025-03-26 12:32:20] Production.ERROR: pbx CDR StartTime 2025-03-26 09:32:05 - End Time 2025-03-26 12:32:05 [2025-03-26 12:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766852', 'tblTempUsageDetail_20' ) start [2025-03-26 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766852', 'tblTempUsageDetail_20' ) end [2025-03-26 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766852', 'tblTempVendorCDR_20' ) start [2025-03-26 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766852', 'tblTempVendorCDR_20' ) end [2025-03-26 12:32:21] Production.INFO: ProcessCDR(1,14766852,1,1,2) [2025-03-26 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766852', 'tblTempUsageDetail_20' ) start [2025-03-26 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766852', 'tblTempUsageDetail_20' ) end [2025-03-26 12:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:32:26] Production.INFO: ==7049== Releasing lock... [2025-03-26 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:32:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:33:05 [end_date_ymd] => 2025-03-26 12:33:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:33:05' and `end` < '2025-03-26 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-26 12:33:19] Production.INFO: count ==5186 [2025-03-26 12:33:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:33:05 - End Time 2025-03-26 12:33:05 [2025-03-26 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766857', 'tblTempUsageDetail_20' ) start [2025-03-26 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766857', 'tblTempUsageDetail_20' ) end [2025-03-26 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766857', 'tblTempVendorCDR_20' ) start [2025-03-26 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766857', 'tblTempVendorCDR_20' ) end [2025-03-26 12:33:21] Production.INFO: ProcessCDR(1,14766857,1,1,2) [2025-03-26 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766857', 'tblTempUsageDetail_20' ) start [2025-03-26 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766857', 'tblTempUsageDetail_20' ) end [2025-03-26 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:33:26] Production.INFO: ==7152== Releasing lock... [2025-03-26 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:33:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:34:05 [end_date_ymd] => 2025-03-26 12:34:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:34:05' and `end` < '2025-03-26 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-26 12:34:18] Production.INFO: count ==5190 [2025-03-26 12:34:20] Production.ERROR: pbx CDR StartTime 2025-03-26 09:34:05 - End Time 2025-03-26 12:34:05 [2025-03-26 12:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766862', 'tblTempUsageDetail_20' ) start [2025-03-26 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766862', 'tblTempUsageDetail_20' ) end [2025-03-26 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766862', 'tblTempVendorCDR_20' ) start [2025-03-26 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766862', 'tblTempVendorCDR_20' ) end [2025-03-26 12:34:20] Production.INFO: ProcessCDR(1,14766862,1,1,2) [2025-03-26 12:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766862', 'tblTempUsageDetail_20' ) start [2025-03-26 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766862', 'tblTempUsageDetail_20' ) end [2025-03-26 12:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:34:25] Production.INFO: ==7233== Releasing lock... [2025-03-26 12:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:34:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:35:05 [end_date_ymd] => 2025-03-26 12:35:05 [RateCDR] => 1 ) [2025-03-26 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:35:05' and `end` < '2025-03-26 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:35:18] Production.INFO: count ==5190 [2025-03-26 12:35:20] Production.ERROR: pbx CDR StartTime 2025-03-26 09:35:05 - End Time 2025-03-26 12:35:05 [2025-03-26 12:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766867', 'tblTempUsageDetail_20' ) start [2025-03-26 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766867', 'tblTempUsageDetail_20' ) end [2025-03-26 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766867', 'tblTempVendorCDR_20' ) start [2025-03-26 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766867', 'tblTempVendorCDR_20' ) end [2025-03-26 12:35:21] Production.INFO: ProcessCDR(1,14766867,1,1,2) [2025-03-26 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766867', 'tblTempUsageDetail_20' ) start [2025-03-26 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766867', 'tblTempUsageDetail_20' ) end [2025-03-26 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:35:26] Production.INFO: ==7309== Releasing lock... [2025-03-26 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:35:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:36:06 [end_date_ymd] => 2025-03-26 12:36:06 [RateCDR] => 1 ) [2025-03-26 12:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:36:06' and `end` < '2025-03-26 12:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:36:20] Production.INFO: count ==5178 [2025-03-26 12:36:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:36:06 - End Time 2025-03-26 12:36:06 [2025-03-26 12:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766872', 'tblTempUsageDetail_20' ) start [2025-03-26 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766872', 'tblTempUsageDetail_20' ) end [2025-03-26 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766872', 'tblTempVendorCDR_20' ) start [2025-03-26 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766872', 'tblTempVendorCDR_20' ) end [2025-03-26 12:36:22] Production.INFO: ProcessCDR(1,14766872,1,1,2) [2025-03-26 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766872', 'tblTempUsageDetail_20' ) start [2025-03-26 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766872', 'tblTempUsageDetail_20' ) end [2025-03-26 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:36:27] Production.INFO: ==7427== Releasing lock... [2025-03-26 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:36:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:37:05 [end_date_ymd] => 2025-03-26 12:37:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:37:05' and `end` < '2025-03-26 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-26 12:37:19] Production.INFO: count ==5211 [2025-03-26 12:37:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:37:05 - End Time 2025-03-26 12:37:05 [2025-03-26 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766877', 'tblTempUsageDetail_20' ) start [2025-03-26 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766877', 'tblTempUsageDetail_20' ) end [2025-03-26 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766877', 'tblTempVendorCDR_20' ) start [2025-03-26 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766877', 'tblTempVendorCDR_20' ) end [2025-03-26 12:37:21] Production.INFO: ProcessCDR(1,14766877,1,1,2) [2025-03-26 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766877', 'tblTempUsageDetail_20' ) start [2025-03-26 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766877', 'tblTempUsageDetail_20' ) end [2025-03-26 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:37:26] Production.INFO: ==7500== Releasing lock... [2025-03-26 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:37:26] Production.INFO: 67 MB #Memory Used# [2025-03-26 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:38:05 [end_date_ymd] => 2025-03-26 12:38:05 [RateCDR] => 1 ) [2025-03-26 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:38:05' and `end` < '2025-03-26 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:38:19] Production.INFO: count ==5203 [2025-03-26 12:38:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:38:05 - End Time 2025-03-26 12:38:05 [2025-03-26 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766882', 'tblTempUsageDetail_20' ) start [2025-03-26 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766882', 'tblTempUsageDetail_20' ) end [2025-03-26 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766882', 'tblTempVendorCDR_20' ) start [2025-03-26 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766882', 'tblTempVendorCDR_20' ) end [2025-03-26 12:38:21] Production.INFO: ProcessCDR(1,14766882,1,1,2) [2025-03-26 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766882', 'tblTempUsageDetail_20' ) start [2025-03-26 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766882', 'tblTempUsageDetail_20' ) end [2025-03-26 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:38:26] Production.INFO: ==7604== Releasing lock... [2025-03-26 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:38:26] Production.INFO: 67 MB #Memory Used# [2025-03-26 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:39:05 [end_date_ymd] => 2025-03-26 12:39:05 [RateCDR] => 1 ) [2025-03-26 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:39:05' and `end` < '2025-03-26 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:39:19] Production.INFO: count ==5196 [2025-03-26 12:39:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:39:05 - End Time 2025-03-26 12:39:05 [2025-03-26 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766887', 'tblTempUsageDetail_20' ) start [2025-03-26 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766887', 'tblTempUsageDetail_20' ) end [2025-03-26 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766887', 'tblTempVendorCDR_20' ) start [2025-03-26 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766887', 'tblTempVendorCDR_20' ) end [2025-03-26 12:39:21] Production.INFO: ProcessCDR(1,14766887,1,1,2) [2025-03-26 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766887', 'tblTempUsageDetail_20' ) start [2025-03-26 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766887', 'tblTempUsageDetail_20' ) end [2025-03-26 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:39:26] Production.INFO: ==7683== Releasing lock... [2025-03-26 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:39:26] Production.INFO: 67 MB #Memory Used# [2025-03-26 12:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:40:07 [end_date_ymd] => 2025-03-26 12:40:07 [RateCDR] => 1 ) [2025-03-26 12: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-26 09:40:07' and `end` < '2025-03-26 12: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-26 12:40:20] Production.INFO: count ==5200 [2025-03-26 12:40:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:40:07 - End Time 2025-03-26 12:40:07 [2025-03-26 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766893', 'tblTempUsageDetail_20' ) start [2025-03-26 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766893', 'tblTempUsageDetail_20' ) end [2025-03-26 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766893', 'tblTempVendorCDR_20' ) start [2025-03-26 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766893', 'tblTempVendorCDR_20' ) end [2025-03-26 12:40:23] Production.INFO: ProcessCDR(1,14766893,1,1,2) [2025-03-26 12:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766893', 'tblTempUsageDetail_20' ) start [2025-03-26 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766893', 'tblTempUsageDetail_20' ) end [2025-03-26 12:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:40:28] Production.INFO: ==7758== Releasing lock... [2025-03-26 12:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:40:28] Production.INFO: 67 MB #Memory Used# [2025-03-26 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:41:04 [end_date_ymd] => 2025-03-26 12:41:04 [RateCDR] => 1 ) [2025-03-26 12:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:41:04' and `end` < '2025-03-26 12:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:41:18] Production.INFO: count ==5244 [2025-03-26 12:41:20] Production.ERROR: pbx CDR StartTime 2025-03-26 09:41:04 - End Time 2025-03-26 12:41:04 [2025-03-26 12:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766894', 'tblTempUsageDetail_20' ) start [2025-03-26 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766894', 'tblTempUsageDetail_20' ) end [2025-03-26 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766894', 'tblTempVendorCDR_20' ) start [2025-03-26 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766894', 'tblTempVendorCDR_20' ) end [2025-03-26 12:41:20] Production.INFO: ProcessCDR(1,14766894,1,1,2) [2025-03-26 12:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766894', 'tblTempUsageDetail_20' ) start [2025-03-26 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766894', 'tblTempUsageDetail_20' ) end [2025-03-26 12:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:41:26] Production.INFO: ==7834== Releasing lock... [2025-03-26 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:41:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-26 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:42:06 [end_date_ymd] => 2025-03-26 12:42:06 [RateCDR] => 1 ) [2025-03-26 12:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:42:06' and `end` < '2025-03-26 12:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:42:19] Production.INFO: count ==5292 [2025-03-26 12:42:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:42:06 - End Time 2025-03-26 12:42:06 [2025-03-26 12:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766903', 'tblTempUsageDetail_20' ) start [2025-03-26 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766903', 'tblTempUsageDetail_20' ) end [2025-03-26 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766903', 'tblTempVendorCDR_20' ) start [2025-03-26 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766903', 'tblTempVendorCDR_20' ) end [2025-03-26 12:42:22] Production.INFO: ProcessCDR(1,14766903,1,1,2) [2025-03-26 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766903', 'tblTempUsageDetail_20' ) start [2025-03-26 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766903', 'tblTempUsageDetail_20' ) end [2025-03-26 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:42:26] Production.INFO: ==7908== Releasing lock... [2025-03-26 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:42:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-26 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:43:05 [end_date_ymd] => 2025-03-26 12:43:05 [RateCDR] => 1 ) [2025-03-26 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:43:05' and `end` < '2025-03-26 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:43:18] Production.INFO: count ==5298 [2025-03-26 12:43:20] Production.ERROR: pbx CDR StartTime 2025-03-26 09:43:05 - End Time 2025-03-26 12:43:05 [2025-03-26 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766908', 'tblTempUsageDetail_20' ) start [2025-03-26 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766908', 'tblTempUsageDetail_20' ) end [2025-03-26 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766908', 'tblTempVendorCDR_20' ) start [2025-03-26 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766908', 'tblTempVendorCDR_20' ) end [2025-03-26 12:43:21] Production.INFO: ProcessCDR(1,14766908,1,1,2) [2025-03-26 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766908', 'tblTempUsageDetail_20' ) start [2025-03-26 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766908', 'tblTempUsageDetail_20' ) end [2025-03-26 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:43:26] Production.INFO: ==7979== Releasing lock... [2025-03-26 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:43:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-26 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:44:06 [end_date_ymd] => 2025-03-26 12:44:06 [RateCDR] => 1 ) [2025-03-26 12:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:44:06' and `end` < '2025-03-26 12:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:44:20] Production.INFO: count ==5314 [2025-03-26 12:44:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:44:06 - End Time 2025-03-26 12:44:06 [2025-03-26 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766913', 'tblTempUsageDetail_20' ) start [2025-03-26 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766913', 'tblTempUsageDetail_20' ) end [2025-03-26 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766913', 'tblTempVendorCDR_20' ) start [2025-03-26 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766913', 'tblTempVendorCDR_20' ) end [2025-03-26 12:44:22] Production.INFO: ProcessCDR(1,14766913,1,1,2) [2025-03-26 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766913', 'tblTempUsageDetail_20' ) start [2025-03-26 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766913', 'tblTempUsageDetail_20' ) end [2025-03-26 12:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:44:28] Production.INFO: ==8050== Releasing lock... [2025-03-26 12:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:44:28] Production.INFO: 68 MB #Memory Used# [2025-03-26 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:45:05 [end_date_ymd] => 2025-03-26 12:45:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:45:05' and `end` < '2025-03-26 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-26 12:45:19] Production.INFO: count ==5315 [2025-03-26 12:45:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:45:05 - End Time 2025-03-26 12:45:05 [2025-03-26 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766918', 'tblTempUsageDetail_20' ) start [2025-03-26 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766918', 'tblTempUsageDetail_20' ) end [2025-03-26 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766918', 'tblTempVendorCDR_20' ) start [2025-03-26 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766918', 'tblTempVendorCDR_20' ) end [2025-03-26 12:45:22] Production.INFO: ProcessCDR(1,14766918,1,1,2) [2025-03-26 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766918', 'tblTempUsageDetail_20' ) start [2025-03-26 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766918', 'tblTempUsageDetail_20' ) end [2025-03-26 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:45:27] Production.INFO: ==8125== Releasing lock... [2025-03-26 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:45:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-26 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:46:06 [end_date_ymd] => 2025-03-26 12:46:06 [RateCDR] => 1 ) [2025-03-26 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:46:06' and `end` < '2025-03-26 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:46:20] Production.INFO: count ==5334 [2025-03-26 12:46:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:46:06 - End Time 2025-03-26 12:46:06 [2025-03-26 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766923', 'tblTempUsageDetail_20' ) start [2025-03-26 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766923', 'tblTempUsageDetail_20' ) end [2025-03-26 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766923', 'tblTempVendorCDR_20' ) start [2025-03-26 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766923', 'tblTempVendorCDR_20' ) end [2025-03-26 12:46:23] Production.INFO: ProcessCDR(1,14766923,1,1,2) [2025-03-26 12:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766923', 'tblTempUsageDetail_20' ) start [2025-03-26 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766923', 'tblTempUsageDetail_20' ) end [2025-03-26 12:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:46:28] Production.INFO: ==8199== Releasing lock... [2025-03-26 12:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:46:28] Production.INFO: 68 MB #Memory Used# [2025-03-26 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:47:05 [end_date_ymd] => 2025-03-26 12:47:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:47:05' and `end` < '2025-03-26 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-26 12:47:19] Production.INFO: count ==5351 [2025-03-26 12:47:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:47:05 - End Time 2025-03-26 12:47:05 [2025-03-26 12:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766928', 'tblTempUsageDetail_20' ) start [2025-03-26 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766928', 'tblTempUsageDetail_20' ) end [2025-03-26 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766928', 'tblTempVendorCDR_20' ) start [2025-03-26 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766928', 'tblTempVendorCDR_20' ) end [2025-03-26 12:47:22] Production.INFO: ProcessCDR(1,14766928,1,1,2) [2025-03-26 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766928', 'tblTempUsageDetail_20' ) start [2025-03-26 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766928', 'tblTempUsageDetail_20' ) end [2025-03-26 12:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:47:27] Production.INFO: ==8273== Releasing lock... [2025-03-26 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:47:27] Production.INFO: 68 MB #Memory Used# [2025-03-26 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:48:06 [end_date_ymd] => 2025-03-26 12:48:06 [RateCDR] => 1 ) [2025-03-26 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:48:06' and `end` < '2025-03-26 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:48:20] Production.INFO: count ==5363 [2025-03-26 12:48:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:48:06 - End Time 2025-03-26 12:48:06 [2025-03-26 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766933', 'tblTempUsageDetail_20' ) start [2025-03-26 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766933', 'tblTempUsageDetail_20' ) end [2025-03-26 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766933', 'tblTempVendorCDR_20' ) start [2025-03-26 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766933', 'tblTempVendorCDR_20' ) end [2025-03-26 12:48:22] Production.INFO: ProcessCDR(1,14766933,1,1,2) [2025-03-26 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766933', 'tblTempUsageDetail_20' ) start [2025-03-26 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766933', 'tblTempUsageDetail_20' ) end [2025-03-26 12:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:48:28] Production.INFO: ==8345== Releasing lock... [2025-03-26 12:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:48:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:49:05 [end_date_ymd] => 2025-03-26 12:49:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:49:05' and `end` < '2025-03-26 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-26 12:49:20] Production.INFO: count ==5381 [2025-03-26 12:49:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:49:05 - End Time 2025-03-26 12:49:05 [2025-03-26 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766938', 'tblTempUsageDetail_20' ) start [2025-03-26 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766938', 'tblTempUsageDetail_20' ) end [2025-03-26 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766938', 'tblTempVendorCDR_20' ) start [2025-03-26 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766938', 'tblTempVendorCDR_20' ) end [2025-03-26 12:49:22] Production.INFO: ProcessCDR(1,14766938,1,1,2) [2025-03-26 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766938', 'tblTempUsageDetail_20' ) start [2025-03-26 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766938', 'tblTempUsageDetail_20' ) end [2025-03-26 12:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:49:27] Production.INFO: ==8418== Releasing lock... [2025-03-26 12:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:49:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:50:06 [end_date_ymd] => 2025-03-26 12:50:06 [RateCDR] => 1 ) [2025-03-26 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:50:06' and `end` < '2025-03-26 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:50:20] Production.INFO: count ==5385 [2025-03-26 12:50:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:50:06 - End Time 2025-03-26 12:50:06 [2025-03-26 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766944', 'tblTempUsageDetail_20' ) start [2025-03-26 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766944', 'tblTempUsageDetail_20' ) end [2025-03-26 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766944', 'tblTempVendorCDR_20' ) start [2025-03-26 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766944', 'tblTempVendorCDR_20' ) end [2025-03-26 12:50:22] Production.INFO: ProcessCDR(1,14766944,1,1,2) [2025-03-26 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766944', 'tblTempUsageDetail_20' ) start [2025-03-26 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766944', 'tblTempUsageDetail_20' ) end [2025-03-26 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:50:27] Production.INFO: ==8493== Releasing lock... [2025-03-26 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:50:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:51:05 [end_date_ymd] => 2025-03-26 12:51:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:51:05' and `end` < '2025-03-26 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-26 12:51:18] Production.INFO: count ==5373 [2025-03-26 12:51:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:51:05 - End Time 2025-03-26 12:51:05 [2025-03-26 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766949', 'tblTempUsageDetail_20' ) start [2025-03-26 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766949', 'tblTempUsageDetail_20' ) end [2025-03-26 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766949', 'tblTempVendorCDR_20' ) start [2025-03-26 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766949', 'tblTempVendorCDR_20' ) end [2025-03-26 12:51:21] Production.INFO: ProcessCDR(1,14766949,1,1,2) [2025-03-26 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766949', 'tblTempUsageDetail_20' ) start [2025-03-26 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766949', 'tblTempUsageDetail_20' ) end [2025-03-26 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:51:26] Production.INFO: ==8607== Releasing lock... [2025-03-26 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:51:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:52:05 [end_date_ymd] => 2025-03-26 12:52:05 [RateCDR] => 1 ) [2025-03-26 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:52:05' and `end` < '2025-03-26 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:52:18] Production.INFO: count ==5375 [2025-03-26 12:52:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:52:05 - End Time 2025-03-26 12:52:05 [2025-03-26 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766954', 'tblTempUsageDetail_20' ) start [2025-03-26 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766954', 'tblTempUsageDetail_20' ) end [2025-03-26 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766954', 'tblTempVendorCDR_20' ) start [2025-03-26 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766954', 'tblTempVendorCDR_20' ) end [2025-03-26 12:52:21] Production.INFO: ProcessCDR(1,14766954,1,1,2) [2025-03-26 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766954', 'tblTempUsageDetail_20' ) start [2025-03-26 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766954', 'tblTempUsageDetail_20' ) end [2025-03-26 12:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:52:25] Production.INFO: ==8681== Releasing lock... [2025-03-26 12:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:52:25] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:53:05 [end_date_ymd] => 2025-03-26 12:53:05 [RateCDR] => 1 ) [2025-03-26 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 09:53:05' and `end` < '2025-03-26 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 12:53:19] Production.INFO: count ==5367 [2025-03-26 12:53:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:53:05 - End Time 2025-03-26 12:53:05 [2025-03-26 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766959', 'tblTempUsageDetail_20' ) start [2025-03-26 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766959', 'tblTempUsageDetail_20' ) end [2025-03-26 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766959', 'tblTempVendorCDR_20' ) start [2025-03-26 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766959', 'tblTempVendorCDR_20' ) end [2025-03-26 12:53:21] Production.INFO: ProcessCDR(1,14766959,1,1,2) [2025-03-26 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766959', 'tblTempUsageDetail_20' ) start [2025-03-26 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766959', 'tblTempUsageDetail_20' ) end [2025-03-26 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:53:26] Production.INFO: ==8756== Releasing lock... [2025-03-26 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:53:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:54:06 [end_date_ymd] => 2025-03-26 12:54:06 [RateCDR] => 1 ) [2025-03-26 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-26 09:54:06' and `end` < '2025-03-26 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-26 12:54:19] Production.INFO: count ==5358 [2025-03-26 12:54:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:54:06 - End Time 2025-03-26 12:54:06 [2025-03-26 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766964', 'tblTempUsageDetail_20' ) start [2025-03-26 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766964', 'tblTempUsageDetail_20' ) end [2025-03-26 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766964', 'tblTempVendorCDR_20' ) start [2025-03-26 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766964', 'tblTempVendorCDR_20' ) end [2025-03-26 12:54:21] Production.INFO: ProcessCDR(1,14766964,1,1,2) [2025-03-26 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766964', 'tblTempUsageDetail_20' ) start [2025-03-26 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766964', 'tblTempUsageDetail_20' ) end [2025-03-26 12:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:54:27] Production.INFO: ==8828== Releasing lock... [2025-03-26 12:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:54:27] Production.INFO: 68 MB #Memory Used# [2025-03-26 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:55:05 [end_date_ymd] => 2025-03-26 12:55:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:55:05' and `end` < '2025-03-26 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-26 12:55:19] Production.INFO: count ==5371 [2025-03-26 12:55:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:55:05 - End Time 2025-03-26 12:55:05 [2025-03-26 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766969', 'tblTempUsageDetail_20' ) start [2025-03-26 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766969', 'tblTempUsageDetail_20' ) end [2025-03-26 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766969', 'tblTempVendorCDR_20' ) start [2025-03-26 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766969', 'tblTempVendorCDR_20' ) end [2025-03-26 12:55:21] Production.INFO: ProcessCDR(1,14766969,1,1,2) [2025-03-26 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766969', 'tblTempUsageDetail_20' ) start [2025-03-26 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766969', 'tblTempUsageDetail_20' ) end [2025-03-26 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:55:27] Production.INFO: ==8901== Releasing lock... [2025-03-26 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:55:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:56:06 [end_date_ymd] => 2025-03-26 12:56:06 [RateCDR] => 1 ) [2025-03-26 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-26 09:56:06' and `end` < '2025-03-26 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-26 12:56:19] Production.INFO: count ==5362 [2025-03-26 12:56:22] Production.ERROR: pbx CDR StartTime 2025-03-26 09:56:06 - End Time 2025-03-26 12:56:06 [2025-03-26 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766974', 'tblTempUsageDetail_20' ) start [2025-03-26 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766974', 'tblTempUsageDetail_20' ) end [2025-03-26 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766974', 'tblTempVendorCDR_20' ) start [2025-03-26 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766974', 'tblTempVendorCDR_20' ) end [2025-03-26 12:56:22] Production.INFO: ProcessCDR(1,14766974,1,1,2) [2025-03-26 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766974', 'tblTempUsageDetail_20' ) start [2025-03-26 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766974', 'tblTempUsageDetail_20' ) end [2025-03-26 12:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:56:28] Production.INFO: ==8972== Releasing lock... [2025-03-26 12:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:56:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:57:05 [end_date_ymd] => 2025-03-26 12:57:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:57:05' and `end` < '2025-03-26 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-26 12:57:19] Production.INFO: count ==5396 [2025-03-26 12:57:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:57:05 - End Time 2025-03-26 12:57:05 [2025-03-26 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766979', 'tblTempUsageDetail_20' ) start [2025-03-26 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766979', 'tblTempUsageDetail_20' ) end [2025-03-26 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766979', 'tblTempVendorCDR_20' ) start [2025-03-26 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766979', 'tblTempVendorCDR_20' ) end [2025-03-26 12:57:22] Production.INFO: ProcessCDR(1,14766979,1,1,2) [2025-03-26 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766979', 'tblTempUsageDetail_20' ) start [2025-03-26 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766979', 'tblTempUsageDetail_20' ) end [2025-03-26 12:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:57:27] Production.INFO: ==9045== Releasing lock... [2025-03-26 12:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:57:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:58:06 [end_date_ymd] => 2025-03-26 12:58:06 [RateCDR] => 1 ) [2025-03-26 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-26 09:58:06' and `end` < '2025-03-26 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-26 12:58:19] Production.INFO: count ==5404 [2025-03-26 12:58:21] Production.ERROR: pbx CDR StartTime 2025-03-26 09:58:06 - End Time 2025-03-26 12:58:06 [2025-03-26 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766984', 'tblTempUsageDetail_20' ) start [2025-03-26 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766984', 'tblTempUsageDetail_20' ) end [2025-03-26 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766984', 'tblTempVendorCDR_20' ) start [2025-03-26 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766984', 'tblTempVendorCDR_20' ) end [2025-03-26 12:58:22] Production.INFO: ProcessCDR(1,14766984,1,1,2) [2025-03-26 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766984', 'tblTempUsageDetail_20' ) start [2025-03-26 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766984', 'tblTempUsageDetail_20' ) end [2025-03-26 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:58:27] Production.INFO: ==9125== Releasing lock... [2025-03-26 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:58:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 09:59:05 [end_date_ymd] => 2025-03-26 12:59:05 [RateCDR] => 1 ) [2025-03-26 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-26 09:59:05' and `end` < '2025-03-26 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-26 12:59:18] Production.INFO: count ==5421 [2025-03-26 12:59:20] Production.ERROR: pbx CDR StartTime 2025-03-26 09:59:05 - End Time 2025-03-26 12:59:05 [2025-03-26 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766989', 'tblTempUsageDetail_20' ) start [2025-03-26 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766989', 'tblTempUsageDetail_20' ) end [2025-03-26 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766989', 'tblTempVendorCDR_20' ) start [2025-03-26 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766989', 'tblTempVendorCDR_20' ) end [2025-03-26 12:59:21] Production.INFO: ProcessCDR(1,14766989,1,1,2) [2025-03-26 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766989', 'tblTempUsageDetail_20' ) start [2025-03-26 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766989', 'tblTempUsageDetail_20' ) end [2025-03-26 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 12:59:26] Production.INFO: ==9197== Releasing lock... [2025-03-26 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 12:59:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:00:06 [end_date_ymd] => 2025-03-26 13:00:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:00:06' and `end` < '2025-03-26 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-26 13:00:20] Production.INFO: count ==5425 [2025-03-26 13:00:23] Production.ERROR: pbx CDR StartTime 2025-03-26 10:00:06 - End Time 2025-03-26 13:00:06 [2025-03-26 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766995', 'tblTempUsageDetail_20' ) start [2025-03-26 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14766995', 'tblTempUsageDetail_20' ) end [2025-03-26 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766995', 'tblTempVendorCDR_20' ) start [2025-03-26 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14766995', 'tblTempVendorCDR_20' ) end [2025-03-26 13:00:23] Production.INFO: ProcessCDR(1,14766995,1,1,2) [2025-03-26 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14766995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14766995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14766995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14766995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766995', 'tblTempUsageDetail_20' ) start [2025-03-26 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14766995', 'tblTempUsageDetail_20' ) end [2025-03-26 13:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:00:29] Production.INFO: ==9272== Releasing lock... [2025-03-26 13:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:00:29] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:01:05 [end_date_ymd] => 2025-03-26 13:01:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:01:05' and `end` < '2025-03-26 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-26 13:01:19] Production.INFO: count ==5433 [2025-03-26 13:01:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:01:05 - End Time 2025-03-26 13:01:05 [2025-03-26 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767000', 'tblTempUsageDetail_20' ) start [2025-03-26 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767000', 'tblTempUsageDetail_20' ) end [2025-03-26 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767000', 'tblTempVendorCDR_20' ) start [2025-03-26 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767000', 'tblTempVendorCDR_20' ) end [2025-03-26 13:01:21] Production.INFO: ProcessCDR(1,14767000,1,1,2) [2025-03-26 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767000', 'tblTempUsageDetail_20' ) start [2025-03-26 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767000', 'tblTempUsageDetail_20' ) end [2025-03-26 13:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:01:27] Production.INFO: ==9358== Releasing lock... [2025-03-26 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:01:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:02:06 [end_date_ymd] => 2025-03-26 13:02:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:02:06' and `end` < '2025-03-26 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-26 13:02:19] Production.INFO: count ==5434 [2025-03-26 13:02:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:02:06 - End Time 2025-03-26 13:02:06 [2025-03-26 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767005', 'tblTempUsageDetail_20' ) start [2025-03-26 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767005', 'tblTempUsageDetail_20' ) end [2025-03-26 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767005', 'tblTempVendorCDR_20' ) start [2025-03-26 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767005', 'tblTempVendorCDR_20' ) end [2025-03-26 13:02:22] Production.INFO: ProcessCDR(1,14767005,1,1,2) [2025-03-26 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767005', 'tblTempUsageDetail_20' ) start [2025-03-26 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767005', 'tblTempUsageDetail_20' ) end [2025-03-26 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:02:27] Production.INFO: ==9433== Releasing lock... [2025-03-26 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:02:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:03:05 [end_date_ymd] => 2025-03-26 13:03:05 [RateCDR] => 1 ) [2025-03-26 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:03:05' and `end` < '2025-03-26 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:03:19] Production.INFO: count ==5420 [2025-03-26 13:03:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:03:05 - End Time 2025-03-26 13:03:05 [2025-03-26 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767010', 'tblTempUsageDetail_20' ) start [2025-03-26 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767010', 'tblTempUsageDetail_20' ) end [2025-03-26 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767010', 'tblTempVendorCDR_20' ) start [2025-03-26 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767010', 'tblTempVendorCDR_20' ) end [2025-03-26 13:03:21] Production.INFO: ProcessCDR(1,14767010,1,1,2) [2025-03-26 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767010', 'tblTempUsageDetail_20' ) start [2025-03-26 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767010', 'tblTempUsageDetail_20' ) end [2025-03-26 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:03:27] Production.INFO: ==9510== Releasing lock... [2025-03-26 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:03:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:04:06 [end_date_ymd] => 2025-03-26 13:04:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:04:06' and `end` < '2025-03-26 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-26 13:04:19] Production.INFO: count ==5406 [2025-03-26 13:04:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:04:06 - End Time 2025-03-26 13:04:06 [2025-03-26 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767015', 'tblTempUsageDetail_20' ) start [2025-03-26 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767015', 'tblTempUsageDetail_20' ) end [2025-03-26 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767015', 'tblTempVendorCDR_20' ) start [2025-03-26 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767015', 'tblTempVendorCDR_20' ) end [2025-03-26 13:04:22] Production.INFO: ProcessCDR(1,14767015,1,1,2) [2025-03-26 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767015', 'tblTempUsageDetail_20' ) start [2025-03-26 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767015', 'tblTempUsageDetail_20' ) end [2025-03-26 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:04:27] Production.INFO: ==9585== Releasing lock... [2025-03-26 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:04:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:05:05 [end_date_ymd] => 2025-03-26 13:05:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:05:05' and `end` < '2025-03-26 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-26 13:05:18] Production.INFO: count ==5408 [2025-03-26 13:05:20] Production.ERROR: pbx CDR StartTime 2025-03-26 10:05:05 - End Time 2025-03-26 13:05:05 [2025-03-26 13:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767020', 'tblTempUsageDetail_20' ) start [2025-03-26 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767020', 'tblTempUsageDetail_20' ) end [2025-03-26 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767020', 'tblTempVendorCDR_20' ) start [2025-03-26 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767020', 'tblTempVendorCDR_20' ) end [2025-03-26 13:05:21] Production.INFO: ProcessCDR(1,14767020,1,1,2) [2025-03-26 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767020', 'tblTempUsageDetail_20' ) start [2025-03-26 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767020', 'tblTempUsageDetail_20' ) end [2025-03-26 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:05:26] Production.INFO: ==9663== Releasing lock... [2025-03-26 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:05:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:06:05 [end_date_ymd] => 2025-03-26 13:06:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:06:05' and `end` < '2025-03-26 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-26 13:06:19] Production.INFO: count ==5413 [2025-03-26 13:06:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:06:05 - End Time 2025-03-26 13:06:05 [2025-03-26 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767025', 'tblTempUsageDetail_20' ) start [2025-03-26 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767025', 'tblTempUsageDetail_20' ) end [2025-03-26 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767025', 'tblTempVendorCDR_20' ) start [2025-03-26 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767025', 'tblTempVendorCDR_20' ) end [2025-03-26 13:06:21] Production.INFO: ProcessCDR(1,14767025,1,1,2) [2025-03-26 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767025', 'tblTempUsageDetail_20' ) start [2025-03-26 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767025', 'tblTempUsageDetail_20' ) end [2025-03-26 13:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:06:27] Production.INFO: ==9737== Releasing lock... [2025-03-26 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:06:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:07:05 [end_date_ymd] => 2025-03-26 13:07:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:07:05' and `end` < '2025-03-26 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-26 13:07:19] Production.INFO: count ==5397 [2025-03-26 13:07:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:07:05 - End Time 2025-03-26 13:07:05 [2025-03-26 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767030', 'tblTempUsageDetail_20' ) start [2025-03-26 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767030', 'tblTempUsageDetail_20' ) end [2025-03-26 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767030', 'tblTempVendorCDR_20' ) start [2025-03-26 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767030', 'tblTempVendorCDR_20' ) end [2025-03-26 13:07:21] Production.INFO: ProcessCDR(1,14767030,1,1,2) [2025-03-26 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767030', 'tblTempUsageDetail_20' ) start [2025-03-26 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767030', 'tblTempUsageDetail_20' ) end [2025-03-26 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:07:26] Production.INFO: ==9851== Releasing lock... [2025-03-26 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:07:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:08:05 [end_date_ymd] => 2025-03-26 13:08:05 [RateCDR] => 1 ) [2025-03-26 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:08:05' and `end` < '2025-03-26 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:08:19] Production.INFO: count ==5393 [2025-03-26 13:08:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:08:05 - End Time 2025-03-26 13:08:05 [2025-03-26 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767035', 'tblTempUsageDetail_20' ) start [2025-03-26 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767035', 'tblTempUsageDetail_20' ) end [2025-03-26 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767035', 'tblTempVendorCDR_20' ) start [2025-03-26 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767035', 'tblTempVendorCDR_20' ) end [2025-03-26 13:08:21] Production.INFO: ProcessCDR(1,14767035,1,1,2) [2025-03-26 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767035', 'tblTempUsageDetail_20' ) start [2025-03-26 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767035', 'tblTempUsageDetail_20' ) end [2025-03-26 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:08:27] Production.INFO: ==9927== Releasing lock... [2025-03-26 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:08:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:09:05 [end_date_ymd] => 2025-03-26 13:09:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:09:05' and `end` < '2025-03-26 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-26 13:09:19] Production.INFO: count ==5379 [2025-03-26 13:09:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:09:05 - End Time 2025-03-26 13:09:05 [2025-03-26 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767040', 'tblTempUsageDetail_20' ) start [2025-03-26 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767040', 'tblTempUsageDetail_20' ) end [2025-03-26 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767040', 'tblTempVendorCDR_20' ) start [2025-03-26 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767040', 'tblTempVendorCDR_20' ) end [2025-03-26 13:09:21] Production.INFO: ProcessCDR(1,14767040,1,1,2) [2025-03-26 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767040', 'tblTempUsageDetail_20' ) start [2025-03-26 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767040', 'tblTempUsageDetail_20' ) end [2025-03-26 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:09:26] Production.INFO: ==10004== Releasing lock... [2025-03-26 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:09:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:10:06 [end_date_ymd] => 2025-03-26 13:10:06 [RateCDR] => 1 ) [2025-03-26 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:10:06' and `end` < '2025-03-26 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:10:20] Production.INFO: count ==5367 [2025-03-26 13:10:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:10:06 - End Time 2025-03-26 13:10:06 [2025-03-26 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767046', 'tblTempUsageDetail_20' ) start [2025-03-26 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767046', 'tblTempUsageDetail_20' ) end [2025-03-26 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767046', 'tblTempVendorCDR_20' ) start [2025-03-26 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767046', 'tblTempVendorCDR_20' ) end [2025-03-26 13:10:22] Production.INFO: ProcessCDR(1,14767046,1,1,2) [2025-03-26 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767046', 'tblTempUsageDetail_20' ) start [2025-03-26 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767046', 'tblTempUsageDetail_20' ) end [2025-03-26 13:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:10:27] Production.INFO: ==10081== Releasing lock... [2025-03-26 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:10:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 13:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:11:04 [end_date_ymd] => 2025-03-26 13:11:04 [RateCDR] => 1 ) [2025-03-26 13:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:11:04' and `end` < '2025-03-26 13:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:11:18] Production.INFO: count ==5362 [2025-03-26 13:11:20] Production.ERROR: pbx CDR StartTime 2025-03-26 10:11:04 - End Time 2025-03-26 13:11:04 [2025-03-26 13:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767051', 'tblTempUsageDetail_20' ) start [2025-03-26 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767051', 'tblTempUsageDetail_20' ) end [2025-03-26 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767051', 'tblTempVendorCDR_20' ) start [2025-03-26 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767051', 'tblTempVendorCDR_20' ) end [2025-03-26 13:11:20] Production.INFO: ProcessCDR(1,14767051,1,1,2) [2025-03-26 13:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767051', 'tblTempUsageDetail_20' ) start [2025-03-26 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767051', 'tblTempUsageDetail_20' ) end [2025-03-26 13:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:11:25] Production.INFO: ==10160== Releasing lock... [2025-03-26 13:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:11:25] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:12:06 [end_date_ymd] => 2025-03-26 13:12:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:12:06' and `end` < '2025-03-26 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-26 13:12:20] Production.INFO: count ==5364 [2025-03-26 13:12:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:12:06 - End Time 2025-03-26 13:12:06 [2025-03-26 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767056', 'tblTempUsageDetail_20' ) start [2025-03-26 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767056', 'tblTempUsageDetail_20' ) end [2025-03-26 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767056', 'tblTempVendorCDR_20' ) start [2025-03-26 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767056', 'tblTempVendorCDR_20' ) end [2025-03-26 13:12:22] Production.INFO: ProcessCDR(1,14767056,1,1,2) [2025-03-26 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767056', 'tblTempUsageDetail_20' ) start [2025-03-26 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767056', 'tblTempUsageDetail_20' ) end [2025-03-26 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:12:28] Production.INFO: ==10233== Releasing lock... [2025-03-26 13:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:12:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:13:05 [end_date_ymd] => 2025-03-26 13:13:05 [RateCDR] => 1 ) [2025-03-26 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:13:05' and `end` < '2025-03-26 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:13:18] Production.INFO: count ==5352 [2025-03-26 13:13:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:13:05 - End Time 2025-03-26 13:13:05 [2025-03-26 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767061', 'tblTempUsageDetail_20' ) start [2025-03-26 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767061', 'tblTempUsageDetail_20' ) end [2025-03-26 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767061', 'tblTempVendorCDR_20' ) start [2025-03-26 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767061', 'tblTempVendorCDR_20' ) end [2025-03-26 13:13:21] Production.INFO: ProcessCDR(1,14767061,1,1,2) [2025-03-26 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767061', 'tblTempUsageDetail_20' ) start [2025-03-26 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767061', 'tblTempUsageDetail_20' ) end [2025-03-26 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:13:26] Production.INFO: ==10307== Releasing lock... [2025-03-26 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:13:26] Production.INFO: 68 MB #Memory Used# [2025-03-26 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:14:05 [end_date_ymd] => 2025-03-26 13:14:05 [RateCDR] => 1 ) [2025-03-26 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:14:05' and `end` < '2025-03-26 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:14:19] Production.INFO: count ==5339 [2025-03-26 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:14:05 - End Time 2025-03-26 13:14:05 [2025-03-26 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767066', 'tblTempUsageDetail_20' ) start [2025-03-26 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767066', 'tblTempUsageDetail_20' ) end [2025-03-26 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767066', 'tblTempVendorCDR_20' ) start [2025-03-26 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767066', 'tblTempVendorCDR_20' ) end [2025-03-26 13:14:21] Production.INFO: ProcessCDR(1,14767066,1,1,2) [2025-03-26 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767066', 'tblTempUsageDetail_20' ) start [2025-03-26 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767066', 'tblTempUsageDetail_20' ) end [2025-03-26 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:14:26] Production.INFO: ==10384== Releasing lock... [2025-03-26 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:14:26] Production.INFO: 68 MB #Memory Used# [2025-03-26 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:15:06 [end_date_ymd] => 2025-03-26 13:15:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:15:06' and `end` < '2025-03-26 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-26 13:15:19] Production.INFO: count ==5351 [2025-03-26 13:15:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:15:06 - End Time 2025-03-26 13:15:06 [2025-03-26 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767071', 'tblTempUsageDetail_20' ) start [2025-03-26 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767071', 'tblTempUsageDetail_20' ) end [2025-03-26 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767071', 'tblTempVendorCDR_20' ) start [2025-03-26 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767071', 'tblTempVendorCDR_20' ) end [2025-03-26 13:15:22] Production.INFO: ProcessCDR(1,14767071,1,1,2) [2025-03-26 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767071', 'tblTempUsageDetail_20' ) start [2025-03-26 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767071', 'tblTempUsageDetail_20' ) end [2025-03-26 13:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:15:28] Production.INFO: ==10462== Releasing lock... [2025-03-26 13:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:15:28] Production.INFO: 68 MB #Memory Used# [2025-03-26 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:16:06 [end_date_ymd] => 2025-03-26 13:16:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:16:06' and `end` < '2025-03-26 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-26 13:16:19] Production.INFO: count ==5369 [2025-03-26 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:16:06 - End Time 2025-03-26 13:16:06 [2025-03-26 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767076', 'tblTempUsageDetail_20' ) start [2025-03-26 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767076', 'tblTempUsageDetail_20' ) end [2025-03-26 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767076', 'tblTempVendorCDR_20' ) start [2025-03-26 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767076', 'tblTempVendorCDR_20' ) end [2025-03-26 13:16:22] Production.INFO: ProcessCDR(1,14767076,1,1,2) [2025-03-26 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767076', 'tblTempUsageDetail_20' ) start [2025-03-26 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767076', 'tblTempUsageDetail_20' ) end [2025-03-26 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:16:27] Production.INFO: ==10536== Releasing lock... [2025-03-26 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:16:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:17:06 [end_date_ymd] => 2025-03-26 13:17:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:17:06' and `end` < '2025-03-26 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-26 13:17:20] Production.INFO: count ==5384 [2025-03-26 13:17:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:17:06 - End Time 2025-03-26 13:17:06 [2025-03-26 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767081', 'tblTempUsageDetail_20' ) start [2025-03-26 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767081', 'tblTempUsageDetail_20' ) end [2025-03-26 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767081', 'tblTempVendorCDR_20' ) start [2025-03-26 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767081', 'tblTempVendorCDR_20' ) end [2025-03-26 13:17:22] Production.INFO: ProcessCDR(1,14767081,1,1,2) [2025-03-26 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767081', 'tblTempUsageDetail_20' ) start [2025-03-26 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767081', 'tblTempUsageDetail_20' ) end [2025-03-26 13:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:17:28] Production.INFO: ==10613== Releasing lock... [2025-03-26 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:17:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:18:06 [end_date_ymd] => 2025-03-26 13:18:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:18:06' and `end` < '2025-03-26 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-26 13:18:19] Production.INFO: count ==5392 [2025-03-26 13:18:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:18:06 - End Time 2025-03-26 13:18:06 [2025-03-26 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767086', 'tblTempUsageDetail_20' ) start [2025-03-26 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767086', 'tblTempUsageDetail_20' ) end [2025-03-26 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767086', 'tblTempVendorCDR_20' ) start [2025-03-26 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767086', 'tblTempVendorCDR_20' ) end [2025-03-26 13:18:22] Production.INFO: ProcessCDR(1,14767086,1,1,2) [2025-03-26 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767086', 'tblTempUsageDetail_20' ) start [2025-03-26 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767086', 'tblTempUsageDetail_20' ) end [2025-03-26 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:18:27] Production.INFO: ==10704== Releasing lock... [2025-03-26 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:18:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:19:06 [end_date_ymd] => 2025-03-26 13:19:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:19:06' and `end` < '2025-03-26 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-26 13:19:19] Production.INFO: count ==5411 [2025-03-26 13:19:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:19:06 - End Time 2025-03-26 13:19:06 [2025-03-26 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767091', 'tblTempUsageDetail_20' ) start [2025-03-26 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767091', 'tblTempUsageDetail_20' ) end [2025-03-26 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767091', 'tblTempVendorCDR_20' ) start [2025-03-26 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767091', 'tblTempVendorCDR_20' ) end [2025-03-26 13:19:22] Production.INFO: ProcessCDR(1,14767091,1,1,2) [2025-03-26 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767091', 'tblTempUsageDetail_20' ) start [2025-03-26 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767091', 'tblTempUsageDetail_20' ) end [2025-03-26 13:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:19:28] Production.INFO: ==10784== Releasing lock... [2025-03-26 13:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:19:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:20:07 [end_date_ymd] => 2025-03-26 13:20:07 [RateCDR] => 1 ) [2025-03-26 13:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:20:07' and `end` < '2025-03-26 13:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:20:20] Production.INFO: count ==5408 [2025-03-26 13:20:23] Production.ERROR: pbx CDR StartTime 2025-03-26 10:20:07 - End Time 2025-03-26 13:20:07 [2025-03-26 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767097', 'tblTempUsageDetail_20' ) start [2025-03-26 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767097', 'tblTempUsageDetail_20' ) end [2025-03-26 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767097', 'tblTempVendorCDR_20' ) start [2025-03-26 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767097', 'tblTempVendorCDR_20' ) end [2025-03-26 13:20:23] Production.INFO: ProcessCDR(1,14767097,1,1,2) [2025-03-26 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767097', 'tblTempUsageDetail_20' ) start [2025-03-26 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767097', 'tblTempUsageDetail_20' ) end [2025-03-26 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:20:28] Production.INFO: ==10861== Releasing lock... [2025-03-26 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:20:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:21:06 [end_date_ymd] => 2025-03-26 13:21:06 [RateCDR] => 1 ) [2025-03-26 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:21:06' and `end` < '2025-03-26 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:21:19] Production.INFO: count ==5411 [2025-03-26 13:21:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:21:06 - End Time 2025-03-26 13:21:06 [2025-03-26 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767102', 'tblTempUsageDetail_20' ) start [2025-03-26 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767102', 'tblTempUsageDetail_20' ) end [2025-03-26 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767102', 'tblTempVendorCDR_20' ) start [2025-03-26 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767102', 'tblTempVendorCDR_20' ) end [2025-03-26 13:21:22] Production.INFO: ProcessCDR(1,14767102,1,1,2) [2025-03-26 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767102', 'tblTempUsageDetail_20' ) start [2025-03-26 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767102', 'tblTempUsageDetail_20' ) end [2025-03-26 13:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:21:28] Production.INFO: ==10937== Releasing lock... [2025-03-26 13:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:21:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:22:05 [end_date_ymd] => 2025-03-26 13:22:05 [RateCDR] => 1 ) [2025-03-26 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:22:05' and `end` < '2025-03-26 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:22:18] Production.INFO: count ==5413 [2025-03-26 13:22:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:22:05 - End Time 2025-03-26 13:22:05 [2025-03-26 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767107', 'tblTempUsageDetail_20' ) start [2025-03-26 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767107', 'tblTempUsageDetail_20' ) end [2025-03-26 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767107', 'tblTempVendorCDR_20' ) start [2025-03-26 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767107', 'tblTempVendorCDR_20' ) end [2025-03-26 13:22:21] Production.INFO: ProcessCDR(1,14767107,1,1,2) [2025-03-26 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767107', 'tblTempUsageDetail_20' ) start [2025-03-26 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767107', 'tblTempUsageDetail_20' ) end [2025-03-26 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:22:27] Production.INFO: ==11052== Releasing lock... [2025-03-26 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:22:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:23:06 [end_date_ymd] => 2025-03-26 13:23:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:23:06' and `end` < '2025-03-26 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-26 13:23:20] Production.INFO: count ==5424 [2025-03-26 13:23:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:23:06 - End Time 2025-03-26 13:23:06 [2025-03-26 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767112', 'tblTempUsageDetail_20' ) start [2025-03-26 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767112', 'tblTempUsageDetail_20' ) end [2025-03-26 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767112', 'tblTempVendorCDR_20' ) start [2025-03-26 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767112', 'tblTempVendorCDR_20' ) end [2025-03-26 13:23:22] Production.INFO: ProcessCDR(1,14767112,1,1,2) [2025-03-26 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767112', 'tblTempUsageDetail_20' ) start [2025-03-26 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767112', 'tblTempUsageDetail_20' ) end [2025-03-26 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:23:26] Production.INFO: ==11130== Releasing lock... [2025-03-26 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:23:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:24:06 [end_date_ymd] => 2025-03-26 13:24:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:24:06' and `end` < '2025-03-26 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-26 13:24:19] Production.INFO: count ==5422 [2025-03-26 13:24:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:24:06 - End Time 2025-03-26 13:24:06 [2025-03-26 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767117', 'tblTempUsageDetail_20' ) start [2025-03-26 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767117', 'tblTempUsageDetail_20' ) end [2025-03-26 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767117', 'tblTempVendorCDR_20' ) start [2025-03-26 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767117', 'tblTempVendorCDR_20' ) end [2025-03-26 13:24:22] Production.INFO: ProcessCDR(1,14767117,1,1,2) [2025-03-26 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767117', 'tblTempUsageDetail_20' ) start [2025-03-26 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767117', 'tblTempUsageDetail_20' ) end [2025-03-26 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:24:27] Production.INFO: ==11206== Releasing lock... [2025-03-26 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:24:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:25:06 [end_date_ymd] => 2025-03-26 13:25:06 [RateCDR] => 1 ) [2025-03-26 13: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-26 10:25:06' and `end` < '2025-03-26 13: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-26 13:25:20] Production.INFO: count ==5439 [2025-03-26 13:25:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:25:06 - End Time 2025-03-26 13:25:06 [2025-03-26 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767122', 'tblTempUsageDetail_20' ) start [2025-03-26 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767122', 'tblTempUsageDetail_20' ) end [2025-03-26 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767122', 'tblTempVendorCDR_20' ) start [2025-03-26 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767122', 'tblTempVendorCDR_20' ) end [2025-03-26 13:25:22] Production.INFO: ProcessCDR(1,14767122,1,1,2) [2025-03-26 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767122', 'tblTempUsageDetail_20' ) start [2025-03-26 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767122', 'tblTempUsageDetail_20' ) end [2025-03-26 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:25:28] Production.INFO: ==11278== Releasing lock... [2025-03-26 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:25:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:26:05 [end_date_ymd] => 2025-03-26 13:26:05 [RateCDR] => 1 ) [2025-03-26 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:26:05' and `end` < '2025-03-26 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:26:19] Production.INFO: count ==5447 [2025-03-26 13:26:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:26:05 - End Time 2025-03-26 13:26:05 [2025-03-26 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767127', 'tblTempUsageDetail_20' ) start [2025-03-26 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767127', 'tblTempUsageDetail_20' ) end [2025-03-26 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767127', 'tblTempVendorCDR_20' ) start [2025-03-26 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767127', 'tblTempVendorCDR_20' ) end [2025-03-26 13:26:21] Production.INFO: ProcessCDR(1,14767127,1,1,2) [2025-03-26 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767127', 'tblTempUsageDetail_20' ) start [2025-03-26 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767127', 'tblTempUsageDetail_20' ) end [2025-03-26 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:26:27] Production.INFO: ==11354== Releasing lock... [2025-03-26 13:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:26:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:27:06 [end_date_ymd] => 2025-03-26 13:27:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:27:06' and `end` < '2025-03-26 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-26 13:27:19] Production.INFO: count ==5436 [2025-03-26 13:27:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:27:06 - End Time 2025-03-26 13:27:06 [2025-03-26 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767132', 'tblTempUsageDetail_20' ) start [2025-03-26 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767132', 'tblTempUsageDetail_20' ) end [2025-03-26 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767132', 'tblTempVendorCDR_20' ) start [2025-03-26 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767132', 'tblTempVendorCDR_20' ) end [2025-03-26 13:27:22] Production.INFO: ProcessCDR(1,14767132,1,1,2) [2025-03-26 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767132', 'tblTempUsageDetail_20' ) start [2025-03-26 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767132', 'tblTempUsageDetail_20' ) end [2025-03-26 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:27:27] Production.INFO: ==11429== Releasing lock... [2025-03-26 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:27:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:28:05 [end_date_ymd] => 2025-03-26 13:28:05 [RateCDR] => 1 ) [2025-03-26 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:28:05' and `end` < '2025-03-26 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:28:19] Production.INFO: count ==5434 [2025-03-26 13:28:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:28:05 - End Time 2025-03-26 13:28:05 [2025-03-26 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767137', 'tblTempUsageDetail_20' ) start [2025-03-26 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767137', 'tblTempUsageDetail_20' ) end [2025-03-26 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767137', 'tblTempVendorCDR_20' ) start [2025-03-26 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767137', 'tblTempVendorCDR_20' ) end [2025-03-26 13:28:21] Production.INFO: ProcessCDR(1,14767137,1,1,2) [2025-03-26 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767137', 'tblTempUsageDetail_20' ) start [2025-03-26 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767137', 'tblTempUsageDetail_20' ) end [2025-03-26 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:28:26] Production.INFO: ==11506== Releasing lock... [2025-03-26 13:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:28:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:29:06 [end_date_ymd] => 2025-03-26 13:29:06 [RateCDR] => 1 ) [2025-03-26 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:29:06' and `end` < '2025-03-26 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:29:19] Production.INFO: count ==5442 [2025-03-26 13:29:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:29:06 - End Time 2025-03-26 13:29:06 [2025-03-26 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767142', 'tblTempUsageDetail_20' ) start [2025-03-26 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767142', 'tblTempUsageDetail_20' ) end [2025-03-26 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767142', 'tblTempVendorCDR_20' ) start [2025-03-26 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767142', 'tblTempVendorCDR_20' ) end [2025-03-26 13:29:22] Production.INFO: ProcessCDR(1,14767142,1,1,2) [2025-03-26 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767142', 'tblTempUsageDetail_20' ) start [2025-03-26 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767142', 'tblTempUsageDetail_20' ) end [2025-03-26 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:29:27] Production.INFO: ==11580== Releasing lock... [2025-03-26 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:29:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 13:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:30:07 [end_date_ymd] => 2025-03-26 13:30:07 [RateCDR] => 1 ) [2025-03-26 13: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-26 10:30:07' and `end` < '2025-03-26 13: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-26 13:30:20] Production.INFO: count ==5420 [2025-03-26 13:30:23] Production.ERROR: pbx CDR StartTime 2025-03-26 10:30:07 - End Time 2025-03-26 13:30:07 [2025-03-26 13:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767148', 'tblTempUsageDetail_20' ) start [2025-03-26 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767148', 'tblTempUsageDetail_20' ) end [2025-03-26 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767148', 'tblTempVendorCDR_20' ) start [2025-03-26 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767148', 'tblTempVendorCDR_20' ) end [2025-03-26 13:30:23] Production.INFO: ProcessCDR(1,14767148,1,1,2) [2025-03-26 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767148', 'tblTempUsageDetail_20' ) start [2025-03-26 13:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767148', 'tblTempUsageDetail_20' ) end [2025-03-26 13:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:30:29] Production.INFO: ==11663== Releasing lock... [2025-03-26 13:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:30:29] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:31:06 [end_date_ymd] => 2025-03-26 13:31:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:31:06' and `end` < '2025-03-26 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-26 13:31:19] Production.INFO: count ==5407 [2025-03-26 13:31:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:31:06 - End Time 2025-03-26 13:31:06 [2025-03-26 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767153', 'tblTempUsageDetail_20' ) start [2025-03-26 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767153', 'tblTempUsageDetail_20' ) end [2025-03-26 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767153', 'tblTempVendorCDR_20' ) start [2025-03-26 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767153', 'tblTempVendorCDR_20' ) end [2025-03-26 13:31:22] Production.INFO: ProcessCDR(1,14767153,1,1,2) [2025-03-26 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767153', 'tblTempUsageDetail_20' ) start [2025-03-26 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767153', 'tblTempUsageDetail_20' ) end [2025-03-26 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:31:27] Production.INFO: ==11745== Releasing lock... [2025-03-26 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:31:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:32:05 [end_date_ymd] => 2025-03-26 13:32:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:32:05' and `end` < '2025-03-26 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-26 13:32:19] Production.INFO: count ==5401 [2025-03-26 13:32:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:32:05 - End Time 2025-03-26 13:32:05 [2025-03-26 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767158', 'tblTempUsageDetail_20' ) start [2025-03-26 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767158', 'tblTempUsageDetail_20' ) end [2025-03-26 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767158', 'tblTempVendorCDR_20' ) start [2025-03-26 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767158', 'tblTempVendorCDR_20' ) end [2025-03-26 13:32:21] Production.INFO: ProcessCDR(1,14767158,1,1,2) [2025-03-26 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767158', 'tblTempUsageDetail_20' ) start [2025-03-26 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767158', 'tblTempUsageDetail_20' ) end [2025-03-26 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:32:27] Production.INFO: ==11819== Releasing lock... [2025-03-26 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:32:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:33:05 [end_date_ymd] => 2025-03-26 13:33:05 [RateCDR] => 1 ) [2025-03-26 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:33:05' and `end` < '2025-03-26 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:33:19] Production.INFO: count ==5421 [2025-03-26 13:33:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:33:05 - End Time 2025-03-26 13:33:05 [2025-03-26 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767163', 'tblTempUsageDetail_20' ) start [2025-03-26 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767163', 'tblTempUsageDetail_20' ) end [2025-03-26 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767163', 'tblTempVendorCDR_20' ) start [2025-03-26 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767163', 'tblTempVendorCDR_20' ) end [2025-03-26 13:33:21] Production.INFO: ProcessCDR(1,14767163,1,1,2) [2025-03-26 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767163', 'tblTempUsageDetail_20' ) start [2025-03-26 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767163', 'tblTempUsageDetail_20' ) end [2025-03-26 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:33:27] Production.INFO: ==11896== Releasing lock... [2025-03-26 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:33:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:34:05 [end_date_ymd] => 2025-03-26 13:34:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:34:05' and `end` < '2025-03-26 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-26 13:34:19] Production.INFO: count ==5433 [2025-03-26 13:34:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:34:05 - End Time 2025-03-26 13:34:05 [2025-03-26 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767168', 'tblTempUsageDetail_20' ) start [2025-03-26 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767168', 'tblTempUsageDetail_20' ) end [2025-03-26 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767168', 'tblTempVendorCDR_20' ) start [2025-03-26 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767168', 'tblTempVendorCDR_20' ) end [2025-03-26 13:34:21] Production.INFO: ProcessCDR(1,14767168,1,1,2) [2025-03-26 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767168', 'tblTempUsageDetail_20' ) start [2025-03-26 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767168', 'tblTempUsageDetail_20' ) end [2025-03-26 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:34:27] Production.INFO: ==11969== Releasing lock... [2025-03-26 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:34:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:35:06 [end_date_ymd] => 2025-03-26 13:35:06 [RateCDR] => 1 ) [2025-03-26 13:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:35:06' and `end` < '2025-03-26 13:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:35:19] Production.INFO: count ==5422 [2025-03-26 13:35:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:35:06 - End Time 2025-03-26 13:35:06 [2025-03-26 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767173', 'tblTempUsageDetail_20' ) start [2025-03-26 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767173', 'tblTempUsageDetail_20' ) end [2025-03-26 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767173', 'tblTempVendorCDR_20' ) start [2025-03-26 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767173', 'tblTempVendorCDR_20' ) end [2025-03-26 13:35:21] Production.INFO: ProcessCDR(1,14767173,1,1,2) [2025-03-26 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767173', 'tblTempUsageDetail_20' ) start [2025-03-26 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767173', 'tblTempUsageDetail_20' ) end [2025-03-26 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:35:27] Production.INFO: ==12044== Releasing lock... [2025-03-26 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:35:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:36:06 [end_date_ymd] => 2025-03-26 13:36:06 [RateCDR] => 1 ) [2025-03-26 13:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:36:06' and `end` < '2025-03-26 13:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:36:19] Production.INFO: count ==5414 [2025-03-26 13:36:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:36:06 - End Time 2025-03-26 13:36:06 [2025-03-26 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767178', 'tblTempUsageDetail_20' ) start [2025-03-26 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767178', 'tblTempUsageDetail_20' ) end [2025-03-26 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767178', 'tblTempVendorCDR_20' ) start [2025-03-26 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767178', 'tblTempVendorCDR_20' ) end [2025-03-26 13:36:22] Production.INFO: ProcessCDR(1,14767178,1,1,2) [2025-03-26 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767178', 'tblTempUsageDetail_20' ) start [2025-03-26 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767178', 'tblTempUsageDetail_20' ) end [2025-03-26 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:36:27] Production.INFO: ==12121== Releasing lock... [2025-03-26 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:36:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:37:05 [end_date_ymd] => 2025-03-26 13:37:05 [RateCDR] => 1 ) [2025-03-26 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:37:05' and `end` < '2025-03-26 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:37:19] Production.INFO: count ==5417 [2025-03-26 13:37:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:37:05 - End Time 2025-03-26 13:37:05 [2025-03-26 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767183', 'tblTempUsageDetail_20' ) start [2025-03-26 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767183', 'tblTempUsageDetail_20' ) end [2025-03-26 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767183', 'tblTempVendorCDR_20' ) start [2025-03-26 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767183', 'tblTempVendorCDR_20' ) end [2025-03-26 13:37:21] Production.INFO: ProcessCDR(1,14767183,1,1,2) [2025-03-26 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767183', 'tblTempUsageDetail_20' ) start [2025-03-26 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767183', 'tblTempUsageDetail_20' ) end [2025-03-26 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:37:26] Production.INFO: ==12200== Releasing lock... [2025-03-26 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:37:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:38:05 [end_date_ymd] => 2025-03-26 13:38:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:38:05' and `end` < '2025-03-26 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-26 13:38:19] Production.INFO: count ==5403 [2025-03-26 13:38:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:38:05 - End Time 2025-03-26 13:38:05 [2025-03-26 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767187', 'tblTempUsageDetail_20' ) start [2025-03-26 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767187', 'tblTempUsageDetail_20' ) end [2025-03-26 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767187', 'tblTempVendorCDR_20' ) start [2025-03-26 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767187', 'tblTempVendorCDR_20' ) end [2025-03-26 13:38:21] Production.INFO: ProcessCDR(1,14767187,1,1,2) [2025-03-26 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767187', 'tblTempUsageDetail_20' ) start [2025-03-26 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767187', 'tblTempUsageDetail_20' ) end [2025-03-26 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:38:27] Production.INFO: ==12311== Releasing lock... [2025-03-26 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:38:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:39:05 [end_date_ymd] => 2025-03-26 13:39:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:39:05' and `end` < '2025-03-26 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-26 13:39:19] Production.INFO: count ==5415 [2025-03-26 13:39:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:39:05 - End Time 2025-03-26 13:39:05 [2025-03-26 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767193', 'tblTempUsageDetail_20' ) start [2025-03-26 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767193', 'tblTempUsageDetail_20' ) end [2025-03-26 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767193', 'tblTempVendorCDR_20' ) start [2025-03-26 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767193', 'tblTempVendorCDR_20' ) end [2025-03-26 13:39:21] Production.INFO: ProcessCDR(1,14767193,1,1,2) [2025-03-26 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767193', 'tblTempUsageDetail_20' ) start [2025-03-26 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767193', 'tblTempUsageDetail_20' ) end [2025-03-26 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:39:26] Production.INFO: ==12385== Releasing lock... [2025-03-26 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:39:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:40:05 [end_date_ymd] => 2025-03-26 13:40:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:40:05' and `end` < '2025-03-26 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-26 13:40:19] Production.INFO: count ==5444 [2025-03-26 13:40:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:40:05 - End Time 2025-03-26 13:40:05 [2025-03-26 13:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767199', 'tblTempUsageDetail_20' ) start [2025-03-26 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767199', 'tblTempUsageDetail_20' ) end [2025-03-26 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767199', 'tblTempVendorCDR_20' ) start [2025-03-26 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767199', 'tblTempVendorCDR_20' ) end [2025-03-26 13:40:22] Production.INFO: ProcessCDR(1,14767199,1,1,2) [2025-03-26 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767199', 'tblTempUsageDetail_20' ) start [2025-03-26 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767199', 'tblTempUsageDetail_20' ) end [2025-03-26 13:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:40:27] Production.INFO: ==12483== Releasing lock... [2025-03-26 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:40:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:41:05 [end_date_ymd] => 2025-03-26 13:41:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:41:05' and `end` < '2025-03-26 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-26 13:41:19] Production.INFO: count ==5464 [2025-03-26 13:41:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:41:05 - End Time 2025-03-26 13:41:05 [2025-03-26 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767204', 'tblTempUsageDetail_20' ) start [2025-03-26 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767204', 'tblTempUsageDetail_20' ) end [2025-03-26 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767204', 'tblTempVendorCDR_20' ) start [2025-03-26 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767204', 'tblTempVendorCDR_20' ) end [2025-03-26 13:41:21] Production.INFO: ProcessCDR(1,14767204,1,1,2) [2025-03-26 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767204', 'tblTempUsageDetail_20' ) start [2025-03-26 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767204', 'tblTempUsageDetail_20' ) end [2025-03-26 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:41:27] Production.INFO: ==12588== Releasing lock... [2025-03-26 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:41:27] Production.INFO: 69 MB #Memory Used# [2025-03-26 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:42:05 [end_date_ymd] => 2025-03-26 13:42:05 [RateCDR] => 1 ) [2025-03-26 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:42:05' and `end` < '2025-03-26 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:42:19] Production.INFO: count ==5462 [2025-03-26 13:42:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:42:05 - End Time 2025-03-26 13:42:05 [2025-03-26 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767209', 'tblTempUsageDetail_20' ) start [2025-03-26 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767209', 'tblTempUsageDetail_20' ) end [2025-03-26 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767209', 'tblTempVendorCDR_20' ) start [2025-03-26 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767209', 'tblTempVendorCDR_20' ) end [2025-03-26 13:42:21] Production.INFO: ProcessCDR(1,14767209,1,1,2) [2025-03-26 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767209', 'tblTempUsageDetail_20' ) start [2025-03-26 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767209', 'tblTempUsageDetail_20' ) end [2025-03-26 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:42:26] Production.INFO: ==12686== Releasing lock... [2025-03-26 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:42:26] Production.INFO: 69 MB #Memory Used# [2025-03-26 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:43:06 [end_date_ymd] => 2025-03-26 13:43:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:43:06' and `end` < '2025-03-26 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:43:19] Production.INFO: count ==5464 [2025-03-26 13:43:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:43:06 - End Time 2025-03-26 13:43:06 [2025-03-26 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767214', 'tblTempUsageDetail_20' ) start [2025-03-26 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767214', 'tblTempUsageDetail_20' ) end [2025-03-26 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767214', 'tblTempVendorCDR_20' ) start [2025-03-26 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767214', 'tblTempVendorCDR_20' ) end [2025-03-26 13:43:22] Production.INFO: ProcessCDR(1,14767214,1,1,2) [2025-03-26 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767214', 'tblTempUsageDetail_20' ) start [2025-03-26 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767214', 'tblTempUsageDetail_20' ) end [2025-03-26 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:43:27] Production.INFO: ==12790== Releasing lock... [2025-03-26 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:43:27] Production.INFO: 69 MB #Memory Used# [2025-03-26 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:44:05 [end_date_ymd] => 2025-03-26 13:44:05 [RateCDR] => 1 ) [2025-03-26 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:44:05' and `end` < '2025-03-26 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:44:19] Production.INFO: count ==5469 [2025-03-26 13:44:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:44:05 - End Time 2025-03-26 13:44:05 [2025-03-26 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767219', 'tblTempUsageDetail_20' ) start [2025-03-26 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767219', 'tblTempUsageDetail_20' ) end [2025-03-26 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767219', 'tblTempVendorCDR_20' ) start [2025-03-26 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767219', 'tblTempVendorCDR_20' ) end [2025-03-26 13:44:21] Production.INFO: ProcessCDR(1,14767219,1,1,2) [2025-03-26 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767219', 'tblTempUsageDetail_20' ) start [2025-03-26 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767219', 'tblTempUsageDetail_20' ) end [2025-03-26 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:44:26] Production.INFO: ==12887== Releasing lock... [2025-03-26 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:44:26] Production.INFO: 69 MB #Memory Used# [2025-03-26 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:45:06 [end_date_ymd] => 2025-03-26 13:45:06 [RateCDR] => 1 ) [2025-03-26 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:45:06' and `end` < '2025-03-26 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:45:19] Production.INFO: count ==5448 [2025-03-26 13:45:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:45:06 - End Time 2025-03-26 13:45:06 [2025-03-26 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767224', 'tblTempUsageDetail_20' ) start [2025-03-26 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767224', 'tblTempUsageDetail_20' ) end [2025-03-26 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767224', 'tblTempVendorCDR_20' ) start [2025-03-26 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767224', 'tblTempVendorCDR_20' ) end [2025-03-26 13:45:22] Production.INFO: ProcessCDR(1,14767224,1,1,2) [2025-03-26 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767224', 'tblTempUsageDetail_20' ) start [2025-03-26 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767224', 'tblTempUsageDetail_20' ) end [2025-03-26 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:45:27] Production.INFO: ==12986== Releasing lock... [2025-03-26 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:45:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:46:06 [end_date_ymd] => 2025-03-26 13:46:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:46:06' and `end` < '2025-03-26 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-26 13:46:19] Production.INFO: count ==5435 [2025-03-26 13:46:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:46:06 - End Time 2025-03-26 13:46:06 [2025-03-26 13:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767229', 'tblTempUsageDetail_20' ) start [2025-03-26 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767229', 'tblTempUsageDetail_20' ) end [2025-03-26 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767229', 'tblTempVendorCDR_20' ) start [2025-03-26 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767229', 'tblTempVendorCDR_20' ) end [2025-03-26 13:46:22] Production.INFO: ProcessCDR(1,14767229,1,1,2) [2025-03-26 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767229', 'tblTempUsageDetail_20' ) start [2025-03-26 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767229', 'tblTempUsageDetail_20' ) end [2025-03-26 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:46:27] Production.INFO: ==13084== Releasing lock... [2025-03-26 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:46:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:47:05 [end_date_ymd] => 2025-03-26 13:47:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:47:05' and `end` < '2025-03-26 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-26 13:47:19] Production.INFO: count ==5411 [2025-03-26 13:47:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:47:05 - End Time 2025-03-26 13:47:05 [2025-03-26 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767234', 'tblTempUsageDetail_20' ) start [2025-03-26 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767234', 'tblTempUsageDetail_20' ) end [2025-03-26 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767234', 'tblTempVendorCDR_20' ) start [2025-03-26 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767234', 'tblTempVendorCDR_20' ) end [2025-03-26 13:47:21] Production.INFO: ProcessCDR(1,14767234,1,1,2) [2025-03-26 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767234', 'tblTempUsageDetail_20' ) start [2025-03-26 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767234', 'tblTempUsageDetail_20' ) end [2025-03-26 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:47:27] Production.INFO: ==13183== Releasing lock... [2025-03-26 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:47:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:48:06 [end_date_ymd] => 2025-03-26 13:48:06 [RateCDR] => 1 ) [2025-03-26 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-26 10:48:06' and `end` < '2025-03-26 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-26 13:48:19] Production.INFO: count ==5381 [2025-03-26 13:48:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:48:06 - End Time 2025-03-26 13:48:06 [2025-03-26 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767239', 'tblTempUsageDetail_20' ) start [2025-03-26 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767239', 'tblTempUsageDetail_20' ) end [2025-03-26 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767239', 'tblTempVendorCDR_20' ) start [2025-03-26 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767239', 'tblTempVendorCDR_20' ) end [2025-03-26 13:48:22] Production.INFO: ProcessCDR(1,14767239,1,1,2) [2025-03-26 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767239', 'tblTempUsageDetail_20' ) start [2025-03-26 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767239', 'tblTempUsageDetail_20' ) end [2025-03-26 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:48:27] Production.INFO: ==13284== Releasing lock... [2025-03-26 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:48:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:49:05 [end_date_ymd] => 2025-03-26 13:49:05 [RateCDR] => 1 ) [2025-03-26 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:49:05' and `end` < '2025-03-26 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:49:18] Production.INFO: count ==5374 [2025-03-26 13:49:20] Production.ERROR: pbx CDR StartTime 2025-03-26 10:49:05 - End Time 2025-03-26 13:49:05 [2025-03-26 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767244', 'tblTempUsageDetail_20' ) start [2025-03-26 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767244', 'tblTempUsageDetail_20' ) end [2025-03-26 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767244', 'tblTempVendorCDR_20' ) start [2025-03-26 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767244', 'tblTempVendorCDR_20' ) end [2025-03-26 13:49:21] Production.INFO: ProcessCDR(1,14767244,1,1,2) [2025-03-26 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767244', 'tblTempUsageDetail_20' ) start [2025-03-26 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767244', 'tblTempUsageDetail_20' ) end [2025-03-26 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:49:26] Production.INFO: ==13384== Releasing lock... [2025-03-26 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:49:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:50:06 [end_date_ymd] => 2025-03-26 13:50:06 [RateCDR] => 1 ) [2025-03-26 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:50:06' and `end` < '2025-03-26 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:50:20] Production.INFO: count ==5400 [2025-03-26 13:50:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:50:06 - End Time 2025-03-26 13:50:06 [2025-03-26 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767249', 'tblTempUsageDetail_20' ) start [2025-03-26 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767249', 'tblTempUsageDetail_20' ) end [2025-03-26 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767249', 'tblTempVendorCDR_20' ) start [2025-03-26 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767249', 'tblTempVendorCDR_20' ) end [2025-03-26 13:50:22] Production.INFO: ProcessCDR(1,14767249,1,1,2) [2025-03-26 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767249', 'tblTempUsageDetail_20' ) start [2025-03-26 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767249', 'tblTempUsageDetail_20' ) end [2025-03-26 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:50:28] Production.INFO: ==13484== Releasing lock... [2025-03-26 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:50:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:51:05 [end_date_ymd] => 2025-03-26 13:51:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:51:05' and `end` < '2025-03-26 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-26 13:51:19] Production.INFO: count ==5448 [2025-03-26 13:51:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:51:05 - End Time 2025-03-26 13:51:05 [2025-03-26 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767255', 'tblTempUsageDetail_20' ) start [2025-03-26 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767255', 'tblTempUsageDetail_20' ) end [2025-03-26 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767255', 'tblTempVendorCDR_20' ) start [2025-03-26 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767255', 'tblTempVendorCDR_20' ) end [2025-03-26 13:51:21] Production.INFO: ProcessCDR(1,14767255,1,1,2) [2025-03-26 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767255', 'tblTempUsageDetail_20' ) start [2025-03-26 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767255', 'tblTempUsageDetail_20' ) end [2025-03-26 13:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:51:26] Production.INFO: ==13582== Releasing lock... [2025-03-26 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:51:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:52:05 [end_date_ymd] => 2025-03-26 13:52:05 [RateCDR] => 1 ) [2025-03-26 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:52:05' and `end` < '2025-03-26 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:52:19] Production.INFO: count ==5469 [2025-03-26 13:52:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:52:05 - End Time 2025-03-26 13:52:05 [2025-03-26 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767260', 'tblTempUsageDetail_20' ) start [2025-03-26 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767260', 'tblTempUsageDetail_20' ) end [2025-03-26 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767260', 'tblTempVendorCDR_20' ) start [2025-03-26 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767260', 'tblTempVendorCDR_20' ) end [2025-03-26 13:52:21] Production.INFO: ProcessCDR(1,14767260,1,1,2) [2025-03-26 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767260', 'tblTempUsageDetail_20' ) start [2025-03-26 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767260', 'tblTempUsageDetail_20' ) end [2025-03-26 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:52:27] Production.INFO: ==13682== Releasing lock... [2025-03-26 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:52:27] Production.INFO: 69 MB #Memory Used# [2025-03-26 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:53:05 [end_date_ymd] => 2025-03-26 13:53:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:53:05' and `end` < '2025-03-26 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-26 13:53:18] Production.INFO: count ==5487 [2025-03-26 13:53:20] Production.ERROR: pbx CDR StartTime 2025-03-26 10:53:05 - End Time 2025-03-26 13:53:05 [2025-03-26 13:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767265', 'tblTempUsageDetail_20' ) start [2025-03-26 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767265', 'tblTempUsageDetail_20' ) end [2025-03-26 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767265', 'tblTempVendorCDR_20' ) start [2025-03-26 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767265', 'tblTempVendorCDR_20' ) end [2025-03-26 13:53:21] Production.INFO: ProcessCDR(1,14767265,1,1,2) [2025-03-26 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767265', 'tblTempUsageDetail_20' ) start [2025-03-26 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767265', 'tblTempUsageDetail_20' ) end [2025-03-26 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:53:26] Production.INFO: ==13820== Releasing lock... [2025-03-26 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:53:26] Production.INFO: 69 MB #Memory Used# [2025-03-26 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:54:05 [end_date_ymd] => 2025-03-26 13:54:05 [RateCDR] => 1 ) [2025-03-26 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:54:05' and `end` < '2025-03-26 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:54:19] Production.INFO: count ==5496 [2025-03-26 13:54:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:54:05 - End Time 2025-03-26 13:54:05 [2025-03-26 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767270', 'tblTempUsageDetail_20' ) start [2025-03-26 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767270', 'tblTempUsageDetail_20' ) end [2025-03-26 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767270', 'tblTempVendorCDR_20' ) start [2025-03-26 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767270', 'tblTempVendorCDR_20' ) end [2025-03-26 13:54:22] Production.INFO: ProcessCDR(1,14767270,1,1,2) [2025-03-26 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767270', 'tblTempUsageDetail_20' ) start [2025-03-26 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767270', 'tblTempUsageDetail_20' ) end [2025-03-26 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:54:28] Production.INFO: ==13918== Releasing lock... [2025-03-26 13:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:54:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-26 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:55:06 [end_date_ymd] => 2025-03-26 13:55:06 [RateCDR] => 1 ) [2025-03-26 13: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-26 10:55:06' and `end` < '2025-03-26 13: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-26 13:55:19] Production.INFO: count ==5522 [2025-03-26 13:55:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:55:06 - End Time 2025-03-26 13:55:06 [2025-03-26 13:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767275', 'tblTempUsageDetail_20' ) start [2025-03-26 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767275', 'tblTempUsageDetail_20' ) end [2025-03-26 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767275', 'tblTempVendorCDR_20' ) start [2025-03-26 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767275', 'tblTempVendorCDR_20' ) end [2025-03-26 13:55:22] Production.INFO: ProcessCDR(1,14767275,1,1,2) [2025-03-26 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767275', 'tblTempUsageDetail_20' ) start [2025-03-26 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767275', 'tblTempUsageDetail_20' ) end [2025-03-26 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:55:28] Production.INFO: ==14016== Releasing lock... [2025-03-26 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:55:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-26 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:56:06 [end_date_ymd] => 2025-03-26 13:56:06 [RateCDR] => 1 ) [2025-03-26 13:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 10:56:06' and `end` < '2025-03-26 13:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 13:56:20] Production.INFO: count ==5534 [2025-03-26 13:56:22] Production.ERROR: pbx CDR StartTime 2025-03-26 10:56:06 - End Time 2025-03-26 13:56:06 [2025-03-26 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767280', 'tblTempUsageDetail_20' ) start [2025-03-26 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767280', 'tblTempUsageDetail_20' ) end [2025-03-26 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767280', 'tblTempVendorCDR_20' ) start [2025-03-26 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767280', 'tblTempVendorCDR_20' ) end [2025-03-26 13:56:22] Production.INFO: ProcessCDR(1,14767280,1,1,2) [2025-03-26 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767280', 'tblTempUsageDetail_20' ) start [2025-03-26 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767280', 'tblTempUsageDetail_20' ) end [2025-03-26 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:56:26] Production.INFO: ==14120== Releasing lock... [2025-03-26 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:56:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-26 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:57:05 [end_date_ymd] => 2025-03-26 13:57:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:57:05' and `end` < '2025-03-26 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-26 13:57:19] Production.INFO: count ==5537 [2025-03-26 13:57:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:57:05 - End Time 2025-03-26 13:57:05 [2025-03-26 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767285', 'tblTempUsageDetail_20' ) start [2025-03-26 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767285', 'tblTempUsageDetail_20' ) end [2025-03-26 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767285', 'tblTempVendorCDR_20' ) start [2025-03-26 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767285', 'tblTempVendorCDR_20' ) end [2025-03-26 13:57:21] Production.INFO: ProcessCDR(1,14767285,1,1,2) [2025-03-26 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767285', 'tblTempUsageDetail_20' ) start [2025-03-26 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767285', 'tblTempUsageDetail_20' ) end [2025-03-26 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:57:27] Production.INFO: ==14217== Releasing lock... [2025-03-26 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:57:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-26 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:58:05 [end_date_ymd] => 2025-03-26 13:58:05 [RateCDR] => 1 ) [2025-03-26 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-26 10:58:05' and `end` < '2025-03-26 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-26 13:58:19] Production.INFO: count ==5530 [2025-03-26 13:58:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:58:05 - End Time 2025-03-26 13:58:05 [2025-03-26 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767290', 'tblTempUsageDetail_20' ) start [2025-03-26 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767290', 'tblTempUsageDetail_20' ) end [2025-03-26 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767290', 'tblTempVendorCDR_20' ) start [2025-03-26 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767290', 'tblTempVendorCDR_20' ) end [2025-03-26 13:58:21] Production.INFO: ProcessCDR(1,14767290,1,1,2) [2025-03-26 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767290', 'tblTempUsageDetail_20' ) start [2025-03-26 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767290', 'tblTempUsageDetail_20' ) end [2025-03-26 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:58:27] Production.INFO: ==14290== Releasing lock... [2025-03-26 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:58:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-26 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 10:59:06 [end_date_ymd] => 2025-03-26 13:59:06 [RateCDR] => 1 ) [2025-03-26 13: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-26 10:59:06' and `end` < '2025-03-26 13: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-26 13:59:19] Production.INFO: count ==5541 [2025-03-26 13:59:21] Production.ERROR: pbx CDR StartTime 2025-03-26 10:59:06 - End Time 2025-03-26 13:59:06 [2025-03-26 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767295', 'tblTempUsageDetail_20' ) start [2025-03-26 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767295', 'tblTempUsageDetail_20' ) end [2025-03-26 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767295', 'tblTempVendorCDR_20' ) start [2025-03-26 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767295', 'tblTempVendorCDR_20' ) end [2025-03-26 13:59:22] Production.INFO: ProcessCDR(1,14767295,1,1,2) [2025-03-26 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767295', 'tblTempUsageDetail_20' ) start [2025-03-26 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767295', 'tblTempUsageDetail_20' ) end [2025-03-26 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 13:59:27] Production.INFO: ==14364== Releasing lock... [2025-03-26 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 13:59:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-26 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:00:06 [end_date_ymd] => 2025-03-26 14:00:06 [RateCDR] => 1 ) [2025-03-26 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-26 11:00:06' and `end` < '2025-03-26 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-26 14:00:20] Production.INFO: count ==5539 [2025-03-26 14:00:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:00:06 - End Time 2025-03-26 14:00:06 [2025-03-26 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767301', 'tblTempUsageDetail_20' ) start [2025-03-26 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767301', 'tblTempUsageDetail_20' ) end [2025-03-26 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767301', 'tblTempVendorCDR_20' ) start [2025-03-26 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767301', 'tblTempVendorCDR_20' ) end [2025-03-26 14:00:23] Production.INFO: ProcessCDR(1,14767301,1,1,2) [2025-03-26 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767301', 'tblTempUsageDetail_20' ) start [2025-03-26 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767301', 'tblTempUsageDetail_20' ) end [2025-03-26 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:00:29] Production.INFO: ==14438== Releasing lock... [2025-03-26 14:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:00:29] Production.INFO: 69.5 MB #Memory Used# [2025-03-26 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:01:05 [end_date_ymd] => 2025-03-26 14:01:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:01:05' and `end` < '2025-03-26 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-26 14:01:18] Production.INFO: count ==5571 [2025-03-26 14:01:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:01:05 - End Time 2025-03-26 14:01:05 [2025-03-26 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767306', 'tblTempUsageDetail_20' ) start [2025-03-26 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767306', 'tblTempUsageDetail_20' ) end [2025-03-26 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767306', 'tblTempVendorCDR_20' ) start [2025-03-26 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767306', 'tblTempVendorCDR_20' ) end [2025-03-26 14:01:21] Production.INFO: ProcessCDR(1,14767306,1,1,2) [2025-03-26 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767306', 'tblTempUsageDetail_20' ) start [2025-03-26 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767306', 'tblTempUsageDetail_20' ) end [2025-03-26 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:01:27] Production.INFO: ==14522== Releasing lock... [2025-03-26 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:01:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-26 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:02:05 [end_date_ymd] => 2025-03-26 14:02:05 [RateCDR] => 1 ) [2025-03-26 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:02:05' and `end` < '2025-03-26 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:02:19] Production.INFO: count ==5594 [2025-03-26 14:02:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:02:05 - End Time 2025-03-26 14:02:05 [2025-03-26 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767311', 'tblTempUsageDetail_20' ) start [2025-03-26 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767311', 'tblTempUsageDetail_20' ) end [2025-03-26 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767311', 'tblTempVendorCDR_20' ) start [2025-03-26 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767311', 'tblTempVendorCDR_20' ) end [2025-03-26 14:02:21] Production.INFO: ProcessCDR(1,14767311,1,1,2) [2025-03-26 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767311', 'tblTempUsageDetail_20' ) start [2025-03-26 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767311', 'tblTempUsageDetail_20' ) end [2025-03-26 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:02:27] Production.INFO: ==14595== Releasing lock... [2025-03-26 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:02:27] Production.INFO: 70 MB #Memory Used# [2025-03-26 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:03:06 [end_date_ymd] => 2025-03-26 14:03:06 [RateCDR] => 1 ) [2025-03-26 14: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-26 11:03:06' and `end` < '2025-03-26 14: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-26 14:03:19] Production.INFO: count ==5616 [2025-03-26 14:03:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:03:06 - End Time 2025-03-26 14:03:06 [2025-03-26 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767316', 'tblTempUsageDetail_20' ) start [2025-03-26 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767316', 'tblTempUsageDetail_20' ) end [2025-03-26 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767316', 'tblTempVendorCDR_20' ) start [2025-03-26 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767316', 'tblTempVendorCDR_20' ) end [2025-03-26 14:03:22] Production.INFO: ProcessCDR(1,14767316,1,1,2) [2025-03-26 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767316', 'tblTempUsageDetail_20' ) start [2025-03-26 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767316', 'tblTempUsageDetail_20' ) end [2025-03-26 14:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:03:28] Production.INFO: ==14666== Releasing lock... [2025-03-26 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:03:28] Production.INFO: 70 MB #Memory Used# [2025-03-26 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:04:05 [end_date_ymd] => 2025-03-26 14:04:05 [RateCDR] => 1 ) [2025-03-26 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:04:05' and `end` < '2025-03-26 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:04:19] Production.INFO: count ==5639 [2025-03-26 14:04:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:04:05 - End Time 2025-03-26 14:04:05 [2025-03-26 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767321', 'tblTempUsageDetail_20' ) start [2025-03-26 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767321', 'tblTempUsageDetail_20' ) end [2025-03-26 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767321', 'tblTempVendorCDR_20' ) start [2025-03-26 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767321', 'tblTempVendorCDR_20' ) end [2025-03-26 14:04:21] Production.INFO: ProcessCDR(1,14767321,1,1,2) [2025-03-26 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767321', 'tblTempUsageDetail_20' ) start [2025-03-26 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767321', 'tblTempUsageDetail_20' ) end [2025-03-26 14:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:04:25] Production.INFO: ==14737== Releasing lock... [2025-03-26 14:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:04:25] Production.INFO: 70.25 MB #Memory Used# [2025-03-26 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:05:06 [end_date_ymd] => 2025-03-26 14:05:06 [RateCDR] => 1 ) [2025-03-26 14:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:05:06' and `end` < '2025-03-26 14:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:05:19] Production.INFO: count ==5675 [2025-03-26 14:05:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:05:06 - End Time 2025-03-26 14:05:06 [2025-03-26 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767326', 'tblTempUsageDetail_20' ) start [2025-03-26 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767326', 'tblTempUsageDetail_20' ) end [2025-03-26 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767326', 'tblTempVendorCDR_20' ) start [2025-03-26 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767326', 'tblTempVendorCDR_20' ) end [2025-03-26 14:05:22] Production.INFO: ProcessCDR(1,14767326,1,1,2) [2025-03-26 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767326', 'tblTempUsageDetail_20' ) start [2025-03-26 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767326', 'tblTempUsageDetail_20' ) end [2025-03-26 14:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:05:26] Production.INFO: ==14807== Releasing lock... [2025-03-26 14:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:05:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-26 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:06:05 [end_date_ymd] => 2025-03-26 14:06:05 [RateCDR] => 1 ) [2025-03-26 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:06:05' and `end` < '2025-03-26 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:06:19] Production.INFO: count ==5702 [2025-03-26 14:06:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:06:05 - End Time 2025-03-26 14:06:05 [2025-03-26 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767331', 'tblTempUsageDetail_20' ) start [2025-03-26 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767331', 'tblTempUsageDetail_20' ) end [2025-03-26 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767331', 'tblTempVendorCDR_20' ) start [2025-03-26 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767331', 'tblTempVendorCDR_20' ) end [2025-03-26 14:06:21] Production.INFO: ProcessCDR(1,14767331,1,1,2) [2025-03-26 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767331', 'tblTempUsageDetail_20' ) start [2025-03-26 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767331', 'tblTempUsageDetail_20' ) end [2025-03-26 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:06:27] Production.INFO: ==14879== Releasing lock... [2025-03-26 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:06:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-26 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:07:06 [end_date_ymd] => 2025-03-26 14:07:06 [RateCDR] => 1 ) [2025-03-26 14: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-26 11:07:06' and `end` < '2025-03-26 14: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-26 14:07:20] Production.INFO: count ==5704 [2025-03-26 14:07:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:07:06 - End Time 2025-03-26 14:07:06 [2025-03-26 14:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767336', 'tblTempUsageDetail_20' ) start [2025-03-26 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767336', 'tblTempUsageDetail_20' ) end [2025-03-26 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767336', 'tblTempVendorCDR_20' ) start [2025-03-26 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767336', 'tblTempVendorCDR_20' ) end [2025-03-26 14:07:23] Production.INFO: ProcessCDR(1,14767336,1,1,2) [2025-03-26 14:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767336', 'tblTempUsageDetail_20' ) start [2025-03-26 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767336', 'tblTempUsageDetail_20' ) end [2025-03-26 14:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:07:28] Production.INFO: ==14950== Releasing lock... [2025-03-26 14:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:07:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-26 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:08:05 [end_date_ymd] => 2025-03-26 14:08:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:08:05' and `end` < '2025-03-26 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-26 14:08:18] Production.INFO: count ==5741 [2025-03-26 14:08:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:08:05 - End Time 2025-03-26 14:08:05 [2025-03-26 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767341', 'tblTempUsageDetail_20' ) start [2025-03-26 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767341', 'tblTempUsageDetail_20' ) end [2025-03-26 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767341', 'tblTempVendorCDR_20' ) start [2025-03-26 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767341', 'tblTempVendorCDR_20' ) end [2025-03-26 14:08:21] Production.INFO: ProcessCDR(1,14767341,1,1,2) [2025-03-26 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767341', 'tblTempUsageDetail_20' ) start [2025-03-26 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767341', 'tblTempUsageDetail_20' ) end [2025-03-26 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:08:27] Production.INFO: ==15059== Releasing lock... [2025-03-26 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:08:27] Production.INFO: 71 MB #Memory Used# [2025-03-26 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:09:06 [end_date_ymd] => 2025-03-26 14:09:06 [RateCDR] => 1 ) [2025-03-26 14: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-26 11:09:06' and `end` < '2025-03-26 14: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-26 14:09:20] Production.INFO: count ==5741 [2025-03-26 14:09:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:09:06 - End Time 2025-03-26 14:09:06 [2025-03-26 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767346', 'tblTempUsageDetail_20' ) start [2025-03-26 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767346', 'tblTempUsageDetail_20' ) end [2025-03-26 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767346', 'tblTempVendorCDR_20' ) start [2025-03-26 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767346', 'tblTempVendorCDR_20' ) end [2025-03-26 14:09:22] Production.INFO: ProcessCDR(1,14767346,1,1,2) [2025-03-26 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767346', 'tblTempUsageDetail_20' ) start [2025-03-26 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767346', 'tblTempUsageDetail_20' ) end [2025-03-26 14:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:09:28] Production.INFO: ==15131== Releasing lock... [2025-03-26 14:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:09:28] Production.INFO: 71 MB #Memory Used# [2025-03-26 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:10:06 [end_date_ymd] => 2025-03-26 14:10:06 [RateCDR] => 1 ) [2025-03-26 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:10:06' and `end` < '2025-03-26 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:10:19] Production.INFO: count ==5754 [2025-03-26 14:10:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:10:06 - End Time 2025-03-26 14:10:06 [2025-03-26 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767352', 'tblTempUsageDetail_20' ) start [2025-03-26 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767352', 'tblTempUsageDetail_20' ) end [2025-03-26 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767352', 'tblTempVendorCDR_20' ) start [2025-03-26 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767352', 'tblTempVendorCDR_20' ) end [2025-03-26 14:10:22] Production.INFO: ProcessCDR(1,14767352,1,1,2) [2025-03-26 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767352', 'tblTempUsageDetail_20' ) start [2025-03-26 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767352', 'tblTempUsageDetail_20' ) end [2025-03-26 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:10:27] Production.INFO: ==15203== Releasing lock... [2025-03-26 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:10:27] Production.INFO: 71 MB #Memory Used# [2025-03-26 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:11:05 [end_date_ymd] => 2025-03-26 14:11:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:11:05' and `end` < '2025-03-26 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-26 14:11:19] Production.INFO: count ==5806 [2025-03-26 14:11:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:11:05 - End Time 2025-03-26 14:11:05 [2025-03-26 14:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767357', 'tblTempUsageDetail_20' ) start [2025-03-26 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767357', 'tblTempUsageDetail_20' ) end [2025-03-26 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767357', 'tblTempVendorCDR_20' ) start [2025-03-26 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767357', 'tblTempVendorCDR_20' ) end [2025-03-26 14:11:22] Production.INFO: ProcessCDR(1,14767357,1,1,2) [2025-03-26 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767357', 'tblTempUsageDetail_20' ) start [2025-03-26 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767357', 'tblTempUsageDetail_20' ) end [2025-03-26 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:11:27] Production.INFO: ==15277== Releasing lock... [2025-03-26 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:11:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-26 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:12:05 [end_date_ymd] => 2025-03-26 14:12:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:12:05' and `end` < '2025-03-26 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-26 14:12:18] Production.INFO: count ==5852 [2025-03-26 14:12:20] Production.ERROR: pbx CDR StartTime 2025-03-26 11:12:05 - End Time 2025-03-26 14:12:05 [2025-03-26 14:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767362', 'tblTempUsageDetail_20' ) start [2025-03-26 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767362', 'tblTempUsageDetail_20' ) end [2025-03-26 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767362', 'tblTempVendorCDR_20' ) start [2025-03-26 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767362', 'tblTempVendorCDR_20' ) end [2025-03-26 14:12:21] Production.INFO: ProcessCDR(1,14767362,1,1,2) [2025-03-26 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767362', 'tblTempUsageDetail_20' ) start [2025-03-26 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767362', 'tblTempUsageDetail_20' ) end [2025-03-26 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:12:26] Production.INFO: ==15348== Releasing lock... [2025-03-26 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:12:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-26 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:13:06 [end_date_ymd] => 2025-03-26 14:13:06 [RateCDR] => 1 ) [2025-03-26 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-26 11:13:06' and `end` < '2025-03-26 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-26 14:13:20] Production.INFO: count ==5832 [2025-03-26 14:13:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:13:06 - End Time 2025-03-26 14:13:06 [2025-03-26 14:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767367', 'tblTempUsageDetail_20' ) start [2025-03-26 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767367', 'tblTempUsageDetail_20' ) end [2025-03-26 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767367', 'tblTempVendorCDR_20' ) start [2025-03-26 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767367', 'tblTempVendorCDR_20' ) end [2025-03-26 14:13:22] Production.INFO: ProcessCDR(1,14767367,1,1,2) [2025-03-26 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767367', 'tblTempUsageDetail_20' ) start [2025-03-26 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767367', 'tblTempUsageDetail_20' ) end [2025-03-26 14:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:13:27] Production.INFO: ==15424== Releasing lock... [2025-03-26 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:13:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-26 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:14:05 [end_date_ymd] => 2025-03-26 14:14:05 [RateCDR] => 1 ) [2025-03-26 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:14:05' and `end` < '2025-03-26 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:14:19] Production.INFO: count ==5843 [2025-03-26 14:14:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:14:05 - End Time 2025-03-26 14:14:05 [2025-03-26 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767372', 'tblTempUsageDetail_20' ) start [2025-03-26 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767372', 'tblTempUsageDetail_20' ) end [2025-03-26 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767372', 'tblTempVendorCDR_20' ) start [2025-03-26 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767372', 'tblTempVendorCDR_20' ) end [2025-03-26 14:14:21] Production.INFO: ProcessCDR(1,14767372,1,1,2) [2025-03-26 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767372', 'tblTempUsageDetail_20' ) start [2025-03-26 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767372', 'tblTempUsageDetail_20' ) end [2025-03-26 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:14:26] Production.INFO: ==15495== Releasing lock... [2025-03-26 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:14:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-26 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:15:05 [end_date_ymd] => 2025-03-26 14:15:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:15:05' and `end` < '2025-03-26 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:15:19] Production.INFO: count ==5868 [2025-03-26 14:15:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:15:05 - End Time 2025-03-26 14:15:05 [2025-03-26 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767377', 'tblTempUsageDetail_20' ) start [2025-03-26 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767377', 'tblTempUsageDetail_20' ) end [2025-03-26 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767377', 'tblTempVendorCDR_20' ) start [2025-03-26 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767377', 'tblTempVendorCDR_20' ) end [2025-03-26 14:15:22] Production.INFO: ProcessCDR(1,14767377,1,1,2) [2025-03-26 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767377', 'tblTempUsageDetail_20' ) start [2025-03-26 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767377', 'tblTempUsageDetail_20' ) end [2025-03-26 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:15:27] Production.INFO: ==15580== Releasing lock... [2025-03-26 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:15:27] Production.INFO: 72 MB #Memory Used# [2025-03-26 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:16:05 [end_date_ymd] => 2025-03-26 14:16:05 [RateCDR] => 1 ) [2025-03-26 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:16:05' and `end` < '2025-03-26 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:16:18] Production.INFO: count ==5891 [2025-03-26 14:16:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:16:05 - End Time 2025-03-26 14:16:05 [2025-03-26 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767382', 'tblTempUsageDetail_20' ) start [2025-03-26 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767382', 'tblTempUsageDetail_20' ) end [2025-03-26 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767382', 'tblTempVendorCDR_20' ) start [2025-03-26 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767382', 'tblTempVendorCDR_20' ) end [2025-03-26 14:16:21] Production.INFO: ProcessCDR(1,14767382,1,1,2) [2025-03-26 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767382', 'tblTempUsageDetail_20' ) start [2025-03-26 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767382', 'tblTempUsageDetail_20' ) end [2025-03-26 14:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:16:27] Production.INFO: ==15693== Releasing lock... [2025-03-26 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:16:27] Production.INFO: 72 MB #Memory Used# [2025-03-26 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:17:06 [end_date_ymd] => 2025-03-26 14:17:06 [RateCDR] => 1 ) [2025-03-26 14:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:17:06' and `end` < '2025-03-26 14:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:17:19] Production.INFO: count ==5923 [2025-03-26 14:17:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:17:06 - End Time 2025-03-26 14:17:06 [2025-03-26 14:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767387', 'tblTempUsageDetail_20' ) start [2025-03-26 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767387', 'tblTempUsageDetail_20' ) end [2025-03-26 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767387', 'tblTempVendorCDR_20' ) start [2025-03-26 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767387', 'tblTempVendorCDR_20' ) end [2025-03-26 14:17:22] Production.INFO: ProcessCDR(1,14767387,1,1,2) [2025-03-26 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767387', 'tblTempUsageDetail_20' ) start [2025-03-26 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767387', 'tblTempUsageDetail_20' ) end [2025-03-26 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:17:27] Production.INFO: ==15803== Releasing lock... [2025-03-26 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:17:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-26 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:18:05 [end_date_ymd] => 2025-03-26 14:18:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:18:05' and `end` < '2025-03-26 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-26 14:18:19] Production.INFO: count ==5915 [2025-03-26 14:18:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:18:05 - End Time 2025-03-26 14:18:05 [2025-03-26 14:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767392', 'tblTempUsageDetail_20' ) start [2025-03-26 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767392', 'tblTempUsageDetail_20' ) end [2025-03-26 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767392', 'tblTempVendorCDR_20' ) start [2025-03-26 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767392', 'tblTempVendorCDR_20' ) end [2025-03-26 14:18:22] Production.INFO: ProcessCDR(1,14767392,1,1,2) [2025-03-26 14:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767392', 'tblTempUsageDetail_20' ) start [2025-03-26 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767392', 'tblTempUsageDetail_20' ) end [2025-03-26 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:18:27] Production.INFO: ==15914== Releasing lock... [2025-03-26 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:18:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-26 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:19:05 [end_date_ymd] => 2025-03-26 14:19:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:19:05' and `end` < '2025-03-26 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-26 14:19:19] Production.INFO: count ==5916 [2025-03-26 14:19:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:19:05 - End Time 2025-03-26 14:19:05 [2025-03-26 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767397', 'tblTempUsageDetail_20' ) start [2025-03-26 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767397', 'tblTempUsageDetail_20' ) end [2025-03-26 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767397', 'tblTempVendorCDR_20' ) start [2025-03-26 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767397', 'tblTempVendorCDR_20' ) end [2025-03-26 14:19:22] Production.INFO: ProcessCDR(1,14767397,1,1,2) [2025-03-26 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767397', 'tblTempUsageDetail_20' ) start [2025-03-26 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767397', 'tblTempUsageDetail_20' ) end [2025-03-26 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:19:27] Production.INFO: ==16029== Releasing lock... [2025-03-26 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:19:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-26 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:20:06 [end_date_ymd] => 2025-03-26 14:20:06 [RateCDR] => 1 ) [2025-03-26 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:20:06' and `end` < '2025-03-26 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:20:19] Production.INFO: count ==5919 [2025-03-26 14:20:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:20:06 - End Time 2025-03-26 14:20:06 [2025-03-26 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767403', 'tblTempUsageDetail_20' ) start [2025-03-26 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767403', 'tblTempUsageDetail_20' ) end [2025-03-26 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767403', 'tblTempVendorCDR_20' ) start [2025-03-26 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767403', 'tblTempVendorCDR_20' ) end [2025-03-26 14:20:22] Production.INFO: ProcessCDR(1,14767403,1,1,2) [2025-03-26 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767403', 'tblTempUsageDetail_20' ) start [2025-03-26 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767403', 'tblTempUsageDetail_20' ) end [2025-03-26 14:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:20:27] Production.INFO: ==16147== Releasing lock... [2025-03-26 14:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:20:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-26 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:21:05 [end_date_ymd] => 2025-03-26 14:21:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:21:05' and `end` < '2025-03-26 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-26 14:21:19] Production.INFO: count ==5906 [2025-03-26 14:21:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:21:05 - End Time 2025-03-26 14:21:05 [2025-03-26 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767408', 'tblTempUsageDetail_20' ) start [2025-03-26 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767408', 'tblTempUsageDetail_20' ) end [2025-03-26 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767408', 'tblTempVendorCDR_20' ) start [2025-03-26 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767408', 'tblTempVendorCDR_20' ) end [2025-03-26 14:21:22] Production.INFO: ProcessCDR(1,14767408,1,1,2) [2025-03-26 14:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767408', 'tblTempUsageDetail_20' ) start [2025-03-26 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767408', 'tblTempUsageDetail_20' ) end [2025-03-26 14:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:21:28] Production.INFO: ==16266== Releasing lock... [2025-03-26 14:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:21:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-26 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:22:05 [end_date_ymd] => 2025-03-26 14:22:05 [RateCDR] => 1 ) [2025-03-26 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:22:05' and `end` < '2025-03-26 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:22:19] Production.INFO: count ==5891 [2025-03-26 14:22:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:22:05 - End Time 2025-03-26 14:22:05 [2025-03-26 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767413', 'tblTempUsageDetail_20' ) start [2025-03-26 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767413', 'tblTempUsageDetail_20' ) end [2025-03-26 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767413', 'tblTempVendorCDR_20' ) start [2025-03-26 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767413', 'tblTempVendorCDR_20' ) end [2025-03-26 14:22:22] Production.INFO: ProcessCDR(1,14767413,1,1,2) [2025-03-26 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767413', 'tblTempUsageDetail_20' ) start [2025-03-26 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767413', 'tblTempUsageDetail_20' ) end [2025-03-26 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:22:27] Production.INFO: ==16380== Releasing lock... [2025-03-26 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:22:27] Production.INFO: 72 MB #Memory Used# [2025-03-26 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:23:05 [end_date_ymd] => 2025-03-26 14:23:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:23:05' and `end` < '2025-03-26 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-26 14:23:19] Production.INFO: count ==5908 [2025-03-26 14:23:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:23:05 - End Time 2025-03-26 14:23:05 [2025-03-26 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767418', 'tblTempUsageDetail_20' ) start [2025-03-26 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767418', 'tblTempUsageDetail_20' ) end [2025-03-26 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767418', 'tblTempVendorCDR_20' ) start [2025-03-26 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767418', 'tblTempVendorCDR_20' ) end [2025-03-26 14:23:22] Production.INFO: ProcessCDR(1,14767418,1,1,2) [2025-03-26 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767418', 'tblTempUsageDetail_20' ) start [2025-03-26 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767418', 'tblTempUsageDetail_20' ) end [2025-03-26 14:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:23:28] Production.INFO: ==16515== Releasing lock... [2025-03-26 14:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:23:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-26 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:24:05 [end_date_ymd] => 2025-03-26 14:24:05 [RateCDR] => 1 ) [2025-03-26 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:24:05' and `end` < '2025-03-26 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:24:19] Production.INFO: count ==5933 [2025-03-26 14:24:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:24:05 - End Time 2025-03-26 14:24:05 [2025-03-26 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767419', 'tblTempUsageDetail_20' ) start [2025-03-26 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767419', 'tblTempUsageDetail_20' ) end [2025-03-26 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767419', 'tblTempVendorCDR_20' ) start [2025-03-26 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767419', 'tblTempVendorCDR_20' ) end [2025-03-26 14:24:22] Production.INFO: ProcessCDR(1,14767419,1,1,2) [2025-03-26 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767419', 'tblTempUsageDetail_20' ) start [2025-03-26 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767419', 'tblTempUsageDetail_20' ) end [2025-03-26 14:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:24:28] Production.INFO: ==16718== Releasing lock... [2025-03-26 14:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:24:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-26 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:25:05 [end_date_ymd] => 2025-03-26 14:25:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:25:05' and `end` < '2025-03-26 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-26 14:25:19] Production.INFO: count ==5954 [2025-03-26 14:25:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:25:05 - End Time 2025-03-26 14:25:05 [2025-03-26 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767428', 'tblTempUsageDetail_20' ) start [2025-03-26 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767428', 'tblTempUsageDetail_20' ) end [2025-03-26 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767428', 'tblTempVendorCDR_20' ) start [2025-03-26 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767428', 'tblTempVendorCDR_20' ) end [2025-03-26 14:25:22] Production.INFO: ProcessCDR(1,14767428,1,1,2) [2025-03-26 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767428', 'tblTempUsageDetail_20' ) start [2025-03-26 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767428', 'tblTempUsageDetail_20' ) end [2025-03-26 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:25:27] Production.INFO: ==16879== Releasing lock... [2025-03-26 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:25:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-26 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:26:06 [end_date_ymd] => 2025-03-26 14:26:06 [RateCDR] => 1 ) [2025-03-26 14: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-26 11:26:06' and `end` < '2025-03-26 14: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-26 14:26:19] Production.INFO: count ==5973 [2025-03-26 14:26:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:26:06 - End Time 2025-03-26 14:26:06 [2025-03-26 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767433', 'tblTempUsageDetail_20' ) start [2025-03-26 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767433', 'tblTempUsageDetail_20' ) end [2025-03-26 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767433', 'tblTempVendorCDR_20' ) start [2025-03-26 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767433', 'tblTempVendorCDR_20' ) end [2025-03-26 14:26:22] Production.INFO: ProcessCDR(1,14767433,1,1,2) [2025-03-26 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767433', 'tblTempUsageDetail_20' ) start [2025-03-26 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767433', 'tblTempUsageDetail_20' ) end [2025-03-26 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:26:27] Production.INFO: ==17044== Releasing lock... [2025-03-26 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:26:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-26 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:27:05 [end_date_ymd] => 2025-03-26 14:27:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:27:05' and `end` < '2025-03-26 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-26 14:27:19] Production.INFO: count ==5999 [2025-03-26 14:27:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:27:05 - End Time 2025-03-26 14:27:05 [2025-03-26 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767438', 'tblTempUsageDetail_20' ) start [2025-03-26 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767438', 'tblTempUsageDetail_20' ) end [2025-03-26 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767438', 'tblTempVendorCDR_20' ) start [2025-03-26 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767438', 'tblTempVendorCDR_20' ) end [2025-03-26 14:27:22] Production.INFO: ProcessCDR(1,14767438,1,1,2) [2025-03-26 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767438', 'tblTempUsageDetail_20' ) start [2025-03-26 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767438', 'tblTempUsageDetail_20' ) end [2025-03-26 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:27:27] Production.INFO: ==17197== Releasing lock... [2025-03-26 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:27:27] Production.INFO: 73 MB #Memory Used# [2025-03-26 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:28:05 [end_date_ymd] => 2025-03-26 14:28:05 [RateCDR] => 1 ) [2025-03-26 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:28:05' and `end` < '2025-03-26 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:28:18] Production.INFO: count ==5991 [2025-03-26 14:28:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:28:05 - End Time 2025-03-26 14:28:05 [2025-03-26 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767443', 'tblTempUsageDetail_20' ) start [2025-03-26 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767443', 'tblTempUsageDetail_20' ) end [2025-03-26 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767443', 'tblTempVendorCDR_20' ) start [2025-03-26 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767443', 'tblTempVendorCDR_20' ) end [2025-03-26 14:28:21] Production.INFO: ProcessCDR(1,14767443,1,1,2) [2025-03-26 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767443', 'tblTempUsageDetail_20' ) start [2025-03-26 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767443', 'tblTempUsageDetail_20' ) end [2025-03-26 14:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:28:27] Production.INFO: ==17318== Releasing lock... [2025-03-26 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:28:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-26 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:29:05 [end_date_ymd] => 2025-03-26 14:29:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:29:05' and `end` < '2025-03-26 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-26 14:29:18] Production.INFO: count ==6003 [2025-03-26 14:29:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:29:05 - End Time 2025-03-26 14:29:05 [2025-03-26 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767448', 'tblTempUsageDetail_20' ) start [2025-03-26 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767448', 'tblTempUsageDetail_20' ) end [2025-03-26 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767448', 'tblTempVendorCDR_20' ) start [2025-03-26 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767448', 'tblTempVendorCDR_20' ) end [2025-03-26 14:29:21] Production.INFO: ProcessCDR(1,14767448,1,1,2) [2025-03-26 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767448', 'tblTempUsageDetail_20' ) start [2025-03-26 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767448', 'tblTempUsageDetail_20' ) end [2025-03-26 14:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:29:27] Production.INFO: ==17437== Releasing lock... [2025-03-26 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:29:27] Production.INFO: 73 MB #Memory Used# [2025-03-26 14:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:30:07 [end_date_ymd] => 2025-03-26 14:30:07 [RateCDR] => 1 ) [2025-03-26 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-26 11:30:07' and `end` < '2025-03-26 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-26 14:30:20] Production.INFO: count ==6012 [2025-03-26 14:30:23] Production.ERROR: pbx CDR StartTime 2025-03-26 11:30:07 - End Time 2025-03-26 14:30:07 [2025-03-26 14:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767453', 'tblTempUsageDetail_20' ) start [2025-03-26 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767453', 'tblTempUsageDetail_20' ) end [2025-03-26 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767453', 'tblTempVendorCDR_20' ) start [2025-03-26 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767453', 'tblTempVendorCDR_20' ) end [2025-03-26 14:30:23] Production.INFO: ProcessCDR(1,14767453,1,1,2) [2025-03-26 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767453', 'tblTempUsageDetail_20' ) start [2025-03-26 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767453', 'tblTempUsageDetail_20' ) end [2025-03-26 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:30:28] Production.INFO: ==17562== Releasing lock... [2025-03-26 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:30:28] Production.INFO: 73 MB #Memory Used# [2025-03-26 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:31:05 [end_date_ymd] => 2025-03-26 14:31:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:31:05' and `end` < '2025-03-26 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-26 14:31:18] Production.INFO: count ==5988 [2025-03-26 14:31:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:31:05 - End Time 2025-03-26 14:31:05 [2025-03-26 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767459', 'tblTempUsageDetail_20' ) start [2025-03-26 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767459', 'tblTempUsageDetail_20' ) end [2025-03-26 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767459', 'tblTempVendorCDR_20' ) start [2025-03-26 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767459', 'tblTempVendorCDR_20' ) end [2025-03-26 14:31:21] Production.INFO: ProcessCDR(1,14767459,1,1,2) [2025-03-26 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767459', 'tblTempUsageDetail_20' ) start [2025-03-26 14:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767459', 'tblTempUsageDetail_20' ) end [2025-03-26 14:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:31:25] Production.INFO: ==17679== Releasing lock... [2025-03-26 14:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:31:25] Production.INFO: 72.75 MB #Memory Used# [2025-03-26 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:32:05 [end_date_ymd] => 2025-03-26 14:32:05 [RateCDR] => 1 ) [2025-03-26 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:32:05' and `end` < '2025-03-26 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:32:19] Production.INFO: count ==5987 [2025-03-26 14:32:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:32:05 - End Time 2025-03-26 14:32:05 [2025-03-26 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767464', 'tblTempUsageDetail_20' ) start [2025-03-26 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767464', 'tblTempUsageDetail_20' ) end [2025-03-26 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767464', 'tblTempVendorCDR_20' ) start [2025-03-26 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767464', 'tblTempVendorCDR_20' ) end [2025-03-26 14:32:22] Production.INFO: ProcessCDR(1,14767464,1,1,2) [2025-03-26 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767464', 'tblTempUsageDetail_20' ) start [2025-03-26 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767464', 'tblTempUsageDetail_20' ) end [2025-03-26 14:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:32:28] Production.INFO: ==17800== Releasing lock... [2025-03-26 14:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:32:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-26 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:33:05 [end_date_ymd] => 2025-03-26 14:33:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:33:05' and `end` < '2025-03-26 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-26 14:33:19] Production.INFO: count ==6000 [2025-03-26 14:33:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:33:05 - End Time 2025-03-26 14:33:05 [2025-03-26 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767469', 'tblTempUsageDetail_20' ) start [2025-03-26 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767469', 'tblTempUsageDetail_20' ) end [2025-03-26 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767469', 'tblTempVendorCDR_20' ) start [2025-03-26 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767469', 'tblTempVendorCDR_20' ) end [2025-03-26 14:33:22] Production.INFO: ProcessCDR(1,14767469,1,1,2) [2025-03-26 14:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767469', 'tblTempUsageDetail_20' ) start [2025-03-26 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767469', 'tblTempUsageDetail_20' ) end [2025-03-26 14:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:33:27] Production.INFO: ==17922== Releasing lock... [2025-03-26 14:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:33:27] Production.INFO: 73 MB #Memory Used# [2025-03-26 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:34:05 [end_date_ymd] => 2025-03-26 14:34:05 [RateCDR] => 1 ) [2025-03-26 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:34:05' and `end` < '2025-03-26 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:34:19] Production.INFO: count ==6008 [2025-03-26 14:34:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:34:05 - End Time 2025-03-26 14:34:05 [2025-03-26 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767474', 'tblTempUsageDetail_20' ) start [2025-03-26 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767474', 'tblTempUsageDetail_20' ) end [2025-03-26 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767474', 'tblTempVendorCDR_20' ) start [2025-03-26 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767474', 'tblTempVendorCDR_20' ) end [2025-03-26 14:34:22] Production.INFO: ProcessCDR(1,14767474,1,1,2) [2025-03-26 14:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767474', 'tblTempUsageDetail_20' ) start [2025-03-26 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767474', 'tblTempUsageDetail_20' ) end [2025-03-26 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:34:27] Production.INFO: ==17992== Releasing lock... [2025-03-26 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:34:27] Production.INFO: 73 MB #Memory Used# [2025-03-26 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:35:05 [end_date_ymd] => 2025-03-26 14:35:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:35:05' and `end` < '2025-03-26 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-26 14:35:19] Production.INFO: count ==6016 [2025-03-26 14:35:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:35:05 - End Time 2025-03-26 14:35:05 [2025-03-26 14:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767479', 'tblTempUsageDetail_20' ) start [2025-03-26 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767479', 'tblTempUsageDetail_20' ) end [2025-03-26 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767479', 'tblTempVendorCDR_20' ) start [2025-03-26 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767479', 'tblTempVendorCDR_20' ) end [2025-03-26 14:35:22] Production.INFO: ProcessCDR(1,14767479,1,1,2) [2025-03-26 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767479', 'tblTempUsageDetail_20' ) start [2025-03-26 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767479', 'tblTempUsageDetail_20' ) end [2025-03-26 14:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:35:27] Production.INFO: ==18067== Releasing lock... [2025-03-26 14:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:35:27] Production.INFO: 73 MB #Memory Used# [2025-03-26 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:36:05 [end_date_ymd] => 2025-03-26 14:36:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:36:05' and `end` < '2025-03-26 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-26 14:36:19] Production.INFO: count ==6010 [2025-03-26 14:36:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:36:05 - End Time 2025-03-26 14:36:05 [2025-03-26 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767484', 'tblTempUsageDetail_20' ) start [2025-03-26 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767484', 'tblTempUsageDetail_20' ) end [2025-03-26 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767484', 'tblTempVendorCDR_20' ) start [2025-03-26 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767484', 'tblTempVendorCDR_20' ) end [2025-03-26 14:36:22] Production.INFO: ProcessCDR(1,14767484,1,1,2) [2025-03-26 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767484', 'tblTempUsageDetail_20' ) start [2025-03-26 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767484', 'tblTempUsageDetail_20' ) end [2025-03-26 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:36:27] Production.INFO: ==18138== Releasing lock... [2025-03-26 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:36:27] Production.INFO: 73 MB #Memory Used# [2025-03-26 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:37:05 [end_date_ymd] => 2025-03-26 14:37:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:37:05' and `end` < '2025-03-26 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-26 14:37:19] Production.INFO: count ==6021 [2025-03-26 14:37:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:37:05 - End Time 2025-03-26 14:37:05 [2025-03-26 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767489', 'tblTempUsageDetail_20' ) start [2025-03-26 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767489', 'tblTempUsageDetail_20' ) end [2025-03-26 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767489', 'tblTempVendorCDR_20' ) start [2025-03-26 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767489', 'tblTempVendorCDR_20' ) end [2025-03-26 14:37:22] Production.INFO: ProcessCDR(1,14767489,1,1,2) [2025-03-26 14:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767489', 'tblTempUsageDetail_20' ) start [2025-03-26 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767489', 'tblTempUsageDetail_20' ) end [2025-03-26 14:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:37:27] Production.INFO: ==18207== Releasing lock... [2025-03-26 14:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:37:27] Production.INFO: 73 MB #Memory Used# [2025-03-26 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:38:05 [end_date_ymd] => 2025-03-26 14:38:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:38:05' and `end` < '2025-03-26 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-26 14:38:19] Production.INFO: count ==6043 [2025-03-26 14:38:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:38:05 - End Time 2025-03-26 14:38:05 [2025-03-26 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767494', 'tblTempUsageDetail_20' ) start [2025-03-26 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767494', 'tblTempUsageDetail_20' ) end [2025-03-26 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767494', 'tblTempVendorCDR_20' ) start [2025-03-26 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767494', 'tblTempVendorCDR_20' ) end [2025-03-26 14:38:22] Production.INFO: ProcessCDR(1,14767494,1,1,2) [2025-03-26 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767494', 'tblTempUsageDetail_20' ) start [2025-03-26 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767494', 'tblTempUsageDetail_20' ) end [2025-03-26 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:38:27] Production.INFO: ==18280== Releasing lock... [2025-03-26 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:38:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-26 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:39:05 [end_date_ymd] => 2025-03-26 14:39:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:39:05' and `end` < '2025-03-26 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-26 14:39:19] Production.INFO: count ==6034 [2025-03-26 14:39:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:39:05 - End Time 2025-03-26 14:39:05 [2025-03-26 14:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767499', 'tblTempUsageDetail_20' ) start [2025-03-26 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767499', 'tblTempUsageDetail_20' ) end [2025-03-26 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767499', 'tblTempVendorCDR_20' ) start [2025-03-26 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767499', 'tblTempVendorCDR_20' ) end [2025-03-26 14:39:22] Production.INFO: ProcessCDR(1,14767499,1,1,2) [2025-03-26 14:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767499', 'tblTempUsageDetail_20' ) start [2025-03-26 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767499', 'tblTempUsageDetail_20' ) end [2025-03-26 14:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:39:28] Production.INFO: ==18391== Releasing lock... [2025-03-26 14:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:39:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-26 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:40:06 [end_date_ymd] => 2025-03-26 14:40:06 [RateCDR] => 1 ) [2025-03-26 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-26 11:40:06' and `end` < '2025-03-26 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-26 14:40:20] Production.INFO: count ==6052 [2025-03-26 14:40:23] Production.ERROR: pbx CDR StartTime 2025-03-26 11:40:06 - End Time 2025-03-26 14:40:06 [2025-03-26 14:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767505', 'tblTempUsageDetail_20' ) start [2025-03-26 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767505', 'tblTempUsageDetail_20' ) end [2025-03-26 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767505', 'tblTempVendorCDR_20' ) start [2025-03-26 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767505', 'tblTempVendorCDR_20' ) end [2025-03-26 14:40:23] Production.INFO: ProcessCDR(1,14767505,1,1,2) [2025-03-26 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767505', 'tblTempUsageDetail_20' ) start [2025-03-26 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767505', 'tblTempUsageDetail_20' ) end [2025-03-26 14:40:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:40:29] Production.INFO: ==18463== Releasing lock... [2025-03-26 14:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:40:29] Production.INFO: 73.25 MB #Memory Used# [2025-03-26 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:41:05 [end_date_ymd] => 2025-03-26 14:41:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:41:05' and `end` < '2025-03-26 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-26 14:41:18] Production.INFO: count ==6059 [2025-03-26 14:41:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:41:05 - End Time 2025-03-26 14:41:05 [2025-03-26 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767510', 'tblTempUsageDetail_20' ) start [2025-03-26 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767510', 'tblTempUsageDetail_20' ) end [2025-03-26 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767510', 'tblTempVendorCDR_20' ) start [2025-03-26 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767510', 'tblTempVendorCDR_20' ) end [2025-03-26 14:41:21] Production.INFO: ProcessCDR(1,14767510,1,1,2) [2025-03-26 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767510', 'tblTempUsageDetail_20' ) start [2025-03-26 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767510', 'tblTempUsageDetail_20' ) end [2025-03-26 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:41:27] Production.INFO: ==18538== Releasing lock... [2025-03-26 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:41:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-26 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:42:06 [end_date_ymd] => 2025-03-26 14:42:06 [RateCDR] => 1 ) [2025-03-26 14:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:42:06' and `end` < '2025-03-26 14:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:42:19] Production.INFO: count ==6060 [2025-03-26 14:42:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:42:06 - End Time 2025-03-26 14:42:06 [2025-03-26 14:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767515', 'tblTempUsageDetail_20' ) start [2025-03-26 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767515', 'tblTempUsageDetail_20' ) end [2025-03-26 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767515', 'tblTempVendorCDR_20' ) start [2025-03-26 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767515', 'tblTempVendorCDR_20' ) end [2025-03-26 14:42:22] Production.INFO: ProcessCDR(1,14767515,1,1,2) [2025-03-26 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767515', 'tblTempUsageDetail_20' ) start [2025-03-26 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767515', 'tblTempUsageDetail_20' ) end [2025-03-26 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:42:27] Production.INFO: ==18613== Releasing lock... [2025-03-26 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:42:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-26 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:43:05 [end_date_ymd] => 2025-03-26 14:43:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:43:05' and `end` < '2025-03-26 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-26 14:43:19] Production.INFO: count ==6068 [2025-03-26 14:43:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:43:05 - End Time 2025-03-26 14:43:05 [2025-03-26 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767520', 'tblTempUsageDetail_20' ) start [2025-03-26 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767520', 'tblTempUsageDetail_20' ) end [2025-03-26 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767520', 'tblTempVendorCDR_20' ) start [2025-03-26 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767520', 'tblTempVendorCDR_20' ) end [2025-03-26 14:43:22] Production.INFO: ProcessCDR(1,14767520,1,1,2) [2025-03-26 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767520', 'tblTempUsageDetail_20' ) start [2025-03-26 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767520', 'tblTempUsageDetail_20' ) end [2025-03-26 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:43:27] Production.INFO: ==18683== Releasing lock... [2025-03-26 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:43:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-26 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:44:06 [end_date_ymd] => 2025-03-26 14:44:06 [RateCDR] => 1 ) [2025-03-26 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-26 11:44:06' and `end` < '2025-03-26 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-26 14:44:20] Production.INFO: count ==6087 [2025-03-26 14:44:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:44:06 - End Time 2025-03-26 14:44:06 [2025-03-26 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767525', 'tblTempUsageDetail_20' ) start [2025-03-26 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767525', 'tblTempUsageDetail_20' ) end [2025-03-26 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767525', 'tblTempVendorCDR_20' ) start [2025-03-26 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767525', 'tblTempVendorCDR_20' ) end [2025-03-26 14:44:23] Production.INFO: ProcessCDR(1,14767525,1,1,2) [2025-03-26 14:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767525', 'tblTempUsageDetail_20' ) start [2025-03-26 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767525', 'tblTempUsageDetail_20' ) end [2025-03-26 14:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:44:28] Production.INFO: ==18754== Releasing lock... [2025-03-26 14:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:44:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-26 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:45:05 [end_date_ymd] => 2025-03-26 14:45:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:45:05' and `end` < '2025-03-26 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-26 14:45:19] Production.INFO: count ==6076 [2025-03-26 14:45:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:45:05 - End Time 2025-03-26 14:45:05 [2025-03-26 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767530', 'tblTempUsageDetail_20' ) start [2025-03-26 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767530', 'tblTempUsageDetail_20' ) end [2025-03-26 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767530', 'tblTempVendorCDR_20' ) start [2025-03-26 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767530', 'tblTempVendorCDR_20' ) end [2025-03-26 14:45:22] Production.INFO: ProcessCDR(1,14767530,1,1,2) [2025-03-26 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767530', 'tblTempUsageDetail_20' ) start [2025-03-26 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767530', 'tblTempUsageDetail_20' ) end [2025-03-26 14:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:45:28] Production.INFO: ==18828== Releasing lock... [2025-03-26 14:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:45:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-26 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:46:06 [end_date_ymd] => 2025-03-26 14:46:06 [RateCDR] => 1 ) [2025-03-26 14: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-26 11:46:06' and `end` < '2025-03-26 14: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-26 14:46:20] Production.INFO: count ==6073 [2025-03-26 14:46:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:46:06 - End Time 2025-03-26 14:46:06 [2025-03-26 14:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767535', 'tblTempUsageDetail_20' ) start [2025-03-26 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767535', 'tblTempUsageDetail_20' ) end [2025-03-26 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767535', 'tblTempVendorCDR_20' ) start [2025-03-26 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767535', 'tblTempVendorCDR_20' ) end [2025-03-26 14:46:23] Production.INFO: ProcessCDR(1,14767535,1,1,2) [2025-03-26 14:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767535', 'tblTempUsageDetail_20' ) start [2025-03-26 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767535', 'tblTempUsageDetail_20' ) end [2025-03-26 14:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:46:28] Production.INFO: ==18898== Releasing lock... [2025-03-26 14:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:46:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-26 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:47:05 [end_date_ymd] => 2025-03-26 14:47:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:47:05' and `end` < '2025-03-26 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-26 14:47:19] Production.INFO: count ==6110 [2025-03-26 14:47:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:47:05 - End Time 2025-03-26 14:47:05 [2025-03-26 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767540', 'tblTempUsageDetail_20' ) start [2025-03-26 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767540', 'tblTempUsageDetail_20' ) end [2025-03-26 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767540', 'tblTempVendorCDR_20' ) start [2025-03-26 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767540', 'tblTempVendorCDR_20' ) end [2025-03-26 14:47:22] Production.INFO: ProcessCDR(1,14767540,1,1,2) [2025-03-26 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767540', 'tblTempUsageDetail_20' ) start [2025-03-26 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767540', 'tblTempUsageDetail_20' ) end [2025-03-26 14:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:47:28] Production.INFO: ==18968== Releasing lock... [2025-03-26 14:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:47:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-26 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:48:06 [end_date_ymd] => 2025-03-26 14:48:06 [RateCDR] => 1 ) [2025-03-26 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-26 11:48:06' and `end` < '2025-03-26 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-26 14:48:20] Production.INFO: count ==6103 [2025-03-26 14:48:23] Production.ERROR: pbx CDR StartTime 2025-03-26 11:48:06 - End Time 2025-03-26 14:48:06 [2025-03-26 14:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767545', 'tblTempUsageDetail_20' ) start [2025-03-26 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767545', 'tblTempUsageDetail_20' ) end [2025-03-26 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767545', 'tblTempVendorCDR_20' ) start [2025-03-26 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767545', 'tblTempVendorCDR_20' ) end [2025-03-26 14:48:23] Production.INFO: ProcessCDR(1,14767545,1,1,2) [2025-03-26 14:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767545', 'tblTempUsageDetail_20' ) start [2025-03-26 14:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767545', 'tblTempUsageDetail_20' ) end [2025-03-26 14:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:48:28] Production.INFO: ==19039== Releasing lock... [2025-03-26 14:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:48:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-26 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:49:05 [end_date_ymd] => 2025-03-26 14:49:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:49:05' and `end` < '2025-03-26 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-26 14:49:19] Production.INFO: count ==6110 [2025-03-26 14:49:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:49:05 - End Time 2025-03-26 14:49:05 [2025-03-26 14:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767550', 'tblTempUsageDetail_20' ) start [2025-03-26 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767550', 'tblTempUsageDetail_20' ) end [2025-03-26 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767550', 'tblTempVendorCDR_20' ) start [2025-03-26 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767550', 'tblTempVendorCDR_20' ) end [2025-03-26 14:49:22] Production.INFO: ProcessCDR(1,14767550,1,1,2) [2025-03-26 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767550', 'tblTempUsageDetail_20' ) start [2025-03-26 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767550', 'tblTempUsageDetail_20' ) end [2025-03-26 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:49:27] Production.INFO: ==19114== Releasing lock... [2025-03-26 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:49:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-26 14:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:50:07 [end_date_ymd] => 2025-03-26 14:50:07 [RateCDR] => 1 ) [2025-03-26 14: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-26 11:50:07' and `end` < '2025-03-26 14: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-26 14:50:21] Production.INFO: count ==6113 [2025-03-26 14:50:23] Production.ERROR: pbx CDR StartTime 2025-03-26 11:50:07 - End Time 2025-03-26 14:50:07 [2025-03-26 14:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767556', 'tblTempUsageDetail_20' ) start [2025-03-26 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767556', 'tblTempUsageDetail_20' ) end [2025-03-26 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767556', 'tblTempVendorCDR_20' ) start [2025-03-26 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767556', 'tblTempVendorCDR_20' ) end [2025-03-26 14:50:24] Production.INFO: ProcessCDR(1,14767556,1,1,2) [2025-03-26 14:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767556', 'tblTempUsageDetail_20' ) start [2025-03-26 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767556', 'tblTempUsageDetail_20' ) end [2025-03-26 14:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:50:29] Production.INFO: ==19188== Releasing lock... [2025-03-26 14:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:50:29] Production.INFO: 73.75 MB #Memory Used# [2025-03-26 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:51:05 [end_date_ymd] => 2025-03-26 14:51:05 [RateCDR] => 1 ) [2025-03-26 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:51:05' and `end` < '2025-03-26 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:51:19] Production.INFO: count ==6120 [2025-03-26 14:51:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:51:05 - End Time 2025-03-26 14:51:05 [2025-03-26 14:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767561', 'tblTempUsageDetail_20' ) start [2025-03-26 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767561', 'tblTempUsageDetail_20' ) end [2025-03-26 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767561', 'tblTempVendorCDR_20' ) start [2025-03-26 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767561', 'tblTempVendorCDR_20' ) end [2025-03-26 14:51:22] Production.INFO: ProcessCDR(1,14767561,1,1,2) [2025-03-26 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767561', 'tblTempUsageDetail_20' ) start [2025-03-26 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767561', 'tblTempUsageDetail_20' ) end [2025-03-26 14:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:51:28] Production.INFO: ==19263== Releasing lock... [2025-03-26 14:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:51:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-26 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:52:06 [end_date_ymd] => 2025-03-26 14:52:06 [RateCDR] => 1 ) [2025-03-26 14: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-26 11:52:06' and `end` < '2025-03-26 14: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-26 14:52:20] Production.INFO: count ==6122 [2025-03-26 14:52:23] Production.ERROR: pbx CDR StartTime 2025-03-26 11:52:06 - End Time 2025-03-26 14:52:06 [2025-03-26 14:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767566', 'tblTempUsageDetail_20' ) start [2025-03-26 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767566', 'tblTempUsageDetail_20' ) end [2025-03-26 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767566', 'tblTempVendorCDR_20' ) start [2025-03-26 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767566', 'tblTempVendorCDR_20' ) end [2025-03-26 14:52:23] Production.INFO: ProcessCDR(1,14767566,1,1,2) [2025-03-26 14:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767566', 'tblTempUsageDetail_20' ) start [2025-03-26 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767566', 'tblTempUsageDetail_20' ) end [2025-03-26 14:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:52:28] Production.INFO: ==19334== Releasing lock... [2025-03-26 14:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:52:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-26 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:53:05 [end_date_ymd] => 2025-03-26 14:53:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:53:05' and `end` < '2025-03-26 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-26 14:53:19] Production.INFO: count ==6118 [2025-03-26 14:53:21] Production.ERROR: pbx CDR StartTime 2025-03-26 11:53:05 - End Time 2025-03-26 14:53:05 [2025-03-26 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767571', 'tblTempUsageDetail_20' ) start [2025-03-26 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767571', 'tblTempUsageDetail_20' ) end [2025-03-26 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767571', 'tblTempVendorCDR_20' ) start [2025-03-26 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767571', 'tblTempVendorCDR_20' ) end [2025-03-26 14:53:22] Production.INFO: ProcessCDR(1,14767571,1,1,2) [2025-03-26 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767571', 'tblTempUsageDetail_20' ) start [2025-03-26 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767571', 'tblTempUsageDetail_20' ) end [2025-03-26 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:53:27] Production.INFO: ==19406== Releasing lock... [2025-03-26 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:53:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-26 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:54:06 [end_date_ymd] => 2025-03-26 14:54:06 [RateCDR] => 1 ) [2025-03-26 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-26 11:54:06' and `end` < '2025-03-26 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-26 14:54:20] Production.INFO: count ==6096 [2025-03-26 14:54:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:54:06 - End Time 2025-03-26 14:54:06 [2025-03-26 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767575', 'tblTempUsageDetail_20' ) start [2025-03-26 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767575', 'tblTempUsageDetail_20' ) end [2025-03-26 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767575', 'tblTempVendorCDR_20' ) start [2025-03-26 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767575', 'tblTempVendorCDR_20' ) end [2025-03-26 14:54:23] Production.INFO: ProcessCDR(1,14767575,1,1,2) [2025-03-26 14:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767575', 'tblTempUsageDetail_20' ) start [2025-03-26 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767575', 'tblTempUsageDetail_20' ) end [2025-03-26 14:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:54:28] Production.INFO: ==19480== Releasing lock... [2025-03-26 14:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:54:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-26 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:55:05 [end_date_ymd] => 2025-03-26 14:55:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:55:05' and `end` < '2025-03-26 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-26 14:55:19] Production.INFO: count ==6125 [2025-03-26 14:55:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:55:05 - End Time 2025-03-26 14:55:05 [2025-03-26 14:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767581', 'tblTempUsageDetail_20' ) start [2025-03-26 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767581', 'tblTempUsageDetail_20' ) end [2025-03-26 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767581', 'tblTempVendorCDR_20' ) start [2025-03-26 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767581', 'tblTempVendorCDR_20' ) end [2025-03-26 14:55:22] Production.INFO: ProcessCDR(1,14767581,1,1,2) [2025-03-26 14:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767581', 'tblTempUsageDetail_20' ) start [2025-03-26 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767581', 'tblTempUsageDetail_20' ) end [2025-03-26 14:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:55:27] Production.INFO: ==19589== Releasing lock... [2025-03-26 14:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:55:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-26 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:56:05 [end_date_ymd] => 2025-03-26 14:56:05 [RateCDR] => 1 ) [2025-03-26 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:56:05' and `end` < '2025-03-26 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:56:19] Production.INFO: count ==6158 [2025-03-26 14:56:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:56:05 - End Time 2025-03-26 14:56:05 [2025-03-26 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767586', 'tblTempUsageDetail_20' ) start [2025-03-26 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767586', 'tblTempUsageDetail_20' ) end [2025-03-26 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767586', 'tblTempVendorCDR_20' ) start [2025-03-26 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767586', 'tblTempVendorCDR_20' ) end [2025-03-26 14:56:22] Production.INFO: ProcessCDR(1,14767586,1,1,2) [2025-03-26 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767586', 'tblTempUsageDetail_20' ) start [2025-03-26 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767586', 'tblTempUsageDetail_20' ) end [2025-03-26 14:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:56:28] Production.INFO: ==19663== Releasing lock... [2025-03-26 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:56:28] Production.INFO: 74 MB #Memory Used# [2025-03-26 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:57:05 [end_date_ymd] => 2025-03-26 14:57:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:57:05' and `end` < '2025-03-26 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-26 14:57:19] Production.INFO: count ==6144 [2025-03-26 14:57:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:57:05 - End Time 2025-03-26 14:57:05 [2025-03-26 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767591', 'tblTempUsageDetail_20' ) start [2025-03-26 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767591', 'tblTempUsageDetail_20' ) end [2025-03-26 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767591', 'tblTempVendorCDR_20' ) start [2025-03-26 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767591', 'tblTempVendorCDR_20' ) end [2025-03-26 14:57:22] Production.INFO: ProcessCDR(1,14767591,1,1,2) [2025-03-26 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767591', 'tblTempUsageDetail_20' ) start [2025-03-26 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767591', 'tblTempUsageDetail_20' ) end [2025-03-26 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:57:27] Production.INFO: ==19733== Releasing lock... [2025-03-26 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:57:27] Production.INFO: 74 MB #Memory Used# [2025-03-26 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:58:06 [end_date_ymd] => 2025-03-26 14:58:06 [RateCDR] => 1 ) [2025-03-26 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 11:58:06' and `end` < '2025-03-26 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 14:58:19] Production.INFO: count ==6139 [2025-03-26 14:58:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:58:06 - End Time 2025-03-26 14:58:06 [2025-03-26 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767596', 'tblTempUsageDetail_20' ) start [2025-03-26 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767596', 'tblTempUsageDetail_20' ) end [2025-03-26 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767596', 'tblTempVendorCDR_20' ) start [2025-03-26 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767596', 'tblTempVendorCDR_20' ) end [2025-03-26 14:58:22] Production.INFO: ProcessCDR(1,14767596,1,1,2) [2025-03-26 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767596', 'tblTempUsageDetail_20' ) start [2025-03-26 14:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767596', 'tblTempUsageDetail_20' ) end [2025-03-26 14:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:58:28] Production.INFO: ==19804== Releasing lock... [2025-03-26 14:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:58:28] Production.INFO: 74 MB #Memory Used# [2025-03-26 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 11:59:05 [end_date_ymd] => 2025-03-26 14:59:05 [RateCDR] => 1 ) [2025-03-26 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-26 11:59:05' and `end` < '2025-03-26 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-26 14:59:19] Production.INFO: count ==6126 [2025-03-26 14:59:22] Production.ERROR: pbx CDR StartTime 2025-03-26 11:59:05 - End Time 2025-03-26 14:59:05 [2025-03-26 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767601', 'tblTempUsageDetail_20' ) start [2025-03-26 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767601', 'tblTempUsageDetail_20' ) end [2025-03-26 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767601', 'tblTempVendorCDR_20' ) start [2025-03-26 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767601', 'tblTempVendorCDR_20' ) end [2025-03-26 14:59:22] Production.INFO: ProcessCDR(1,14767601,1,1,2) [2025-03-26 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 14:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767601', 'tblTempUsageDetail_20' ) start [2025-03-26 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767601', 'tblTempUsageDetail_20' ) end [2025-03-26 14:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 14:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 14:59:25] Production.INFO: ==19874== Releasing lock... [2025-03-26 14:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 14:59:25] Production.INFO: 73.75 MB #Memory Used# [2025-03-26 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:00:06 [end_date_ymd] => 2025-03-26 15:00:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:00:06' and `end` < '2025-03-26 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-26 15:00:20] Production.INFO: count ==6149 [2025-03-26 15:00:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:00:06 - End Time 2025-03-26 15:00:06 [2025-03-26 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767607', 'tblTempUsageDetail_20' ) start [2025-03-26 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767607', 'tblTempUsageDetail_20' ) end [2025-03-26 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767607', 'tblTempVendorCDR_20' ) start [2025-03-26 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767607', 'tblTempVendorCDR_20' ) end [2025-03-26 15:00:23] Production.INFO: ProcessCDR(1,14767607,1,1,2) [2025-03-26 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767607', 'tblTempUsageDetail_20' ) start [2025-03-26 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767607', 'tblTempUsageDetail_20' ) end [2025-03-26 15:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:00:29] Production.INFO: ==19949== Releasing lock... [2025-03-26 15:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:00:29] Production.INFO: 74 MB #Memory Used# [2025-03-26 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:01:05 [end_date_ymd] => 2025-03-26 15:01:05 [RateCDR] => 1 ) [2025-03-26 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-26 12:01:05' and `end` < '2025-03-26 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-26 15:01:19] Production.INFO: count ==6190 [2025-03-26 15:01:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:01:05 - End Time 2025-03-26 15:01:05 [2025-03-26 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767612', 'tblTempUsageDetail_20' ) start [2025-03-26 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767612', 'tblTempUsageDetail_20' ) end [2025-03-26 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767612', 'tblTempVendorCDR_20' ) start [2025-03-26 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767612', 'tblTempVendorCDR_20' ) end [2025-03-26 15:01:22] Production.INFO: ProcessCDR(1,14767612,1,1,2) [2025-03-26 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767612', 'tblTempUsageDetail_20' ) start [2025-03-26 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767612', 'tblTempUsageDetail_20' ) end [2025-03-26 15:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:01:28] Production.INFO: ==20034== Releasing lock... [2025-03-26 15:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:01:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-26 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:02:05 [end_date_ymd] => 2025-03-26 15:02:05 [RateCDR] => 1 ) [2025-03-26 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:02:05' and `end` < '2025-03-26 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:02:19] Production.INFO: count ==6237 [2025-03-26 15:02:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:02:05 - End Time 2025-03-26 15:02:05 [2025-03-26 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767617', 'tblTempUsageDetail_20' ) start [2025-03-26 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767617', 'tblTempUsageDetail_20' ) end [2025-03-26 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767617', 'tblTempVendorCDR_20' ) start [2025-03-26 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767617', 'tblTempVendorCDR_20' ) end [2025-03-26 15:02:22] Production.INFO: ProcessCDR(1,14767617,1,1,2) [2025-03-26 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767617', 'tblTempUsageDetail_20' ) start [2025-03-26 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767617', 'tblTempUsageDetail_20' ) end [2025-03-26 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:02:27] Production.INFO: ==20184== Releasing lock... [2025-03-26 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:02:27] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:03:05 [end_date_ymd] => 2025-03-26 15:03:05 [RateCDR] => 1 ) [2025-03-26 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-26 12:03:05' and `end` < '2025-03-26 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-26 15:03:19] Production.INFO: count ==6223 [2025-03-26 15:03:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:03:05 - End Time 2025-03-26 15:03:05 [2025-03-26 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767622', 'tblTempUsageDetail_20' ) start [2025-03-26 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767622', 'tblTempUsageDetail_20' ) end [2025-03-26 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767622', 'tblTempVendorCDR_20' ) start [2025-03-26 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767622', 'tblTempVendorCDR_20' ) end [2025-03-26 15:03:22] Production.INFO: ProcessCDR(1,14767622,1,1,2) [2025-03-26 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767622', 'tblTempUsageDetail_20' ) start [2025-03-26 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767622', 'tblTempUsageDetail_20' ) end [2025-03-26 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:03:27] Production.INFO: ==20255== Releasing lock... [2025-03-26 15:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:03:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-26 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:04:06 [end_date_ymd] => 2025-03-26 15:04:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:04:06' and `end` < '2025-03-26 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-26 15:04:20] Production.INFO: count ==6229 [2025-03-26 15:04:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:04:06 - End Time 2025-03-26 15:04:06 [2025-03-26 15:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767627', 'tblTempUsageDetail_20' ) start [2025-03-26 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767627', 'tblTempUsageDetail_20' ) end [2025-03-26 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767627', 'tblTempVendorCDR_20' ) start [2025-03-26 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767627', 'tblTempVendorCDR_20' ) end [2025-03-26 15:04:23] Production.INFO: ProcessCDR(1,14767627,1,1,2) [2025-03-26 15:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767627', 'tblTempUsageDetail_20' ) start [2025-03-26 15:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767627', 'tblTempUsageDetail_20' ) end [2025-03-26 15:04:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:04:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:04:29] Production.INFO: ==20326== Releasing lock... [2025-03-26 15:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:04:29] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:05:06 [end_date_ymd] => 2025-03-26 15:05:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:05:06' and `end` < '2025-03-26 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-26 15:05:19] Production.INFO: count ==6224 [2025-03-26 15:05:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:05:06 - End Time 2025-03-26 15:05:06 [2025-03-26 15:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767632', 'tblTempUsageDetail_20' ) start [2025-03-26 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767632', 'tblTempUsageDetail_20' ) end [2025-03-26 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767632', 'tblTempVendorCDR_20' ) start [2025-03-26 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767632', 'tblTempVendorCDR_20' ) end [2025-03-26 15:05:22] Production.INFO: ProcessCDR(1,14767632,1,1,2) [2025-03-26 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767632', 'tblTempUsageDetail_20' ) start [2025-03-26 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767632', 'tblTempUsageDetail_20' ) end [2025-03-26 15:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:05:28] Production.INFO: ==20476== Releasing lock... [2025-03-26 15:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:05:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-26 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:06:06 [end_date_ymd] => 2025-03-26 15:06:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:06:06' and `end` < '2025-03-26 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-26 15:06:19] Production.INFO: count ==6224 [2025-03-26 15:06:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:06:06 - End Time 2025-03-26 15:06:06 [2025-03-26 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767637', 'tblTempUsageDetail_20' ) start [2025-03-26 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767637', 'tblTempUsageDetail_20' ) end [2025-03-26 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767637', 'tblTempVendorCDR_20' ) start [2025-03-26 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767637', 'tblTempVendorCDR_20' ) end [2025-03-26 15:06:23] Production.INFO: ProcessCDR(1,14767637,1,1,2) [2025-03-26 15:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767637', 'tblTempUsageDetail_20' ) start [2025-03-26 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767637', 'tblTempUsageDetail_20' ) end [2025-03-26 15:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:06:28] Production.INFO: ==20547== Releasing lock... [2025-03-26 15:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:06:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-26 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:07:06 [end_date_ymd] => 2025-03-26 15:07:06 [RateCDR] => 1 ) [2025-03-26 15:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:07:06' and `end` < '2025-03-26 15:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:07:19] Production.INFO: count ==6229 [2025-03-26 15:07:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:07:06 - End Time 2025-03-26 15:07:06 [2025-03-26 15:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767642', 'tblTempUsageDetail_20' ) start [2025-03-26 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767642', 'tblTempUsageDetail_20' ) end [2025-03-26 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767642', 'tblTempVendorCDR_20' ) start [2025-03-26 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767642', 'tblTempVendorCDR_20' ) end [2025-03-26 15:07:22] Production.INFO: ProcessCDR(1,14767642,1,1,2) [2025-03-26 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767642', 'tblTempUsageDetail_20' ) start [2025-03-26 15:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767642', 'tblTempUsageDetail_20' ) end [2025-03-26 15:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:07:28] Production.INFO: ==20616== Releasing lock... [2025-03-26 15:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:07:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:08:06 [end_date_ymd] => 2025-03-26 15:08:06 [RateCDR] => 1 ) [2025-03-26 15:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:08:06' and `end` < '2025-03-26 15:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:08:20] Production.INFO: count ==6237 [2025-03-26 15:08:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:08:06 - End Time 2025-03-26 15:08:06 [2025-03-26 15:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767647', 'tblTempUsageDetail_20' ) start [2025-03-26 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767647', 'tblTempUsageDetail_20' ) end [2025-03-26 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767647', 'tblTempVendorCDR_20' ) start [2025-03-26 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767647', 'tblTempVendorCDR_20' ) end [2025-03-26 15:08:23] Production.INFO: ProcessCDR(1,14767647,1,1,2) [2025-03-26 15:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767647', 'tblTempUsageDetail_20' ) start [2025-03-26 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767647', 'tblTempUsageDetail_20' ) end [2025-03-26 15:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:08:28] Production.INFO: ==20729== Releasing lock... [2025-03-26 15:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:08:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:09:06 [end_date_ymd] => 2025-03-26 15:09:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:09:06' and `end` < '2025-03-26 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-26 15:09:19] Production.INFO: count ==6240 [2025-03-26 15:09:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:09:06 - End Time 2025-03-26 15:09:06 [2025-03-26 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767652', 'tblTempUsageDetail_20' ) start [2025-03-26 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767652', 'tblTempUsageDetail_20' ) end [2025-03-26 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767652', 'tblTempVendorCDR_20' ) start [2025-03-26 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767652', 'tblTempVendorCDR_20' ) end [2025-03-26 15:09:22] Production.INFO: ProcessCDR(1,14767652,1,1,2) [2025-03-26 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767652', 'tblTempUsageDetail_20' ) start [2025-03-26 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767652', 'tblTempUsageDetail_20' ) end [2025-03-26 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:09:27] Production.INFO: ==20839== Releasing lock... [2025-03-26 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:09:27] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:10:06 [end_date_ymd] => 2025-03-26 15:10:06 [RateCDR] => 1 ) [2025-03-26 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:10:06' and `end` < '2025-03-26 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:10:20] Production.INFO: count ==6223 [2025-03-26 15:10:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:10:06 - End Time 2025-03-26 15:10:06 [2025-03-26 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767657', 'tblTempUsageDetail_20' ) start [2025-03-26 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767657', 'tblTempUsageDetail_20' ) end [2025-03-26 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767657', 'tblTempVendorCDR_20' ) start [2025-03-26 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767657', 'tblTempVendorCDR_20' ) end [2025-03-26 15:10:23] Production.INFO: ProcessCDR(1,14767657,1,1,2) [2025-03-26 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767657', 'tblTempUsageDetail_20' ) start [2025-03-26 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767657', 'tblTempUsageDetail_20' ) end [2025-03-26 15:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:10:29] Production.INFO: ==20969== Releasing lock... [2025-03-26 15:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:10:29] Production.INFO: 74.5 MB #Memory Used# [2025-03-26 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:11:05 [end_date_ymd] => 2025-03-26 15:11:05 [RateCDR] => 1 ) [2025-03-26 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:11:05' and `end` < '2025-03-26 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:11:19] Production.INFO: count ==6250 [2025-03-26 15:11:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:11:05 - End Time 2025-03-26 15:11:05 [2025-03-26 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767663', 'tblTempUsageDetail_20' ) start [2025-03-26 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767663', 'tblTempUsageDetail_20' ) end [2025-03-26 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767663', 'tblTempVendorCDR_20' ) start [2025-03-26 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767663', 'tblTempVendorCDR_20' ) end [2025-03-26 15:11:22] Production.INFO: ProcessCDR(1,14767663,1,1,2) [2025-03-26 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767663', 'tblTempUsageDetail_20' ) start [2025-03-26 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767663', 'tblTempUsageDetail_20' ) end [2025-03-26 15:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:11:27] Production.INFO: ==21043== Releasing lock... [2025-03-26 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:11:27] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:12:06 [end_date_ymd] => 2025-03-26 15:12:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:12:06' and `end` < '2025-03-26 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-26 15:12:19] Production.INFO: count ==6258 [2025-03-26 15:12:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:12:06 - End Time 2025-03-26 15:12:06 [2025-03-26 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767668', 'tblTempUsageDetail_20' ) start [2025-03-26 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767668', 'tblTempUsageDetail_20' ) end [2025-03-26 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767668', 'tblTempVendorCDR_20' ) start [2025-03-26 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767668', 'tblTempVendorCDR_20' ) end [2025-03-26 15:12:22] Production.INFO: ProcessCDR(1,14767668,1,1,2) [2025-03-26 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767668', 'tblTempUsageDetail_20' ) start [2025-03-26 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767668', 'tblTempUsageDetail_20' ) end [2025-03-26 15:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:12:28] Production.INFO: ==21191== Releasing lock... [2025-03-26 15:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:12:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:13:05 [end_date_ymd] => 2025-03-26 15:13:05 [RateCDR] => 1 ) [2025-03-26 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-26 12:13:05' and `end` < '2025-03-26 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-26 15:13:20] Production.INFO: count ==6241 [2025-03-26 15:13:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:13:05 - End Time 2025-03-26 15:13:05 [2025-03-26 15:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767673', 'tblTempUsageDetail_20' ) start [2025-03-26 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767673', 'tblTempUsageDetail_20' ) end [2025-03-26 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767673', 'tblTempVendorCDR_20' ) start [2025-03-26 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767673', 'tblTempVendorCDR_20' ) end [2025-03-26 15:13:22] Production.INFO: ProcessCDR(1,14767673,1,1,2) [2025-03-26 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767673', 'tblTempUsageDetail_20' ) start [2025-03-26 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767673', 'tblTempUsageDetail_20' ) end [2025-03-26 15:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:13:28] Production.INFO: ==21265== Releasing lock... [2025-03-26 15:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:13:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:14:06 [end_date_ymd] => 2025-03-26 15:14:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:14:06' and `end` < '2025-03-26 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-26 15:14:21] Production.INFO: count ==6238 [2025-03-26 15:14:24] Production.ERROR: pbx CDR StartTime 2025-03-26 12:14:06 - End Time 2025-03-26 15:14:06 [2025-03-26 15:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767678', 'tblTempUsageDetail_20' ) start [2025-03-26 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767678', 'tblTempUsageDetail_20' ) end [2025-03-26 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767678', 'tblTempVendorCDR_20' ) start [2025-03-26 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767678', 'tblTempVendorCDR_20' ) end [2025-03-26 15:14:24] Production.INFO: ProcessCDR(1,14767678,1,1,2) [2025-03-26 15:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767678', 'tblTempUsageDetail_20' ) start [2025-03-26 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767678', 'tblTempUsageDetail_20' ) end [2025-03-26 15:14:30] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:14:30] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:14:30] Production.INFO: ==21342== Releasing lock... [2025-03-26 15:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:14:30] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:15:05 [end_date_ymd] => 2025-03-26 15:15:05 [RateCDR] => 1 ) [2025-03-26 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:15:05' and `end` < '2025-03-26 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:15:19] Production.INFO: count ==6244 [2025-03-26 15:15:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:15:05 - End Time 2025-03-26 15:15:05 [2025-03-26 15:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767683', 'tblTempUsageDetail_20' ) start [2025-03-26 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767683', 'tblTempUsageDetail_20' ) end [2025-03-26 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767683', 'tblTempVendorCDR_20' ) start [2025-03-26 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767683', 'tblTempVendorCDR_20' ) end [2025-03-26 15:15:22] Production.INFO: ProcessCDR(1,14767683,1,1,2) [2025-03-26 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767683', 'tblTempUsageDetail_20' ) start [2025-03-26 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767683', 'tblTempUsageDetail_20' ) end [2025-03-26 15:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:15:28] Production.INFO: ==21455== Releasing lock... [2025-03-26 15:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:15:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:16:06 [end_date_ymd] => 2025-03-26 15:16:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:16:06' and `end` < '2025-03-26 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-26 15:16:20] Production.INFO: count ==6236 [2025-03-26 15:16:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:16:06 - End Time 2025-03-26 15:16:06 [2025-03-26 15:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767688', 'tblTempUsageDetail_20' ) start [2025-03-26 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767688', 'tblTempUsageDetail_20' ) end [2025-03-26 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767688', 'tblTempVendorCDR_20' ) start [2025-03-26 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767688', 'tblTempVendorCDR_20' ) end [2025-03-26 15:16:23] Production.INFO: ProcessCDR(1,14767688,1,1,2) [2025-03-26 15:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767688', 'tblTempUsageDetail_20' ) start [2025-03-26 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767688', 'tblTempUsageDetail_20' ) end [2025-03-26 15:16:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:16:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:16:29] Production.INFO: ==21565== Releasing lock... [2025-03-26 15:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:16:29] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:17:05 [end_date_ymd] => 2025-03-26 15:17:05 [RateCDR] => 1 ) [2025-03-26 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-26 12:17:05' and `end` < '2025-03-26 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-26 15:17:19] Production.INFO: count ==6234 [2025-03-26 15:17:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:17:05 - End Time 2025-03-26 15:17:05 [2025-03-26 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767693', 'tblTempUsageDetail_20' ) start [2025-03-26 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767693', 'tblTempUsageDetail_20' ) end [2025-03-26 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767693', 'tblTempVendorCDR_20' ) start [2025-03-26 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767693', 'tblTempVendorCDR_20' ) end [2025-03-26 15:17:22] Production.INFO: ProcessCDR(1,14767693,1,1,2) [2025-03-26 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767693', 'tblTempUsageDetail_20' ) start [2025-03-26 15:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767693', 'tblTempUsageDetail_20' ) end [2025-03-26 15:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:17:28] Production.INFO: ==21645== Releasing lock... [2025-03-26 15:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:17:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:18:06 [end_date_ymd] => 2025-03-26 15:18:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:18:06' and `end` < '2025-03-26 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-26 15:18:20] Production.INFO: count ==6242 [2025-03-26 15:18:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:18:06 - End Time 2025-03-26 15:18:06 [2025-03-26 15:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767698', 'tblTempUsageDetail_20' ) start [2025-03-26 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767698', 'tblTempUsageDetail_20' ) end [2025-03-26 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767698', 'tblTempVendorCDR_20' ) start [2025-03-26 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767698', 'tblTempVendorCDR_20' ) end [2025-03-26 15:18:23] Production.INFO: ProcessCDR(1,14767698,1,1,2) [2025-03-26 15:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767698', 'tblTempUsageDetail_20' ) start [2025-03-26 15:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767698', 'tblTempUsageDetail_20' ) end [2025-03-26 15:18:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:18:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:18:29] Production.INFO: ==21725== Releasing lock... [2025-03-26 15:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:18:29] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:19:06 [end_date_ymd] => 2025-03-26 15:19:06 [RateCDR] => 1 ) [2025-03-26 15:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:19:06' and `end` < '2025-03-26 15:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:19:19] Production.INFO: count ==6257 [2025-03-26 15:19:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:19:06 - End Time 2025-03-26 15:19:06 [2025-03-26 15:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767703', 'tblTempUsageDetail_20' ) start [2025-03-26 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767703', 'tblTempUsageDetail_20' ) end [2025-03-26 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767703', 'tblTempVendorCDR_20' ) start [2025-03-26 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767703', 'tblTempVendorCDR_20' ) end [2025-03-26 15:19:23] Production.INFO: ProcessCDR(1,14767703,1,1,2) [2025-03-26 15:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767703', 'tblTempUsageDetail_20' ) start [2025-03-26 15:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767703', 'tblTempUsageDetail_20' ) end [2025-03-26 15:19:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:19:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:19:29] Production.INFO: ==21800== Releasing lock... [2025-03-26 15:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:19:29] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:20:07 [end_date_ymd] => 2025-03-26 15:20:07 [RateCDR] => 1 ) [2025-03-26 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-26 12:20:07' and `end` < '2025-03-26 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-26 15:20:20] Production.INFO: count ==6260 [2025-03-26 15:20:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:20:07 - End Time 2025-03-26 15:20:07 [2025-03-26 15:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767708', 'tblTempUsageDetail_20' ) start [2025-03-26 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767708', 'tblTempUsageDetail_20' ) end [2025-03-26 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767708', 'tblTempVendorCDR_20' ) start [2025-03-26 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767708', 'tblTempVendorCDR_20' ) end [2025-03-26 15:20:24] Production.INFO: ProcessCDR(1,14767708,1,1,2) [2025-03-26 15:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767708', 'tblTempUsageDetail_20' ) start [2025-03-26 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767708', 'tblTempUsageDetail_20' ) end [2025-03-26 15:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:20:29] Production.INFO: ==21877== Releasing lock... [2025-03-26 15:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:20:29] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:21:06 [end_date_ymd] => 2025-03-26 15:21:06 [RateCDR] => 1 ) [2025-03-26 15:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:21:06' and `end` < '2025-03-26 15:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:21:19] Production.INFO: count ==6261 [2025-03-26 15:21:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:21:06 - End Time 2025-03-26 15:21:06 [2025-03-26 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767714', 'tblTempUsageDetail_20' ) start [2025-03-26 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767714', 'tblTempUsageDetail_20' ) end [2025-03-26 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767714', 'tblTempVendorCDR_20' ) start [2025-03-26 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767714', 'tblTempVendorCDR_20' ) end [2025-03-26 15:21:23] Production.INFO: ProcessCDR(1,14767714,1,1,2) [2025-03-26 15:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767714', 'tblTempUsageDetail_20' ) start [2025-03-26 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767714', 'tblTempUsageDetail_20' ) end [2025-03-26 15:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:21:28] Production.INFO: ==21953== Releasing lock... [2025-03-26 15:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:21:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:22:05 [end_date_ymd] => 2025-03-26 15:22:05 [RateCDR] => 1 ) [2025-03-26 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:22:05' and `end` < '2025-03-26 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:22:19] Production.INFO: count ==6263 [2025-03-26 15:22:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:22:05 - End Time 2025-03-26 15:22:05 [2025-03-26 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767719', 'tblTempUsageDetail_20' ) start [2025-03-26 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767719', 'tblTempUsageDetail_20' ) end [2025-03-26 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767719', 'tblTempVendorCDR_20' ) start [2025-03-26 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767719', 'tblTempVendorCDR_20' ) end [2025-03-26 15:22:22] Production.INFO: ProcessCDR(1,14767719,1,1,2) [2025-03-26 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767719', 'tblTempUsageDetail_20' ) start [2025-03-26 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767719', 'tblTempUsageDetail_20' ) end [2025-03-26 15:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:22:28] Production.INFO: ==22028== Releasing lock... [2025-03-26 15:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:22:28] Production.INFO: 75 MB #Memory Used# [2025-03-26 15:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:23:06 [end_date_ymd] => 2025-03-26 15:23:06 [RateCDR] => 1 ) [2025-03-26 15: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-26 12:23:06' and `end` < '2025-03-26 15: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-26 15:23:19] Production.INFO: count ==6295 [2025-03-26 15:23:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:23:06 - End Time 2025-03-26 15:23:06 [2025-03-26 15:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767724', 'tblTempUsageDetail_20' ) start [2025-03-26 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767724', 'tblTempUsageDetail_20' ) end [2025-03-26 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767724', 'tblTempVendorCDR_20' ) start [2025-03-26 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767724', 'tblTempVendorCDR_20' ) end [2025-03-26 15:23:23] Production.INFO: ProcessCDR(1,14767724,1,1,2) [2025-03-26 15:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767724', 'tblTempUsageDetail_20' ) start [2025-03-26 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767724', 'tblTempUsageDetail_20' ) end [2025-03-26 15:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:23:28] Production.INFO: ==22102== Releasing lock... [2025-03-26 15:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:23:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:24:06 [end_date_ymd] => 2025-03-26 15:24:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:24:06' and `end` < '2025-03-26 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-26 15:24:20] Production.INFO: count ==6301 [2025-03-26 15:24:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:24:06 - End Time 2025-03-26 15:24:06 [2025-03-26 15:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767729', 'tblTempUsageDetail_20' ) start [2025-03-26 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767729', 'tblTempUsageDetail_20' ) end [2025-03-26 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767729', 'tblTempVendorCDR_20' ) start [2025-03-26 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767729', 'tblTempVendorCDR_20' ) end [2025-03-26 15:24:23] Production.INFO: ProcessCDR(1,14767729,1,1,2) [2025-03-26 15:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767729', 'tblTempUsageDetail_20' ) start [2025-03-26 15:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767729', 'tblTempUsageDetail_20' ) end [2025-03-26 15:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:24:28] Production.INFO: ==22182== Releasing lock... [2025-03-26 15:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:24:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:25:06 [end_date_ymd] => 2025-03-26 15:25:06 [RateCDR] => 1 ) [2025-03-26 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:25:06' and `end` < '2025-03-26 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:25:20] Production.INFO: count ==6306 [2025-03-26 15:25:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:25:06 - End Time 2025-03-26 15:25:06 [2025-03-26 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767734', 'tblTempUsageDetail_20' ) start [2025-03-26 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767734', 'tblTempUsageDetail_20' ) end [2025-03-26 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767734', 'tblTempVendorCDR_20' ) start [2025-03-26 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767734', 'tblTempVendorCDR_20' ) end [2025-03-26 15:25:23] Production.INFO: ProcessCDR(1,14767734,1,1,2) [2025-03-26 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767734', 'tblTempUsageDetail_20' ) start [2025-03-26 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767734', 'tblTempUsageDetail_20' ) end [2025-03-26 15:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:25:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:25:29] Production.INFO: ==22258== Releasing lock... [2025-03-26 15:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:25:29] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:26:05 [end_date_ymd] => 2025-03-26 15:26:05 [RateCDR] => 1 ) [2025-03-26 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:26:05' and `end` < '2025-03-26 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:26:19] Production.INFO: count ==6295 [2025-03-26 15:26:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:26:05 - End Time 2025-03-26 15:26:05 [2025-03-26 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767739', 'tblTempUsageDetail_20' ) start [2025-03-26 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767739', 'tblTempUsageDetail_20' ) end [2025-03-26 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767739', 'tblTempVendorCDR_20' ) start [2025-03-26 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767739', 'tblTempVendorCDR_20' ) end [2025-03-26 15:26:22] Production.INFO: ProcessCDR(1,14767739,1,1,2) [2025-03-26 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767739', 'tblTempUsageDetail_20' ) start [2025-03-26 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767739', 'tblTempUsageDetail_20' ) end [2025-03-26 15:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:26:28] Production.INFO: ==22370== Releasing lock... [2025-03-26 15:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:26:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:27:05 [end_date_ymd] => 2025-03-26 15:27:05 [RateCDR] => 1 ) [2025-03-26 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-26 12:27:05' and `end` < '2025-03-26 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-26 15:27:19] Production.INFO: count ==6306 [2025-03-26 15:27:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:27:05 - End Time 2025-03-26 15:27:05 [2025-03-26 15:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767744', 'tblTempUsageDetail_20' ) start [2025-03-26 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767744', 'tblTempUsageDetail_20' ) end [2025-03-26 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767744', 'tblTempVendorCDR_20' ) start [2025-03-26 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767744', 'tblTempVendorCDR_20' ) end [2025-03-26 15:27:22] Production.INFO: ProcessCDR(1,14767744,1,1,2) [2025-03-26 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767744', 'tblTempUsageDetail_20' ) start [2025-03-26 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767744', 'tblTempUsageDetail_20' ) end [2025-03-26 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:27:27] Production.INFO: ==22445== Releasing lock... [2025-03-26 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:27:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:28:06 [end_date_ymd] => 2025-03-26 15:28:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:28:06' and `end` < '2025-03-26 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-26 15:28:20] Production.INFO: count ==6308 [2025-03-26 15:28:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:28:06 - End Time 2025-03-26 15:28:06 [2025-03-26 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767749', 'tblTempUsageDetail_20' ) start [2025-03-26 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767749', 'tblTempUsageDetail_20' ) end [2025-03-26 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767749', 'tblTempVendorCDR_20' ) start [2025-03-26 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767749', 'tblTempVendorCDR_20' ) end [2025-03-26 15:28:23] Production.INFO: ProcessCDR(1,14767749,1,1,2) [2025-03-26 15:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767749', 'tblTempUsageDetail_20' ) start [2025-03-26 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767749', 'tblTempUsageDetail_20' ) end [2025-03-26 15:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:28:28] Production.INFO: ==22522== Releasing lock... [2025-03-26 15:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:28:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:29:05 [end_date_ymd] => 2025-03-26 15:29:05 [RateCDR] => 1 ) [2025-03-26 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:29:05' and `end` < '2025-03-26 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:29:19] Production.INFO: count ==6329 [2025-03-26 15:29:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:29:05 - End Time 2025-03-26 15:29:05 [2025-03-26 15:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767754', 'tblTempUsageDetail_20' ) start [2025-03-26 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767754', 'tblTempUsageDetail_20' ) end [2025-03-26 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767754', 'tblTempVendorCDR_20' ) start [2025-03-26 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767754', 'tblTempVendorCDR_20' ) end [2025-03-26 15:29:22] Production.INFO: ProcessCDR(1,14767754,1,1,2) [2025-03-26 15:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767754', 'tblTempUsageDetail_20' ) start [2025-03-26 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767754', 'tblTempUsageDetail_20' ) end [2025-03-26 15:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:29:28] Production.INFO: ==22594== Releasing lock... [2025-03-26 15:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:29:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-26 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:30:06 [end_date_ymd] => 2025-03-26 15:30:06 [RateCDR] => 1 ) [2025-03-26 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:30:06' and `end` < '2025-03-26 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:30:19] Production.INFO: count ==6316 [2025-03-26 15:30:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:30:06 - End Time 2025-03-26 15:30:06 [2025-03-26 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767760', 'tblTempUsageDetail_20' ) start [2025-03-26 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767760', 'tblTempUsageDetail_20' ) end [2025-03-26 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767760', 'tblTempVendorCDR_20' ) start [2025-03-26 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767760', 'tblTempVendorCDR_20' ) end [2025-03-26 15:30:23] Production.INFO: ProcessCDR(1,14767760,1,1,2) [2025-03-26 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767760', 'tblTempUsageDetail_20' ) start [2025-03-26 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767760', 'tblTempUsageDetail_20' ) end [2025-03-26 15:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:30:28] Production.INFO: ==22671== Releasing lock... [2025-03-26 15:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:30:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:31:06 [end_date_ymd] => 2025-03-26 15:31:06 [RateCDR] => 1 ) [2025-03-26 15:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:31:06' and `end` < '2025-03-26 15:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:31:19] Production.INFO: count ==6380 [2025-03-26 15:31:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:31:06 - End Time 2025-03-26 15:31:06 [2025-03-26 15:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767765', 'tblTempUsageDetail_20' ) start [2025-03-26 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767765', 'tblTempUsageDetail_20' ) end [2025-03-26 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767765', 'tblTempVendorCDR_20' ) start [2025-03-26 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767765', 'tblTempVendorCDR_20' ) end [2025-03-26 15:31:23] Production.INFO: ProcessCDR(1,14767765,1,1,2) [2025-03-26 15:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767765', 'tblTempUsageDetail_20' ) start [2025-03-26 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767765', 'tblTempUsageDetail_20' ) end [2025-03-26 15:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:31:28] Production.INFO: ==22747== Releasing lock... [2025-03-26 15:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:31:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:32:05 [end_date_ymd] => 2025-03-26 15:32:05 [RateCDR] => 1 ) [2025-03-26 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:32:05' and `end` < '2025-03-26 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:32:19] Production.INFO: count ==6410 [2025-03-26 15:32:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:32:05 - End Time 2025-03-26 15:32:05 [2025-03-26 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767770', 'tblTempUsageDetail_20' ) start [2025-03-26 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767770', 'tblTempUsageDetail_20' ) end [2025-03-26 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767770', 'tblTempVendorCDR_20' ) start [2025-03-26 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767770', 'tblTempVendorCDR_20' ) end [2025-03-26 15:32:22] Production.INFO: ProcessCDR(1,14767770,1,1,2) [2025-03-26 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767770', 'tblTempUsageDetail_20' ) start [2025-03-26 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767770', 'tblTempUsageDetail_20' ) end [2025-03-26 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:32:28] Production.INFO: ==22823== Releasing lock... [2025-03-26 15:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:32:28] Production.INFO: 76 MB #Memory Used# [2025-03-26 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:33:06 [end_date_ymd] => 2025-03-26 15:33:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:33:06' and `end` < '2025-03-26 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-26 15:33:20] Production.INFO: count ==6399 [2025-03-26 15:33:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:33:06 - End Time 2025-03-26 15:33:06 [2025-03-26 15:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767775', 'tblTempUsageDetail_20' ) start [2025-03-26 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767775', 'tblTempUsageDetail_20' ) end [2025-03-26 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767775', 'tblTempVendorCDR_20' ) start [2025-03-26 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767775', 'tblTempVendorCDR_20' ) end [2025-03-26 15:33:23] Production.INFO: ProcessCDR(1,14767775,1,1,2) [2025-03-26 15:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767775', 'tblTempUsageDetail_20' ) start [2025-03-26 15:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767775', 'tblTempUsageDetail_20' ) end [2025-03-26 15:33:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:33:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:33:29] Production.INFO: ==22905== Releasing lock... [2025-03-26 15:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:33:29] Production.INFO: 76 MB #Memory Used# [2025-03-26 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:34:05 [end_date_ymd] => 2025-03-26 15:34:05 [RateCDR] => 1 ) [2025-03-26 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-26 12:34:05' and `end` < '2025-03-26 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-26 15:34:19] Production.INFO: count ==6379 [2025-03-26 15:34:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:34:05 - End Time 2025-03-26 15:34:05 [2025-03-26 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767780', 'tblTempUsageDetail_20' ) start [2025-03-26 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767780', 'tblTempUsageDetail_20' ) end [2025-03-26 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767780', 'tblTempVendorCDR_20' ) start [2025-03-26 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767780', 'tblTempVendorCDR_20' ) end [2025-03-26 15:34:22] Production.INFO: ProcessCDR(1,14767780,1,1,2) [2025-03-26 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767780', 'tblTempUsageDetail_20' ) start [2025-03-26 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767780', 'tblTempUsageDetail_20' ) end [2025-03-26 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:34:27] Production.INFO: ==22975== Releasing lock... [2025-03-26 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:34:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:35:05 [end_date_ymd] => 2025-03-26 15:35:05 [RateCDR] => 1 ) [2025-03-26 15:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:35:05' and `end` < '2025-03-26 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-26 15:35:19] Production.INFO: count ==6377 [2025-03-26 15:35:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:35:05 - End Time 2025-03-26 15:35:05 [2025-03-26 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767785', 'tblTempUsageDetail_20' ) start [2025-03-26 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767785', 'tblTempUsageDetail_20' ) end [2025-03-26 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767785', 'tblTempVendorCDR_20' ) start [2025-03-26 15:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767785', 'tblTempVendorCDR_20' ) end [2025-03-26 15:35:23] Production.INFO: ProcessCDR(1,14767785,1,1,2) [2025-03-26 15:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767785', 'tblTempUsageDetail_20' ) start [2025-03-26 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767785', 'tblTempUsageDetail_20' ) end [2025-03-26 15:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:35:28] Production.INFO: ==23061== Releasing lock... [2025-03-26 15:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:35:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:36:05 [end_date_ymd] => 2025-03-26 15:36:05 [RateCDR] => 1 ) [2025-03-26 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:36:05' and `end` < '2025-03-26 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:36:19] Production.INFO: count ==6384 [2025-03-26 15:36:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:36:05 - End Time 2025-03-26 15:36:05 [2025-03-26 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767790', 'tblTempUsageDetail_20' ) start [2025-03-26 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767790', 'tblTempUsageDetail_20' ) end [2025-03-26 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767790', 'tblTempVendorCDR_20' ) start [2025-03-26 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767790', 'tblTempVendorCDR_20' ) end [2025-03-26 15:36:22] Production.INFO: ProcessCDR(1,14767790,1,1,2) [2025-03-26 15:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767790', 'tblTempUsageDetail_20' ) start [2025-03-26 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767790', 'tblTempUsageDetail_20' ) end [2025-03-26 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:36:27] Production.INFO: ==23135== Releasing lock... [2025-03-26 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:36:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:37:06 [end_date_ymd] => 2025-03-26 15:37:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:37:06' and `end` < '2025-03-26 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-26 15:37:20] Production.INFO: count ==6372 [2025-03-26 15:37:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:37:06 - End Time 2025-03-26 15:37:06 [2025-03-26 15:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767795', 'tblTempUsageDetail_20' ) start [2025-03-26 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767795', 'tblTempUsageDetail_20' ) end [2025-03-26 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767795', 'tblTempVendorCDR_20' ) start [2025-03-26 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767795', 'tblTempVendorCDR_20' ) end [2025-03-26 15:37:23] Production.INFO: ProcessCDR(1,14767795,1,1,2) [2025-03-26 15:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767795', 'tblTempUsageDetail_20' ) start [2025-03-26 15:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767795', 'tblTempUsageDetail_20' ) end [2025-03-26 15:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:37:28] Production.INFO: ==23209== Releasing lock... [2025-03-26 15:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:37:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:38:05 [end_date_ymd] => 2025-03-26 15:38:05 [RateCDR] => 1 ) [2025-03-26 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:38:05' and `end` < '2025-03-26 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:38:19] Production.INFO: count ==6384 [2025-03-26 15:38:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:38:05 - End Time 2025-03-26 15:38:05 [2025-03-26 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767800', 'tblTempUsageDetail_20' ) start [2025-03-26 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767800', 'tblTempUsageDetail_20' ) end [2025-03-26 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767800', 'tblTempVendorCDR_20' ) start [2025-03-26 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767800', 'tblTempVendorCDR_20' ) end [2025-03-26 15:38:22] Production.INFO: ProcessCDR(1,14767800,1,1,2) [2025-03-26 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767800', 'tblTempUsageDetail_20' ) start [2025-03-26 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767800', 'tblTempUsageDetail_20' ) end [2025-03-26 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:38:27] Production.INFO: ==23284== Releasing lock... [2025-03-26 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:38:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:39:06 [end_date_ymd] => 2025-03-26 15:39:06 [RateCDR] => 1 ) [2025-03-26 15: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-26 12:39:06' and `end` < '2025-03-26 15: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-26 15:39:20] Production.INFO: count ==6381 [2025-03-26 15:39:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:39:06 - End Time 2025-03-26 15:39:06 [2025-03-26 15:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767805', 'tblTempUsageDetail_20' ) start [2025-03-26 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767805', 'tblTempUsageDetail_20' ) end [2025-03-26 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767805', 'tblTempVendorCDR_20' ) start [2025-03-26 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767805', 'tblTempVendorCDR_20' ) end [2025-03-26 15:39:23] Production.INFO: ProcessCDR(1,14767805,1,1,2) [2025-03-26 15:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767805', 'tblTempUsageDetail_20' ) start [2025-03-26 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767805', 'tblTempUsageDetail_20' ) end [2025-03-26 15:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:39:28] Production.INFO: ==23363== Releasing lock... [2025-03-26 15:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:39:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:40:05 [end_date_ymd] => 2025-03-26 15:40:05 [RateCDR] => 1 ) [2025-03-26 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:40:05' and `end` < '2025-03-26 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:40:19] Production.INFO: count ==6382 [2025-03-26 15:40:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:40:05 - End Time 2025-03-26 15:40:05 [2025-03-26 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767810', 'tblTempUsageDetail_20' ) start [2025-03-26 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767810', 'tblTempUsageDetail_20' ) end [2025-03-26 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767810', 'tblTempVendorCDR_20' ) start [2025-03-26 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767810', 'tblTempVendorCDR_20' ) end [2025-03-26 15:40:23] Production.INFO: ProcessCDR(1,14767810,1,1,2) [2025-03-26 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767810', 'tblTempUsageDetail_20' ) start [2025-03-26 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767810', 'tblTempUsageDetail_20' ) end [2025-03-26 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:40:28] Production.INFO: ==23437== Releasing lock... [2025-03-26 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:40:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:41:05 [end_date_ymd] => 2025-03-26 15:41:05 [RateCDR] => 1 ) [2025-03-26 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-26 12:41:05' and `end` < '2025-03-26 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-26 15:41:19] Production.INFO: count ==6372 [2025-03-26 15:41:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:41:05 - End Time 2025-03-26 15:41:05 [2025-03-26 15:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767816', 'tblTempUsageDetail_20' ) start [2025-03-26 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767816', 'tblTempUsageDetail_20' ) end [2025-03-26 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767816', 'tblTempVendorCDR_20' ) start [2025-03-26 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767816', 'tblTempVendorCDR_20' ) end [2025-03-26 15:41:22] Production.INFO: ProcessCDR(1,14767816,1,1,2) [2025-03-26 15:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767816', 'tblTempUsageDetail_20' ) start [2025-03-26 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767816', 'tblTempUsageDetail_20' ) end [2025-03-26 15:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:41:27] Production.INFO: ==23551== Releasing lock... [2025-03-26 15:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:41:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:42:06 [end_date_ymd] => 2025-03-26 15:42:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:42:06' and `end` < '2025-03-26 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-26 15:42:19] Production.INFO: count ==6338 [2025-03-26 15:42:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:42:06 - End Time 2025-03-26 15:42:06 [2025-03-26 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767821', 'tblTempUsageDetail_20' ) start [2025-03-26 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767821', 'tblTempUsageDetail_20' ) end [2025-03-26 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767821', 'tblTempVendorCDR_20' ) start [2025-03-26 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767821', 'tblTempVendorCDR_20' ) end [2025-03-26 15:42:22] Production.INFO: ProcessCDR(1,14767821,1,1,2) [2025-03-26 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767821', 'tblTempUsageDetail_20' ) start [2025-03-26 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767821', 'tblTempUsageDetail_20' ) end [2025-03-26 15:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:42:28] Production.INFO: ==23625== Releasing lock... [2025-03-26 15:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:42:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-26 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:43:05 [end_date_ymd] => 2025-03-26 15:43:05 [RateCDR] => 1 ) [2025-03-26 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-26 12:43:05' and `end` < '2025-03-26 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-26 15:43:19] Production.INFO: count ==6321 [2025-03-26 15:43:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:43:05 - End Time 2025-03-26 15:43:05 [2025-03-26 15:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767826', 'tblTempUsageDetail_20' ) start [2025-03-26 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767826', 'tblTempUsageDetail_20' ) end [2025-03-26 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767826', 'tblTempVendorCDR_20' ) start [2025-03-26 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767826', 'tblTempVendorCDR_20' ) end [2025-03-26 15:43:23] Production.INFO: ProcessCDR(1,14767826,1,1,2) [2025-03-26 15:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767826', 'tblTempUsageDetail_20' ) start [2025-03-26 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767826', 'tblTempUsageDetail_20' ) end [2025-03-26 15:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:43:28] Production.INFO: ==23700== Releasing lock... [2025-03-26 15:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:43:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:44:05 [end_date_ymd] => 2025-03-26 15:44:05 [RateCDR] => 1 ) [2025-03-26 15: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-26 12:44:05' and `end` < '2025-03-26 15: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-26 15:44:19] Production.INFO: count ==6321 [2025-03-26 15:44:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:44:05 - End Time 2025-03-26 15:44:05 [2025-03-26 15:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767831', 'tblTempUsageDetail_20' ) start [2025-03-26 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767831', 'tblTempUsageDetail_20' ) end [2025-03-26 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767831', 'tblTempVendorCDR_20' ) start [2025-03-26 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767831', 'tblTempVendorCDR_20' ) end [2025-03-26 15:44:22] Production.INFO: ProcessCDR(1,14767831,1,1,2) [2025-03-26 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767831', 'tblTempUsageDetail_20' ) start [2025-03-26 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767831', 'tblTempUsageDetail_20' ) end [2025-03-26 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:44:27] Production.INFO: ==23775== Releasing lock... [2025-03-26 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:44:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:45:06 [end_date_ymd] => 2025-03-26 15:45:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:45:06' and `end` < '2025-03-26 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-26 15:45:20] Production.INFO: count ==6319 [2025-03-26 15:45:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:45:06 - End Time 2025-03-26 15:45:06 [2025-03-26 15:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767836', 'tblTempUsageDetail_20' ) start [2025-03-26 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767836', 'tblTempUsageDetail_20' ) end [2025-03-26 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767836', 'tblTempVendorCDR_20' ) start [2025-03-26 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767836', 'tblTempVendorCDR_20' ) end [2025-03-26 15:45:23] Production.INFO: ProcessCDR(1,14767836,1,1,2) [2025-03-26 15:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767836', 'tblTempUsageDetail_20' ) start [2025-03-26 15:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767836', 'tblTempUsageDetail_20' ) end [2025-03-26 15:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:45:28] Production.INFO: ==23847== Releasing lock... [2025-03-26 15:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:45:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:46:06 [end_date_ymd] => 2025-03-26 15:46:06 [RateCDR] => 1 ) [2025-03-26 15:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:46:06' and `end` < '2025-03-26 15:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:46:20] Production.INFO: count ==6334 [2025-03-26 15:46:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:46:06 - End Time 2025-03-26 15:46:06 [2025-03-26 15:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767841', 'tblTempUsageDetail_20' ) start [2025-03-26 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767841', 'tblTempUsageDetail_20' ) end [2025-03-26 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767841', 'tblTempVendorCDR_20' ) start [2025-03-26 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767841', 'tblTempVendorCDR_20' ) end [2025-03-26 15:46:23] Production.INFO: ProcessCDR(1,14767841,1,1,2) [2025-03-26 15:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767841', 'tblTempUsageDetail_20' ) start [2025-03-26 15:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767841', 'tblTempUsageDetail_20' ) end [2025-03-26 15:46:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:46:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:46:29] Production.INFO: ==23920== Releasing lock... [2025-03-26 15:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:46:29] Production.INFO: 75.5 MB #Memory Used# [2025-03-26 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:47:05 [end_date_ymd] => 2025-03-26 15:47:05 [RateCDR] => 1 ) [2025-03-26 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-26 12:47:05' and `end` < '2025-03-26 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-26 15:47:19] Production.INFO: count ==6319 [2025-03-26 15:47:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:47:05 - End Time 2025-03-26 15:47:05 [2025-03-26 15:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767846', 'tblTempUsageDetail_20' ) start [2025-03-26 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767846', 'tblTempUsageDetail_20' ) end [2025-03-26 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767846', 'tblTempVendorCDR_20' ) start [2025-03-26 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767846', 'tblTempVendorCDR_20' ) end [2025-03-26 15:47:22] Production.INFO: ProcessCDR(1,14767846,1,1,2) [2025-03-26 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767846', 'tblTempUsageDetail_20' ) start [2025-03-26 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767846', 'tblTempUsageDetail_20' ) end [2025-03-26 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:47:27] Production.INFO: ==23993== Releasing lock... [2025-03-26 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:47:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:48:05 [end_date_ymd] => 2025-03-26 15:48:05 [RateCDR] => 1 ) [2025-03-26 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-26 12:48:05' and `end` < '2025-03-26 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-26 15:48:20] Production.INFO: count ==6306 [2025-03-26 15:48:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:48:05 - End Time 2025-03-26 15:48:05 [2025-03-26 15:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767851', 'tblTempUsageDetail_20' ) start [2025-03-26 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767851', 'tblTempUsageDetail_20' ) end [2025-03-26 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767851', 'tblTempVendorCDR_20' ) start [2025-03-26 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767851', 'tblTempVendorCDR_20' ) end [2025-03-26 15:48:23] Production.INFO: ProcessCDR(1,14767851,1,1,2) [2025-03-26 15:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767851', 'tblTempUsageDetail_20' ) start [2025-03-26 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767851', 'tblTempUsageDetail_20' ) end [2025-03-26 15:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:48:28] Production.INFO: ==24067== Releasing lock... [2025-03-26 15:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:48:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:49:06 [end_date_ymd] => 2025-03-26 15:49:06 [RateCDR] => 1 ) [2025-03-26 15: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-26 12:49:06' and `end` < '2025-03-26 15: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-26 15:49:20] Production.INFO: count ==6304 [2025-03-26 15:49:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:49:06 - End Time 2025-03-26 15:49:06 [2025-03-26 15:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767856', 'tblTempUsageDetail_20' ) start [2025-03-26 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767856', 'tblTempUsageDetail_20' ) end [2025-03-26 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767856', 'tblTempVendorCDR_20' ) start [2025-03-26 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767856', 'tblTempVendorCDR_20' ) end [2025-03-26 15:49:23] Production.INFO: ProcessCDR(1,14767856,1,1,2) [2025-03-26 15:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767856', 'tblTempUsageDetail_20' ) start [2025-03-26 15:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767856', 'tblTempUsageDetail_20' ) end [2025-03-26 15:49:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:49:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:49:29] Production.INFO: ==24141== Releasing lock... [2025-03-26 15:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:49:29] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:50:06 [end_date_ymd] => 2025-03-26 15:50:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:50:06' and `end` < '2025-03-26 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-26 15:50:20] Production.INFO: count ==6270 [2025-03-26 15:50:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:50:06 - End Time 2025-03-26 15:50:06 [2025-03-26 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767861', 'tblTempUsageDetail_20' ) start [2025-03-26 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767861', 'tblTempUsageDetail_20' ) end [2025-03-26 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767861', 'tblTempVendorCDR_20' ) start [2025-03-26 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767861', 'tblTempVendorCDR_20' ) end [2025-03-26 15:50:23] Production.INFO: ProcessCDR(1,14767861,1,1,2) [2025-03-26 15:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767861', 'tblTempUsageDetail_20' ) start [2025-03-26 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767861', 'tblTempUsageDetail_20' ) end [2025-03-26 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:50:28] Production.INFO: ==24218== Releasing lock... [2025-03-26 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:50:28] Production.INFO: 75 MB #Memory Used# [2025-03-26 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:51:06 [end_date_ymd] => 2025-03-26 15:51:06 [RateCDR] => 1 ) [2025-03-26 15: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-26 12:51:06' and `end` < '2025-03-26 15: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-26 15:51:20] Production.INFO: count ==6276 [2025-03-26 15:51:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:51:06 - End Time 2025-03-26 15:51:06 [2025-03-26 15:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767867', 'tblTempUsageDetail_20' ) start [2025-03-26 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767867', 'tblTempUsageDetail_20' ) end [2025-03-26 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767867', 'tblTempVendorCDR_20' ) start [2025-03-26 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767867', 'tblTempVendorCDR_20' ) end [2025-03-26 15:51:23] Production.INFO: ProcessCDR(1,14767867,1,1,2) [2025-03-26 15:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767867', 'tblTempUsageDetail_20' ) start [2025-03-26 15:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767867', 'tblTempUsageDetail_20' ) end [2025-03-26 15:51:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:51:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:51:29] Production.INFO: ==24293== Releasing lock... [2025-03-26 15:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:51:29] Production.INFO: 75 MB #Memory Used# [2025-03-26 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:52:05 [end_date_ymd] => 2025-03-26 15:52:05 [RateCDR] => 1 ) [2025-03-26 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-26 12:52:05' and `end` < '2025-03-26 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-26 15:52:19] Production.INFO: count ==6287 [2025-03-26 15:52:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:52:05 - End Time 2025-03-26 15:52:05 [2025-03-26 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767872', 'tblTempUsageDetail_20' ) start [2025-03-26 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767872', 'tblTempUsageDetail_20' ) end [2025-03-26 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767872', 'tblTempVendorCDR_20' ) start [2025-03-26 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767872', 'tblTempVendorCDR_20' ) end [2025-03-26 15:52:22] Production.INFO: ProcessCDR(1,14767872,1,1,2) [2025-03-26 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767872', 'tblTempUsageDetail_20' ) start [2025-03-26 15:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767872', 'tblTempUsageDetail_20' ) end [2025-03-26 15:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:52:28] Production.INFO: ==24369== Releasing lock... [2025-03-26 15:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:52:28] Production.INFO: 75 MB #Memory Used# [2025-03-26 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:53:06 [end_date_ymd] => 2025-03-26 15:53:06 [RateCDR] => 1 ) [2025-03-26 15: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-26 12:53:06' and `end` < '2025-03-26 15: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-26 15:53:20] Production.INFO: count ==6279 [2025-03-26 15:53:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:53:06 - End Time 2025-03-26 15:53:06 [2025-03-26 15:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767877', 'tblTempUsageDetail_20' ) start [2025-03-26 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767877', 'tblTempUsageDetail_20' ) end [2025-03-26 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767877', 'tblTempVendorCDR_20' ) start [2025-03-26 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767877', 'tblTempVendorCDR_20' ) end [2025-03-26 15:53:23] Production.INFO: ProcessCDR(1,14767877,1,1,2) [2025-03-26 15:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767877', 'tblTempUsageDetail_20' ) start [2025-03-26 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767877', 'tblTempUsageDetail_20' ) end [2025-03-26 15:53:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:53:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:53:28] Production.INFO: ==24447== Releasing lock... [2025-03-26 15:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:53:28] Production.INFO: 75 MB #Memory Used# [2025-03-26 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:54:05 [end_date_ymd] => 2025-03-26 15:54:05 [RateCDR] => 1 ) [2025-03-26 15: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-26 12:54:05' and `end` < '2025-03-26 15: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-26 15:54:19] Production.INFO: count ==6268 [2025-03-26 15:54:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:54:05 - End Time 2025-03-26 15:54:05 [2025-03-26 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767882', 'tblTempUsageDetail_20' ) start [2025-03-26 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767882', 'tblTempUsageDetail_20' ) end [2025-03-26 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767882', 'tblTempVendorCDR_20' ) start [2025-03-26 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767882', 'tblTempVendorCDR_20' ) end [2025-03-26 15:54:22] Production.INFO: ProcessCDR(1,14767882,1,1,2) [2025-03-26 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767882', 'tblTempUsageDetail_20' ) start [2025-03-26 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767882', 'tblTempUsageDetail_20' ) end [2025-03-26 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:54:27] Production.INFO: ==24518== Releasing lock... [2025-03-26 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:54:27] Production.INFO: 75 MB #Memory Used# [2025-03-26 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:55:06 [end_date_ymd] => 2025-03-26 15:55:06 [RateCDR] => 1 ) [2025-03-26 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-26 12:55:06' and `end` < '2025-03-26 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-26 15:55:20] Production.INFO: count ==6260 [2025-03-26 15:55:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:55:06 - End Time 2025-03-26 15:55:06 [2025-03-26 15:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767887', 'tblTempUsageDetail_20' ) start [2025-03-26 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767887', 'tblTempUsageDetail_20' ) end [2025-03-26 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767887', 'tblTempVendorCDR_20' ) start [2025-03-26 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767887', 'tblTempVendorCDR_20' ) end [2025-03-26 15:55:23] Production.INFO: ProcessCDR(1,14767887,1,1,2) [2025-03-26 15:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767887', 'tblTempUsageDetail_20' ) start [2025-03-26 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767887', 'tblTempUsageDetail_20' ) end [2025-03-26 15:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:55:28] Production.INFO: ==24591== Releasing lock... [2025-03-26 15:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:55:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:56:05 [end_date_ymd] => 2025-03-26 15:56:05 [RateCDR] => 1 ) [2025-03-26 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:56:05' and `end` < '2025-03-26 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:56:20] Production.INFO: count ==6256 [2025-03-26 15:56:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:56:05 - End Time 2025-03-26 15:56:05 [2025-03-26 15:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767892', 'tblTempUsageDetail_20' ) start [2025-03-26 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767892', 'tblTempUsageDetail_20' ) end [2025-03-26 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767892', 'tblTempVendorCDR_20' ) start [2025-03-26 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767892', 'tblTempVendorCDR_20' ) end [2025-03-26 15:56:23] Production.INFO: ProcessCDR(1,14767892,1,1,2) [2025-03-26 15:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767892', 'tblTempUsageDetail_20' ) start [2025-03-26 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767892', 'tblTempUsageDetail_20' ) end [2025-03-26 15:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:56:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:56:29] Production.INFO: ==24664== Releasing lock... [2025-03-26 15:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:56:29] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:57:06 [end_date_ymd] => 2025-03-26 15:57:06 [RateCDR] => 1 ) [2025-03-26 15:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 12:57:06' and `end` < '2025-03-26 15:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 15:57:20] Production.INFO: count ==6228 [2025-03-26 15:57:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:57:06 - End Time 2025-03-26 15:57:06 [2025-03-26 15:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767897', 'tblTempUsageDetail_20' ) start [2025-03-26 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767897', 'tblTempUsageDetail_20' ) end [2025-03-26 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767897', 'tblTempVendorCDR_20' ) start [2025-03-26 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767897', 'tblTempVendorCDR_20' ) end [2025-03-26 15:57:23] Production.INFO: ProcessCDR(1,14767897,1,1,2) [2025-03-26 15:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767897', 'tblTempUsageDetail_20' ) start [2025-03-26 15:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767897', 'tblTempUsageDetail_20' ) end [2025-03-26 15:57:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:57:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:57:29] Production.INFO: ==24774== Releasing lock... [2025-03-26 15:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:57:29] Production.INFO: 74.5 MB #Memory Used# [2025-03-26 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:58:05 [end_date_ymd] => 2025-03-26 15:58:05 [RateCDR] => 1 ) [2025-03-26 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-26 12:58:05' and `end` < '2025-03-26 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-26 15:58:19] Production.INFO: count ==6231 [2025-03-26 15:58:22] Production.ERROR: pbx CDR StartTime 2025-03-26 12:58:05 - End Time 2025-03-26 15:58:05 [2025-03-26 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767902', 'tblTempUsageDetail_20' ) start [2025-03-26 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767902', 'tblTempUsageDetail_20' ) end [2025-03-26 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767902', 'tblTempVendorCDR_20' ) start [2025-03-26 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767902', 'tblTempVendorCDR_20' ) end [2025-03-26 15:58:23] Production.INFO: ProcessCDR(1,14767902,1,1,2) [2025-03-26 15:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767902', 'tblTempUsageDetail_20' ) start [2025-03-26 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767902', 'tblTempUsageDetail_20' ) end [2025-03-26 15:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:58:28] Production.INFO: ==24845== Releasing lock... [2025-03-26 15:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:58:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 12:59:06 [end_date_ymd] => 2025-03-26 15:59:06 [RateCDR] => 1 ) [2025-03-26 15: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-26 12:59:06' and `end` < '2025-03-26 15: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-26 15:59:20] Production.INFO: count ==6209 [2025-03-26 15:59:23] Production.ERROR: pbx CDR StartTime 2025-03-26 12:59:06 - End Time 2025-03-26 15:59:06 [2025-03-26 15:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767907', 'tblTempUsageDetail_20' ) start [2025-03-26 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767907', 'tblTempUsageDetail_20' ) end [2025-03-26 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767907', 'tblTempVendorCDR_20' ) start [2025-03-26 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767907', 'tblTempVendorCDR_20' ) end [2025-03-26 15:59:23] Production.INFO: ProcessCDR(1,14767907,1,1,2) [2025-03-26 15:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 15:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767907', 'tblTempUsageDetail_20' ) start [2025-03-26 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767907', 'tblTempUsageDetail_20' ) end [2025-03-26 15:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 15:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 15:59:28] Production.INFO: ==24915== Releasing lock... [2025-03-26 15:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 15:59:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-26 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:00:06 [end_date_ymd] => 2025-03-26 16:00:06 [RateCDR] => 1 ) [2025-03-26 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:00:06' and `end` < '2025-03-26 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:00:20] Production.INFO: count ==6243 [2025-03-26 16:00:23] Production.ERROR: pbx CDR StartTime 2025-03-26 13:00:06 - End Time 2025-03-26 16:00:06 [2025-03-26 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767913', 'tblTempUsageDetail_20' ) start [2025-03-26 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767913', 'tblTempUsageDetail_20' ) end [2025-03-26 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767913', 'tblTempVendorCDR_20' ) start [2025-03-26 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767913', 'tblTempVendorCDR_20' ) end [2025-03-26 16:00:23] Production.INFO: ProcessCDR(1,14767913,1,1,2) [2025-03-26 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767913', 'tblTempUsageDetail_20' ) start [2025-03-26 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767913', 'tblTempUsageDetail_20' ) end [2025-03-26 16:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:00:29] Production.INFO: ==24989== Releasing lock... [2025-03-26 16:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:00:29] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:01:06 [end_date_ymd] => 2025-03-26 16:01:06 [RateCDR] => 1 ) [2025-03-26 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-26 13:01:06' and `end` < '2025-03-26 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-26 16:01:20] Production.INFO: count ==6249 [2025-03-26 16:01:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:01:06 - End Time 2025-03-26 16:01:06 [2025-03-26 16:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767918', 'tblTempUsageDetail_20' ) start [2025-03-26 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767918', 'tblTempUsageDetail_20' ) end [2025-03-26 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767918', 'tblTempVendorCDR_20' ) start [2025-03-26 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767918', 'tblTempVendorCDR_20' ) end [2025-03-26 16:01:22] Production.INFO: ProcessCDR(1,14767918,1,1,2) [2025-03-26 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767918', 'tblTempUsageDetail_20' ) start [2025-03-26 16:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767918', 'tblTempUsageDetail_20' ) end [2025-03-26 16:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:01:28] Production.INFO: ==25074== Releasing lock... [2025-03-26 16:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:01:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:02:06 [end_date_ymd] => 2025-03-26 16:02:06 [RateCDR] => 1 ) [2025-03-26 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-26 13:02:06' and `end` < '2025-03-26 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-26 16:02:20] Production.INFO: count ==6275 [2025-03-26 16:02:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:02:06 - End Time 2025-03-26 16:02:06 [2025-03-26 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767923', 'tblTempUsageDetail_20' ) start [2025-03-26 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767923', 'tblTempUsageDetail_20' ) end [2025-03-26 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767923', 'tblTempVendorCDR_20' ) start [2025-03-26 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767923', 'tblTempVendorCDR_20' ) end [2025-03-26 16:02:23] Production.INFO: ProcessCDR(1,14767923,1,1,2) [2025-03-26 16:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767923', 'tblTempUsageDetail_20' ) start [2025-03-26 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767923', 'tblTempUsageDetail_20' ) end [2025-03-26 16:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:02:28] Production.INFO: ==25145== Releasing lock... [2025-03-26 16:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:02:28] Production.INFO: 75 MB #Memory Used# [2025-03-26 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:03:06 [end_date_ymd] => 2025-03-26 16:03:06 [RateCDR] => 1 ) [2025-03-26 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-26 13:03:06' and `end` < '2025-03-26 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-26 16:03:19] Production.INFO: count ==6292 [2025-03-26 16:03:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:03:06 - End Time 2025-03-26 16:03:06 [2025-03-26 16:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767928', 'tblTempUsageDetail_20' ) start [2025-03-26 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767928', 'tblTempUsageDetail_20' ) end [2025-03-26 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767928', 'tblTempVendorCDR_20' ) start [2025-03-26 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767928', 'tblTempVendorCDR_20' ) end [2025-03-26 16:03:22] Production.INFO: ProcessCDR(1,14767928,1,1,2) [2025-03-26 16:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767928', 'tblTempUsageDetail_20' ) start [2025-03-26 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767928', 'tblTempUsageDetail_20' ) end [2025-03-26 16:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:03:28] Production.INFO: ==25215== Releasing lock... [2025-03-26 16:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:03:28] Production.INFO: 75 MB #Memory Used# [2025-03-26 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:04:05 [end_date_ymd] => 2025-03-26 16:04:05 [RateCDR] => 1 ) [2025-03-26 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:04:05' and `end` < '2025-03-26 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:04:19] Production.INFO: count ==6316 [2025-03-26 16:04:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:04:05 - End Time 2025-03-26 16:04:05 [2025-03-26 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767933', 'tblTempUsageDetail_20' ) start [2025-03-26 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767933', 'tblTempUsageDetail_20' ) end [2025-03-26 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767933', 'tblTempVendorCDR_20' ) start [2025-03-26 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767933', 'tblTempVendorCDR_20' ) end [2025-03-26 16:04:22] Production.INFO: ProcessCDR(1,14767933,1,1,2) [2025-03-26 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767933', 'tblTempUsageDetail_20' ) start [2025-03-26 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767933', 'tblTempUsageDetail_20' ) end [2025-03-26 16:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:04:28] Production.INFO: ==25287== Releasing lock... [2025-03-26 16:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:04:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:05:06 [end_date_ymd] => 2025-03-26 16:05:06 [RateCDR] => 1 ) [2025-03-26 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-26 13:05:06' and `end` < '2025-03-26 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-26 16:05:20] Production.INFO: count ==6309 [2025-03-26 16:05:23] Production.ERROR: pbx CDR StartTime 2025-03-26 13:05:06 - End Time 2025-03-26 16:05:06 [2025-03-26 16:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767938', 'tblTempUsageDetail_20' ) start [2025-03-26 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767938', 'tblTempUsageDetail_20' ) end [2025-03-26 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767938', 'tblTempVendorCDR_20' ) start [2025-03-26 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767938', 'tblTempVendorCDR_20' ) end [2025-03-26 16:05:23] Production.INFO: ProcessCDR(1,14767938,1,1,2) [2025-03-26 16:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767938', 'tblTempUsageDetail_20' ) start [2025-03-26 16:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767938', 'tblTempUsageDetail_20' ) end [2025-03-26 16:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:05:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:05:29] Production.INFO: ==25358== Releasing lock... [2025-03-26 16:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:05:29] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:06:05 [end_date_ymd] => 2025-03-26 16:06:05 [RateCDR] => 1 ) [2025-03-26 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:06:05' and `end` < '2025-03-26 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:06:19] Production.INFO: count ==6300 [2025-03-26 16:06:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:06:05 - End Time 2025-03-26 16:06:05 [2025-03-26 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767943', 'tblTempUsageDetail_20' ) start [2025-03-26 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767943', 'tblTempUsageDetail_20' ) end [2025-03-26 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767943', 'tblTempVendorCDR_20' ) start [2025-03-26 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767943', 'tblTempVendorCDR_20' ) end [2025-03-26 16:06:22] Production.INFO: ProcessCDR(1,14767943,1,1,2) [2025-03-26 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767943', 'tblTempUsageDetail_20' ) start [2025-03-26 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767943', 'tblTempUsageDetail_20' ) end [2025-03-26 16:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:06:28] Production.INFO: ==25431== Releasing lock... [2025-03-26 16:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:06:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:07:06 [end_date_ymd] => 2025-03-26 16:07:06 [RateCDR] => 1 ) [2025-03-26 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-26 13:07:06' and `end` < '2025-03-26 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-26 16:07:20] Production.INFO: count ==6328 [2025-03-26 16:07:23] Production.ERROR: pbx CDR StartTime 2025-03-26 13:07:06 - End Time 2025-03-26 16:07:06 [2025-03-26 16:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767948', 'tblTempUsageDetail_20' ) start [2025-03-26 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767948', 'tblTempUsageDetail_20' ) end [2025-03-26 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767948', 'tblTempVendorCDR_20' ) start [2025-03-26 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767948', 'tblTempVendorCDR_20' ) end [2025-03-26 16:07:23] Production.INFO: ProcessCDR(1,14767948,1,1,2) [2025-03-26 16:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767948', 'tblTempUsageDetail_20' ) start [2025-03-26 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767948', 'tblTempUsageDetail_20' ) end [2025-03-26 16:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:07:28] Production.INFO: ==25507== Releasing lock... [2025-03-26 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:07:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-26 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:08:05 [end_date_ymd] => 2025-03-26 16:08:05 [RateCDR] => 1 ) [2025-03-26 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-26 13:08:05' and `end` < '2025-03-26 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-26 16:08:19] Production.INFO: count ==6324 [2025-03-26 16:08:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:08:05 - End Time 2025-03-26 16:08:05 [2025-03-26 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767953', 'tblTempUsageDetail_20' ) start [2025-03-26 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767953', 'tblTempUsageDetail_20' ) end [2025-03-26 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767953', 'tblTempVendorCDR_20' ) start [2025-03-26 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767953', 'tblTempVendorCDR_20' ) end [2025-03-26 16:08:22] Production.INFO: ProcessCDR(1,14767953,1,1,2) [2025-03-26 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767953', 'tblTempUsageDetail_20' ) start [2025-03-26 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767953', 'tblTempUsageDetail_20' ) end [2025-03-26 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:08:26] Production.INFO: ==25585== Releasing lock... [2025-03-26 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:08:26] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:09:06 [end_date_ymd] => 2025-03-26 16:09:06 [RateCDR] => 1 ) [2025-03-26 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-26 13:09:06' and `end` < '2025-03-26 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-26 16:09:20] Production.INFO: count ==6347 [2025-03-26 16:09:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:09:06 - End Time 2025-03-26 16:09:06 [2025-03-26 16:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767958', 'tblTempUsageDetail_20' ) start [2025-03-26 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767958', 'tblTempUsageDetail_20' ) end [2025-03-26 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767958', 'tblTempVendorCDR_20' ) start [2025-03-26 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767958', 'tblTempVendorCDR_20' ) end [2025-03-26 16:09:23] Production.INFO: ProcessCDR(1,14767958,1,1,2) [2025-03-26 16:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767958', 'tblTempUsageDetail_20' ) start [2025-03-26 16:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767958', 'tblTempUsageDetail_20' ) end [2025-03-26 16:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:09:28] Production.INFO: ==25658== Releasing lock... [2025-03-26 16:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:09:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-26 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:10:06 [end_date_ymd] => 2025-03-26 16:10:06 [RateCDR] => 1 ) [2025-03-26 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:10:06' and `end` < '2025-03-26 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:10:20] Production.INFO: count ==6347 [2025-03-26 16:10:23] Production.ERROR: pbx CDR StartTime 2025-03-26 13:10:06 - End Time 2025-03-26 16:10:06 [2025-03-26 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767964', 'tblTempUsageDetail_20' ) start [2025-03-26 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767964', 'tblTempUsageDetail_20' ) end [2025-03-26 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767964', 'tblTempVendorCDR_20' ) start [2025-03-26 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767964', 'tblTempVendorCDR_20' ) end [2025-03-26 16:10:23] Production.INFO: ProcessCDR(1,14767964,1,1,2) [2025-03-26 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767964', 'tblTempUsageDetail_20' ) start [2025-03-26 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767964', 'tblTempUsageDetail_20' ) end [2025-03-26 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:10:28] Production.INFO: ==25732== Releasing lock... [2025-03-26 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:10:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-26 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:11:06 [end_date_ymd] => 2025-03-26 16:11:06 [RateCDR] => 1 ) [2025-03-26 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-26 13:11:06' and `end` < '2025-03-26 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-26 16:11:20] Production.INFO: count ==6373 [2025-03-26 16:11:23] Production.ERROR: pbx CDR StartTime 2025-03-26 13:11:06 - End Time 2025-03-26 16:11:06 [2025-03-26 16:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767969', 'tblTempUsageDetail_20' ) start [2025-03-26 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767969', 'tblTempUsageDetail_20' ) end [2025-03-26 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767969', 'tblTempVendorCDR_20' ) start [2025-03-26 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767969', 'tblTempVendorCDR_20' ) end [2025-03-26 16:11:23] Production.INFO: ProcessCDR(1,14767969,1,1,2) [2025-03-26 16:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767969', 'tblTempUsageDetail_20' ) start [2025-03-26 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767969', 'tblTempUsageDetail_20' ) end [2025-03-26 16:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:11:28] Production.INFO: ==25805== Releasing lock... [2025-03-26 16:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:11:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:12:05 [end_date_ymd] => 2025-03-26 16:12:05 [RateCDR] => 1 ) [2025-03-26 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:12:05' and `end` < '2025-03-26 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:12:19] Production.INFO: count ==6375 [2025-03-26 16:12:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:12:05 - End Time 2025-03-26 16:12:05 [2025-03-26 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767974', 'tblTempUsageDetail_20' ) start [2025-03-26 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767974', 'tblTempUsageDetail_20' ) end [2025-03-26 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767974', 'tblTempVendorCDR_20' ) start [2025-03-26 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767974', 'tblTempVendorCDR_20' ) end [2025-03-26 16:12:22] Production.INFO: ProcessCDR(1,14767974,1,1,2) [2025-03-26 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767974', 'tblTempUsageDetail_20' ) start [2025-03-26 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767974', 'tblTempUsageDetail_20' ) end [2025-03-26 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:12:27] Production.INFO: ==25921== Releasing lock... [2025-03-26 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:12:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:13:05 [end_date_ymd] => 2025-03-26 16:13:05 [RateCDR] => 1 ) [2025-03-26 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:13:05' and `end` < '2025-03-26 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:13:19] Production.INFO: count ==6367 [2025-03-26 16:13:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:13:05 - End Time 2025-03-26 16:13:05 [2025-03-26 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767979', 'tblTempUsageDetail_20' ) start [2025-03-26 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767979', 'tblTempUsageDetail_20' ) end [2025-03-26 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767979', 'tblTempVendorCDR_20' ) start [2025-03-26 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767979', 'tblTempVendorCDR_20' ) end [2025-03-26 16:13:22] Production.INFO: ProcessCDR(1,14767979,1,1,2) [2025-03-26 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767979', 'tblTempUsageDetail_20' ) start [2025-03-26 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767979', 'tblTempUsageDetail_20' ) end [2025-03-26 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:13:28] Production.INFO: ==25991== Releasing lock... [2025-03-26 16:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:13:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:14:05 [end_date_ymd] => 2025-03-26 16:14:05 [RateCDR] => 1 ) [2025-03-26 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-26 13:14:05' and `end` < '2025-03-26 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-26 16:14:19] Production.INFO: count ==6384 [2025-03-26 16:14:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:14:05 - End Time 2025-03-26 16:14:05 [2025-03-26 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767984', 'tblTempUsageDetail_20' ) start [2025-03-26 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767984', 'tblTempUsageDetail_20' ) end [2025-03-26 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767984', 'tblTempVendorCDR_20' ) start [2025-03-26 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767984', 'tblTempVendorCDR_20' ) end [2025-03-26 16:14:22] Production.INFO: ProcessCDR(1,14767984,1,1,2) [2025-03-26 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767984', 'tblTempUsageDetail_20' ) start [2025-03-26 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767984', 'tblTempUsageDetail_20' ) end [2025-03-26 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:14:28] Production.INFO: ==26066== Releasing lock... [2025-03-26 16:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:14:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:15:06 [end_date_ymd] => 2025-03-26 16:15:06 [RateCDR] => 1 ) [2025-03-26 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-26 13:15:06' and `end` < '2025-03-26 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-26 16:15:19] Production.INFO: count ==6371 [2025-03-26 16:15:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:15:06 - End Time 2025-03-26 16:15:06 [2025-03-26 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767989', 'tblTempUsageDetail_20' ) start [2025-03-26 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767989', 'tblTempUsageDetail_20' ) end [2025-03-26 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767989', 'tblTempVendorCDR_20' ) start [2025-03-26 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767989', 'tblTempVendorCDR_20' ) end [2025-03-26 16:15:22] Production.INFO: ProcessCDR(1,14767989,1,1,2) [2025-03-26 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767989', 'tblTempUsageDetail_20' ) start [2025-03-26 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767989', 'tblTempUsageDetail_20' ) end [2025-03-26 16:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:15:27] Production.INFO: ==26137== Releasing lock... [2025-03-26 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:15:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:16:05 [end_date_ymd] => 2025-03-26 16:16:05 [RateCDR] => 1 ) [2025-03-26 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:16:05' and `end` < '2025-03-26 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:16:19] Production.INFO: count ==6346 [2025-03-26 16:16:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:16:05 - End Time 2025-03-26 16:16:05 [2025-03-26 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767994', 'tblTempUsageDetail_20' ) start [2025-03-26 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767994', 'tblTempUsageDetail_20' ) end [2025-03-26 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767994', 'tblTempVendorCDR_20' ) start [2025-03-26 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767994', 'tblTempVendorCDR_20' ) end [2025-03-26 16:16:22] Production.INFO: ProcessCDR(1,14767994,1,1,2) [2025-03-26 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767994', 'tblTempUsageDetail_20' ) start [2025-03-26 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767994', 'tblTempUsageDetail_20' ) end [2025-03-26 16:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:16:28] Production.INFO: ==26208== Releasing lock... [2025-03-26 16:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:16:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-26 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:17:06 [end_date_ymd] => 2025-03-26 16:17:06 [RateCDR] => 1 ) [2025-03-26 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:17:06' and `end` < '2025-03-26 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:17:20] Production.INFO: count ==6364 [2025-03-26 16:17:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:17:06 - End Time 2025-03-26 16:17:06 [2025-03-26 16:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767999', 'tblTempUsageDetail_20' ) start [2025-03-26 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14767999', 'tblTempUsageDetail_20' ) end [2025-03-26 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767999', 'tblTempVendorCDR_20' ) start [2025-03-26 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14767999', 'tblTempVendorCDR_20' ) end [2025-03-26 16:17:22] Production.INFO: ProcessCDR(1,14767999,1,1,2) [2025-03-26 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14767999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14767999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14767999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14767999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767999', 'tblTempUsageDetail_20' ) start [2025-03-26 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14767999', 'tblTempUsageDetail_20' ) end [2025-03-26 16:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:17:28] Production.INFO: ==26280== Releasing lock... [2025-03-26 16:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:17:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:18:05 [end_date_ymd] => 2025-03-26 16:18:05 [RateCDR] => 1 ) [2025-03-26 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:18:05' and `end` < '2025-03-26 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:18:19] Production.INFO: count ==6369 [2025-03-26 16:18:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:18:05 - End Time 2025-03-26 16:18:05 [2025-03-26 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768004', 'tblTempUsageDetail_20' ) start [2025-03-26 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768004', 'tblTempUsageDetail_20' ) end [2025-03-26 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768004', 'tblTempVendorCDR_20' ) start [2025-03-26 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768004', 'tblTempVendorCDR_20' ) end [2025-03-26 16:18:22] Production.INFO: ProcessCDR(1,14768004,1,1,2) [2025-03-26 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768004', 'tblTempUsageDetail_20' ) start [2025-03-26 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768004', 'tblTempUsageDetail_20' ) end [2025-03-26 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:18:27] Production.INFO: ==26352== Releasing lock... [2025-03-26 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:18:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:19:06 [end_date_ymd] => 2025-03-26 16:19:06 [RateCDR] => 1 ) [2025-03-26 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-26 13:19:06' and `end` < '2025-03-26 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-26 16:19:20] Production.INFO: count ==6351 [2025-03-26 16:19:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:19:06 - End Time 2025-03-26 16:19:06 [2025-03-26 16:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768009', 'tblTempUsageDetail_20' ) start [2025-03-26 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768009', 'tblTempUsageDetail_20' ) end [2025-03-26 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768009', 'tblTempVendorCDR_20' ) start [2025-03-26 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768009', 'tblTempVendorCDR_20' ) end [2025-03-26 16:19:23] Production.INFO: ProcessCDR(1,14768009,1,1,2) [2025-03-26 16:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768009', 'tblTempUsageDetail_20' ) start [2025-03-26 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768009', 'tblTempUsageDetail_20' ) end [2025-03-26 16:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:19:28] Production.INFO: ==26423== Releasing lock... [2025-03-26 16:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:19:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-26 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:20:05 [end_date_ymd] => 2025-03-26 16:20:05 [RateCDR] => 1 ) [2025-03-26 16:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:20:05' and `end` < '2025-03-26 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:20:19] Production.INFO: count ==6345 [2025-03-26 16:20:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:20:05 - End Time 2025-03-26 16:20:05 [2025-03-26 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768015', 'tblTempUsageDetail_20' ) start [2025-03-26 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768015', 'tblTempUsageDetail_20' ) end [2025-03-26 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768015', 'tblTempVendorCDR_20' ) start [2025-03-26 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768015', 'tblTempVendorCDR_20' ) end [2025-03-26 16:20:22] Production.INFO: ProcessCDR(1,14768015,1,1,2) [2025-03-26 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768015', 'tblTempUsageDetail_20' ) start [2025-03-26 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768015', 'tblTempUsageDetail_20' ) end [2025-03-26 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:20:27] Production.INFO: ==26495== Releasing lock... [2025-03-26 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:20:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-26 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:21:05 [end_date_ymd] => 2025-03-26 16:21:05 [RateCDR] => 1 ) [2025-03-26 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:21:05' and `end` < '2025-03-26 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:21:19] Production.INFO: count ==6378 [2025-03-26 16:21:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:21:05 - End Time 2025-03-26 16:21:05 [2025-03-26 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768020', 'tblTempUsageDetail_20' ) start [2025-03-26 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768020', 'tblTempUsageDetail_20' ) end [2025-03-26 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768020', 'tblTempVendorCDR_20' ) start [2025-03-26 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768020', 'tblTempVendorCDR_20' ) end [2025-03-26 16:21:22] Production.INFO: ProcessCDR(1,14768020,1,1,2) [2025-03-26 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768020', 'tblTempUsageDetail_20' ) start [2025-03-26 16:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768020', 'tblTempUsageDetail_20' ) end [2025-03-26 16:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:21:28] Production.INFO: ==26572== Releasing lock... [2025-03-26 16:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:21:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:22:05 [end_date_ymd] => 2025-03-26 16:22:05 [RateCDR] => 1 ) [2025-03-26 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:22:05' and `end` < '2025-03-26 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:22:19] Production.INFO: count ==6376 [2025-03-26 16:22:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:22:05 - End Time 2025-03-26 16:22:05 [2025-03-26 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768025', 'tblTempUsageDetail_20' ) start [2025-03-26 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768025', 'tblTempUsageDetail_20' ) end [2025-03-26 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768025', 'tblTempVendorCDR_20' ) start [2025-03-26 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768025', 'tblTempVendorCDR_20' ) end [2025-03-26 16:22:22] Production.INFO: ProcessCDR(1,14768025,1,1,2) [2025-03-26 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768025', 'tblTempUsageDetail_20' ) start [2025-03-26 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768025', 'tblTempUsageDetail_20' ) end [2025-03-26 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:22:27] Production.INFO: ==26644== Releasing lock... [2025-03-26 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:22:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:23:05 [end_date_ymd] => 2025-03-26 16:23:05 [RateCDR] => 1 ) [2025-03-26 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-26 13:23:05' and `end` < '2025-03-26 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-26 16:23:19] Production.INFO: count ==6369 [2025-03-26 16:23:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:23:05 - End Time 2025-03-26 16:23:05 [2025-03-26 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768030', 'tblTempUsageDetail_20' ) start [2025-03-26 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768030', 'tblTempUsageDetail_20' ) end [2025-03-26 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768030', 'tblTempVendorCDR_20' ) start [2025-03-26 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768030', 'tblTempVendorCDR_20' ) end [2025-03-26 16:23:22] Production.INFO: ProcessCDR(1,14768030,1,1,2) [2025-03-26 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768030', 'tblTempUsageDetail_20' ) start [2025-03-26 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768030', 'tblTempUsageDetail_20' ) end [2025-03-26 16:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:23:28] Production.INFO: ==26718== Releasing lock... [2025-03-26 16:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:23:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:24:05 [end_date_ymd] => 2025-03-26 16:24:05 [RateCDR] => 1 ) [2025-03-26 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:24:05' and `end` < '2025-03-26 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:24:19] Production.INFO: count ==6385 [2025-03-26 16:24:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:24:05 - End Time 2025-03-26 16:24:05 [2025-03-26 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768035', 'tblTempUsageDetail_20' ) start [2025-03-26 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768035', 'tblTempUsageDetail_20' ) end [2025-03-26 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768035', 'tblTempVendorCDR_20' ) start [2025-03-26 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768035', 'tblTempVendorCDR_20' ) end [2025-03-26 16:24:22] Production.INFO: ProcessCDR(1,14768035,1,1,2) [2025-03-26 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768035', 'tblTempUsageDetail_20' ) start [2025-03-26 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768035', 'tblTempUsageDetail_20' ) end [2025-03-26 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:24:27] Production.INFO: ==26788== Releasing lock... [2025-03-26 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:24:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:25:05 [end_date_ymd] => 2025-03-26 16:25:05 [RateCDR] => 1 ) [2025-03-26 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-26 13:25:05' and `end` < '2025-03-26 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:25:20] Production.INFO: count ==6394 [2025-03-26 16:25:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:25:05 - End Time 2025-03-26 16:25:05 [2025-03-26 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768040', 'tblTempUsageDetail_20' ) start [2025-03-26 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768040', 'tblTempUsageDetail_20' ) end [2025-03-26 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768040', 'tblTempVendorCDR_20' ) start [2025-03-26 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768040', 'tblTempVendorCDR_20' ) end [2025-03-26 16:25:23] Production.INFO: ProcessCDR(1,14768040,1,1,2) [2025-03-26 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768040', 'tblTempUsageDetail_20' ) start [2025-03-26 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768040', 'tblTempUsageDetail_20' ) end [2025-03-26 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:25:28] Production.INFO: ==26859== Releasing lock... [2025-03-26 16:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:25:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:26:05 [end_date_ymd] => 2025-03-26 16:26:05 [RateCDR] => 1 ) [2025-03-26 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:26:05' and `end` < '2025-03-26 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:26:19] Production.INFO: count ==6379 [2025-03-26 16:26:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:26:05 - End Time 2025-03-26 16:26:05 [2025-03-26 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768045', 'tblTempUsageDetail_20' ) start [2025-03-26 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768045', 'tblTempUsageDetail_20' ) end [2025-03-26 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768045', 'tblTempVendorCDR_20' ) start [2025-03-26 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768045', 'tblTempVendorCDR_20' ) end [2025-03-26 16:26:22] Production.INFO: ProcessCDR(1,14768045,1,1,2) [2025-03-26 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768045', 'tblTempUsageDetail_20' ) start [2025-03-26 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768045', 'tblTempUsageDetail_20' ) end [2025-03-26 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:26:27] Production.INFO: ==26935== Releasing lock... [2025-03-26 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:26:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:27:05 [end_date_ymd] => 2025-03-26 16:27:05 [RateCDR] => 1 ) [2025-03-26 16: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-26 13:27:05' and `end` < '2025-03-26 16: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-26 16:27:19] Production.INFO: count ==6395 [2025-03-26 16:27:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:27:05 - End Time 2025-03-26 16:27:05 [2025-03-26 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768050', 'tblTempUsageDetail_20' ) start [2025-03-26 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768050', 'tblTempUsageDetail_20' ) end [2025-03-26 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768050', 'tblTempVendorCDR_20' ) start [2025-03-26 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768050', 'tblTempVendorCDR_20' ) end [2025-03-26 16:27:22] Production.INFO: ProcessCDR(1,14768050,1,1,2) [2025-03-26 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768050', 'tblTempUsageDetail_20' ) start [2025-03-26 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768050', 'tblTempUsageDetail_20' ) end [2025-03-26 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:27:27] Production.INFO: ==27005== Releasing lock... [2025-03-26 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:27:27] Production.INFO: 76 MB #Memory Used# [2025-03-26 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:28:05 [end_date_ymd] => 2025-03-26 16:28:05 [RateCDR] => 1 ) [2025-03-26 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:28:05' and `end` < '2025-03-26 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:28:19] Production.INFO: count ==6401 [2025-03-26 16:28:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:28:05 - End Time 2025-03-26 16:28:05 [2025-03-26 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768055', 'tblTempUsageDetail_20' ) start [2025-03-26 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768055', 'tblTempUsageDetail_20' ) end [2025-03-26 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768055', 'tblTempVendorCDR_20' ) start [2025-03-26 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768055', 'tblTempVendorCDR_20' ) end [2025-03-26 16:28:22] Production.INFO: ProcessCDR(1,14768055,1,1,2) [2025-03-26 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768055', 'tblTempUsageDetail_20' ) start [2025-03-26 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768055', 'tblTempUsageDetail_20' ) end [2025-03-26 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:28:27] Production.INFO: ==27117== Releasing lock... [2025-03-26 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:28:27] Production.INFO: 76 MB #Memory Used# [2025-03-26 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:29:06 [end_date_ymd] => 2025-03-26 16:29:06 [RateCDR] => 1 ) [2025-03-26 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-26 13:29:06' and `end` < '2025-03-26 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-26 16:29:20] Production.INFO: count ==6410 [2025-03-26 16:29:23] Production.ERROR: pbx CDR StartTime 2025-03-26 13:29:06 - End Time 2025-03-26 16:29:06 [2025-03-26 16:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768060', 'tblTempUsageDetail_20' ) start [2025-03-26 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768060', 'tblTempUsageDetail_20' ) end [2025-03-26 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768060', 'tblTempVendorCDR_20' ) start [2025-03-26 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768060', 'tblTempVendorCDR_20' ) end [2025-03-26 16:29:23] Production.INFO: ProcessCDR(1,14768060,1,1,2) [2025-03-26 16:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768060', 'tblTempUsageDetail_20' ) start [2025-03-26 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768060', 'tblTempUsageDetail_20' ) end [2025-03-26 16:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:29:28] Production.INFO: ==27189== Releasing lock... [2025-03-26 16:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:29:28] Production.INFO: 76 MB #Memory Used# [2025-03-26 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:30:06 [end_date_ymd] => 2025-03-26 16:30:06 [RateCDR] => 1 ) [2025-03-26 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:30:06' and `end` < '2025-03-26 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:30:20] Production.INFO: count ==6405 [2025-03-26 16:30:23] Production.ERROR: pbx CDR StartTime 2025-03-26 13:30:06 - End Time 2025-03-26 16:30:06 [2025-03-26 16:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768065', 'tblTempUsageDetail_20' ) start [2025-03-26 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768065', 'tblTempUsageDetail_20' ) end [2025-03-26 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768065', 'tblTempVendorCDR_20' ) start [2025-03-26 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768065', 'tblTempVendorCDR_20' ) end [2025-03-26 16:30:23] Production.INFO: ProcessCDR(1,14768065,1,1,2) [2025-03-26 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768065', 'tblTempUsageDetail_20' ) start [2025-03-26 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768065', 'tblTempUsageDetail_20' ) end [2025-03-26 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:30:28] Production.INFO: ==27262== Releasing lock... [2025-03-26 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:30:28] Production.INFO: 76 MB #Memory Used# [2025-03-26 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:31:05 [end_date_ymd] => 2025-03-26 16:31:05 [RateCDR] => 1 ) [2025-03-26 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:31:05' and `end` < '2025-03-26 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:31:19] Production.INFO: count ==6444 [2025-03-26 16:31:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:31:05 - End Time 2025-03-26 16:31:05 [2025-03-26 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768071', 'tblTempUsageDetail_20' ) start [2025-03-26 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768071', 'tblTempUsageDetail_20' ) end [2025-03-26 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768071', 'tblTempVendorCDR_20' ) start [2025-03-26 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768071', 'tblTempVendorCDR_20' ) end [2025-03-26 16:31:22] Production.INFO: ProcessCDR(1,14768071,1,1,2) [2025-03-26 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768071', 'tblTempUsageDetail_20' ) start [2025-03-26 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768071', 'tblTempUsageDetail_20' ) end [2025-03-26 16:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:31:28] Production.INFO: ==27338== Releasing lock... [2025-03-26 16:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:31:28] Production.INFO: 76.25 MB #Memory Used# [2025-03-26 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:32:05 [end_date_ymd] => 2025-03-26 16:32:05 [RateCDR] => 1 ) [2025-03-26 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-26 13:32:05' and `end` < '2025-03-26 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-26 16:32:19] Production.INFO: count ==6459 [2025-03-26 16:32:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:32:05 - End Time 2025-03-26 16:32:05 [2025-03-26 16:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768076', 'tblTempUsageDetail_20' ) start [2025-03-26 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768076', 'tblTempUsageDetail_20' ) end [2025-03-26 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768076', 'tblTempVendorCDR_20' ) start [2025-03-26 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768076', 'tblTempVendorCDR_20' ) end [2025-03-26 16:32:23] Production.INFO: ProcessCDR(1,14768076,1,1,2) [2025-03-26 16:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768076', 'tblTempUsageDetail_20' ) start [2025-03-26 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768076', 'tblTempUsageDetail_20' ) end [2025-03-26 16:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:32:28] Production.INFO: ==27410== Releasing lock... [2025-03-26 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:32:28] Production.INFO: 76.25 MB #Memory Used# [2025-03-26 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:33:06 [end_date_ymd] => 2025-03-26 16:33:06 [RateCDR] => 1 ) [2025-03-26 16:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:33:06' and `end` < '2025-03-26 16:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:33:20] Production.INFO: count ==6442 [2025-03-26 16:33:23] Production.ERROR: pbx CDR StartTime 2025-03-26 13:33:06 - End Time 2025-03-26 16:33:06 [2025-03-26 16:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768081', 'tblTempUsageDetail_20' ) start [2025-03-26 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768081', 'tblTempUsageDetail_20' ) end [2025-03-26 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768081', 'tblTempVendorCDR_20' ) start [2025-03-26 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768081', 'tblTempVendorCDR_20' ) end [2025-03-26 16:33:23] Production.INFO: ProcessCDR(1,14768081,1,1,2) [2025-03-26 16:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768081', 'tblTempUsageDetail_20' ) start [2025-03-26 16:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768081', 'tblTempUsageDetail_20' ) end [2025-03-26 16:33:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:33:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:33:29] Production.INFO: ==27485== Releasing lock... [2025-03-26 16:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:33:29] Production.INFO: 76.25 MB #Memory Used# [2025-03-26 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:34:06 [end_date_ymd] => 2025-03-26 16:34:06 [RateCDR] => 1 ) [2025-03-26 16:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:34:06' and `end` < '2025-03-26 16:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:34:20] Production.INFO: count ==6461 [2025-03-26 16:34:23] Production.ERROR: pbx CDR StartTime 2025-03-26 13:34:06 - End Time 2025-03-26 16:34:06 [2025-03-26 16:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768086', 'tblTempUsageDetail_20' ) start [2025-03-26 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768086', 'tblTempUsageDetail_20' ) end [2025-03-26 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768086', 'tblTempVendorCDR_20' ) start [2025-03-26 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768086', 'tblTempVendorCDR_20' ) end [2025-03-26 16:34:24] Production.INFO: ProcessCDR(1,14768086,1,1,2) [2025-03-26 16:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768086', 'tblTempUsageDetail_20' ) start [2025-03-26 16:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768086', 'tblTempUsageDetail_20' ) end [2025-03-26 16:34:30] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:34:30] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:34:30] Production.INFO: ==27557== Releasing lock... [2025-03-26 16:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:34:30] Production.INFO: 76.25 MB #Memory Used# [2025-03-26 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:35:06 [end_date_ymd] => 2025-03-26 16:35:06 [RateCDR] => 1 ) [2025-03-26 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-26 13:35:06' and `end` < '2025-03-26 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-26 16:35:21] Production.INFO: count ==6487 [2025-03-26 16:35:24] Production.ERROR: pbx CDR StartTime 2025-03-26 13:35:06 - End Time 2025-03-26 16:35:06 [2025-03-26 16:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768091', 'tblTempUsageDetail_20' ) start [2025-03-26 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768091', 'tblTempUsageDetail_20' ) end [2025-03-26 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768091', 'tblTempVendorCDR_20' ) start [2025-03-26 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768091', 'tblTempVendorCDR_20' ) end [2025-03-26 16:35:24] Production.INFO: ProcessCDR(1,14768091,1,1,2) [2025-03-26 16:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768091', 'tblTempUsageDetail_20' ) start [2025-03-26 16:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768091', 'tblTempUsageDetail_20' ) end [2025-03-26 16:35:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:35:30] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:35:30] Production.INFO: ==27632== Releasing lock... [2025-03-26 16:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:35:30] Production.INFO: 76.5 MB #Memory Used# [2025-03-26 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:36:06 [end_date_ymd] => 2025-03-26 16:36:06 [RateCDR] => 1 ) [2025-03-26 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-26 13:36:06' and `end` < '2025-03-26 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-26 16:36:20] Production.INFO: count ==6489 [2025-03-26 16:36:23] Production.ERROR: pbx CDR StartTime 2025-03-26 13:36:06 - End Time 2025-03-26 16:36:06 [2025-03-26 16:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768096', 'tblTempUsageDetail_20' ) start [2025-03-26 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768096', 'tblTempUsageDetail_20' ) end [2025-03-26 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768096', 'tblTempVendorCDR_20' ) start [2025-03-26 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768096', 'tblTempVendorCDR_20' ) end [2025-03-26 16:36:23] Production.INFO: ProcessCDR(1,14768096,1,1,2) [2025-03-26 16:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768096', 'tblTempUsageDetail_20' ) start [2025-03-26 16:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768096', 'tblTempUsageDetail_20' ) end [2025-03-26 16:36:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:36:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:36:29] Production.INFO: ==27705== Releasing lock... [2025-03-26 16:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:36:29] Production.INFO: 76.5 MB #Memory Used# [2025-03-26 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:37:06 [end_date_ymd] => 2025-03-26 16:37:06 [RateCDR] => 1 ) [2025-03-26 16:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:37:06' and `end` < '2025-03-26 16:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:37:21] Production.INFO: count ==6480 [2025-03-26 16:37:24] Production.ERROR: pbx CDR StartTime 2025-03-26 13:37:06 - End Time 2025-03-26 16:37:06 [2025-03-26 16:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768101', 'tblTempUsageDetail_20' ) start [2025-03-26 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768101', 'tblTempUsageDetail_20' ) end [2025-03-26 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768101', 'tblTempVendorCDR_20' ) start [2025-03-26 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768101', 'tblTempVendorCDR_20' ) end [2025-03-26 16:37:25] Production.INFO: ProcessCDR(1,14768101,1,1,2) [2025-03-26 16:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768101', 'tblTempUsageDetail_20' ) start [2025-03-26 16:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768101', 'tblTempUsageDetail_20' ) end [2025-03-26 16:37:31] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:37:31] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:37:31] Production.INFO: ==27776== Releasing lock... [2025-03-26 16:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:37:31] Production.INFO: 76.5 MB #Memory Used# [2025-03-26 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:38:06 [end_date_ymd] => 2025-03-26 16:38:06 [RateCDR] => 1 ) [2025-03-26 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-26 13:38:06' and `end` < '2025-03-26 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-26 16:38:20] Production.INFO: count ==6478 [2025-03-26 16:38:23] Production.ERROR: pbx CDR StartTime 2025-03-26 13:38:06 - End Time 2025-03-26 16:38:06 [2025-03-26 16:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768106', 'tblTempUsageDetail_20' ) start [2025-03-26 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768106', 'tblTempUsageDetail_20' ) end [2025-03-26 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768106', 'tblTempVendorCDR_20' ) start [2025-03-26 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768106', 'tblTempVendorCDR_20' ) end [2025-03-26 16:38:23] Production.INFO: ProcessCDR(1,14768106,1,1,2) [2025-03-26 16:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768106', 'tblTempUsageDetail_20' ) start [2025-03-26 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768106', 'tblTempUsageDetail_20' ) end [2025-03-26 16:38:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:38:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:38:29] Production.INFO: ==27847== Releasing lock... [2025-03-26 16:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:38:29] Production.INFO: 76.5 MB #Memory Used# [2025-03-26 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:39:05 [end_date_ymd] => 2025-03-26 16:39:05 [RateCDR] => 1 ) [2025-03-26 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:39:05' and `end` < '2025-03-26 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:39:19] Production.INFO: count ==6486 [2025-03-26 16:39:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:39:05 - End Time 2025-03-26 16:39:05 [2025-03-26 16:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768111', 'tblTempUsageDetail_20' ) start [2025-03-26 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768111', 'tblTempUsageDetail_20' ) end [2025-03-26 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768111', 'tblTempVendorCDR_20' ) start [2025-03-26 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768111', 'tblTempVendorCDR_20' ) end [2025-03-26 16:39:22] Production.INFO: ProcessCDR(1,14768111,1,1,2) [2025-03-26 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768111', 'tblTempUsageDetail_20' ) start [2025-03-26 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768111', 'tblTempUsageDetail_20' ) end [2025-03-26 16:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:39:27] Production.INFO: ==27918== Releasing lock... [2025-03-26 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:39:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-26 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:40:06 [end_date_ymd] => 2025-03-26 16:40:06 [RateCDR] => 1 ) [2025-03-26 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:40:06' and `end` < '2025-03-26 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:40:20] Production.INFO: count ==6482 [2025-03-26 16:40:23] Production.ERROR: pbx CDR StartTime 2025-03-26 13:40:06 - End Time 2025-03-26 16:40:06 [2025-03-26 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768117', 'tblTempUsageDetail_20' ) start [2025-03-26 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768117', 'tblTempUsageDetail_20' ) end [2025-03-26 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768117', 'tblTempVendorCDR_20' ) start [2025-03-26 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768117', 'tblTempVendorCDR_20' ) end [2025-03-26 16:40:23] Production.INFO: ProcessCDR(1,14768117,1,1,2) [2025-03-26 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768117', 'tblTempUsageDetail_20' ) start [2025-03-26 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768117', 'tblTempUsageDetail_20' ) end [2025-03-26 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:40:28] Production.INFO: ==27990== Releasing lock... [2025-03-26 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:40:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-26 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:41:06 [end_date_ymd] => 2025-03-26 16:41:06 [RateCDR] => 1 ) [2025-03-26 16:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:41:06' and `end` < '2025-03-26 16:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:41:20] Production.INFO: count ==6420 [2025-03-26 16:41:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:41:06 - End Time 2025-03-26 16:41:06 [2025-03-26 16:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768122', 'tblTempUsageDetail_20' ) start [2025-03-26 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768122', 'tblTempUsageDetail_20' ) end [2025-03-26 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768122', 'tblTempVendorCDR_20' ) start [2025-03-26 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768122', 'tblTempVendorCDR_20' ) end [2025-03-26 16:41:23] Production.INFO: ProcessCDR(1,14768122,1,1,2) [2025-03-26 16:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768122', 'tblTempUsageDetail_20' ) start [2025-03-26 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768122', 'tblTempUsageDetail_20' ) end [2025-03-26 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:41:26] Production.INFO: ==28062== Releasing lock... [2025-03-26 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:41:26] Production.INFO: 76 MB #Memory Used# [2025-03-26 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:42:05 [end_date_ymd] => 2025-03-26 16:42:05 [RateCDR] => 1 ) [2025-03-26 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-26 13:42:05' and `end` < '2025-03-26 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-26 16:42:19] Production.INFO: count ==6416 [2025-03-26 16:42:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:42:05 - End Time 2025-03-26 16:42:05 [2025-03-26 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768127', 'tblTempUsageDetail_20' ) start [2025-03-26 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768127', 'tblTempUsageDetail_20' ) end [2025-03-26 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768127', 'tblTempVendorCDR_20' ) start [2025-03-26 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768127', 'tblTempVendorCDR_20' ) end [2025-03-26 16:42:23] Production.INFO: ProcessCDR(1,14768127,1,1,2) [2025-03-26 16:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768127', 'tblTempUsageDetail_20' ) start [2025-03-26 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768127', 'tblTempUsageDetail_20' ) end [2025-03-26 16:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:42:28] Production.INFO: ==28134== Releasing lock... [2025-03-26 16:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:42:28] Production.INFO: 76 MB #Memory Used# [2025-03-26 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:43:05 [end_date_ymd] => 2025-03-26 16:43:05 [RateCDR] => 1 ) [2025-03-26 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:43:05' and `end` < '2025-03-26 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:43:19] Production.INFO: count ==6420 [2025-03-26 16:43:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:43:05 - End Time 2025-03-26 16:43:05 [2025-03-26 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768132', 'tblTempUsageDetail_20' ) start [2025-03-26 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768132', 'tblTempUsageDetail_20' ) end [2025-03-26 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768132', 'tblTempVendorCDR_20' ) start [2025-03-26 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768132', 'tblTempVendorCDR_20' ) end [2025-03-26 16:43:22] Production.INFO: ProcessCDR(1,14768132,1,1,2) [2025-03-26 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768132', 'tblTempUsageDetail_20' ) start [2025-03-26 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768132', 'tblTempUsageDetail_20' ) end [2025-03-26 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:43:27] Production.INFO: ==28246== Releasing lock... [2025-03-26 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:43:27] Production.INFO: 76 MB #Memory Used# [2025-03-26 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:44:05 [end_date_ymd] => 2025-03-26 16:44:05 [RateCDR] => 1 ) [2025-03-26 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:44:05' and `end` < '2025-03-26 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:44:19] Production.INFO: count ==6432 [2025-03-26 16:44:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:44:05 - End Time 2025-03-26 16:44:05 [2025-03-26 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768137', 'tblTempUsageDetail_20' ) start [2025-03-26 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768137', 'tblTempUsageDetail_20' ) end [2025-03-26 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768137', 'tblTempVendorCDR_20' ) start [2025-03-26 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768137', 'tblTempVendorCDR_20' ) end [2025-03-26 16:44:22] Production.INFO: ProcessCDR(1,14768137,1,1,2) [2025-03-26 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768137', 'tblTempUsageDetail_20' ) start [2025-03-26 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768137', 'tblTempUsageDetail_20' ) end [2025-03-26 16:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:44:28] Production.INFO: ==28317== Releasing lock... [2025-03-26 16:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:44:28] Production.INFO: 76.25 MB #Memory Used# [2025-03-26 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:45:05 [end_date_ymd] => 2025-03-26 16:45:05 [RateCDR] => 1 ) [2025-03-26 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-26 13:45:05' and `end` < '2025-03-26 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-26 16:45:19] Production.INFO: count ==6418 [2025-03-26 16:45:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:45:05 - End Time 2025-03-26 16:45:05 [2025-03-26 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768142', 'tblTempUsageDetail_20' ) start [2025-03-26 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768142', 'tblTempUsageDetail_20' ) end [2025-03-26 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768142', 'tblTempVendorCDR_20' ) start [2025-03-26 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768142', 'tblTempVendorCDR_20' ) end [2025-03-26 16:45:22] Production.INFO: ProcessCDR(1,14768142,1,1,2) [2025-03-26 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768142', 'tblTempUsageDetail_20' ) start [2025-03-26 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768142', 'tblTempUsageDetail_20' ) end [2025-03-26 16:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:45:28] Production.INFO: ==28387== Releasing lock... [2025-03-26 16:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:45:28] Production.INFO: 76 MB #Memory Used# [2025-03-26 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:46:06 [end_date_ymd] => 2025-03-26 16:46:06 [RateCDR] => 1 ) [2025-03-26 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-26 13:46:06' and `end` < '2025-03-26 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-26 16:46:20] Production.INFO: count ==6420 [2025-03-26 16:46:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:46:06 - End Time 2025-03-26 16:46:06 [2025-03-26 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768147', 'tblTempUsageDetail_20' ) start [2025-03-26 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768147', 'tblTempUsageDetail_20' ) end [2025-03-26 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768147', 'tblTempVendorCDR_20' ) start [2025-03-26 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768147', 'tblTempVendorCDR_20' ) end [2025-03-26 16:46:23] Production.INFO: ProcessCDR(1,14768147,1,1,2) [2025-03-26 16:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768147', 'tblTempUsageDetail_20' ) start [2025-03-26 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768147', 'tblTempUsageDetail_20' ) end [2025-03-26 16:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:46:28] Production.INFO: ==28460== Releasing lock... [2025-03-26 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:46:28] Production.INFO: 76 MB #Memory Used# [2025-03-26 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:47:05 [end_date_ymd] => 2025-03-26 16:47:05 [RateCDR] => 1 ) [2025-03-26 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:47:05' and `end` < '2025-03-26 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:47:18] Production.INFO: count ==6397 [2025-03-26 16:47:21] Production.ERROR: pbx CDR StartTime 2025-03-26 13:47:05 - End Time 2025-03-26 16:47:05 [2025-03-26 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768152', 'tblTempUsageDetail_20' ) start [2025-03-26 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768152', 'tblTempUsageDetail_20' ) end [2025-03-26 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768152', 'tblTempVendorCDR_20' ) start [2025-03-26 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768152', 'tblTempVendorCDR_20' ) end [2025-03-26 16:47:21] Production.INFO: ProcessCDR(1,14768152,1,1,2) [2025-03-26 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768152', 'tblTempUsageDetail_20' ) start [2025-03-26 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768152', 'tblTempUsageDetail_20' ) end [2025-03-26 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:47:27] Production.INFO: ==28530== Releasing lock... [2025-03-26 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:47:27] Production.INFO: 76 MB #Memory Used# [2025-03-26 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:48:06 [end_date_ymd] => 2025-03-26 16:48:06 [RateCDR] => 1 ) [2025-03-26 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:48:06' and `end` < '2025-03-26 16:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:48:20] Production.INFO: count ==6386 [2025-03-26 16:48:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:48:06 - End Time 2025-03-26 16:48:06 [2025-03-26 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768157', 'tblTempUsageDetail_20' ) start [2025-03-26 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768157', 'tblTempUsageDetail_20' ) end [2025-03-26 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768157', 'tblTempVendorCDR_20' ) start [2025-03-26 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768157', 'tblTempVendorCDR_20' ) end [2025-03-26 16:48:23] Production.INFO: ProcessCDR(1,14768157,1,1,2) [2025-03-26 16:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768157', 'tblTempUsageDetail_20' ) start [2025-03-26 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768157', 'tblTempUsageDetail_20' ) end [2025-03-26 16:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:48:28] Production.INFO: ==28601== Releasing lock... [2025-03-26 16:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:48:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:49:05 [end_date_ymd] => 2025-03-26 16:49:05 [RateCDR] => 1 ) [2025-03-26 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:49:05' and `end` < '2025-03-26 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:49:19] Production.INFO: count ==6370 [2025-03-26 16:49:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:49:05 - End Time 2025-03-26 16:49:05 [2025-03-26 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768162', 'tblTempUsageDetail_20' ) start [2025-03-26 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768162', 'tblTempUsageDetail_20' ) end [2025-03-26 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768162', 'tblTempVendorCDR_20' ) start [2025-03-26 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768162', 'tblTempVendorCDR_20' ) end [2025-03-26 16:49:22] Production.INFO: ProcessCDR(1,14768162,1,1,2) [2025-03-26 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768162', 'tblTempUsageDetail_20' ) start [2025-03-26 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768162', 'tblTempUsageDetail_20' ) end [2025-03-26 16:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:49:27] Production.INFO: ==28676== Releasing lock... [2025-03-26 16:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:49:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:50:06 [end_date_ymd] => 2025-03-26 16:50:06 [RateCDR] => 1 ) [2025-03-26 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:50:06' and `end` < '2025-03-26 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:50:20] Production.INFO: count ==6352 [2025-03-26 16:50:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:50:06 - End Time 2025-03-26 16:50:06 [2025-03-26 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768168', 'tblTempUsageDetail_20' ) start [2025-03-26 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768168', 'tblTempUsageDetail_20' ) end [2025-03-26 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768168', 'tblTempVendorCDR_20' ) start [2025-03-26 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768168', 'tblTempVendorCDR_20' ) end [2025-03-26 16:50:23] Production.INFO: ProcessCDR(1,14768168,1,1,2) [2025-03-26 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768168', 'tblTempUsageDetail_20' ) start [2025-03-26 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768168', 'tblTempUsageDetail_20' ) end [2025-03-26 16:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:50:28] Production.INFO: ==28754== Releasing lock... [2025-03-26 16:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:50:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-26 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:51:05 [end_date_ymd] => 2025-03-26 16:51:05 [RateCDR] => 1 ) [2025-03-26 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:51:05' and `end` < '2025-03-26 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-26 16:51:19] Production.INFO: count ==6346 [2025-03-26 16:51:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:51:05 - End Time 2025-03-26 16:51:05 [2025-03-26 16:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768173', 'tblTempUsageDetail_20' ) start [2025-03-26 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768173', 'tblTempUsageDetail_20' ) end [2025-03-26 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768173', 'tblTempVendorCDR_20' ) start [2025-03-26 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768173', 'tblTempVendorCDR_20' ) end [2025-03-26 16:51:22] Production.INFO: ProcessCDR(1,14768173,1,1,2) [2025-03-26 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768173', 'tblTempUsageDetail_20' ) start [2025-03-26 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768173', 'tblTempUsageDetail_20' ) end [2025-03-26 16:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:51:27] Production.INFO: ==28832== Releasing lock... [2025-03-26 16:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:51:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-26 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:52:05 [end_date_ymd] => 2025-03-26 16:52:05 [RateCDR] => 1 ) [2025-03-26 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:52:05' and `end` < '2025-03-26 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:52:19] Production.INFO: count ==6400 [2025-03-26 16:52:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:52:05 - End Time 2025-03-26 16:52:05 [2025-03-26 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768178', 'tblTempUsageDetail_20' ) start [2025-03-26 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768178', 'tblTempUsageDetail_20' ) end [2025-03-26 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768178', 'tblTempVendorCDR_20' ) start [2025-03-26 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768178', 'tblTempVendorCDR_20' ) end [2025-03-26 16:52:22] Production.INFO: ProcessCDR(1,14768178,1,1,2) [2025-03-26 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768178', 'tblTempUsageDetail_20' ) start [2025-03-26 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768178', 'tblTempUsageDetail_20' ) end [2025-03-26 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:52:27] Production.INFO: ==28903== Releasing lock... [2025-03-26 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:52:27] Production.INFO: 76 MB #Memory Used# [2025-03-26 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:53:05 [end_date_ymd] => 2025-03-26 16:53:05 [RateCDR] => 1 ) [2025-03-26 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-26 13:53:05' and `end` < '2025-03-26 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-26 16:53:19] Production.INFO: count ==6420 [2025-03-26 16:53:21] Production.ERROR: pbx CDR StartTime 2025-03-26 13:53:05 - End Time 2025-03-26 16:53:05 [2025-03-26 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768183', 'tblTempUsageDetail_20' ) start [2025-03-26 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768183', 'tblTempUsageDetail_20' ) end [2025-03-26 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768183', 'tblTempVendorCDR_20' ) start [2025-03-26 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768183', 'tblTempVendorCDR_20' ) end [2025-03-26 16:53:22] Production.INFO: ProcessCDR(1,14768183,1,1,2) [2025-03-26 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768183', 'tblTempUsageDetail_20' ) start [2025-03-26 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768183', 'tblTempUsageDetail_20' ) end [2025-03-26 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:53:27] Production.INFO: ==28979== Releasing lock... [2025-03-26 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:53:27] Production.INFO: 76 MB #Memory Used# [2025-03-26 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:54:05 [end_date_ymd] => 2025-03-26 16:54:05 [RateCDR] => 1 ) [2025-03-26 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:54:05' and `end` < '2025-03-26 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:54:19] Production.INFO: count ==6447 [2025-03-26 16:54:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:54:05 - End Time 2025-03-26 16:54:05 [2025-03-26 16:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768188', 'tblTempUsageDetail_20' ) start [2025-03-26 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768188', 'tblTempUsageDetail_20' ) end [2025-03-26 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768188', 'tblTempVendorCDR_20' ) start [2025-03-26 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768188', 'tblTempVendorCDR_20' ) end [2025-03-26 16:54:22] Production.INFO: ProcessCDR(1,14768188,1,1,2) [2025-03-26 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768188', 'tblTempUsageDetail_20' ) start [2025-03-26 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768188', 'tblTempUsageDetail_20' ) end [2025-03-26 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:54:27] Production.INFO: ==29074== Releasing lock... [2025-03-26 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:54:27] Production.INFO: 76.25 MB #Memory Used# [2025-03-26 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:55:05 [end_date_ymd] => 2025-03-26 16:55:05 [RateCDR] => 1 ) [2025-03-26 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:55:05' and `end` < '2025-03-26 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-26 16:55:19] Production.INFO: count ==6421 [2025-03-26 16:55:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:55:05 - End Time 2025-03-26 16:55:05 [2025-03-26 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768193', 'tblTempUsageDetail_20' ) start [2025-03-26 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768193', 'tblTempUsageDetail_20' ) end [2025-03-26 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768193', 'tblTempVendorCDR_20' ) start [2025-03-26 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768193', 'tblTempVendorCDR_20' ) end [2025-03-26 16:55:22] Production.INFO: ProcessCDR(1,14768193,1,1,2) [2025-03-26 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768193', 'tblTempUsageDetail_20' ) start [2025-03-26 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768193', 'tblTempUsageDetail_20' ) end [2025-03-26 16:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:55:27] Production.INFO: ==29149== Releasing lock... [2025-03-26 16:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:55:27] Production.INFO: 76 MB #Memory Used# [2025-03-26 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:56:05 [end_date_ymd] => 2025-03-26 16:56:05 [RateCDR] => 1 ) [2025-03-26 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:56:05' and `end` < '2025-03-26 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:56:20] Production.INFO: count ==6528 [2025-03-26 16:56:23] Production.ERROR: pbx CDR StartTime 2025-03-26 13:56:05 - End Time 2025-03-26 16:56:05 [2025-03-26 16:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768198', 'tblTempUsageDetail_20' ) start [2025-03-26 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768198', 'tblTempUsageDetail_20' ) end [2025-03-26 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768198', 'tblTempVendorCDR_20' ) start [2025-03-26 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768198', 'tblTempVendorCDR_20' ) end [2025-03-26 16:56:23] Production.INFO: ProcessCDR(1,14768198,1,1,2) [2025-03-26 16:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768198', 'tblTempUsageDetail_20' ) start [2025-03-26 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768198', 'tblTempUsageDetail_20' ) end [2025-03-26 16:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:56:28] Production.INFO: ==29220== Releasing lock... [2025-03-26 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:56:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-26 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:57:05 [end_date_ymd] => 2025-03-26 16:57:05 [RateCDR] => 1 ) [2025-03-26 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-26 13:57:05' and `end` < '2025-03-26 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-26 16:57:19] Production.INFO: count ==6672 [2025-03-26 16:57:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:57:05 - End Time 2025-03-26 16:57:05 [2025-03-26 16:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768203', 'tblTempUsageDetail_20' ) start [2025-03-26 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768203', 'tblTempUsageDetail_20' ) end [2025-03-26 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768203', 'tblTempVendorCDR_20' ) start [2025-03-26 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768203', 'tblTempVendorCDR_20' ) end [2025-03-26 16:57:22] Production.INFO: ProcessCDR(1,14768203,1,1,2) [2025-03-26 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768203', 'tblTempUsageDetail_20' ) start [2025-03-26 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768203', 'tblTempUsageDetail_20' ) end [2025-03-26 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:57:27] Production.INFO: ==29294== Releasing lock... [2025-03-26 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:57:27] Production.INFO: 78 MB #Memory Used# [2025-03-26 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:58:05 [end_date_ymd] => 2025-03-26 16:58:05 [RateCDR] => 1 ) [2025-03-26 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 13:58:05' and `end` < '2025-03-26 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 16:58:19] Production.INFO: count ==6779 [2025-03-26 16:58:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:58:05 - End Time 2025-03-26 16:58:05 [2025-03-26 16:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768208', 'tblTempUsageDetail_20' ) start [2025-03-26 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768208', 'tblTempUsageDetail_20' ) end [2025-03-26 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768208', 'tblTempVendorCDR_20' ) start [2025-03-26 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768208', 'tblTempVendorCDR_20' ) end [2025-03-26 16:58:22] Production.INFO: ProcessCDR(1,14768208,1,1,2) [2025-03-26 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768208', 'tblTempUsageDetail_20' ) start [2025-03-26 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768208', 'tblTempUsageDetail_20' ) end [2025-03-26 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:58:27] Production.INFO: ==29404== Releasing lock... [2025-03-26 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:58:27] Production.INFO: 78.75 MB #Memory Used# [2025-03-26 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 13:59:05 [end_date_ymd] => 2025-03-26 16:59:05 [RateCDR] => 1 ) [2025-03-26 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-26 13:59:05' and `end` < '2025-03-26 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-26 16:59:19] Production.INFO: count ==6801 [2025-03-26 16:59:22] Production.ERROR: pbx CDR StartTime 2025-03-26 13:59:05 - End Time 2025-03-26 16:59:05 [2025-03-26 16:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768213', 'tblTempUsageDetail_20' ) start [2025-03-26 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768213', 'tblTempUsageDetail_20' ) end [2025-03-26 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768213', 'tblTempVendorCDR_20' ) start [2025-03-26 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768213', 'tblTempVendorCDR_20' ) end [2025-03-26 16:59:22] Production.INFO: ProcessCDR(1,14768213,1,1,2) [2025-03-26 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 16:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768213', 'tblTempUsageDetail_20' ) start [2025-03-26 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768213', 'tblTempUsageDetail_20' ) end [2025-03-26 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 16:59:27] Production.INFO: ==29473== Releasing lock... [2025-03-26 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 16:59:27] Production.INFO: 79 MB #Memory Used# [2025-03-26 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:00:06 [end_date_ymd] => 2025-03-26 17:00:06 [RateCDR] => 1 ) [2025-03-26 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-26 14:00:06' and `end` < '2025-03-26 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-26 17:00:20] Production.INFO: count ==6832 [2025-03-26 17:00:23] Production.ERROR: pbx CDR StartTime 2025-03-26 14:00:06 - End Time 2025-03-26 17:00:06 [2025-03-26 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768219', 'tblTempUsageDetail_20' ) start [2025-03-26 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768219', 'tblTempUsageDetail_20' ) end [2025-03-26 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768219', 'tblTempVendorCDR_20' ) start [2025-03-26 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768219', 'tblTempVendorCDR_20' ) end [2025-03-26 17:00:23] Production.INFO: ProcessCDR(1,14768219,1,1,2) [2025-03-26 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768219', 'tblTempUsageDetail_20' ) start [2025-03-26 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768219', 'tblTempUsageDetail_20' ) end [2025-03-26 17:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:00:29] Production.INFO: ==29546== Releasing lock... [2025-03-26 17:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:00:29] Production.INFO: 79.25 MB #Memory Used# [2025-03-26 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:01:05 [end_date_ymd] => 2025-03-26 17:01:05 [RateCDR] => 1 ) [2025-03-26 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-26 14:01:05' and `end` < '2025-03-26 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-26 17:01:19] Production.INFO: count ==6880 [2025-03-26 17:01:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:01:05 - End Time 2025-03-26 17:01:05 [2025-03-26 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768224', 'tblTempUsageDetail_20' ) start [2025-03-26 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768224', 'tblTempUsageDetail_20' ) end [2025-03-26 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768224', 'tblTempVendorCDR_20' ) start [2025-03-26 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768224', 'tblTempVendorCDR_20' ) end [2025-03-26 17:01:22] Production.INFO: ProcessCDR(1,14768224,1,1,2) [2025-03-26 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768224', 'tblTempUsageDetail_20' ) start [2025-03-26 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768224', 'tblTempUsageDetail_20' ) end [2025-03-26 17:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:01:28] Production.INFO: ==29632== Releasing lock... [2025-03-26 17:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:01:28] Production.INFO: 79.5 MB #Memory Used# [2025-03-26 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:02:06 [end_date_ymd] => 2025-03-26 17:02:06 [RateCDR] => 1 ) [2025-03-26 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-26 14:02:06' and `end` < '2025-03-26 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-26 17:02:20] Production.INFO: count ==6831 [2025-03-26 17:02:23] Production.ERROR: pbx CDR StartTime 2025-03-26 14:02:06 - End Time 2025-03-26 17:02:06 [2025-03-26 17:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768229', 'tblTempUsageDetail_20' ) start [2025-03-26 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768229', 'tblTempUsageDetail_20' ) end [2025-03-26 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768229', 'tblTempVendorCDR_20' ) start [2025-03-26 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768229', 'tblTempVendorCDR_20' ) end [2025-03-26 17:02:23] Production.INFO: ProcessCDR(1,14768229,1,1,2) [2025-03-26 17:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768229', 'tblTempUsageDetail_20' ) start [2025-03-26 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768229', 'tblTempUsageDetail_20' ) end [2025-03-26 17:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:02:29] Production.INFO: ==29703== Releasing lock... [2025-03-26 17:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:02:29] Production.INFO: 79.5 MB #Memory Used# [2025-03-26 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:03:05 [end_date_ymd] => 2025-03-26 17:03:05 [RateCDR] => 1 ) [2025-03-26 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-26 14:03:05' and `end` < '2025-03-26 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-26 17:03:19] Production.INFO: count ==6798 [2025-03-26 17:03:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:03:05 - End Time 2025-03-26 17:03:05 [2025-03-26 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768234', 'tblTempUsageDetail_20' ) start [2025-03-26 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768234', 'tblTempUsageDetail_20' ) end [2025-03-26 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768234', 'tblTempVendorCDR_20' ) start [2025-03-26 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768234', 'tblTempVendorCDR_20' ) end [2025-03-26 17:03:23] Production.INFO: ProcessCDR(1,14768234,1,1,2) [2025-03-26 17:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768234', 'tblTempUsageDetail_20' ) start [2025-03-26 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768234', 'tblTempUsageDetail_20' ) end [2025-03-26 17:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:03:29] Production.INFO: ==29779== Releasing lock... [2025-03-26 17:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:03:29] Production.INFO: 79.25 MB #Memory Used# [2025-03-26 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:04:05 [end_date_ymd] => 2025-03-26 17:04:05 [RateCDR] => 1 ) [2025-03-26 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:04:05' and `end` < '2025-03-26 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:04:19] Production.INFO: count ==6764 [2025-03-26 17:04:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:04:05 - End Time 2025-03-26 17:04:05 [2025-03-26 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768239', 'tblTempUsageDetail_20' ) start [2025-03-26 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768239', 'tblTempUsageDetail_20' ) end [2025-03-26 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768239', 'tblTempVendorCDR_20' ) start [2025-03-26 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768239', 'tblTempVendorCDR_20' ) end [2025-03-26 17:04:22] Production.INFO: ProcessCDR(1,14768239,1,1,2) [2025-03-26 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768239', 'tblTempUsageDetail_20' ) start [2025-03-26 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768239', 'tblTempUsageDetail_20' ) end [2025-03-26 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:04:26] Production.INFO: ==29850== Releasing lock... [2025-03-26 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:04:26] Production.INFO: 78.75 MB #Memory Used# [2025-03-26 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:05:05 [end_date_ymd] => 2025-03-26 17:05:05 [RateCDR] => 1 ) [2025-03-26 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:05:05' and `end` < '2025-03-26 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:05:19] Production.INFO: count ==6756 [2025-03-26 17:05:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:05:05 - End Time 2025-03-26 17:05:05 [2025-03-26 17:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768244', 'tblTempUsageDetail_20' ) start [2025-03-26 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768244', 'tblTempUsageDetail_20' ) end [2025-03-26 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768244', 'tblTempVendorCDR_20' ) start [2025-03-26 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768244', 'tblTempVendorCDR_20' ) end [2025-03-26 17:05:22] Production.INFO: ProcessCDR(1,14768244,1,1,2) [2025-03-26 17:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768244', 'tblTempUsageDetail_20' ) start [2025-03-26 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768244', 'tblTempUsageDetail_20' ) end [2025-03-26 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:05:27] Production.INFO: ==29924== Releasing lock... [2025-03-26 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:05:27] Production.INFO: 78.5 MB #Memory Used# [2025-03-26 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:06:05 [end_date_ymd] => 2025-03-26 17:06:05 [RateCDR] => 1 ) [2025-03-26 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:06:05' and `end` < '2025-03-26 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:06:19] Production.INFO: count ==6751 [2025-03-26 17:06:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:06:05 - End Time 2025-03-26 17:06:05 [2025-03-26 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768249', 'tblTempUsageDetail_20' ) start [2025-03-26 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768249', 'tblTempUsageDetail_20' ) end [2025-03-26 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768249', 'tblTempVendorCDR_20' ) start [2025-03-26 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768249', 'tblTempVendorCDR_20' ) end [2025-03-26 17:06:22] Production.INFO: ProcessCDR(1,14768249,1,1,2) [2025-03-26 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768249', 'tblTempUsageDetail_20' ) start [2025-03-26 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768249', 'tblTempUsageDetail_20' ) end [2025-03-26 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:06:27] Production.INFO: ==29994== Releasing lock... [2025-03-26 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:06:27] Production.INFO: 78.5 MB #Memory Used# [2025-03-26 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:07:05 [end_date_ymd] => 2025-03-26 17:07:05 [RateCDR] => 1 ) [2025-03-26 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:07:05' and `end` < '2025-03-26 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:07:19] Production.INFO: count ==6740 [2025-03-26 17:07:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:07:05 - End Time 2025-03-26 17:07:05 [2025-03-26 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768254', 'tblTempUsageDetail_20' ) start [2025-03-26 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768254', 'tblTempUsageDetail_20' ) end [2025-03-26 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768254', 'tblTempVendorCDR_20' ) start [2025-03-26 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768254', 'tblTempVendorCDR_20' ) end [2025-03-26 17:07:22] Production.INFO: ProcessCDR(1,14768254,1,1,2) [2025-03-26 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768254', 'tblTempUsageDetail_20' ) start [2025-03-26 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768254', 'tblTempUsageDetail_20' ) end [2025-03-26 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:07:27] Production.INFO: ==30064== Releasing lock... [2025-03-26 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:07:27] Production.INFO: 78.5 MB #Memory Used# [2025-03-26 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:08:05 [end_date_ymd] => 2025-03-26 17:08:05 [RateCDR] => 1 ) [2025-03-26 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:08:05' and `end` < '2025-03-26 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:08:19] Production.INFO: count ==6724 [2025-03-26 17:08:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:08:05 - End Time 2025-03-26 17:08:05 [2025-03-26 17:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768259', 'tblTempUsageDetail_20' ) start [2025-03-26 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768259', 'tblTempUsageDetail_20' ) end [2025-03-26 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768259', 'tblTempVendorCDR_20' ) start [2025-03-26 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768259', 'tblTempVendorCDR_20' ) end [2025-03-26 17:08:22] Production.INFO: ProcessCDR(1,14768259,1,1,2) [2025-03-26 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768259', 'tblTempUsageDetail_20' ) start [2025-03-26 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768259', 'tblTempUsageDetail_20' ) end [2025-03-26 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:08:27] Production.INFO: ==30138== Releasing lock... [2025-03-26 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:08:27] Production.INFO: 78.25 MB #Memory Used# [2025-03-26 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:09:06 [end_date_ymd] => 2025-03-26 17:09:06 [RateCDR] => 1 ) [2025-03-26 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-26 14:09:06' and `end` < '2025-03-26 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-26 17:09:19] Production.INFO: count ==6707 [2025-03-26 17:09:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:09:06 - End Time 2025-03-26 17:09:06 [2025-03-26 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768264', 'tblTempUsageDetail_20' ) start [2025-03-26 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768264', 'tblTempUsageDetail_20' ) end [2025-03-26 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768264', 'tblTempVendorCDR_20' ) start [2025-03-26 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768264', 'tblTempVendorCDR_20' ) end [2025-03-26 17:09:22] Production.INFO: ProcessCDR(1,14768264,1,1,2) [2025-03-26 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768264', 'tblTempUsageDetail_20' ) start [2025-03-26 17:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768264', 'tblTempUsageDetail_20' ) end [2025-03-26 17:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:09:28] Production.INFO: ==30209== Releasing lock... [2025-03-26 17:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:09:28] Production.INFO: 78.25 MB #Memory Used# [2025-03-26 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:10:06 [end_date_ymd] => 2025-03-26 17:10:06 [RateCDR] => 1 ) [2025-03-26 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:10:06' and `end` < '2025-03-26 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:10:19] Production.INFO: count ==6654 [2025-03-26 17:10:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:10:06 - End Time 2025-03-26 17:10:06 [2025-03-26 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768270', 'tblTempUsageDetail_20' ) start [2025-03-26 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768270', 'tblTempUsageDetail_20' ) end [2025-03-26 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768270', 'tblTempVendorCDR_20' ) start [2025-03-26 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768270', 'tblTempVendorCDR_20' ) end [2025-03-26 17:10:22] Production.INFO: ProcessCDR(1,14768270,1,1,2) [2025-03-26 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768270', 'tblTempUsageDetail_20' ) start [2025-03-26 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768270', 'tblTempUsageDetail_20' ) end [2025-03-26 17:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:10:28] Production.INFO: ==30287== Releasing lock... [2025-03-26 17:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:10:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-26 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:11:06 [end_date_ymd] => 2025-03-26 17:11:06 [RateCDR] => 1 ) [2025-03-26 17: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-26 14:11:06' and `end` < '2025-03-26 17: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-26 17:11:19] Production.INFO: count ==6608 [2025-03-26 17:11:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:11:06 - End Time 2025-03-26 17:11:06 [2025-03-26 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768275', 'tblTempUsageDetail_20' ) start [2025-03-26 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768275', 'tblTempUsageDetail_20' ) end [2025-03-26 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768275', 'tblTempVendorCDR_20' ) start [2025-03-26 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768275', 'tblTempVendorCDR_20' ) end [2025-03-26 17:11:23] Production.INFO: ProcessCDR(1,14768275,1,1,2) [2025-03-26 17:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768275', 'tblTempUsageDetail_20' ) start [2025-03-26 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768275', 'tblTempUsageDetail_20' ) end [2025-03-26 17:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:11:28] Production.INFO: ==30366== Releasing lock... [2025-03-26 17:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:11:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-26 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:12:05 [end_date_ymd] => 2025-03-26 17:12:05 [RateCDR] => 1 ) [2025-03-26 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:12:05' and `end` < '2025-03-26 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:12:19] Production.INFO: count ==6601 [2025-03-26 17:12:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:12:05 - End Time 2025-03-26 17:12:05 [2025-03-26 17:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768280', 'tblTempUsageDetail_20' ) start [2025-03-26 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768280', 'tblTempUsageDetail_20' ) end [2025-03-26 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768280', 'tblTempVendorCDR_20' ) start [2025-03-26 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768280', 'tblTempVendorCDR_20' ) end [2025-03-26 17:12:22] Production.INFO: ProcessCDR(1,14768280,1,1,2) [2025-03-26 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768280', 'tblTempUsageDetail_20' ) start [2025-03-26 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768280', 'tblTempUsageDetail_20' ) end [2025-03-26 17:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:12:25] Production.INFO: ==30436== Releasing lock... [2025-03-26 17:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:12:25] Production.INFO: 77.5 MB #Memory Used# [2025-03-26 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:13:06 [end_date_ymd] => 2025-03-26 17:13:06 [RateCDR] => 1 ) [2025-03-26 17: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-26 14:13:06' and `end` < '2025-03-26 17: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-26 17:13:20] Production.INFO: count ==6598 [2025-03-26 17:13:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:13:06 - End Time 2025-03-26 17:13:06 [2025-03-26 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768285', 'tblTempUsageDetail_20' ) start [2025-03-26 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768285', 'tblTempUsageDetail_20' ) end [2025-03-26 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768285', 'tblTempVendorCDR_20' ) start [2025-03-26 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768285', 'tblTempVendorCDR_20' ) end [2025-03-26 17:13:23] Production.INFO: ProcessCDR(1,14768285,1,1,2) [2025-03-26 17:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768285', 'tblTempUsageDetail_20' ) start [2025-03-26 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768285', 'tblTempUsageDetail_20' ) end [2025-03-26 17:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:13:28] Production.INFO: ==30508== Releasing lock... [2025-03-26 17:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:13:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-26 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:14:06 [end_date_ymd] => 2025-03-26 17:14:06 [RateCDR] => 1 ) [2025-03-26 17:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:14:06' and `end` < '2025-03-26 17:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:14:19] Production.INFO: count ==6582 [2025-03-26 17:14:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:14:06 - End Time 2025-03-26 17:14:06 [2025-03-26 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768290', 'tblTempUsageDetail_20' ) start [2025-03-26 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768290', 'tblTempUsageDetail_20' ) end [2025-03-26 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768290', 'tblTempVendorCDR_20' ) start [2025-03-26 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768290', 'tblTempVendorCDR_20' ) end [2025-03-26 17:14:23] Production.INFO: ProcessCDR(1,14768290,1,1,2) [2025-03-26 17:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768290', 'tblTempUsageDetail_20' ) start [2025-03-26 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768290', 'tblTempUsageDetail_20' ) end [2025-03-26 17:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:14:28] Production.INFO: ==30622== Releasing lock... [2025-03-26 17:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:14:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-26 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:15:05 [end_date_ymd] => 2025-03-26 17:15:05 [RateCDR] => 1 ) [2025-03-26 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:15:05' and `end` < '2025-03-26 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:15:19] Production.INFO: count ==6584 [2025-03-26 17:15:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:15:05 - End Time 2025-03-26 17:15:05 [2025-03-26 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768295', 'tblTempUsageDetail_20' ) start [2025-03-26 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768295', 'tblTempUsageDetail_20' ) end [2025-03-26 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768295', 'tblTempVendorCDR_20' ) start [2025-03-26 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768295', 'tblTempVendorCDR_20' ) end [2025-03-26 17:15:22] Production.INFO: ProcessCDR(1,14768295,1,1,2) [2025-03-26 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768295', 'tblTempUsageDetail_20' ) start [2025-03-26 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768295', 'tblTempUsageDetail_20' ) end [2025-03-26 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:15:27] Production.INFO: ==30696== Releasing lock... [2025-03-26 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:15:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-26 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:16:05 [end_date_ymd] => 2025-03-26 17:16:05 [RateCDR] => 1 ) [2025-03-26 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:16:05' and `end` < '2025-03-26 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:16:19] Production.INFO: count ==6573 [2025-03-26 17:16:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:16:05 - End Time 2025-03-26 17:16:05 [2025-03-26 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768300', 'tblTempUsageDetail_20' ) start [2025-03-26 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768300', 'tblTempUsageDetail_20' ) end [2025-03-26 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768300', 'tblTempVendorCDR_20' ) start [2025-03-26 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768300', 'tblTempVendorCDR_20' ) end [2025-03-26 17:16:22] Production.INFO: ProcessCDR(1,14768300,1,1,2) [2025-03-26 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768300', 'tblTempUsageDetail_20' ) start [2025-03-26 17:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768300', 'tblTempUsageDetail_20' ) end [2025-03-26 17:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:16:28] Production.INFO: ==30770== Releasing lock... [2025-03-26 17:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:16:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-26 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:17:05 [end_date_ymd] => 2025-03-26 17:17:05 [RateCDR] => 1 ) [2025-03-26 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:17:05' and `end` < '2025-03-26 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:17:19] Production.INFO: count ==6553 [2025-03-26 17:17:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:17:05 - End Time 2025-03-26 17:17:05 [2025-03-26 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768305', 'tblTempUsageDetail_20' ) start [2025-03-26 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768305', 'tblTempUsageDetail_20' ) end [2025-03-26 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768305', 'tblTempVendorCDR_20' ) start [2025-03-26 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768305', 'tblTempVendorCDR_20' ) end [2025-03-26 17:17:22] Production.INFO: ProcessCDR(1,14768305,1,1,2) [2025-03-26 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768305', 'tblTempUsageDetail_20' ) start [2025-03-26 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768305', 'tblTempUsageDetail_20' ) end [2025-03-26 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:17:27] Production.INFO: ==30854== Releasing lock... [2025-03-26 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:17:27] Production.INFO: 77 MB #Memory Used# [2025-03-26 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:18:05 [end_date_ymd] => 2025-03-26 17:18:05 [RateCDR] => 1 ) [2025-03-26 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:18:05' and `end` < '2025-03-26 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:18:19] Production.INFO: count ==6546 [2025-03-26 17:18:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:18:05 - End Time 2025-03-26 17:18:05 [2025-03-26 17:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768310', 'tblTempUsageDetail_20' ) start [2025-03-26 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768310', 'tblTempUsageDetail_20' ) end [2025-03-26 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768310', 'tblTempVendorCDR_20' ) start [2025-03-26 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768310', 'tblTempVendorCDR_20' ) end [2025-03-26 17:18:22] Production.INFO: ProcessCDR(1,14768310,1,1,2) [2025-03-26 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768310', 'tblTempUsageDetail_20' ) start [2025-03-26 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768310', 'tblTempUsageDetail_20' ) end [2025-03-26 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:18:27] Production.INFO: ==30935== Releasing lock... [2025-03-26 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:18:27] Production.INFO: 77 MB #Memory Used# [2025-03-26 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:19:05 [end_date_ymd] => 2025-03-26 17:19:05 [RateCDR] => 1 ) [2025-03-26 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-26 14:19:05' and `end` < '2025-03-26 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-26 17:19:19] Production.INFO: count ==6527 [2025-03-26 17:19:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:19:05 - End Time 2025-03-26 17:19:05 [2025-03-26 17:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768315', 'tblTempUsageDetail_20' ) start [2025-03-26 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768315', 'tblTempUsageDetail_20' ) end [2025-03-26 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768315', 'tblTempVendorCDR_20' ) start [2025-03-26 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768315', 'tblTempVendorCDR_20' ) end [2025-03-26 17:19:22] Production.INFO: ProcessCDR(1,14768315,1,1,2) [2025-03-26 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768315', 'tblTempUsageDetail_20' ) start [2025-03-26 17:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768315', 'tblTempUsageDetail_20' ) end [2025-03-26 17:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:19:28] Production.INFO: ==31007== Releasing lock... [2025-03-26 17:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:19:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-26 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:20:06 [end_date_ymd] => 2025-03-26 17:20:06 [RateCDR] => 1 ) [2025-03-26 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-26 14:20:06' and `end` < '2025-03-26 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-26 17:20:20] Production.INFO: count ==6525 [2025-03-26 17:20:23] Production.ERROR: pbx CDR StartTime 2025-03-26 14:20:06 - End Time 2025-03-26 17:20:06 [2025-03-26 17:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768321', 'tblTempUsageDetail_20' ) start [2025-03-26 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768321', 'tblTempUsageDetail_20' ) end [2025-03-26 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768321', 'tblTempVendorCDR_20' ) start [2025-03-26 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768321', 'tblTempVendorCDR_20' ) end [2025-03-26 17:20:23] Production.INFO: ProcessCDR(1,14768321,1,1,2) [2025-03-26 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768321', 'tblTempUsageDetail_20' ) start [2025-03-26 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768321', 'tblTempUsageDetail_20' ) end [2025-03-26 17:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:20:28] Production.INFO: ==31081== Releasing lock... [2025-03-26 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:20:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-26 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:21:06 [end_date_ymd] => 2025-03-26 17:21:06 [RateCDR] => 1 ) [2025-03-26 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-26 14:21:06' and `end` < '2025-03-26 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-26 17:21:19] Production.INFO: count ==6513 [2025-03-26 17:21:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:21:06 - End Time 2025-03-26 17:21:06 [2025-03-26 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768326', 'tblTempUsageDetail_20' ) start [2025-03-26 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768326', 'tblTempUsageDetail_20' ) end [2025-03-26 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768326', 'tblTempVendorCDR_20' ) start [2025-03-26 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768326', 'tblTempVendorCDR_20' ) end [2025-03-26 17:21:22] Production.INFO: ProcessCDR(1,14768326,1,1,2) [2025-03-26 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768326', 'tblTempUsageDetail_20' ) start [2025-03-26 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768326', 'tblTempUsageDetail_20' ) end [2025-03-26 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:21:27] Production.INFO: ==31160== Releasing lock... [2025-03-26 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:21:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-26 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:22:05 [end_date_ymd] => 2025-03-26 17:22:05 [RateCDR] => 1 ) [2025-03-26 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:22:05' and `end` < '2025-03-26 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:22:19] Production.INFO: count ==6492 [2025-03-26 17:22:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:22:05 - End Time 2025-03-26 17:22:05 [2025-03-26 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768331', 'tblTempUsageDetail_20' ) start [2025-03-26 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768331', 'tblTempUsageDetail_20' ) end [2025-03-26 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768331', 'tblTempVendorCDR_20' ) start [2025-03-26 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768331', 'tblTempVendorCDR_20' ) end [2025-03-26 17:22:22] Production.INFO: ProcessCDR(1,14768331,1,1,2) [2025-03-26 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768331', 'tblTempUsageDetail_20' ) start [2025-03-26 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768331', 'tblTempUsageDetail_20' ) end [2025-03-26 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:22:27] Production.INFO: ==31234== Releasing lock... [2025-03-26 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:22:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-26 17:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:23:06 [end_date_ymd] => 2025-03-26 17:23:06 [RateCDR] => 1 ) [2025-03-26 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-26 14:23:06' and `end` < '2025-03-26 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-26 17:23:19] Production.INFO: count ==6497 [2025-03-26 17:23:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:23:06 - End Time 2025-03-26 17:23:06 [2025-03-26 17:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768336', 'tblTempUsageDetail_20' ) start [2025-03-26 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768336', 'tblTempUsageDetail_20' ) end [2025-03-26 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768336', 'tblTempVendorCDR_20' ) start [2025-03-26 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768336', 'tblTempVendorCDR_20' ) end [2025-03-26 17:23:22] Production.INFO: ProcessCDR(1,14768336,1,1,2) [2025-03-26 17:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768336', 'tblTempUsageDetail_20' ) start [2025-03-26 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768336', 'tblTempUsageDetail_20' ) end [2025-03-26 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:23:27] Production.INFO: ==31307== Releasing lock... [2025-03-26 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:23:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-26 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:24:05 [end_date_ymd] => 2025-03-26 17:24:05 [RateCDR] => 1 ) [2025-03-26 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:24:05' and `end` < '2025-03-26 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:24:19] Production.INFO: count ==6462 [2025-03-26 17:24:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:24:05 - End Time 2025-03-26 17:24:05 [2025-03-26 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768341', 'tblTempUsageDetail_20' ) start [2025-03-26 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768341', 'tblTempUsageDetail_20' ) end [2025-03-26 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768341', 'tblTempVendorCDR_20' ) start [2025-03-26 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768341', 'tblTempVendorCDR_20' ) end [2025-03-26 17:24:22] Production.INFO: ProcessCDR(1,14768341,1,1,2) [2025-03-26 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768341', 'tblTempUsageDetail_20' ) start [2025-03-26 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768341', 'tblTempUsageDetail_20' ) end [2025-03-26 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:24:27] Production.INFO: ==31381== Releasing lock... [2025-03-26 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:24:27] Production.INFO: 76.25 MB #Memory Used# [2025-03-26 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:25:06 [end_date_ymd] => 2025-03-26 17:25:06 [RateCDR] => 1 ) [2025-03-26 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-26 14:25:06' and `end` < '2025-03-26 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-26 17:25:20] Production.INFO: count ==6424 [2025-03-26 17:25:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:25:06 - End Time 2025-03-26 17:25:06 [2025-03-26 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768346', 'tblTempUsageDetail_20' ) start [2025-03-26 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768346', 'tblTempUsageDetail_20' ) end [2025-03-26 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768346', 'tblTempVendorCDR_20' ) start [2025-03-26 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768346', 'tblTempVendorCDR_20' ) end [2025-03-26 17:25:23] Production.INFO: ProcessCDR(1,14768346,1,1,2) [2025-03-26 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768346', 'tblTempUsageDetail_20' ) start [2025-03-26 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768346', 'tblTempUsageDetail_20' ) end [2025-03-26 17:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:25:28] Production.INFO: ==31455== Releasing lock... [2025-03-26 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:25:28] Production.INFO: 76 MB #Memory Used# [2025-03-26 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:26:05 [end_date_ymd] => 2025-03-26 17:26:05 [RateCDR] => 1 ) [2025-03-26 17:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:26:05' and `end` < '2025-03-26 17:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:26:19] Production.INFO: count ==6419 [2025-03-26 17:26:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:26:05 - End Time 2025-03-26 17:26:05 [2025-03-26 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768351', 'tblTempUsageDetail_20' ) start [2025-03-26 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768351', 'tblTempUsageDetail_20' ) end [2025-03-26 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768351', 'tblTempVendorCDR_20' ) start [2025-03-26 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768351', 'tblTempVendorCDR_20' ) end [2025-03-26 17:26:22] Production.INFO: ProcessCDR(1,14768351,1,1,2) [2025-03-26 17:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768351', 'tblTempUsageDetail_20' ) start [2025-03-26 17:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768351', 'tblTempUsageDetail_20' ) end [2025-03-26 17:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:26:27] Production.INFO: ==31530== Releasing lock... [2025-03-26 17:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:26:27] Production.INFO: 76 MB #Memory Used# [2025-03-26 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:27:05 [end_date_ymd] => 2025-03-26 17:27:05 [RateCDR] => 1 ) [2025-03-26 17:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:27:05' and `end` < '2025-03-26 17:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:27:19] Production.INFO: count ==6445 [2025-03-26 17:27:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:27:05 - End Time 2025-03-26 17:27:05 [2025-03-26 17:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768356', 'tblTempUsageDetail_20' ) start [2025-03-26 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768356', 'tblTempUsageDetail_20' ) end [2025-03-26 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768356', 'tblTempVendorCDR_20' ) start [2025-03-26 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768356', 'tblTempVendorCDR_20' ) end [2025-03-26 17:27:22] Production.INFO: ProcessCDR(1,14768356,1,1,2) [2025-03-26 17:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768356', 'tblTempUsageDetail_20' ) start [2025-03-26 17:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768356', 'tblTempUsageDetail_20' ) end [2025-03-26 17:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:27:28] Production.INFO: ==31605== Releasing lock... [2025-03-26 17:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:27:28] Production.INFO: 76.25 MB #Memory Used# [2025-03-26 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:28:05 [end_date_ymd] => 2025-03-26 17:28:05 [RateCDR] => 1 ) [2025-03-26 17:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:28:05' and `end` < '2025-03-26 17:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:28:19] Production.INFO: count ==6476 [2025-03-26 17:28:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:28:05 - End Time 2025-03-26 17:28:05 [2025-03-26 17:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768361', 'tblTempUsageDetail_20' ) start [2025-03-26 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768361', 'tblTempUsageDetail_20' ) end [2025-03-26 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768361', 'tblTempVendorCDR_20' ) start [2025-03-26 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768361', 'tblTempVendorCDR_20' ) end [2025-03-26 17:28:22] Production.INFO: ProcessCDR(1,14768361,1,1,2) [2025-03-26 17:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768361', 'tblTempUsageDetail_20' ) start [2025-03-26 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768361', 'tblTempUsageDetail_20' ) end [2025-03-26 17:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:28:26] Production.INFO: ==31679== Releasing lock... [2025-03-26 17:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:28:26] Production.INFO: 76.5 MB #Memory Used# [2025-03-26 17:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:29:06 [end_date_ymd] => 2025-03-26 17:29:06 [RateCDR] => 1 ) [2025-03-26 17: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-26 14:29:06' and `end` < '2025-03-26 17: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-26 17:29:20] Production.INFO: count ==6510 [2025-03-26 17:29:23] Production.ERROR: pbx CDR StartTime 2025-03-26 14:29:06 - End Time 2025-03-26 17:29:06 [2025-03-26 17:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768366', 'tblTempUsageDetail_20' ) start [2025-03-26 17:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768366', 'tblTempUsageDetail_20' ) end [2025-03-26 17:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768366', 'tblTempVendorCDR_20' ) start [2025-03-26 17:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768366', 'tblTempVendorCDR_20' ) end [2025-03-26 17:29:23] Production.INFO: ProcessCDR(1,14768366,1,1,2) [2025-03-26 17:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768366', 'tblTempUsageDetail_20' ) start [2025-03-26 17:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768366', 'tblTempUsageDetail_20' ) end [2025-03-26 17:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:29:28] Production.INFO: ==31804== Releasing lock... [2025-03-26 17:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:29:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-26 17:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:30:05 [end_date_ymd] => 2025-03-26 17:30:05 [RateCDR] => 1 ) [2025-03-26 17: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-26 14:30:05' and `end` < '2025-03-26 17: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-26 17:30:19] Production.INFO: count ==6572 [2025-03-26 17:30:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:30:05 - End Time 2025-03-26 17:30:05 [2025-03-26 17:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768371', 'tblTempUsageDetail_20' ) start [2025-03-26 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768371', 'tblTempUsageDetail_20' ) end [2025-03-26 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768371', 'tblTempVendorCDR_20' ) start [2025-03-26 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768371', 'tblTempVendorCDR_20' ) end [2025-03-26 17:30:21] Production.INFO: ProcessCDR(1,14768371,1,1,2) [2025-03-26 17:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768371', 'tblTempUsageDetail_20' ) start [2025-03-26 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768371', 'tblTempUsageDetail_20' ) end [2025-03-26 17:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:30:27] Production.INFO: ==31888== Releasing lock... [2025-03-26 17:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:30:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-26 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:31:05 [end_date_ymd] => 2025-03-26 17:31:05 [RateCDR] => 1 ) [2025-03-26 17:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:31:05' and `end` < '2025-03-26 17:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:31:19] Production.INFO: count ==6568 [2025-03-26 17:31:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:31:05 - End Time 2025-03-26 17:31:05 [2025-03-26 17:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768377', 'tblTempUsageDetail_20' ) start [2025-03-26 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768377', 'tblTempUsageDetail_20' ) end [2025-03-26 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768377', 'tblTempVendorCDR_20' ) start [2025-03-26 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768377', 'tblTempVendorCDR_20' ) end [2025-03-26 17:31:22] Production.INFO: ProcessCDR(1,14768377,1,1,2) [2025-03-26 17:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768377', 'tblTempUsageDetail_20' ) start [2025-03-26 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768377', 'tblTempUsageDetail_20' ) end [2025-03-26 17:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:31:27] Production.INFO: ==31967== Releasing lock... [2025-03-26 17:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:31:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-26 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:32:05 [end_date_ymd] => 2025-03-26 17:32:05 [RateCDR] => 1 ) [2025-03-26 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:32:05' and `end` < '2025-03-26 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:32:19] Production.INFO: count ==6529 [2025-03-26 17:32:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:32:05 - End Time 2025-03-26 17:32:05 [2025-03-26 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768382', 'tblTempUsageDetail_20' ) start [2025-03-26 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768382', 'tblTempUsageDetail_20' ) end [2025-03-26 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768382', 'tblTempVendorCDR_20' ) start [2025-03-26 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768382', 'tblTempVendorCDR_20' ) end [2025-03-26 17:32:22] Production.INFO: ProcessCDR(1,14768382,1,1,2) [2025-03-26 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768382', 'tblTempUsageDetail_20' ) start [2025-03-26 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768382', 'tblTempUsageDetail_20' ) end [2025-03-26 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:32:27] Production.INFO: ==32043== Releasing lock... [2025-03-26 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:32:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-26 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:33:05 [end_date_ymd] => 2025-03-26 17:33:05 [RateCDR] => 1 ) [2025-03-26 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:33:05' and `end` < '2025-03-26 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:33:19] Production.INFO: count ==6495 [2025-03-26 17:33:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:33:05 - End Time 2025-03-26 17:33:05 [2025-03-26 17:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768387', 'tblTempUsageDetail_20' ) start [2025-03-26 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768387', 'tblTempUsageDetail_20' ) end [2025-03-26 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768387', 'tblTempVendorCDR_20' ) start [2025-03-26 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768387', 'tblTempVendorCDR_20' ) end [2025-03-26 17:33:22] Production.INFO: ProcessCDR(1,14768387,1,1,2) [2025-03-26 17:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768387', 'tblTempUsageDetail_20' ) start [2025-03-26 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768387', 'tblTempUsageDetail_20' ) end [2025-03-26 17:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:33:27] Production.INFO: ==32116== Releasing lock... [2025-03-26 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:33:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-26 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:34:05 [end_date_ymd] => 2025-03-26 17:34:05 [RateCDR] => 1 ) [2025-03-26 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:34:05' and `end` < '2025-03-26 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:34:19] Production.INFO: count ==6488 [2025-03-26 17:34:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:34:05 - End Time 2025-03-26 17:34:05 [2025-03-26 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768392', 'tblTempUsageDetail_20' ) start [2025-03-26 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768392', 'tblTempUsageDetail_20' ) end [2025-03-26 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768392', 'tblTempVendorCDR_20' ) start [2025-03-26 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768392', 'tblTempVendorCDR_20' ) end [2025-03-26 17:34:22] Production.INFO: ProcessCDR(1,14768392,1,1,2) [2025-03-26 17:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768392', 'tblTempUsageDetail_20' ) start [2025-03-26 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768392', 'tblTempUsageDetail_20' ) end [2025-03-26 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:34:27] Production.INFO: ==32191== Releasing lock... [2025-03-26 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:34:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-26 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:35:06 [end_date_ymd] => 2025-03-26 17:35:06 [RateCDR] => 1 ) [2025-03-26 17:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:35:06' and `end` < '2025-03-26 17:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:35:19] Production.INFO: count ==6475 [2025-03-26 17:35:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:35:06 - End Time 2025-03-26 17:35:06 [2025-03-26 17:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768397', 'tblTempUsageDetail_20' ) start [2025-03-26 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768397', 'tblTempUsageDetail_20' ) end [2025-03-26 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768397', 'tblTempVendorCDR_20' ) start [2025-03-26 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768397', 'tblTempVendorCDR_20' ) end [2025-03-26 17:35:22] Production.INFO: ProcessCDR(1,14768397,1,1,2) [2025-03-26 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768397', 'tblTempUsageDetail_20' ) start [2025-03-26 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768397', 'tblTempUsageDetail_20' ) end [2025-03-26 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:35:27] Production.INFO: ==32264== Releasing lock... [2025-03-26 17:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:35:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-26 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:36:06 [end_date_ymd] => 2025-03-26 17:36:06 [RateCDR] => 1 ) [2025-03-26 17:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:36:06' and `end` < '2025-03-26 17:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:36:19] Production.INFO: count ==6460 [2025-03-26 17:36:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:36:06 - End Time 2025-03-26 17:36:06 [2025-03-26 17:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768402', 'tblTempUsageDetail_20' ) start [2025-03-26 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768402', 'tblTempUsageDetail_20' ) end [2025-03-26 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768402', 'tblTempVendorCDR_20' ) start [2025-03-26 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768402', 'tblTempVendorCDR_20' ) end [2025-03-26 17:36:22] Production.INFO: ProcessCDR(1,14768402,1,1,2) [2025-03-26 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768402', 'tblTempUsageDetail_20' ) start [2025-03-26 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768402', 'tblTempUsageDetail_20' ) end [2025-03-26 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:36:26] Production.INFO: ==32338== Releasing lock... [2025-03-26 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:36:26] Production.INFO: 76.25 MB #Memory Used# [2025-03-26 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:37:05 [end_date_ymd] => 2025-03-26 17:37:05 [RateCDR] => 1 ) [2025-03-26 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-26 14:37:05' and `end` < '2025-03-26 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-26 17:37:19] Production.INFO: count ==6442 [2025-03-26 17:37:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:37:05 - End Time 2025-03-26 17:37:05 [2025-03-26 17:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768407', 'tblTempUsageDetail_20' ) start [2025-03-26 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768407', 'tblTempUsageDetail_20' ) end [2025-03-26 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768407', 'tblTempVendorCDR_20' ) start [2025-03-26 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768407', 'tblTempVendorCDR_20' ) end [2025-03-26 17:37:22] Production.INFO: ProcessCDR(1,14768407,1,1,2) [2025-03-26 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768407', 'tblTempUsageDetail_20' ) start [2025-03-26 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768407', 'tblTempUsageDetail_20' ) end [2025-03-26 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:37:26] Production.INFO: ==32415== Releasing lock... [2025-03-26 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:37:26] Production.INFO: 76.25 MB #Memory Used# [2025-03-26 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:38:05 [end_date_ymd] => 2025-03-26 17:38:05 [RateCDR] => 1 ) [2025-03-26 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-26 14:38:05' and `end` < '2025-03-26 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-26 17:38:19] Production.INFO: count ==6387 [2025-03-26 17:38:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:38:05 - End Time 2025-03-26 17:38:05 [2025-03-26 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768412', 'tblTempUsageDetail_20' ) start [2025-03-26 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768412', 'tblTempUsageDetail_20' ) end [2025-03-26 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768412', 'tblTempVendorCDR_20' ) start [2025-03-26 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768412', 'tblTempVendorCDR_20' ) end [2025-03-26 17:38:22] Production.INFO: ProcessCDR(1,14768412,1,1,2) [2025-03-26 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768412', 'tblTempUsageDetail_20' ) start [2025-03-26 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768412', 'tblTempUsageDetail_20' ) end [2025-03-26 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:38:27] Production.INFO: ==32494== Releasing lock... [2025-03-26 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:38:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:39:05 [end_date_ymd] => 2025-03-26 17:39:05 [RateCDR] => 1 ) [2025-03-26 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-26 14:39:05' and `end` < '2025-03-26 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-26 17:39:19] Production.INFO: count ==6378 [2025-03-26 17:39:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:39:05 - End Time 2025-03-26 17:39:05 [2025-03-26 17:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768417', 'tblTempUsageDetail_20' ) start [2025-03-26 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768417', 'tblTempUsageDetail_20' ) end [2025-03-26 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768417', 'tblTempVendorCDR_20' ) start [2025-03-26 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768417', 'tblTempVendorCDR_20' ) end [2025-03-26 17:39:22] Production.INFO: ProcessCDR(1,14768417,1,1,2) [2025-03-26 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768417', 'tblTempUsageDetail_20' ) start [2025-03-26 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768417', 'tblTempUsageDetail_20' ) end [2025-03-26 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:39:26] Production.INFO: ==32576== Releasing lock... [2025-03-26 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:39:26] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:40:06 [end_date_ymd] => 2025-03-26 17:40:06 [RateCDR] => 1 ) [2025-03-26 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-26 14:40:06' and `end` < '2025-03-26 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-26 17:40:20] Production.INFO: count ==6356 [2025-03-26 17:40:23] Production.ERROR: pbx CDR StartTime 2025-03-26 14:40:06 - End Time 2025-03-26 17:40:06 [2025-03-26 17:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768423', 'tblTempUsageDetail_20' ) start [2025-03-26 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768423', 'tblTempUsageDetail_20' ) end [2025-03-26 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768423', 'tblTempVendorCDR_20' ) start [2025-03-26 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768423', 'tblTempVendorCDR_20' ) end [2025-03-26 17:40:23] Production.INFO: ProcessCDR(1,14768423,1,1,2) [2025-03-26 17:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768423', 'tblTempUsageDetail_20' ) start [2025-03-26 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768423', 'tblTempUsageDetail_20' ) end [2025-03-26 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:40:27] Production.INFO: ==32658== Releasing lock... [2025-03-26 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:40:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-26 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:41:05 [end_date_ymd] => 2025-03-26 17:41:05 [RateCDR] => 1 ) [2025-03-26 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:41:05' and `end` < '2025-03-26 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:41:19] Production.INFO: count ==6374 [2025-03-26 17:41:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:41:05 - End Time 2025-03-26 17:41:05 [2025-03-26 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768428', 'tblTempUsageDetail_20' ) start [2025-03-26 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768428', 'tblTempUsageDetail_20' ) end [2025-03-26 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768428', 'tblTempVendorCDR_20' ) start [2025-03-26 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768428', 'tblTempVendorCDR_20' ) end [2025-03-26 17:41:21] Production.INFO: ProcessCDR(1,14768428,1,1,2) [2025-03-26 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768428', 'tblTempUsageDetail_20' ) start [2025-03-26 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768428', 'tblTempUsageDetail_20' ) end [2025-03-26 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:41:27] Production.INFO: ==32738== Releasing lock... [2025-03-26 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:41:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:42:05 [end_date_ymd] => 2025-03-26 17:42:05 [RateCDR] => 1 ) [2025-03-26 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-26 14:42:05' and `end` < '2025-03-26 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-26 17:42:19] Production.INFO: count ==6392 [2025-03-26 17:42:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:42:05 - End Time 2025-03-26 17:42:05 [2025-03-26 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768433', 'tblTempUsageDetail_20' ) start [2025-03-26 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768433', 'tblTempUsageDetail_20' ) end [2025-03-26 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768433', 'tblTempVendorCDR_20' ) start [2025-03-26 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768433', 'tblTempVendorCDR_20' ) end [2025-03-26 17:42:22] Production.INFO: ProcessCDR(1,14768433,1,1,2) [2025-03-26 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768433', 'tblTempUsageDetail_20' ) start [2025-03-26 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768433', 'tblTempUsageDetail_20' ) end [2025-03-26 17:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:42:27] Production.INFO: ==368== Releasing lock... [2025-03-26 17:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:42:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:43:05 [end_date_ymd] => 2025-03-26 17:43:05 [RateCDR] => 1 ) [2025-03-26 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:43:05' and `end` < '2025-03-26 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:43:19] Production.INFO: count ==6370 [2025-03-26 17:43:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:43:05 - End Time 2025-03-26 17:43:05 [2025-03-26 17:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768438', 'tblTempUsageDetail_20' ) start [2025-03-26 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768438', 'tblTempUsageDetail_20' ) end [2025-03-26 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768438', 'tblTempVendorCDR_20' ) start [2025-03-26 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768438', 'tblTempVendorCDR_20' ) end [2025-03-26 17:43:22] Production.INFO: ProcessCDR(1,14768438,1,1,2) [2025-03-26 17:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768438', 'tblTempUsageDetail_20' ) start [2025-03-26 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768438', 'tblTempUsageDetail_20' ) end [2025-03-26 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:43:27] Production.INFO: ==447== Releasing lock... [2025-03-26 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:43:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-26 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:44:05 [end_date_ymd] => 2025-03-26 17:44:05 [RateCDR] => 1 ) [2025-03-26 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-26 14:44:05' and `end` < '2025-03-26 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-26 17:44:19] Production.INFO: count ==6358 [2025-03-26 17:44:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:44:05 - End Time 2025-03-26 17:44:05 [2025-03-26 17:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768443', 'tblTempUsageDetail_20' ) start [2025-03-26 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768443', 'tblTempUsageDetail_20' ) end [2025-03-26 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768443', 'tblTempVendorCDR_20' ) start [2025-03-26 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768443', 'tblTempVendorCDR_20' ) end [2025-03-26 17:44:22] Production.INFO: ProcessCDR(1,14768443,1,1,2) [2025-03-26 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768443', 'tblTempUsageDetail_20' ) start [2025-03-26 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768443', 'tblTempUsageDetail_20' ) end [2025-03-26 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:44:27] Production.INFO: ==529== Releasing lock... [2025-03-26 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:44:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-26 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:45:05 [end_date_ymd] => 2025-03-26 17:45:05 [RateCDR] => 1 ) [2025-03-26 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:45:05' and `end` < '2025-03-26 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:45:18] Production.INFO: count ==6334 [2025-03-26 17:45:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:45:05 - End Time 2025-03-26 17:45:05 [2025-03-26 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768448', 'tblTempUsageDetail_20' ) start [2025-03-26 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768448', 'tblTempUsageDetail_20' ) end [2025-03-26 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768448', 'tblTempVendorCDR_20' ) start [2025-03-26 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768448', 'tblTempVendorCDR_20' ) end [2025-03-26 17:45:21] Production.INFO: ProcessCDR(1,14768448,1,1,2) [2025-03-26 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768448', 'tblTempUsageDetail_20' ) start [2025-03-26 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768448', 'tblTempUsageDetail_20' ) end [2025-03-26 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:45:26] Production.INFO: ==653== Releasing lock... [2025-03-26 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:45:26] Production.INFO: 75.5 MB #Memory Used# [2025-03-26 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:46:05 [end_date_ymd] => 2025-03-26 17:46:05 [RateCDR] => 1 ) [2025-03-26 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:46:05' and `end` < '2025-03-26 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:46:19] Production.INFO: count ==6319 [2025-03-26 17:46:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:46:05 - End Time 2025-03-26 17:46:05 [2025-03-26 17:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768453', 'tblTempUsageDetail_20' ) start [2025-03-26 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768453', 'tblTempUsageDetail_20' ) end [2025-03-26 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768453', 'tblTempVendorCDR_20' ) start [2025-03-26 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768453', 'tblTempVendorCDR_20' ) end [2025-03-26 17:46:22] Production.INFO: ProcessCDR(1,14768453,1,1,2) [2025-03-26 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768453', 'tblTempUsageDetail_20' ) start [2025-03-26 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768453', 'tblTempUsageDetail_20' ) end [2025-03-26 17:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:46:27] Production.INFO: ==760== Releasing lock... [2025-03-26 17:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:46:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:47:05 [end_date_ymd] => 2025-03-26 17:47:05 [RateCDR] => 1 ) [2025-03-26 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:47:05' and `end` < '2025-03-26 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:47:18] Production.INFO: count ==6311 [2025-03-26 17:47:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:47:05 - End Time 2025-03-26 17:47:05 [2025-03-26 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768458', 'tblTempUsageDetail_20' ) start [2025-03-26 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768458', 'tblTempUsageDetail_20' ) end [2025-03-26 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768458', 'tblTempVendorCDR_20' ) start [2025-03-26 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768458', 'tblTempVendorCDR_20' ) end [2025-03-26 17:47:21] Production.INFO: ProcessCDR(1,14768458,1,1,2) [2025-03-26 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768458', 'tblTempUsageDetail_20' ) start [2025-03-26 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768458', 'tblTempUsageDetail_20' ) end [2025-03-26 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:47:25] Production.INFO: ==843== Releasing lock... [2025-03-26 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:47:25] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:48:05 [end_date_ymd] => 2025-03-26 17:48:05 [RateCDR] => 1 ) [2025-03-26 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:48:05' and `end` < '2025-03-26 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:48:19] Production.INFO: count ==6312 [2025-03-26 17:48:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:48:05 - End Time 2025-03-26 17:48:05 [2025-03-26 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768463', 'tblTempUsageDetail_20' ) start [2025-03-26 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768463', 'tblTempUsageDetail_20' ) end [2025-03-26 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768463', 'tblTempVendorCDR_20' ) start [2025-03-26 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768463', 'tblTempVendorCDR_20' ) end [2025-03-26 17:48:22] Production.INFO: ProcessCDR(1,14768463,1,1,2) [2025-03-26 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768463', 'tblTempUsageDetail_20' ) start [2025-03-26 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768463', 'tblTempUsageDetail_20' ) end [2025-03-26 17:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:48:27] Production.INFO: ==929== Releasing lock... [2025-03-26 17:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:48:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:49:05 [end_date_ymd] => 2025-03-26 17:49:05 [RateCDR] => 1 ) [2025-03-26 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:49:05' and `end` < '2025-03-26 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:49:19] Production.INFO: count ==6320 [2025-03-26 17:49:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:49:05 - End Time 2025-03-26 17:49:05 [2025-03-26 17:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768468', 'tblTempUsageDetail_20' ) start [2025-03-26 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768468', 'tblTempUsageDetail_20' ) end [2025-03-26 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768468', 'tblTempVendorCDR_20' ) start [2025-03-26 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768468', 'tblTempVendorCDR_20' ) end [2025-03-26 17:49:22] Production.INFO: ProcessCDR(1,14768468,1,1,2) [2025-03-26 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768468', 'tblTempUsageDetail_20' ) start [2025-03-26 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768468', 'tblTempUsageDetail_20' ) end [2025-03-26 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:49:25] Production.INFO: ==1016== Releasing lock... [2025-03-26 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:49:25] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:50:06 [end_date_ymd] => 2025-03-26 17:50:06 [RateCDR] => 1 ) [2025-03-26 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-26 14:50:06' and `end` < '2025-03-26 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-26 17:50:20] Production.INFO: count ==6313 [2025-03-26 17:50:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:50:06 - End Time 2025-03-26 17:50:06 [2025-03-26 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768474', 'tblTempUsageDetail_20' ) start [2025-03-26 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768474', 'tblTempUsageDetail_20' ) end [2025-03-26 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768474', 'tblTempVendorCDR_20' ) start [2025-03-26 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768474', 'tblTempVendorCDR_20' ) end [2025-03-26 17:50:23] Production.INFO: ProcessCDR(1,14768474,1,1,2) [2025-03-26 17:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768474', 'tblTempUsageDetail_20' ) start [2025-03-26 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768474', 'tblTempUsageDetail_20' ) end [2025-03-26 17:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:50:28] Production.INFO: ==1096== Releasing lock... [2025-03-26 17:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:50:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-26 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:51:06 [end_date_ymd] => 2025-03-26 17:51:06 [RateCDR] => 1 ) [2025-03-26 17:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:51:06' and `end` < '2025-03-26 17:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:51:20] Production.INFO: count ==6268 [2025-03-26 17:51:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:51:06 - End Time 2025-03-26 17:51:06 [2025-03-26 17:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768479', 'tblTempUsageDetail_20' ) start [2025-03-26 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768479', 'tblTempUsageDetail_20' ) end [2025-03-26 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768479', 'tblTempVendorCDR_20' ) start [2025-03-26 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768479', 'tblTempVendorCDR_20' ) end [2025-03-26 17:51:23] Production.INFO: ProcessCDR(1,14768479,1,1,2) [2025-03-26 17:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768479', 'tblTempUsageDetail_20' ) start [2025-03-26 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768479', 'tblTempUsageDetail_20' ) end [2025-03-26 17:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:51:27] Production.INFO: ==1191== Releasing lock... [2025-03-26 17:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:51:27] Production.INFO: 75 MB #Memory Used# [2025-03-26 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:52:05 [end_date_ymd] => 2025-03-26 17:52:05 [RateCDR] => 1 ) [2025-03-26 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-26 14:52:05' and `end` < '2025-03-26 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-26 17:52:19] Production.INFO: count ==6266 [2025-03-26 17:52:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:52:05 - End Time 2025-03-26 17:52:05 [2025-03-26 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768484', 'tblTempUsageDetail_20' ) start [2025-03-26 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768484', 'tblTempUsageDetail_20' ) end [2025-03-26 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768484', 'tblTempVendorCDR_20' ) start [2025-03-26 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768484', 'tblTempVendorCDR_20' ) end [2025-03-26 17:52:22] Production.INFO: ProcessCDR(1,14768484,1,1,2) [2025-03-26 17:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768484', 'tblTempUsageDetail_20' ) start [2025-03-26 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768484', 'tblTempUsageDetail_20' ) end [2025-03-26 17:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:52:25] Production.INFO: ==1286== Releasing lock... [2025-03-26 17:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:52:25] Production.INFO: 75 MB #Memory Used# [2025-03-26 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:53:05 [end_date_ymd] => 2025-03-26 17:53:05 [RateCDR] => 1 ) [2025-03-26 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:53:05' and `end` < '2025-03-26 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:53:19] Production.INFO: count ==6263 [2025-03-26 17:53:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:53:05 - End Time 2025-03-26 17:53:05 [2025-03-26 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768489', 'tblTempUsageDetail_20' ) start [2025-03-26 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768489', 'tblTempUsageDetail_20' ) end [2025-03-26 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768489', 'tblTempVendorCDR_20' ) start [2025-03-26 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768489', 'tblTempVendorCDR_20' ) end [2025-03-26 17:53:22] Production.INFO: ProcessCDR(1,14768489,1,1,2) [2025-03-26 17:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768489', 'tblTempUsageDetail_20' ) start [2025-03-26 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768489', 'tblTempUsageDetail_20' ) end [2025-03-26 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:53:25] Production.INFO: ==1367== Releasing lock... [2025-03-26 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:53:25] Production.INFO: 74.75 MB #Memory Used# [2025-03-26 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:54:06 [end_date_ymd] => 2025-03-26 17:54:06 [RateCDR] => 1 ) [2025-03-26 17:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:54:06' and `end` < '2025-03-26 17:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:54:19] Production.INFO: count ==6276 [2025-03-26 17:54:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:54:06 - End Time 2025-03-26 17:54:06 [2025-03-26 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768494', 'tblTempUsageDetail_20' ) start [2025-03-26 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768494', 'tblTempUsageDetail_20' ) end [2025-03-26 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768494', 'tblTempVendorCDR_20' ) start [2025-03-26 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768494', 'tblTempVendorCDR_20' ) end [2025-03-26 17:54:22] Production.INFO: ProcessCDR(1,14768494,1,1,2) [2025-03-26 17:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768494', 'tblTempUsageDetail_20' ) start [2025-03-26 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768494', 'tblTempUsageDetail_20' ) end [2025-03-26 17:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:54:27] Production.INFO: ==1450== Releasing lock... [2025-03-26 17:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:54:27] Production.INFO: 75 MB #Memory Used# [2025-03-26 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:55:05 [end_date_ymd] => 2025-03-26 17:55:05 [RateCDR] => 1 ) [2025-03-26 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-26 14:55:05' and `end` < '2025-03-26 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-26 17:55:19] Production.INFO: count ==6228 [2025-03-26 17:55:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:55:05 - End Time 2025-03-26 17:55:05 [2025-03-26 17:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768499', 'tblTempUsageDetail_20' ) start [2025-03-26 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768499', 'tblTempUsageDetail_20' ) end [2025-03-26 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768499', 'tblTempVendorCDR_20' ) start [2025-03-26 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768499', 'tblTempVendorCDR_20' ) end [2025-03-26 17:55:22] Production.INFO: ProcessCDR(1,14768499,1,1,2) [2025-03-26 17:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768499', 'tblTempUsageDetail_20' ) start [2025-03-26 17:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768499', 'tblTempUsageDetail_20' ) end [2025-03-26 17:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:55:28] Production.INFO: ==1560== Releasing lock... [2025-03-26 17:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:55:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-26 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:56:06 [end_date_ymd] => 2025-03-26 17:56:06 [RateCDR] => 1 ) [2025-03-26 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-26 14:56:06' and `end` < '2025-03-26 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-26 17:56:20] Production.INFO: count ==6219 [2025-03-26 17:56:23] Production.ERROR: pbx CDR StartTime 2025-03-26 14:56:06 - End Time 2025-03-26 17:56:06 [2025-03-26 17:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768504', 'tblTempUsageDetail_20' ) start [2025-03-26 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768504', 'tblTempUsageDetail_20' ) end [2025-03-26 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768504', 'tblTempVendorCDR_20' ) start [2025-03-26 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768504', 'tblTempVendorCDR_20' ) end [2025-03-26 17:56:23] Production.INFO: ProcessCDR(1,14768504,1,1,2) [2025-03-26 17:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768504', 'tblTempUsageDetail_20' ) start [2025-03-26 17:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768504', 'tblTempUsageDetail_20' ) end [2025-03-26 17:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:56:28] Production.INFO: ==1651== Releasing lock... [2025-03-26 17:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:56:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-26 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:57:05 [end_date_ymd] => 2025-03-26 17:57:05 [RateCDR] => 1 ) [2025-03-26 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 14:57:05' and `end` < '2025-03-26 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:57:19] Production.INFO: count ==6223 [2025-03-26 17:57:21] Production.ERROR: pbx CDR StartTime 2025-03-26 14:57:05 - End Time 2025-03-26 17:57:05 [2025-03-26 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768509', 'tblTempUsageDetail_20' ) start [2025-03-26 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768509', 'tblTempUsageDetail_20' ) end [2025-03-26 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768509', 'tblTempVendorCDR_20' ) start [2025-03-26 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768509', 'tblTempVendorCDR_20' ) end [2025-03-26 17:57:22] Production.INFO: ProcessCDR(1,14768509,1,1,2) [2025-03-26 17:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768509', 'tblTempUsageDetail_20' ) start [2025-03-26 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768509', 'tblTempUsageDetail_20' ) end [2025-03-26 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:57:25] Production.INFO: ==1733== Releasing lock... [2025-03-26 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:57:25] Production.INFO: 74.5 MB #Memory Used# [2025-03-26 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:58:05 [end_date_ymd] => 2025-03-26 17:58:05 [RateCDR] => 1 ) [2025-03-26 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-26 14:58:05' and `end` < '2025-03-26 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-26 17:58:19] Production.INFO: count ==6218 [2025-03-26 17:58:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:58:05 - End Time 2025-03-26 17:58:05 [2025-03-26 17:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768514', 'tblTempUsageDetail_20' ) start [2025-03-26 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768514', 'tblTempUsageDetail_20' ) end [2025-03-26 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768514', 'tblTempVendorCDR_20' ) start [2025-03-26 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768514', 'tblTempVendorCDR_20' ) end [2025-03-26 17:58:22] Production.INFO: ProcessCDR(1,14768514,1,1,2) [2025-03-26 17:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768514', 'tblTempUsageDetail_20' ) start [2025-03-26 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768514', 'tblTempUsageDetail_20' ) end [2025-03-26 17:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:58:27] Production.INFO: ==1820== Releasing lock... [2025-03-26 17:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:58:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-26 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 14:59:05 [end_date_ymd] => 2025-03-26 17:59:05 [RateCDR] => 1 ) [2025-03-26 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-26 14:59:05' and `end` < '2025-03-26 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 17:59:19] Production.INFO: count ==6203 [2025-03-26 17:59:22] Production.ERROR: pbx CDR StartTime 2025-03-26 14:59:05 - End Time 2025-03-26 17:59:05 [2025-03-26 17:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768519', 'tblTempUsageDetail_20' ) start [2025-03-26 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768519', 'tblTempUsageDetail_20' ) end [2025-03-26 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768519', 'tblTempVendorCDR_20' ) start [2025-03-26 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768519', 'tblTempVendorCDR_20' ) end [2025-03-26 17:59:22] Production.INFO: ProcessCDR(1,14768519,1,1,2) [2025-03-26 17:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768519', 'tblTempUsageDetail_20' ) start [2025-03-26 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768519', 'tblTempUsageDetail_20' ) end [2025-03-26 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 17:59:26] Production.INFO: ==1899== Releasing lock... [2025-03-26 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 17:59:26] Production.INFO: 74.5 MB #Memory Used# [2025-03-26 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:00:07 [end_date_ymd] => 2025-03-26 18:00:07 [RateCDR] => 1 ) [2025-03-26 18:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:00:07' and `end` < '2025-03-26 18:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:00:20] Production.INFO: count ==6165 [2025-03-26 18:00:23] Production.ERROR: pbx CDR StartTime 2025-03-26 15:00:07 - End Time 2025-03-26 18:00:07 [2025-03-26 18:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768524', 'tblTempUsageDetail_20' ) start [2025-03-26 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768524', 'tblTempUsageDetail_20' ) end [2025-03-26 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768524', 'tblTempVendorCDR_20' ) start [2025-03-26 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768524', 'tblTempVendorCDR_20' ) end [2025-03-26 18:00:23] Production.INFO: ProcessCDR(1,14768524,1,1,2) [2025-03-26 18:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768524', 'tblTempUsageDetail_20' ) start [2025-03-26 18:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768524', 'tblTempUsageDetail_20' ) end [2025-03-26 18:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:00:29] Production.INFO: ==2023== Releasing lock... [2025-03-26 18:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:00:29] Production.INFO: 74.25 MB #Memory Used# [2025-03-26 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:01:05 [end_date_ymd] => 2025-03-26 18:01:05 [RateCDR] => 1 ) [2025-03-26 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:01:05' and `end` < '2025-03-26 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:01:19] Production.INFO: count ==6112 [2025-03-26 18:01:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:01:05 - End Time 2025-03-26 18:01:05 [2025-03-26 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768530', 'tblTempUsageDetail_20' ) start [2025-03-26 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768530', 'tblTempUsageDetail_20' ) end [2025-03-26 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768530', 'tblTempVendorCDR_20' ) start [2025-03-26 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768530', 'tblTempVendorCDR_20' ) end [2025-03-26 18:01:22] Production.INFO: ProcessCDR(1,14768530,1,1,2) [2025-03-26 18:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768530', 'tblTempUsageDetail_20' ) start [2025-03-26 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768530', 'tblTempUsageDetail_20' ) end [2025-03-26 18:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:01:27] Production.INFO: ==2117== Releasing lock... [2025-03-26 18:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:01:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-26 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:02:05 [end_date_ymd] => 2025-03-26 18:02:05 [RateCDR] => 1 ) [2025-03-26 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-26 15:02:05' and `end` < '2025-03-26 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-26 18:02:19] Production.INFO: count ==6072 [2025-03-26 18:02:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:02:05 - End Time 2025-03-26 18:02:05 [2025-03-26 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768535', 'tblTempUsageDetail_20' ) start [2025-03-26 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768535', 'tblTempUsageDetail_20' ) end [2025-03-26 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768535', 'tblTempVendorCDR_20' ) start [2025-03-26 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768535', 'tblTempVendorCDR_20' ) end [2025-03-26 18:02:22] Production.INFO: ProcessCDR(1,14768535,1,1,2) [2025-03-26 18:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768535', 'tblTempUsageDetail_20' ) start [2025-03-26 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768535', 'tblTempUsageDetail_20' ) end [2025-03-26 18:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:02:27] Production.INFO: ==2194== Releasing lock... [2025-03-26 18:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:02:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-26 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:03:05 [end_date_ymd] => 2025-03-26 18:03:05 [RateCDR] => 1 ) [2025-03-26 18: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-26 15:03:05' and `end` < '2025-03-26 18: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-26 18:03:18] Production.INFO: count ==6068 [2025-03-26 18:03:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:03:05 - End Time 2025-03-26 18:03:05 [2025-03-26 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768540', 'tblTempUsageDetail_20' ) start [2025-03-26 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768540', 'tblTempUsageDetail_20' ) end [2025-03-26 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768540', 'tblTempVendorCDR_20' ) start [2025-03-26 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768540', 'tblTempVendorCDR_20' ) end [2025-03-26 18:03:21] Production.INFO: ProcessCDR(1,14768540,1,1,2) [2025-03-26 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768540', 'tblTempUsageDetail_20' ) start [2025-03-26 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768540', 'tblTempUsageDetail_20' ) end [2025-03-26 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:03:26] Production.INFO: ==2272== Releasing lock... [2025-03-26 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:03:26] Production.INFO: 73.5 MB #Memory Used# [2025-03-26 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:04:05 [end_date_ymd] => 2025-03-26 18:04:05 [RateCDR] => 1 ) [2025-03-26 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:04:05' and `end` < '2025-03-26 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:04:19] Production.INFO: count ==6051 [2025-03-26 18:04:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:04:05 - End Time 2025-03-26 18:04:05 [2025-03-26 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768545', 'tblTempUsageDetail_20' ) start [2025-03-26 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768545', 'tblTempUsageDetail_20' ) end [2025-03-26 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768545', 'tblTempVendorCDR_20' ) start [2025-03-26 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768545', 'tblTempVendorCDR_20' ) end [2025-03-26 18:04:21] Production.INFO: ProcessCDR(1,14768545,1,1,2) [2025-03-26 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768545', 'tblTempUsageDetail_20' ) start [2025-03-26 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768545', 'tblTempUsageDetail_20' ) end [2025-03-26 18:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:04:27] Production.INFO: ==2351== Releasing lock... [2025-03-26 18:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:04:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-26 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:05:05 [end_date_ymd] => 2025-03-26 18:05:05 [RateCDR] => 1 ) [2025-03-26 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:05:05' and `end` < '2025-03-26 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:05:19] Production.INFO: count ==6033 [2025-03-26 18:05:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:05:05 - End Time 2025-03-26 18:05:05 [2025-03-26 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768550', 'tblTempUsageDetail_20' ) start [2025-03-26 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768550', 'tblTempUsageDetail_20' ) end [2025-03-26 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768550', 'tblTempVendorCDR_20' ) start [2025-03-26 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768550', 'tblTempVendorCDR_20' ) end [2025-03-26 18:05:22] Production.INFO: ProcessCDR(1,14768550,1,1,2) [2025-03-26 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768550', 'tblTempUsageDetail_20' ) start [2025-03-26 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768550', 'tblTempUsageDetail_20' ) end [2025-03-26 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:05:25] Production.INFO: ==2431== Releasing lock... [2025-03-26 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:05:25] Production.INFO: 73.25 MB #Memory Used# [2025-03-26 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:06:06 [end_date_ymd] => 2025-03-26 18:06:06 [RateCDR] => 1 ) [2025-03-26 18:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:06:06' and `end` < '2025-03-26 18:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:06:19] Production.INFO: count ==5996 [2025-03-26 18:06:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:06:06 - End Time 2025-03-26 18:06:06 [2025-03-26 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768555', 'tblTempUsageDetail_20' ) start [2025-03-26 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768555', 'tblTempUsageDetail_20' ) end [2025-03-26 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768555', 'tblTempVendorCDR_20' ) start [2025-03-26 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768555', 'tblTempVendorCDR_20' ) end [2025-03-26 18:06:22] Production.INFO: ProcessCDR(1,14768555,1,1,2) [2025-03-26 18:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768555', 'tblTempUsageDetail_20' ) start [2025-03-26 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768555', 'tblTempUsageDetail_20' ) end [2025-03-26 18:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:06:27] Production.INFO: ==2509== Releasing lock... [2025-03-26 18:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:06:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-26 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:07:05 [end_date_ymd] => 2025-03-26 18:07:05 [RateCDR] => 1 ) [2025-03-26 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:07:05' and `end` < '2025-03-26 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:07:18] Production.INFO: count ==5977 [2025-03-26 18:07:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:07:05 - End Time 2025-03-26 18:07:05 [2025-03-26 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768560', 'tblTempUsageDetail_20' ) start [2025-03-26 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768560', 'tblTempUsageDetail_20' ) end [2025-03-26 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768560', 'tblTempVendorCDR_20' ) start [2025-03-26 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768560', 'tblTempVendorCDR_20' ) end [2025-03-26 18:07:21] Production.INFO: ProcessCDR(1,14768560,1,1,2) [2025-03-26 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768560', 'tblTempUsageDetail_20' ) start [2025-03-26 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768560', 'tblTempUsageDetail_20' ) end [2025-03-26 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:07:26] Production.INFO: ==2587== Releasing lock... [2025-03-26 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:07:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-26 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:08:06 [end_date_ymd] => 2025-03-26 18:08:06 [RateCDR] => 1 ) [2025-03-26 18: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-26 15:08:06' and `end` < '2025-03-26 18: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-26 18:08:19] Production.INFO: count ==5979 [2025-03-26 18:08:22] Production.ERROR: pbx CDR StartTime 2025-03-26 15:08:06 - End Time 2025-03-26 18:08:06 [2025-03-26 18:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768565', 'tblTempUsageDetail_20' ) start [2025-03-26 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768565', 'tblTempUsageDetail_20' ) end [2025-03-26 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768565', 'tblTempVendorCDR_20' ) start [2025-03-26 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768565', 'tblTempVendorCDR_20' ) end [2025-03-26 18:08:22] Production.INFO: ProcessCDR(1,14768565,1,1,2) [2025-03-26 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768565', 'tblTempUsageDetail_20' ) start [2025-03-26 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768565', 'tblTempUsageDetail_20' ) end [2025-03-26 18:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:08:27] Production.INFO: ==2676== Releasing lock... [2025-03-26 18:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:08:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-26 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:09:06 [end_date_ymd] => 2025-03-26 18:09:06 [RateCDR] => 1 ) [2025-03-26 18:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:09:06' and `end` < '2025-03-26 18:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:09:20] Production.INFO: count ==5983 [2025-03-26 18:09:22] Production.ERROR: pbx CDR StartTime 2025-03-26 15:09:06 - End Time 2025-03-26 18:09:06 [2025-03-26 18:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768570', 'tblTempUsageDetail_20' ) start [2025-03-26 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768570', 'tblTempUsageDetail_20' ) end [2025-03-26 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768570', 'tblTempVendorCDR_20' ) start [2025-03-26 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768570', 'tblTempVendorCDR_20' ) end [2025-03-26 18:09:22] Production.INFO: ProcessCDR(1,14768570,1,1,2) [2025-03-26 18:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768570', 'tblTempUsageDetail_20' ) start [2025-03-26 18:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768570', 'tblTempUsageDetail_20' ) end [2025-03-26 18:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:09:28] Production.INFO: ==2758== Releasing lock... [2025-03-26 18:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:09:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-26 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:10:06 [end_date_ymd] => 2025-03-26 18:10:06 [RateCDR] => 1 ) [2025-03-26 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-26 15:10:06' and `end` < '2025-03-26 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-26 18:10:19] Production.INFO: count ==5983 [2025-03-26 18:10:22] Production.ERROR: pbx CDR StartTime 2025-03-26 15:10:06 - End Time 2025-03-26 18:10:06 [2025-03-26 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768575', 'tblTempUsageDetail_20' ) start [2025-03-26 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768575', 'tblTempUsageDetail_20' ) end [2025-03-26 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768575', 'tblTempVendorCDR_20' ) start [2025-03-26 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768575', 'tblTempVendorCDR_20' ) end [2025-03-26 18:10:22] Production.INFO: ProcessCDR(1,14768575,1,1,2) [2025-03-26 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768575', 'tblTempUsageDetail_20' ) start [2025-03-26 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768575', 'tblTempUsageDetail_20' ) end [2025-03-26 18:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:10:27] Production.INFO: ==2835== Releasing lock... [2025-03-26 18:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:10:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-26 18:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:11:06 [end_date_ymd] => 2025-03-26 18:11:06 [RateCDR] => 1 ) [2025-03-26 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-26 15:11:06' and `end` < '2025-03-26 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-26 18:11:20] Production.INFO: count ==5951 [2025-03-26 18:11:22] Production.ERROR: pbx CDR StartTime 2025-03-26 15:11:06 - End Time 2025-03-26 18:11:06 [2025-03-26 18:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768581', 'tblTempUsageDetail_20' ) start [2025-03-26 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768581', 'tblTempUsageDetail_20' ) end [2025-03-26 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768581', 'tblTempVendorCDR_20' ) start [2025-03-26 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768581', 'tblTempVendorCDR_20' ) end [2025-03-26 18:11:22] Production.INFO: ProcessCDR(1,14768581,1,1,2) [2025-03-26 18:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768581', 'tblTempUsageDetail_20' ) start [2025-03-26 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768581', 'tblTempUsageDetail_20' ) end [2025-03-26 18:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:11:27] Production.INFO: ==2918== Releasing lock... [2025-03-26 18:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:11:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-26 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:12:05 [end_date_ymd] => 2025-03-26 18:12:05 [RateCDR] => 1 ) [2025-03-26 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-26 15:12:05' and `end` < '2025-03-26 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-26 18:12:19] Production.INFO: count ==5947 [2025-03-26 18:12:22] Production.ERROR: pbx CDR StartTime 2025-03-26 15:12:05 - End Time 2025-03-26 18:12:05 [2025-03-26 18:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768586', 'tblTempUsageDetail_20' ) start [2025-03-26 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768586', 'tblTempUsageDetail_20' ) end [2025-03-26 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768586', 'tblTempVendorCDR_20' ) start [2025-03-26 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768586', 'tblTempVendorCDR_20' ) end [2025-03-26 18:12:22] Production.INFO: ProcessCDR(1,14768586,1,1,2) [2025-03-26 18:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768586', 'tblTempUsageDetail_20' ) start [2025-03-26 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768586', 'tblTempUsageDetail_20' ) end [2025-03-26 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:12:27] Production.INFO: ==2997== Releasing lock... [2025-03-26 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:12:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-26 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:13:05 [end_date_ymd] => 2025-03-26 18:13:05 [RateCDR] => 1 ) [2025-03-26 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:13:05' and `end` < '2025-03-26 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:13:19] Production.INFO: count ==5941 [2025-03-26 18:13:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:13:05 - End Time 2025-03-26 18:13:05 [2025-03-26 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768591', 'tblTempUsageDetail_20' ) start [2025-03-26 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768591', 'tblTempUsageDetail_20' ) end [2025-03-26 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768591', 'tblTempVendorCDR_20' ) start [2025-03-26 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768591', 'tblTempVendorCDR_20' ) end [2025-03-26 18:13:22] Production.INFO: ProcessCDR(1,14768591,1,1,2) [2025-03-26 18:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768591', 'tblTempUsageDetail_20' ) start [2025-03-26 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768591', 'tblTempUsageDetail_20' ) end [2025-03-26 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:13:25] Production.INFO: ==3074== Releasing lock... [2025-03-26 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:13:25] Production.INFO: 72.5 MB #Memory Used# [2025-03-26 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:14:05 [end_date_ymd] => 2025-03-26 18:14:05 [RateCDR] => 1 ) [2025-03-26 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:14:05' and `end` < '2025-03-26 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:14:18] Production.INFO: count ==5915 [2025-03-26 18:14:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:14:05 - End Time 2025-03-26 18:14:05 [2025-03-26 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768596', 'tblTempUsageDetail_20' ) start [2025-03-26 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768596', 'tblTempUsageDetail_20' ) end [2025-03-26 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768596', 'tblTempVendorCDR_20' ) start [2025-03-26 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768596', 'tblTempVendorCDR_20' ) end [2025-03-26 18:14:21] Production.INFO: ProcessCDR(1,14768596,1,1,2) [2025-03-26 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768596', 'tblTempUsageDetail_20' ) start [2025-03-26 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768596', 'tblTempUsageDetail_20' ) end [2025-03-26 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:14:26] Production.INFO: ==3148== Releasing lock... [2025-03-26 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:14:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-26 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:15:06 [end_date_ymd] => 2025-03-26 18:15:06 [RateCDR] => 1 ) [2025-03-26 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-26 15:15:06' and `end` < '2025-03-26 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-26 18:15:19] Production.INFO: count ==5911 [2025-03-26 18:15:22] Production.ERROR: pbx CDR StartTime 2025-03-26 15:15:06 - End Time 2025-03-26 18:15:06 [2025-03-26 18:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768601', 'tblTempUsageDetail_20' ) start [2025-03-26 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768601', 'tblTempUsageDetail_20' ) end [2025-03-26 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768601', 'tblTempVendorCDR_20' ) start [2025-03-26 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768601', 'tblTempVendorCDR_20' ) end [2025-03-26 18:15:22] Production.INFO: ProcessCDR(1,14768601,1,1,2) [2025-03-26 18:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768601', 'tblTempUsageDetail_20' ) start [2025-03-26 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768601', 'tblTempUsageDetail_20' ) end [2025-03-26 18:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:15:27] Production.INFO: ==3228== Releasing lock... [2025-03-26 18:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:15:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-26 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:16:05 [end_date_ymd] => 2025-03-26 18:16:05 [RateCDR] => 1 ) [2025-03-26 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-26 15:16:05' and `end` < '2025-03-26 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-26 18:16:18] Production.INFO: count ==5899 [2025-03-26 18:16:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:16:05 - End Time 2025-03-26 18:16:05 [2025-03-26 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768606', 'tblTempUsageDetail_20' ) start [2025-03-26 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768606', 'tblTempUsageDetail_20' ) end [2025-03-26 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768606', 'tblTempVendorCDR_20' ) start [2025-03-26 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768606', 'tblTempVendorCDR_20' ) end [2025-03-26 18:16:21] Production.INFO: ProcessCDR(1,14768606,1,1,2) [2025-03-26 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768606', 'tblTempUsageDetail_20' ) start [2025-03-26 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768606', 'tblTempUsageDetail_20' ) end [2025-03-26 18:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:16:26] Production.INFO: ==3344== Releasing lock... [2025-03-26 18:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:16:26] Production.INFO: 72 MB #Memory Used# [2025-03-26 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:17:05 [end_date_ymd] => 2025-03-26 18:17:05 [RateCDR] => 1 ) [2025-03-26 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:17:05' and `end` < '2025-03-26 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:17:19] Production.INFO: count ==5888 [2025-03-26 18:17:22] Production.ERROR: pbx CDR StartTime 2025-03-26 15:17:05 - End Time 2025-03-26 18:17:05 [2025-03-26 18:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768611', 'tblTempUsageDetail_20' ) start [2025-03-26 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768611', 'tblTempUsageDetail_20' ) end [2025-03-26 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768611', 'tblTempVendorCDR_20' ) start [2025-03-26 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768611', 'tblTempVendorCDR_20' ) end [2025-03-26 18:17:22] Production.INFO: ProcessCDR(1,14768611,1,1,2) [2025-03-26 18:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768611', 'tblTempUsageDetail_20' ) start [2025-03-26 18:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768611', 'tblTempUsageDetail_20' ) end [2025-03-26 18:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:17:27] Production.INFO: ==3422== Releasing lock... [2025-03-26 18:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:17:27] Production.INFO: 72 MB #Memory Used# [2025-03-26 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:18:05 [end_date_ymd] => 2025-03-26 18:18:05 [RateCDR] => 1 ) [2025-03-26 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-26 15:18:05' and `end` < '2025-03-26 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-26 18:18:18] Production.INFO: count ==5877 [2025-03-26 18:18:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:18:05 - End Time 2025-03-26 18:18:05 [2025-03-26 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768616', 'tblTempUsageDetail_20' ) start [2025-03-26 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768616', 'tblTempUsageDetail_20' ) end [2025-03-26 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768616', 'tblTempVendorCDR_20' ) start [2025-03-26 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768616', 'tblTempVendorCDR_20' ) end [2025-03-26 18:18:21] Production.INFO: ProcessCDR(1,14768616,1,1,2) [2025-03-26 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768616', 'tblTempUsageDetail_20' ) start [2025-03-26 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768616', 'tblTempUsageDetail_20' ) end [2025-03-26 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:18:26] Production.INFO: ==3497== Releasing lock... [2025-03-26 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:18:26] Production.INFO: 72 MB #Memory Used# [2025-03-26 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:19:05 [end_date_ymd] => 2025-03-26 18:19:05 [RateCDR] => 1 ) [2025-03-26 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:19:05' and `end` < '2025-03-26 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:19:19] Production.INFO: count ==5863 [2025-03-26 18:19:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:19:05 - End Time 2025-03-26 18:19:05 [2025-03-26 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768621', 'tblTempUsageDetail_20' ) start [2025-03-26 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768621', 'tblTempUsageDetail_20' ) end [2025-03-26 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768621', 'tblTempVendorCDR_20' ) start [2025-03-26 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768621', 'tblTempVendorCDR_20' ) end [2025-03-26 18:19:21] Production.INFO: ProcessCDR(1,14768621,1,1,2) [2025-03-26 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768621', 'tblTempUsageDetail_20' ) start [2025-03-26 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768621', 'tblTempUsageDetail_20' ) end [2025-03-26 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:19:25] Production.INFO: ==3572== Releasing lock... [2025-03-26 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:19:25] Production.INFO: 71.75 MB #Memory Used# [2025-03-26 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:20:06 [end_date_ymd] => 2025-03-26 18:20:06 [RateCDR] => 1 ) [2025-03-26 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-26 15:20:06' and `end` < '2025-03-26 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-26 18:20:19] Production.INFO: count ==5864 [2025-03-26 18:20:22] Production.ERROR: pbx CDR StartTime 2025-03-26 15:20:06 - End Time 2025-03-26 18:20:06 [2025-03-26 18:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768627', 'tblTempUsageDetail_20' ) start [2025-03-26 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768627', 'tblTempUsageDetail_20' ) end [2025-03-26 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768627', 'tblTempVendorCDR_20' ) start [2025-03-26 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768627', 'tblTempVendorCDR_20' ) end [2025-03-26 18:20:22] Production.INFO: ProcessCDR(1,14768627,1,1,2) [2025-03-26 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768627', 'tblTempUsageDetail_20' ) start [2025-03-26 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768627', 'tblTempUsageDetail_20' ) end [2025-03-26 18:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:20:27] Production.INFO: ==3650== Releasing lock... [2025-03-26 18:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:20:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-26 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:21:06 [end_date_ymd] => 2025-03-26 18:21:06 [RateCDR] => 1 ) [2025-03-26 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-26 15:21:06' and `end` < '2025-03-26 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-26 18:21:19] Production.INFO: count ==5819 [2025-03-26 18:21:22] Production.ERROR: pbx CDR StartTime 2025-03-26 15:21:06 - End Time 2025-03-26 18:21:06 [2025-03-26 18:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768632', 'tblTempUsageDetail_20' ) start [2025-03-26 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768632', 'tblTempUsageDetail_20' ) end [2025-03-26 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768632', 'tblTempVendorCDR_20' ) start [2025-03-26 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768632', 'tblTempVendorCDR_20' ) end [2025-03-26 18:21:22] Production.INFO: ProcessCDR(1,14768632,1,1,2) [2025-03-26 18:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768632', 'tblTempUsageDetail_20' ) start [2025-03-26 18:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768632', 'tblTempUsageDetail_20' ) end [2025-03-26 18:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:21:27] Production.INFO: ==3728== Releasing lock... [2025-03-26 18:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:21:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-26 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:22:05 [end_date_ymd] => 2025-03-26 18:22:05 [RateCDR] => 1 ) [2025-03-26 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-26 15:22:05' and `end` < '2025-03-26 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-26 18:22:19] Production.INFO: count ==5786 [2025-03-26 18:22:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:22:05 - End Time 2025-03-26 18:22:05 [2025-03-26 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768637', 'tblTempUsageDetail_20' ) start [2025-03-26 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768637', 'tblTempUsageDetail_20' ) end [2025-03-26 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768637', 'tblTempVendorCDR_20' ) start [2025-03-26 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768637', 'tblTempVendorCDR_20' ) end [2025-03-26 18:22:21] Production.INFO: ProcessCDR(1,14768637,1,1,2) [2025-03-26 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768637', 'tblTempUsageDetail_20' ) start [2025-03-26 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768637', 'tblTempUsageDetail_20' ) end [2025-03-26 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:22:25] Production.INFO: ==3800== Releasing lock... [2025-03-26 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:22:25] Production.INFO: 71.25 MB #Memory Used# [2025-03-26 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:23:05 [end_date_ymd] => 2025-03-26 18:23:05 [RateCDR] => 1 ) [2025-03-26 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:23:05' and `end` < '2025-03-26 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:23:18] Production.INFO: count ==5751 [2025-03-26 18:23:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:23:05 - End Time 2025-03-26 18:23:05 [2025-03-26 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768642', 'tblTempUsageDetail_20' ) start [2025-03-26 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768642', 'tblTempUsageDetail_20' ) end [2025-03-26 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768642', 'tblTempVendorCDR_20' ) start [2025-03-26 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768642', 'tblTempVendorCDR_20' ) end [2025-03-26 18:23:21] Production.INFO: ProcessCDR(1,14768642,1,1,2) [2025-03-26 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768642', 'tblTempUsageDetail_20' ) start [2025-03-26 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768642', 'tblTempUsageDetail_20' ) end [2025-03-26 18:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:23:26] Production.INFO: ==3886== Releasing lock... [2025-03-26 18:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:23:26] Production.INFO: 71 MB #Memory Used# [2025-03-26 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:24:05 [end_date_ymd] => 2025-03-26 18:24:05 [RateCDR] => 1 ) [2025-03-26 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:24:05' and `end` < '2025-03-26 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:24:19] Production.INFO: count ==5734 [2025-03-26 18:24:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:24:05 - End Time 2025-03-26 18:24:05 [2025-03-26 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768647', 'tblTempUsageDetail_20' ) start [2025-03-26 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768647', 'tblTempUsageDetail_20' ) end [2025-03-26 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768647', 'tblTempVendorCDR_20' ) start [2025-03-26 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768647', 'tblTempVendorCDR_20' ) end [2025-03-26 18:24:21] Production.INFO: ProcessCDR(1,14768647,1,1,2) [2025-03-26 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768647', 'tblTempUsageDetail_20' ) start [2025-03-26 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768647', 'tblTempUsageDetail_20' ) end [2025-03-26 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:24:26] Production.INFO: ==3988== Releasing lock... [2025-03-26 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:24:26] Production.INFO: 71 MB #Memory Used# [2025-03-26 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:25:05 [end_date_ymd] => 2025-03-26 18:25:05 [RateCDR] => 1 ) [2025-03-26 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:25:05' and `end` < '2025-03-26 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:25:19] Production.INFO: count ==5707 [2025-03-26 18:25:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:25:05 - End Time 2025-03-26 18:25:05 [2025-03-26 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768652', 'tblTempUsageDetail_20' ) start [2025-03-26 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768652', 'tblTempUsageDetail_20' ) end [2025-03-26 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768652', 'tblTempVendorCDR_20' ) start [2025-03-26 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768652', 'tblTempVendorCDR_20' ) end [2025-03-26 18:25:21] Production.INFO: ProcessCDR(1,14768652,1,1,2) [2025-03-26 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:25:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:25:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768652', 'tblTempUsageDetail_20' ) start [2025-03-26 18:25:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768652', 'tblTempUsageDetail_20' ) end [2025-03-26 18:25:41] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:25:42] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:25:42] Production.INFO: ==4069== Releasing lock... [2025-03-26 18:25:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:25:42] Production.INFO: 70.75 MB #Memory Used# [2025-03-26 18:26:25] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:26:25 [end_date_ymd] => 2025-03-26 18:26:25 [RateCDR] => 1 ) [2025-03-26 18:26:25] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:26:25' and `end` < '2025-03-26 18:26:25' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:26:38] Production.INFO: count ==5689 [2025-03-26 18:27:37] Production.ERROR: pbx CDR StartTime 2025-03-26 15:26:25 - End Time 2025-03-26 18:26:25 [2025-03-26 18:27:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768657', 'tblTempUsageDetail_20' ) start [2025-03-26 18:27:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768657', 'tblTempUsageDetail_20' ) end [2025-03-26 18:27:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768657', 'tblTempVendorCDR_20' ) start [2025-03-26 18:27:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768657', 'tblTempVendorCDR_20' ) end [2025-03-26 18:27:42] Production.INFO: ProcessCDR(1,14768657,1,1,2) [2025-03-26 18:27:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:27:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:27:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768657', 'tblTempUsageDetail_20' ) start [2025-03-26 18:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768657', 'tblTempUsageDetail_20' ) end [2025-03-26 18:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:28:27] Production.INFO: ==4159== Releasing lock... [2025-03-26 18:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:28:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-26 18:29:19] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:29:19 [end_date_ymd] => 2025-03-26 18:29:19 [RateCDR] => 1 ) [2025-03-26 18:29:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:29:19' and `end` < '2025-03-26 18:29:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:29:33] Production.INFO: count ==5658 [2025-03-26 18:30:23] Production.ERROR: pbx CDR StartTime 2025-03-26 15:29:19 - End Time 2025-03-26 18:29:19 [2025-03-26 18:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768668', 'tblTempUsageDetail_20' ) start [2025-03-26 18:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768668', 'tblTempUsageDetail_20' ) end [2025-03-26 18:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768668', 'tblTempVendorCDR_20' ) start [2025-03-26 18:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768668', 'tblTempVendorCDR_20' ) end [2025-03-26 18:30:30] Production.INFO: ProcessCDR(1,14768668,1,1,2) [2025-03-26 18:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:30:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:30:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768668', 'tblTempUsageDetail_20' ) start [2025-03-26 18:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768668', 'tblTempUsageDetail_20' ) end [2025-03-26 18:31:37] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:31:37] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:31:40] Production.INFO: ==4395== Releasing lock... [2025-03-26 18:31:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:31:40] Production.INFO: 70.25 MB #Memory Used# [2025-03-26 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:32:06 [end_date_ymd] => 2025-03-26 18:32:06 [RateCDR] => 1 ) [2025-03-26 18: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-26 15:32:06' and `end` < '2025-03-26 18: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-26 18:32:19] Production.INFO: count ==5542 [2025-03-26 18:32:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:32:06 - End Time 2025-03-26 18:32:06 [2025-03-26 18:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768680', 'tblTempUsageDetail_20' ) start [2025-03-26 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768680', 'tblTempUsageDetail_20' ) end [2025-03-26 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768680', 'tblTempVendorCDR_20' ) start [2025-03-26 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768680', 'tblTempVendorCDR_20' ) end [2025-03-26 18:32:21] Production.INFO: ProcessCDR(1,14768680,1,1,2) [2025-03-26 18:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768680', 'tblTempUsageDetail_20' ) start [2025-03-26 18:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768680', 'tblTempUsageDetail_20' ) end [2025-03-26 18:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:32:27] Production.INFO: ==4687== Releasing lock... [2025-03-26 18:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:32:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-26 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:33:05 [end_date_ymd] => 2025-03-26 18:33:05 [RateCDR] => 1 ) [2025-03-26 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-26 15:33:05' and `end` < '2025-03-26 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-26 18:33:19] Production.INFO: count ==5522 [2025-03-26 18:33:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:33:05 - End Time 2025-03-26 18:33:05 [2025-03-26 18:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768685', 'tblTempUsageDetail_20' ) start [2025-03-26 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768685', 'tblTempUsageDetail_20' ) end [2025-03-26 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768685', 'tblTempVendorCDR_20' ) start [2025-03-26 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768685', 'tblTempVendorCDR_20' ) end [2025-03-26 18:33:21] Production.INFO: ProcessCDR(1,14768685,1,1,2) [2025-03-26 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768685', 'tblTempUsageDetail_20' ) start [2025-03-26 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768685', 'tblTempUsageDetail_20' ) end [2025-03-26 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:33:24] Production.INFO: ==4770== Releasing lock... [2025-03-26 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:33:24] Production.INFO: 69.25 MB #Memory Used# [2025-03-26 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:34:06 [end_date_ymd] => 2025-03-26 18:34:06 [RateCDR] => 1 ) [2025-03-26 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-26 15:34:06' and `end` < '2025-03-26 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-26 18:34:19] Production.INFO: count ==5540 [2025-03-26 18:34:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:34:06 - End Time 2025-03-26 18:34:06 [2025-03-26 18:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768690', 'tblTempUsageDetail_20' ) start [2025-03-26 18:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768690', 'tblTempUsageDetail_20' ) end [2025-03-26 18:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768690', 'tblTempVendorCDR_20' ) start [2025-03-26 18:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768690', 'tblTempVendorCDR_20' ) end [2025-03-26 18:34:22] Production.INFO: ProcessCDR(1,14768690,1,1,2) [2025-03-26 18:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768690', 'tblTempUsageDetail_20' ) start [2025-03-26 18:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768690', 'tblTempUsageDetail_20' ) end [2025-03-26 18:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:34:27] Production.INFO: ==4857== Releasing lock... [2025-03-26 18:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:34:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-26 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:35:05 [end_date_ymd] => 2025-03-26 18:35:05 [RateCDR] => 1 ) [2025-03-26 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-26 15:35:05' and `end` < '2025-03-26 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:35:19] Production.INFO: count ==5551 [2025-03-26 18:35:22] Production.ERROR: pbx CDR StartTime 2025-03-26 15:35:05 - End Time 2025-03-26 18:35:05 [2025-03-26 18:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768695', 'tblTempUsageDetail_20' ) start [2025-03-26 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768695', 'tblTempUsageDetail_20' ) end [2025-03-26 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768695', 'tblTempVendorCDR_20' ) start [2025-03-26 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768695', 'tblTempVendorCDR_20' ) end [2025-03-26 18:35:22] Production.INFO: ProcessCDR(1,14768695,1,1,2) [2025-03-26 18:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768695', 'tblTempUsageDetail_20' ) start [2025-03-26 18:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768695', 'tblTempUsageDetail_20' ) end [2025-03-26 18:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:35:28] Production.INFO: ==4938== Releasing lock... [2025-03-26 18:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:35:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-26 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:36:06 [end_date_ymd] => 2025-03-26 18:36:06 [RateCDR] => 1 ) [2025-03-26 18:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:36:06' and `end` < '2025-03-26 18:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:36:19] Production.INFO: count ==5551 [2025-03-26 18:36:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:36:06 - End Time 2025-03-26 18:36:06 [2025-03-26 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768700', 'tblTempUsageDetail_20' ) start [2025-03-26 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768700', 'tblTempUsageDetail_20' ) end [2025-03-26 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768700', 'tblTempVendorCDR_20' ) start [2025-03-26 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768700', 'tblTempVendorCDR_20' ) end [2025-03-26 18:36:21] Production.INFO: ProcessCDR(1,14768700,1,1,2) [2025-03-26 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768700', 'tblTempUsageDetail_20' ) start [2025-03-26 18:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768700', 'tblTempUsageDetail_20' ) end [2025-03-26 18:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:36:27] Production.INFO: ==5017== Releasing lock... [2025-03-26 18:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:36:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-26 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:37:05 [end_date_ymd] => 2025-03-26 18:37:05 [RateCDR] => 1 ) [2025-03-26 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:37:05' and `end` < '2025-03-26 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:37:19] Production.INFO: count ==5545 [2025-03-26 18:37:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:37:05 - End Time 2025-03-26 18:37:05 [2025-03-26 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768705', 'tblTempUsageDetail_20' ) start [2025-03-26 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768705', 'tblTempUsageDetail_20' ) end [2025-03-26 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768705', 'tblTempVendorCDR_20' ) start [2025-03-26 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768705', 'tblTempVendorCDR_20' ) end [2025-03-26 18:37:21] Production.INFO: ProcessCDR(1,14768705,1,1,2) [2025-03-26 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768705', 'tblTempUsageDetail_20' ) start [2025-03-26 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768705', 'tblTempUsageDetail_20' ) end [2025-03-26 18:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:37:26] Production.INFO: ==5096== Releasing lock... [2025-03-26 18:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:37:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-26 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:38:06 [end_date_ymd] => 2025-03-26 18:38:06 [RateCDR] => 1 ) [2025-03-26 18:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:38:06' and `end` < '2025-03-26 18:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:38:19] Production.INFO: count ==5530 [2025-03-26 18:38:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:38:06 - End Time 2025-03-26 18:38:06 [2025-03-26 18:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768710', 'tblTempUsageDetail_20' ) start [2025-03-26 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768710', 'tblTempUsageDetail_20' ) end [2025-03-26 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768710', 'tblTempVendorCDR_20' ) start [2025-03-26 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768710', 'tblTempVendorCDR_20' ) end [2025-03-26 18:38:22] Production.INFO: ProcessCDR(1,14768710,1,1,2) [2025-03-26 18:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768710', 'tblTempUsageDetail_20' ) start [2025-03-26 18:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768710', 'tblTempUsageDetail_20' ) end [2025-03-26 18:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:38:27] Production.INFO: ==5185== Releasing lock... [2025-03-26 18:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:38:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-26 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:39:05 [end_date_ymd] => 2025-03-26 18:39:05 [RateCDR] => 1 ) [2025-03-26 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:39:05' and `end` < '2025-03-26 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:39:18] Production.INFO: count ==5526 [2025-03-26 18:39:20] Production.ERROR: pbx CDR StartTime 2025-03-26 15:39:05 - End Time 2025-03-26 18:39:05 [2025-03-26 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768715', 'tblTempUsageDetail_20' ) start [2025-03-26 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768715', 'tblTempUsageDetail_20' ) end [2025-03-26 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768715', 'tblTempVendorCDR_20' ) start [2025-03-26 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768715', 'tblTempVendorCDR_20' ) end [2025-03-26 18:39:21] Production.INFO: ProcessCDR(1,14768715,1,1,2) [2025-03-26 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768715', 'tblTempUsageDetail_20' ) start [2025-03-26 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768715', 'tblTempUsageDetail_20' ) end [2025-03-26 18:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:39:26] Production.INFO: ==5266== Releasing lock... [2025-03-26 18:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:39:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-26 18:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:40:07 [end_date_ymd] => 2025-03-26 18:40:07 [RateCDR] => 1 ) [2025-03-26 18: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-26 15:40:07' and `end` < '2025-03-26 18: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-26 18:40:20] Production.INFO: count ==5506 [2025-03-26 18:40:22] Production.ERROR: pbx CDR StartTime 2025-03-26 15:40:07 - End Time 2025-03-26 18:40:07 [2025-03-26 18:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768721', 'tblTempUsageDetail_20' ) start [2025-03-26 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768721', 'tblTempUsageDetail_20' ) end [2025-03-26 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768721', 'tblTempVendorCDR_20' ) start [2025-03-26 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768721', 'tblTempVendorCDR_20' ) end [2025-03-26 18:40:22] Production.INFO: ProcessCDR(1,14768721,1,1,2) [2025-03-26 18:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768721', 'tblTempUsageDetail_20' ) start [2025-03-26 18:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768721', 'tblTempUsageDetail_20' ) end [2025-03-26 18:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:40:28] Production.INFO: ==5355== Releasing lock... [2025-03-26 18:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:40:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-26 18:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:41:04 [end_date_ymd] => 2025-03-26 18:41:04 [RateCDR] => 1 ) [2025-03-26 18: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-26 15:41:04' and `end` < '2025-03-26 18: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-26 18:41:18] Production.INFO: count ==5456 [2025-03-26 18:41:20] Production.ERROR: pbx CDR StartTime 2025-03-26 15:41:04 - End Time 2025-03-26 18:41:04 [2025-03-26 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768726', 'tblTempUsageDetail_20' ) start [2025-03-26 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768726', 'tblTempUsageDetail_20' ) end [2025-03-26 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768726', 'tblTempVendorCDR_20' ) start [2025-03-26 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768726', 'tblTempVendorCDR_20' ) end [2025-03-26 18:41:20] Production.INFO: ProcessCDR(1,14768726,1,1,2) [2025-03-26 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768726', 'tblTempUsageDetail_20' ) start [2025-03-26 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768726', 'tblTempUsageDetail_20' ) end [2025-03-26 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:41:24] Production.INFO: ==5438== Releasing lock... [2025-03-26 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:41:24] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:42:05 [end_date_ymd] => 2025-03-26 18:42:05 [RateCDR] => 1 ) [2025-03-26 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:42:05' and `end` < '2025-03-26 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:42:19] Production.INFO: count ==5437 [2025-03-26 18:42:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:42:05 - End Time 2025-03-26 18:42:05 [2025-03-26 18:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768731', 'tblTempUsageDetail_20' ) start [2025-03-26 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768731', 'tblTempUsageDetail_20' ) end [2025-03-26 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768731', 'tblTempVendorCDR_20' ) start [2025-03-26 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768731', 'tblTempVendorCDR_20' ) end [2025-03-26 18:42:21] Production.INFO: ProcessCDR(1,14768731,1,1,2) [2025-03-26 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768731', 'tblTempUsageDetail_20' ) start [2025-03-26 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768731', 'tblTempUsageDetail_20' ) end [2025-03-26 18:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:42:26] Production.INFO: ==5526== Releasing lock... [2025-03-26 18:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:42:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-26 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:43:05 [end_date_ymd] => 2025-03-26 18:43:05 [RateCDR] => 1 ) [2025-03-26 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:43:05' and `end` < '2025-03-26 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:43:19] Production.INFO: count ==5426 [2025-03-26 18:43:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:43:05 - End Time 2025-03-26 18:43:05 [2025-03-26 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768736', 'tblTempUsageDetail_20' ) start [2025-03-26 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768736', 'tblTempUsageDetail_20' ) end [2025-03-26 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768736', 'tblTempVendorCDR_20' ) start [2025-03-26 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768736', 'tblTempVendorCDR_20' ) end [2025-03-26 18:43:21] Production.INFO: ProcessCDR(1,14768736,1,1,2) [2025-03-26 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768736', 'tblTempUsageDetail_20' ) start [2025-03-26 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768736', 'tblTempUsageDetail_20' ) end [2025-03-26 18:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:43:26] Production.INFO: ==5610== Releasing lock... [2025-03-26 18:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:43:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:44:05 [end_date_ymd] => 2025-03-26 18:44:05 [RateCDR] => 1 ) [2025-03-26 18: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-26 15:44:05' and `end` < '2025-03-26 18: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-26 18:44:19] Production.INFO: count ==5419 [2025-03-26 18:44:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:44:05 - End Time 2025-03-26 18:44:05 [2025-03-26 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768741', 'tblTempUsageDetail_20' ) start [2025-03-26 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768741', 'tblTempUsageDetail_20' ) end [2025-03-26 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768741', 'tblTempVendorCDR_20' ) start [2025-03-26 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768741', 'tblTempVendorCDR_20' ) end [2025-03-26 18:44:21] Production.INFO: ProcessCDR(1,14768741,1,1,2) [2025-03-26 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768741', 'tblTempUsageDetail_20' ) start [2025-03-26 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768741', 'tblTempUsageDetail_20' ) end [2025-03-26 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:44:24] Production.INFO: ==5693== Releasing lock... [2025-03-26 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:44:24] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:45:05 [end_date_ymd] => 2025-03-26 18:45:05 [RateCDR] => 1 ) [2025-03-26 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-26 15:45:05' and `end` < '2025-03-26 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-26 18:45:19] Production.INFO: count ==5420 [2025-03-26 18:45:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:45:05 - End Time 2025-03-26 18:45:05 [2025-03-26 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768746', 'tblTempUsageDetail_20' ) start [2025-03-26 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768746', 'tblTempUsageDetail_20' ) end [2025-03-26 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768746', 'tblTempVendorCDR_20' ) start [2025-03-26 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768746', 'tblTempVendorCDR_20' ) end [2025-03-26 18:45:21] Production.INFO: ProcessCDR(1,14768746,1,1,2) [2025-03-26 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768746', 'tblTempUsageDetail_20' ) start [2025-03-26 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768746', 'tblTempUsageDetail_20' ) end [2025-03-26 18:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:45:26] Production.INFO: ==5776== Releasing lock... [2025-03-26 18:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:45:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:46:05 [end_date_ymd] => 2025-03-26 18:46:05 [RateCDR] => 1 ) [2025-03-26 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-26 15:46:05' and `end` < '2025-03-26 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-26 18:46:18] Production.INFO: count ==5404 [2025-03-26 18:46:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:46:05 - End Time 2025-03-26 18:46:05 [2025-03-26 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768751', 'tblTempUsageDetail_20' ) start [2025-03-26 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768751', 'tblTempUsageDetail_20' ) end [2025-03-26 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768751', 'tblTempVendorCDR_20' ) start [2025-03-26 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768751', 'tblTempVendorCDR_20' ) end [2025-03-26 18:46:21] Production.INFO: ProcessCDR(1,14768751,1,1,2) [2025-03-26 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768751', 'tblTempUsageDetail_20' ) start [2025-03-26 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768751', 'tblTempUsageDetail_20' ) end [2025-03-26 18:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:46:26] Production.INFO: ==5901== Releasing lock... [2025-03-26 18:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:46:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-26 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:47:06 [end_date_ymd] => 2025-03-26 18:47:06 [RateCDR] => 1 ) [2025-03-26 18: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-26 15:47:06' and `end` < '2025-03-26 18: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-26 18:47:19] Production.INFO: count ==5392 [2025-03-26 18:47:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:47:06 - End Time 2025-03-26 18:47:06 [2025-03-26 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768756', 'tblTempUsageDetail_20' ) start [2025-03-26 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768756', 'tblTempUsageDetail_20' ) end [2025-03-26 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768756', 'tblTempVendorCDR_20' ) start [2025-03-26 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768756', 'tblTempVendorCDR_20' ) end [2025-03-26 18:47:21] Production.INFO: ProcessCDR(1,14768756,1,1,2) [2025-03-26 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768756', 'tblTempUsageDetail_20' ) start [2025-03-26 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768756', 'tblTempUsageDetail_20' ) end [2025-03-26 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:47:25] Production.INFO: ==5989== Releasing lock... [2025-03-26 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:47:25] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 18:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:48:04 [end_date_ymd] => 2025-03-26 18:48:04 [RateCDR] => 1 ) [2025-03-26 18:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:48:04' and `end` < '2025-03-26 18:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:48:18] Production.INFO: count ==5389 [2025-03-26 18:48:20] Production.ERROR: pbx CDR StartTime 2025-03-26 15:48:04 - End Time 2025-03-26 18:48:04 [2025-03-26 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768761', 'tblTempUsageDetail_20' ) start [2025-03-26 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768761', 'tblTempUsageDetail_20' ) end [2025-03-26 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768761', 'tblTempVendorCDR_20' ) start [2025-03-26 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768761', 'tblTempVendorCDR_20' ) end [2025-03-26 18:48:20] Production.INFO: ProcessCDR(1,14768761,1,1,2) [2025-03-26 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768761', 'tblTempUsageDetail_20' ) start [2025-03-26 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768761', 'tblTempUsageDetail_20' ) end [2025-03-26 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:48:25] Production.INFO: ==6071== Releasing lock... [2025-03-26 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:48:25] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:49:05 [end_date_ymd] => 2025-03-26 18:49:05 [RateCDR] => 1 ) [2025-03-26 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-26 15:49:05' and `end` < '2025-03-26 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-26 18:49:18] Production.INFO: count ==5371 [2025-03-26 18:49:20] Production.ERROR: pbx CDR StartTime 2025-03-26 15:49:05 - End Time 2025-03-26 18:49:05 [2025-03-26 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768766', 'tblTempUsageDetail_20' ) start [2025-03-26 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768766', 'tblTempUsageDetail_20' ) end [2025-03-26 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768766', 'tblTempVendorCDR_20' ) start [2025-03-26 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768766', 'tblTempVendorCDR_20' ) end [2025-03-26 18:49:21] Production.INFO: ProcessCDR(1,14768766,1,1,2) [2025-03-26 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768766', 'tblTempUsageDetail_20' ) start [2025-03-26 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768766', 'tblTempUsageDetail_20' ) end [2025-03-26 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:49:24] Production.INFO: ==6161== Releasing lock... [2025-03-26 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:49:24] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:50:06 [end_date_ymd] => 2025-03-26 18:50:06 [RateCDR] => 1 ) [2025-03-26 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:50:06' and `end` < '2025-03-26 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:50:19] Production.INFO: count ==5374 [2025-03-26 18:50:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:50:06 - End Time 2025-03-26 18:50:06 [2025-03-26 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768771', 'tblTempUsageDetail_20' ) start [2025-03-26 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768771', 'tblTempUsageDetail_20' ) end [2025-03-26 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768771', 'tblTempVendorCDR_20' ) start [2025-03-26 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768771', 'tblTempVendorCDR_20' ) end [2025-03-26 18:50:21] Production.INFO: ProcessCDR(1,14768771,1,1,2) [2025-03-26 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768771', 'tblTempUsageDetail_20' ) start [2025-03-26 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768771', 'tblTempUsageDetail_20' ) end [2025-03-26 18:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:50:26] Production.INFO: ==6246== Releasing lock... [2025-03-26 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:50:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-26 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:51:05 [end_date_ymd] => 2025-03-26 18:51:05 [RateCDR] => 1 ) [2025-03-26 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-26 15:51:05' and `end` < '2025-03-26 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-26 18:51:19] Production.INFO: count ==5319 [2025-03-26 18:51:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:51:05 - End Time 2025-03-26 18:51:05 [2025-03-26 18:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768777', 'tblTempUsageDetail_20' ) start [2025-03-26 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768777', 'tblTempUsageDetail_20' ) end [2025-03-26 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768777', 'tblTempVendorCDR_20' ) start [2025-03-26 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768777', 'tblTempVendorCDR_20' ) end [2025-03-26 18:51:21] Production.INFO: ProcessCDR(1,14768777,1,1,2) [2025-03-26 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768777', 'tblTempUsageDetail_20' ) start [2025-03-26 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768777', 'tblTempUsageDetail_20' ) end [2025-03-26 18:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:51:26] Production.INFO: ==6333== Releasing lock... [2025-03-26 18:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:51:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-26 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:52:06 [end_date_ymd] => 2025-03-26 18:52:06 [RateCDR] => 1 ) [2025-03-26 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-26 15:52:06' and `end` < '2025-03-26 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-26 18:52:19] Production.INFO: count ==5293 [2025-03-26 18:52:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:52:06 - End Time 2025-03-26 18:52:06 [2025-03-26 18:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768782', 'tblTempUsageDetail_20' ) start [2025-03-26 18:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768782', 'tblTempUsageDetail_20' ) end [2025-03-26 18:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768782', 'tblTempVendorCDR_20' ) start [2025-03-26 18:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768782', 'tblTempVendorCDR_20' ) end [2025-03-26 18:52:22] Production.INFO: ProcessCDR(1,14768782,1,1,2) [2025-03-26 18:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768782', 'tblTempUsageDetail_20' ) start [2025-03-26 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768782', 'tblTempUsageDetail_20' ) end [2025-03-26 18:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:52:27] Production.INFO: ==6422== Releasing lock... [2025-03-26 18:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:52:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-26 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:53:05 [end_date_ymd] => 2025-03-26 18:53:05 [RateCDR] => 1 ) [2025-03-26 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-26 15:53:05' and `end` < '2025-03-26 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-26 18:53:19] Production.INFO: count ==5285 [2025-03-26 18:53:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:53:05 - End Time 2025-03-26 18:53:05 [2025-03-26 18:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768787', 'tblTempUsageDetail_20' ) start [2025-03-26 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768787', 'tblTempUsageDetail_20' ) end [2025-03-26 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768787', 'tblTempVendorCDR_20' ) start [2025-03-26 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768787', 'tblTempVendorCDR_20' ) end [2025-03-26 18:53:21] Production.INFO: ProcessCDR(1,14768787,1,1,2) [2025-03-26 18:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768787', 'tblTempUsageDetail_20' ) start [2025-03-26 18:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768787', 'tblTempUsageDetail_20' ) end [2025-03-26 18:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:53:26] Production.INFO: ==6504== Releasing lock... [2025-03-26 18:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:53:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-26 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:54:05 [end_date_ymd] => 2025-03-26 18:54:05 [RateCDR] => 1 ) [2025-03-26 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-26 15:54:05' and `end` < '2025-03-26 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-26 18:54:18] Production.INFO: count ==5270 [2025-03-26 18:54:20] Production.ERROR: pbx CDR StartTime 2025-03-26 15:54:05 - End Time 2025-03-26 18:54:05 [2025-03-26 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768792', 'tblTempUsageDetail_20' ) start [2025-03-26 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768792', 'tblTempUsageDetail_20' ) end [2025-03-26 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768792', 'tblTempVendorCDR_20' ) start [2025-03-26 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768792', 'tblTempVendorCDR_20' ) end [2025-03-26 18:54:20] Production.INFO: ProcessCDR(1,14768792,1,1,2) [2025-03-26 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768792', 'tblTempUsageDetail_20' ) start [2025-03-26 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768792', 'tblTempUsageDetail_20' ) end [2025-03-26 18:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:54:26] Production.INFO: ==6588== Releasing lock... [2025-03-26 18:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:54:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-26 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:55:06 [end_date_ymd] => 2025-03-26 18:55:06 [RateCDR] => 1 ) [2025-03-26 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:55:06' and `end` < '2025-03-26 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:55:20] Production.INFO: count ==5240 [2025-03-26 18:55:22] Production.ERROR: pbx CDR StartTime 2025-03-26 15:55:06 - End Time 2025-03-26 18:55:06 [2025-03-26 18:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768797', 'tblTempUsageDetail_20' ) start [2025-03-26 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768797', 'tblTempUsageDetail_20' ) end [2025-03-26 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768797', 'tblTempVendorCDR_20' ) start [2025-03-26 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768797', 'tblTempVendorCDR_20' ) end [2025-03-26 18:55:22] Production.INFO: ProcessCDR(1,14768797,1,1,2) [2025-03-26 18:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768797', 'tblTempUsageDetail_20' ) start [2025-03-26 18:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768797', 'tblTempUsageDetail_20' ) end [2025-03-26 18:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:55:27] Production.INFO: ==6670== Releasing lock... [2025-03-26 18:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:55:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-26 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:56:05 [end_date_ymd] => 2025-03-26 18:56:05 [RateCDR] => 1 ) [2025-03-26 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:56:05' and `end` < '2025-03-26 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:56:19] Production.INFO: count ==5215 [2025-03-26 18:56:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:56:05 - End Time 2025-03-26 18:56:05 [2025-03-26 18:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768802', 'tblTempUsageDetail_20' ) start [2025-03-26 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768802', 'tblTempUsageDetail_20' ) end [2025-03-26 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768802', 'tblTempVendorCDR_20' ) start [2025-03-26 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768802', 'tblTempVendorCDR_20' ) end [2025-03-26 18:56:21] Production.INFO: ProcessCDR(1,14768802,1,1,2) [2025-03-26 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768802', 'tblTempUsageDetail_20' ) start [2025-03-26 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768802', 'tblTempUsageDetail_20' ) end [2025-03-26 18:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:56:26] Production.INFO: ==6752== Releasing lock... [2025-03-26 18:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:56:26] Production.INFO: 67 MB #Memory Used# [2025-03-26 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:57:06 [end_date_ymd] => 2025-03-26 18:57:06 [RateCDR] => 1 ) [2025-03-26 18:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:57:06' and `end` < '2025-03-26 18:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:57:19] Production.INFO: count ==5206 [2025-03-26 18:57:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:57:06 - End Time 2025-03-26 18:57:06 [2025-03-26 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768807', 'tblTempUsageDetail_20' ) start [2025-03-26 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768807', 'tblTempUsageDetail_20' ) end [2025-03-26 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768807', 'tblTempVendorCDR_20' ) start [2025-03-26 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768807', 'tblTempVendorCDR_20' ) end [2025-03-26 18:57:21] Production.INFO: ProcessCDR(1,14768807,1,1,2) [2025-03-26 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768807', 'tblTempUsageDetail_20' ) start [2025-03-26 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768807', 'tblTempUsageDetail_20' ) end [2025-03-26 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:57:25] Production.INFO: ==6833== Releasing lock... [2025-03-26 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:57:25] Production.INFO: 67 MB #Memory Used# [2025-03-26 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:58:05 [end_date_ymd] => 2025-03-26 18:58:05 [RateCDR] => 1 ) [2025-03-26 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 15:58:05' and `end` < '2025-03-26 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 18:58:18] Production.INFO: count ==5183 [2025-03-26 18:58:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:58:05 - End Time 2025-03-26 18:58:05 [2025-03-26 18:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768812', 'tblTempUsageDetail_20' ) start [2025-03-26 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768812', 'tblTempUsageDetail_20' ) end [2025-03-26 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768812', 'tblTempVendorCDR_20' ) start [2025-03-26 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768812', 'tblTempVendorCDR_20' ) end [2025-03-26 18:58:21] Production.INFO: ProcessCDR(1,14768812,1,1,2) [2025-03-26 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768812', 'tblTempUsageDetail_20' ) start [2025-03-26 18:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768812', 'tblTempUsageDetail_20' ) end [2025-03-26 18:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:58:26] Production.INFO: ==6917== Releasing lock... [2025-03-26 18:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:58:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 18:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 15:59:06 [end_date_ymd] => 2025-03-26 18:59:06 [RateCDR] => 1 ) [2025-03-26 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-26 15:59:06' and `end` < '2025-03-26 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-26 18:59:19] Production.INFO: count ==5189 [2025-03-26 18:59:21] Production.ERROR: pbx CDR StartTime 2025-03-26 15:59:06 - End Time 2025-03-26 18:59:06 [2025-03-26 18:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768817', 'tblTempUsageDetail_20' ) start [2025-03-26 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768817', 'tblTempUsageDetail_20' ) end [2025-03-26 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768817', 'tblTempVendorCDR_20' ) start [2025-03-26 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768817', 'tblTempVendorCDR_20' ) end [2025-03-26 18:59:21] Production.INFO: ProcessCDR(1,14768817,1,1,2) [2025-03-26 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 18:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768817', 'tblTempUsageDetail_20' ) start [2025-03-26 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768817', 'tblTempUsageDetail_20' ) end [2025-03-26 18:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 18:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 18:59:26] Production.INFO: ==7010== Releasing lock... [2025-03-26 18:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 18:59:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-26 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:00:05 [end_date_ymd] => 2025-03-26 19:00:05 [RateCDR] => 1 ) [2025-03-26 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:00:05' and `end` < '2025-03-26 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:00:19] Production.INFO: count ==5157 [2025-03-26 19:00:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:00:05 - End Time 2025-03-26 19:00:05 [2025-03-26 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768823', 'tblTempUsageDetail_20' ) start [2025-03-26 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768823', 'tblTempUsageDetail_20' ) end [2025-03-26 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768823', 'tblTempVendorCDR_20' ) start [2025-03-26 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768823', 'tblTempVendorCDR_20' ) end [2025-03-26 19:00:22] Production.INFO: ProcessCDR(1,14768823,1,1,2) [2025-03-26 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768823', 'tblTempUsageDetail_20' ) start [2025-03-26 19:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768823', 'tblTempUsageDetail_20' ) end [2025-03-26 19:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:00:27] Production.INFO: ==7100== Releasing lock... [2025-03-26 19:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:00:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-26 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:01:05 [end_date_ymd] => 2025-03-26 19:01:05 [RateCDR] => 1 ) [2025-03-26 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:01:05' and `end` < '2025-03-26 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:01:19] Production.INFO: count ==5153 [2025-03-26 19:01:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:01:05 - End Time 2025-03-26 19:01:05 [2025-03-26 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768828', 'tblTempUsageDetail_20' ) start [2025-03-26 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768828', 'tblTempUsageDetail_20' ) end [2025-03-26 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768828', 'tblTempVendorCDR_20' ) start [2025-03-26 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768828', 'tblTempVendorCDR_20' ) end [2025-03-26 19:01:21] Production.INFO: ProcessCDR(1,14768828,1,1,2) [2025-03-26 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768828', 'tblTempUsageDetail_20' ) start [2025-03-26 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768828', 'tblTempUsageDetail_20' ) end [2025-03-26 19:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:01:26] Production.INFO: ==7204== Releasing lock... [2025-03-26 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:01:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-26 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:02:05 [end_date_ymd] => 2025-03-26 19:02:05 [RateCDR] => 1 ) [2025-03-26 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:02:05' and `end` < '2025-03-26 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:02:19] Production.INFO: count ==5131 [2025-03-26 19:02:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:02:05 - End Time 2025-03-26 19:02:05 [2025-03-26 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768833', 'tblTempUsageDetail_20' ) start [2025-03-26 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768833', 'tblTempUsageDetail_20' ) end [2025-03-26 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768833', 'tblTempVendorCDR_20' ) start [2025-03-26 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768833', 'tblTempVendorCDR_20' ) end [2025-03-26 19:02:21] Production.INFO: ProcessCDR(1,14768833,1,1,2) [2025-03-26 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768833', 'tblTempUsageDetail_20' ) start [2025-03-26 19:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768833', 'tblTempUsageDetail_20' ) end [2025-03-26 19:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:02:26] Production.INFO: ==7407== Releasing lock... [2025-03-26 19:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:02:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-26 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:03:05 [end_date_ymd] => 2025-03-26 19:03:05 [RateCDR] => 1 ) [2025-03-26 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:03:05' and `end` < '2025-03-26 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:03:18] Production.INFO: count ==5118 [2025-03-26 19:03:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:03:05 - End Time 2025-03-26 19:03:05 [2025-03-26 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768838', 'tblTempUsageDetail_20' ) start [2025-03-26 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768838', 'tblTempUsageDetail_20' ) end [2025-03-26 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768838', 'tblTempVendorCDR_20' ) start [2025-03-26 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768838', 'tblTempVendorCDR_20' ) end [2025-03-26 19:03:20] Production.INFO: ProcessCDR(1,14768838,1,1,2) [2025-03-26 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768838', 'tblTempUsageDetail_20' ) start [2025-03-26 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768838', 'tblTempUsageDetail_20' ) end [2025-03-26 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:03:24] Production.INFO: ==7487== Releasing lock... [2025-03-26 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:03:24] Production.INFO: 66.25 MB #Memory Used# [2025-03-26 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:04:05 [end_date_ymd] => 2025-03-26 19:04:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:04:05' and `end` < '2025-03-26 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-26 19:04:18] Production.INFO: count ==5102 [2025-03-26 19:04:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:04:05 - End Time 2025-03-26 19:04:05 [2025-03-26 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768843', 'tblTempUsageDetail_20' ) start [2025-03-26 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768843', 'tblTempUsageDetail_20' ) end [2025-03-26 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768843', 'tblTempVendorCDR_20' ) start [2025-03-26 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768843', 'tblTempVendorCDR_20' ) end [2025-03-26 19:04:20] Production.INFO: ProcessCDR(1,14768843,1,1,2) [2025-03-26 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768843', 'tblTempUsageDetail_20' ) start [2025-03-26 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768843', 'tblTempUsageDetail_20' ) end [2025-03-26 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:04:26] Production.INFO: ==7570== Releasing lock... [2025-03-26 19:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:04:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-26 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:05:04 [end_date_ymd] => 2025-03-26 19:05:04 [RateCDR] => 1 ) [2025-03-26 19: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-26 16:05:04' and `end` < '2025-03-26 19: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-26 19:05:18] Production.INFO: count ==5069 [2025-03-26 19:05:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:05:04 - End Time 2025-03-26 19:05:04 [2025-03-26 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768848', 'tblTempUsageDetail_20' ) start [2025-03-26 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768848', 'tblTempUsageDetail_20' ) end [2025-03-26 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768848', 'tblTempVendorCDR_20' ) start [2025-03-26 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768848', 'tblTempVendorCDR_20' ) end [2025-03-26 19:05:20] Production.INFO: ProcessCDR(1,14768848,1,1,2) [2025-03-26 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768848', 'tblTempUsageDetail_20' ) start [2025-03-26 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768848', 'tblTempUsageDetail_20' ) end [2025-03-26 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:05:23] Production.INFO: ==7738== Releasing lock... [2025-03-26 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:05:23] Production.INFO: 66 MB #Memory Used# [2025-03-26 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:06:06 [end_date_ymd] => 2025-03-26 19:06:06 [RateCDR] => 1 ) [2025-03-26 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-26 16:06:06' and `end` < '2025-03-26 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-26 19:06:19] Production.INFO: count ==5054 [2025-03-26 19:06:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:06:06 - End Time 2025-03-26 19:06:06 [2025-03-26 19:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768853', 'tblTempUsageDetail_20' ) start [2025-03-26 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768853', 'tblTempUsageDetail_20' ) end [2025-03-26 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768853', 'tblTempVendorCDR_20' ) start [2025-03-26 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768853', 'tblTempVendorCDR_20' ) end [2025-03-26 19:06:21] Production.INFO: ProcessCDR(1,14768853,1,1,2) [2025-03-26 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768853', 'tblTempUsageDetail_20' ) start [2025-03-26 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768853', 'tblTempUsageDetail_20' ) end [2025-03-26 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:06:24] Production.INFO: ==7829== Releasing lock... [2025-03-26 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:06:24] Production.INFO: 65.75 MB #Memory Used# [2025-03-26 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:07:05 [end_date_ymd] => 2025-03-26 19:07:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:07:05' and `end` < '2025-03-26 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-26 19:07:18] Production.INFO: count ==5018 [2025-03-26 19:07:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:07:05 - End Time 2025-03-26 19:07:05 [2025-03-26 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768858', 'tblTempUsageDetail_20' ) start [2025-03-26 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768858', 'tblTempUsageDetail_20' ) end [2025-03-26 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768858', 'tblTempVendorCDR_20' ) start [2025-03-26 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768858', 'tblTempVendorCDR_20' ) end [2025-03-26 19:07:20] Production.INFO: ProcessCDR(1,14768858,1,1,2) [2025-03-26 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768858', 'tblTempUsageDetail_20' ) start [2025-03-26 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768858', 'tblTempUsageDetail_20' ) end [2025-03-26 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:07:25] Production.INFO: ==7909== Releasing lock... [2025-03-26 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:07:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-26 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:08:06 [end_date_ymd] => 2025-03-26 19:08:06 [RateCDR] => 1 ) [2025-03-26 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-26 16:08:06' and `end` < '2025-03-26 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-26 19:08:19] Production.INFO: count ==5018 [2025-03-26 19:08:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:08:06 - End Time 2025-03-26 19:08:06 [2025-03-26 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768863', 'tblTempUsageDetail_20' ) start [2025-03-26 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768863', 'tblTempUsageDetail_20' ) end [2025-03-26 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768863', 'tblTempVendorCDR_20' ) start [2025-03-26 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768863', 'tblTempVendorCDR_20' ) end [2025-03-26 19:08:21] Production.INFO: ProcessCDR(1,14768863,1,1,2) [2025-03-26 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768863', 'tblTempUsageDetail_20' ) start [2025-03-26 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768863', 'tblTempUsageDetail_20' ) end [2025-03-26 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:08:24] Production.INFO: ==8037== Releasing lock... [2025-03-26 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:08:24] Production.INFO: 65.5 MB #Memory Used# [2025-03-26 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:09:05 [end_date_ymd] => 2025-03-26 19:09:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:09:05' and `end` < '2025-03-26 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-26 19:09:18] Production.INFO: count ==5003 [2025-03-26 19:09:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:09:05 - End Time 2025-03-26 19:09:05 [2025-03-26 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768868', 'tblTempUsageDetail_20' ) start [2025-03-26 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768868', 'tblTempUsageDetail_20' ) end [2025-03-26 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768868', 'tblTempVendorCDR_20' ) start [2025-03-26 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768868', 'tblTempVendorCDR_20' ) end [2025-03-26 19:09:20] Production.INFO: ProcessCDR(1,14768868,1,1,2) [2025-03-26 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768868', 'tblTempUsageDetail_20' ) start [2025-03-26 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768868', 'tblTempUsageDetail_20' ) end [2025-03-26 19:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:09:25] Production.INFO: ==8160== Releasing lock... [2025-03-26 19:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:09:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-26 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:10:06 [end_date_ymd] => 2025-03-26 19:10:06 [RateCDR] => 1 ) [2025-03-26 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:10:06' and `end` < '2025-03-26 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:10:19] Production.INFO: count ==5003 [2025-03-26 19:10:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:10:06 - End Time 2025-03-26 19:10:06 [2025-03-26 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768874', 'tblTempUsageDetail_20' ) start [2025-03-26 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768874', 'tblTempUsageDetail_20' ) end [2025-03-26 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768874', 'tblTempVendorCDR_20' ) start [2025-03-26 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768874', 'tblTempVendorCDR_20' ) end [2025-03-26 19:10:21] Production.INFO: ProcessCDR(1,14768874,1,1,2) [2025-03-26 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768874', 'tblTempUsageDetail_20' ) start [2025-03-26 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768874', 'tblTempUsageDetail_20' ) end [2025-03-26 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:10:27] Production.INFO: ==8246== Releasing lock... [2025-03-26 19:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:10:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-26 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:11:05 [end_date_ymd] => 2025-03-26 19:11:05 [RateCDR] => 1 ) [2025-03-26 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:11:05' and `end` < '2025-03-26 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:11:19] Production.INFO: count ==4964 [2025-03-26 19:11:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:11:05 - End Time 2025-03-26 19:11:05 [2025-03-26 19:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768879', 'tblTempUsageDetail_20' ) start [2025-03-26 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768879', 'tblTempUsageDetail_20' ) end [2025-03-26 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768879', 'tblTempVendorCDR_20' ) start [2025-03-26 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768879', 'tblTempVendorCDR_20' ) end [2025-03-26 19:11:21] Production.INFO: ProcessCDR(1,14768879,1,1,2) [2025-03-26 19:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768879', 'tblTempUsageDetail_20' ) start [2025-03-26 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768879', 'tblTempUsageDetail_20' ) end [2025-03-26 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:11:24] Production.INFO: ==8331== Releasing lock... [2025-03-26 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:11:24] Production.INFO: 65 MB #Memory Used# [2025-03-26 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:12:06 [end_date_ymd] => 2025-03-26 19:12:06 [RateCDR] => 1 ) [2025-03-26 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-26 16:12:06' and `end` < '2025-03-26 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-26 19:12:19] Production.INFO: count ==4963 [2025-03-26 19:12:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:12:06 - End Time 2025-03-26 19:12:06 [2025-03-26 19:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768884', 'tblTempUsageDetail_20' ) start [2025-03-26 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768884', 'tblTempUsageDetail_20' ) end [2025-03-26 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768884', 'tblTempVendorCDR_20' ) start [2025-03-26 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768884', 'tblTempVendorCDR_20' ) end [2025-03-26 19:12:21] Production.INFO: ProcessCDR(1,14768884,1,1,2) [2025-03-26 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768884', 'tblTempUsageDetail_20' ) start [2025-03-26 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768884', 'tblTempUsageDetail_20' ) end [2025-03-26 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:12:25] Production.INFO: ==8497== Releasing lock... [2025-03-26 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:12:25] Production.INFO: 65 MB #Memory Used# [2025-03-26 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:13:05 [end_date_ymd] => 2025-03-26 19:13:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:13:05' and `end` < '2025-03-26 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-26 19:13:19] Production.INFO: count ==4948 [2025-03-26 19:13:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:13:05 - End Time 2025-03-26 19:13:05 [2025-03-26 19:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768889', 'tblTempUsageDetail_20' ) start [2025-03-26 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768889', 'tblTempUsageDetail_20' ) end [2025-03-26 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768889', 'tblTempVendorCDR_20' ) start [2025-03-26 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768889', 'tblTempVendorCDR_20' ) end [2025-03-26 19:13:21] Production.INFO: ProcessCDR(1,14768889,1,1,2) [2025-03-26 19:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768889', 'tblTempUsageDetail_20' ) start [2025-03-26 19:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768889', 'tblTempUsageDetail_20' ) end [2025-03-26 19:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:13:26] Production.INFO: ==8579== Releasing lock... [2025-03-26 19:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:13:26] Production.INFO: 65 MB #Memory Used# [2025-03-26 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:14:06 [end_date_ymd] => 2025-03-26 19:14:06 [RateCDR] => 1 ) [2025-03-26 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-26 16:14:06' and `end` < '2025-03-26 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-26 19:14:19] Production.INFO: count ==4924 [2025-03-26 19:14:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:14:06 - End Time 2025-03-26 19:14:06 [2025-03-26 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768894', 'tblTempUsageDetail_20' ) start [2025-03-26 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768894', 'tblTempUsageDetail_20' ) end [2025-03-26 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768894', 'tblTempVendorCDR_20' ) start [2025-03-26 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768894', 'tblTempVendorCDR_20' ) end [2025-03-26 19:14:21] Production.INFO: ProcessCDR(1,14768894,1,1,2) [2025-03-26 19:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768894', 'tblTempUsageDetail_20' ) start [2025-03-26 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768894', 'tblTempUsageDetail_20' ) end [2025-03-26 19:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:14:26] Production.INFO: ==8662== Releasing lock... [2025-03-26 19:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:14:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-26 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:15:05 [end_date_ymd] => 2025-03-26 19:15:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:15:05' and `end` < '2025-03-26 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-26 19:15:18] Production.INFO: count ==4919 [2025-03-26 19:15:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:15:05 - End Time 2025-03-26 19:15:05 [2025-03-26 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768899', 'tblTempUsageDetail_20' ) start [2025-03-26 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768899', 'tblTempUsageDetail_20' ) end [2025-03-26 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768899', 'tblTempVendorCDR_20' ) start [2025-03-26 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768899', 'tblTempVendorCDR_20' ) end [2025-03-26 19:15:20] Production.INFO: ProcessCDR(1,14768899,1,1,2) [2025-03-26 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768899', 'tblTempUsageDetail_20' ) start [2025-03-26 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768899', 'tblTempUsageDetail_20' ) end [2025-03-26 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:15:25] Production.INFO: ==8824== Releasing lock... [2025-03-26 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:15:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-26 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:16:06 [end_date_ymd] => 2025-03-26 19:16:06 [RateCDR] => 1 ) [2025-03-26 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-26 16:16:06' and `end` < '2025-03-26 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-26 19:16:19] Production.INFO: count ==4907 [2025-03-26 19:16:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:16:06 - End Time 2025-03-26 19:16:06 [2025-03-26 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768904', 'tblTempUsageDetail_20' ) start [2025-03-26 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768904', 'tblTempUsageDetail_20' ) end [2025-03-26 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768904', 'tblTempVendorCDR_20' ) start [2025-03-26 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768904', 'tblTempVendorCDR_20' ) end [2025-03-26 19:16:21] Production.INFO: ProcessCDR(1,14768904,1,1,2) [2025-03-26 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768904', 'tblTempUsageDetail_20' ) start [2025-03-26 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768904', 'tblTempUsageDetail_20' ) end [2025-03-26 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:16:24] Production.INFO: ==8910== Releasing lock... [2025-03-26 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:16:24] Production.INFO: 64.75 MB #Memory Used# [2025-03-26 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:17:05 [end_date_ymd] => 2025-03-26 19:17:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:17:05' and `end` < '2025-03-26 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-26 19:17:18] Production.INFO: count ==4866 [2025-03-26 19:17:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:17:05 - End Time 2025-03-26 19:17:05 [2025-03-26 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768909', 'tblTempUsageDetail_20' ) start [2025-03-26 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768909', 'tblTempUsageDetail_20' ) end [2025-03-26 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768909', 'tblTempVendorCDR_20' ) start [2025-03-26 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768909', 'tblTempVendorCDR_20' ) end [2025-03-26 19:17:20] Production.INFO: ProcessCDR(1,14768909,1,1,2) [2025-03-26 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768909', 'tblTempUsageDetail_20' ) start [2025-03-26 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768909', 'tblTempUsageDetail_20' ) end [2025-03-26 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:17:24] Production.INFO: ==9033== Releasing lock... [2025-03-26 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:17:24] Production.INFO: 64.25 MB #Memory Used# [2025-03-26 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:18:05 [end_date_ymd] => 2025-03-26 19:18:05 [RateCDR] => 1 ) [2025-03-26 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:18:05' and `end` < '2025-03-26 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:18:18] Production.INFO: count ==4849 [2025-03-26 19:18:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:18:05 - End Time 2025-03-26 19:18:05 [2025-03-26 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768914', 'tblTempUsageDetail_20' ) start [2025-03-26 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768914', 'tblTempUsageDetail_20' ) end [2025-03-26 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768914', 'tblTempVendorCDR_20' ) start [2025-03-26 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768914', 'tblTempVendorCDR_20' ) end [2025-03-26 19:18:20] Production.INFO: ProcessCDR(1,14768914,1,1,2) [2025-03-26 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768914', 'tblTempUsageDetail_20' ) start [2025-03-26 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768914', 'tblTempUsageDetail_20' ) end [2025-03-26 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:18:25] Production.INFO: ==9122== Releasing lock... [2025-03-26 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:18:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-26 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:19:05 [end_date_ymd] => 2025-03-26 19:19:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:19:05' and `end` < '2025-03-26 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-26 19:19:18] Production.INFO: count ==4835 [2025-03-26 19:19:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:19:05 - End Time 2025-03-26 19:19:05 [2025-03-26 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768919', 'tblTempUsageDetail_20' ) start [2025-03-26 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768919', 'tblTempUsageDetail_20' ) end [2025-03-26 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768919', 'tblTempVendorCDR_20' ) start [2025-03-26 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768919', 'tblTempVendorCDR_20' ) end [2025-03-26 19:19:20] Production.INFO: ProcessCDR(1,14768919,1,1,2) [2025-03-26 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768919', 'tblTempUsageDetail_20' ) start [2025-03-26 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768919', 'tblTempUsageDetail_20' ) end [2025-03-26 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:19:23] Production.INFO: ==9210== Releasing lock... [2025-03-26 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:19:23] Production.INFO: 64 MB #Memory Used# [2025-03-26 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:20:06 [end_date_ymd] => 2025-03-26 19:20:06 [RateCDR] => 1 ) [2025-03-26 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-26 16:20:06' and `end` < '2025-03-26 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-26 19:20:19] Production.INFO: count ==4826 [2025-03-26 19:20:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:20:06 - End Time 2025-03-26 19:20:06 [2025-03-26 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768925', 'tblTempUsageDetail_20' ) start [2025-03-26 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768925', 'tblTempUsageDetail_20' ) end [2025-03-26 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768925', 'tblTempVendorCDR_20' ) start [2025-03-26 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768925', 'tblTempVendorCDR_20' ) end [2025-03-26 19:20:21] Production.INFO: ProcessCDR(1,14768925,1,1,2) [2025-03-26 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768925', 'tblTempUsageDetail_20' ) start [2025-03-26 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768925', 'tblTempUsageDetail_20' ) end [2025-03-26 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:20:25] Production.INFO: ==9297== Releasing lock... [2025-03-26 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:20:25] Production.INFO: 64 MB #Memory Used# [2025-03-26 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:21:05 [end_date_ymd] => 2025-03-26 19:21:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:21:05' and `end` < '2025-03-26 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-26 19:21:19] Production.INFO: count ==4795 [2025-03-26 19:21:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:21:05 - End Time 2025-03-26 19:21:05 [2025-03-26 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768930', 'tblTempUsageDetail_20' ) start [2025-03-26 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768930', 'tblTempUsageDetail_20' ) end [2025-03-26 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768930', 'tblTempVendorCDR_20' ) start [2025-03-26 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768930', 'tblTempVendorCDR_20' ) end [2025-03-26 19:21:21] Production.INFO: ProcessCDR(1,14768930,1,1,2) [2025-03-26 19:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768930', 'tblTempUsageDetail_20' ) start [2025-03-26 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768930', 'tblTempUsageDetail_20' ) end [2025-03-26 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:21:24] Production.INFO: ==9388== Releasing lock... [2025-03-26 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:21:24] Production.INFO: 63.75 MB #Memory Used# [2025-03-26 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:22:06 [end_date_ymd] => 2025-03-26 19:22:06 [RateCDR] => 1 ) [2025-03-26 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-26 16:22:06' and `end` < '2025-03-26 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-26 19:22:19] Production.INFO: count ==4756 [2025-03-26 19:22:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:22:06 - End Time 2025-03-26 19:22:06 [2025-03-26 19:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768935', 'tblTempUsageDetail_20' ) start [2025-03-26 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768935', 'tblTempUsageDetail_20' ) end [2025-03-26 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768935', 'tblTempVendorCDR_20' ) start [2025-03-26 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768935', 'tblTempVendorCDR_20' ) end [2025-03-26 19:22:21] Production.INFO: ProcessCDR(1,14768935,1,1,2) [2025-03-26 19:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768935', 'tblTempUsageDetail_20' ) start [2025-03-26 19:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768935', 'tblTempUsageDetail_20' ) end [2025-03-26 19:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:22:26] Production.INFO: ==9470== Releasing lock... [2025-03-26 19:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:22:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-26 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:23:05 [end_date_ymd] => 2025-03-26 19:23:05 [RateCDR] => 1 ) [2025-03-26 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:23:05' and `end` < '2025-03-26 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:23:19] Production.INFO: count ==4765 [2025-03-26 19:23:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:23:05 - End Time 2025-03-26 19:23:05 [2025-03-26 19:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768940', 'tblTempUsageDetail_20' ) start [2025-03-26 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768940', 'tblTempUsageDetail_20' ) end [2025-03-26 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768940', 'tblTempVendorCDR_20' ) start [2025-03-26 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768940', 'tblTempVendorCDR_20' ) end [2025-03-26 19:23:21] Production.INFO: ProcessCDR(1,14768940,1,1,2) [2025-03-26 19:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768940', 'tblTempUsageDetail_20' ) start [2025-03-26 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768940', 'tblTempUsageDetail_20' ) end [2025-03-26 19:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:23:25] Production.INFO: ==9553== Releasing lock... [2025-03-26 19:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:23:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-26 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:24:05 [end_date_ymd] => 2025-03-26 19:24:05 [RateCDR] => 1 ) [2025-03-26 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:24:05' and `end` < '2025-03-26 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:24:19] Production.INFO: count ==4765 [2025-03-26 19:24:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:24:05 - End Time 2025-03-26 19:24:05 [2025-03-26 19:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768945', 'tblTempUsageDetail_20' ) start [2025-03-26 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768945', 'tblTempUsageDetail_20' ) end [2025-03-26 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768945', 'tblTempVendorCDR_20' ) start [2025-03-26 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768945', 'tblTempVendorCDR_20' ) end [2025-03-26 19:24:21] Production.INFO: ProcessCDR(1,14768945,1,1,2) [2025-03-26 19:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768945', 'tblTempUsageDetail_20' ) start [2025-03-26 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768945', 'tblTempUsageDetail_20' ) end [2025-03-26 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:24:24] Production.INFO: ==9631== Releasing lock... [2025-03-26 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:24:24] Production.INFO: 63.5 MB #Memory Used# [2025-03-26 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:25:06 [end_date_ymd] => 2025-03-26 19:25:06 [RateCDR] => 1 ) [2025-03-26 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-26 16:25:06' and `end` < '2025-03-26 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-26 19:25:19] Production.INFO: count ==4752 [2025-03-26 19:25:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:25:06 - End Time 2025-03-26 19:25:06 [2025-03-26 19:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768950', 'tblTempUsageDetail_20' ) start [2025-03-26 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768950', 'tblTempUsageDetail_20' ) end [2025-03-26 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768950', 'tblTempVendorCDR_20' ) start [2025-03-26 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768950', 'tblTempVendorCDR_20' ) end [2025-03-26 19:25:21] Production.INFO: ProcessCDR(1,14768950,1,1,2) [2025-03-26 19:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768950', 'tblTempUsageDetail_20' ) start [2025-03-26 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768950', 'tblTempUsageDetail_20' ) end [2025-03-26 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:25:26] Production.INFO: ==9720== Releasing lock... [2025-03-26 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:25:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-26 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:26:05 [end_date_ymd] => 2025-03-26 19:26:05 [RateCDR] => 1 ) [2025-03-26 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:26:05' and `end` < '2025-03-26 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:26:19] Production.INFO: count ==4738 [2025-03-26 19:26:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:26:05 - End Time 2025-03-26 19:26:05 [2025-03-26 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768955', 'tblTempUsageDetail_20' ) start [2025-03-26 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768955', 'tblTempUsageDetail_20' ) end [2025-03-26 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768955', 'tblTempVendorCDR_20' ) start [2025-03-26 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768955', 'tblTempVendorCDR_20' ) end [2025-03-26 19:26:21] Production.INFO: ProcessCDR(1,14768955,1,1,2) [2025-03-26 19:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768955', 'tblTempUsageDetail_20' ) start [2025-03-26 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768955', 'tblTempUsageDetail_20' ) end [2025-03-26 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:26:24] Production.INFO: ==9803== Releasing lock... [2025-03-26 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:26:24] Production.INFO: 63.5 MB #Memory Used# [2025-03-26 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:27:05 [end_date_ymd] => 2025-03-26 19:27:05 [RateCDR] => 1 ) [2025-03-26 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:27:05' and `end` < '2025-03-26 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:27:19] Production.INFO: count ==4722 [2025-03-26 19:27:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:27:05 - End Time 2025-03-26 19:27:05 [2025-03-26 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768960', 'tblTempUsageDetail_20' ) start [2025-03-26 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768960', 'tblTempUsageDetail_20' ) end [2025-03-26 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768960', 'tblTempVendorCDR_20' ) start [2025-03-26 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768960', 'tblTempVendorCDR_20' ) end [2025-03-26 19:27:20] Production.INFO: ProcessCDR(1,14768960,1,1,2) [2025-03-26 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768960', 'tblTempUsageDetail_20' ) start [2025-03-26 19:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768960', 'tblTempUsageDetail_20' ) end [2025-03-26 19:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:27:26] Production.INFO: ==9889== Releasing lock... [2025-03-26 19:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:27:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-26 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:28:05 [end_date_ymd] => 2025-03-26 19:28:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:28:05' and `end` < '2025-03-26 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-26 19:28:19] Production.INFO: count ==4709 [2025-03-26 19:28:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:28:05 - End Time 2025-03-26 19:28:05 [2025-03-26 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768965', 'tblTempUsageDetail_20' ) start [2025-03-26 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768965', 'tblTempUsageDetail_20' ) end [2025-03-26 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768965', 'tblTempVendorCDR_20' ) start [2025-03-26 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768965', 'tblTempVendorCDR_20' ) end [2025-03-26 19:28:20] Production.INFO: ProcessCDR(1,14768965,1,1,2) [2025-03-26 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768965', 'tblTempUsageDetail_20' ) start [2025-03-26 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768965', 'tblTempUsageDetail_20' ) end [2025-03-26 19:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:28:25] Production.INFO: ==9974== Releasing lock... [2025-03-26 19:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:28:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-26 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:29:05 [end_date_ymd] => 2025-03-26 19:29:05 [RateCDR] => 1 ) [2025-03-26 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:29:05' and `end` < '2025-03-26 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:29:19] Production.INFO: count ==4680 [2025-03-26 19:29:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:29:05 - End Time 2025-03-26 19:29:05 [2025-03-26 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768970', 'tblTempUsageDetail_20' ) start [2025-03-26 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768970', 'tblTempUsageDetail_20' ) end [2025-03-26 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768970', 'tblTempVendorCDR_20' ) start [2025-03-26 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768970', 'tblTempVendorCDR_20' ) end [2025-03-26 19:29:21] Production.INFO: ProcessCDR(1,14768970,1,1,2) [2025-03-26 19:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768970', 'tblTempUsageDetail_20' ) start [2025-03-26 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768970', 'tblTempUsageDetail_20' ) end [2025-03-26 19:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:29:25] Production.INFO: ==10059== Releasing lock... [2025-03-26 19:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:29:25] Production.INFO: 63 MB #Memory Used# [2025-03-26 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:30:05 [end_date_ymd] => 2025-03-26 19:30:05 [RateCDR] => 1 ) [2025-03-26 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:30:05' and `end` < '2025-03-26 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:30:19] Production.INFO: count ==4657 [2025-03-26 19:30:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:30:05 - End Time 2025-03-26 19:30:05 [2025-03-26 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768975', 'tblTempUsageDetail_20' ) start [2025-03-26 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768975', 'tblTempUsageDetail_20' ) end [2025-03-26 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768975', 'tblTempVendorCDR_20' ) start [2025-03-26 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768975', 'tblTempVendorCDR_20' ) end [2025-03-26 19:30:20] Production.INFO: ProcessCDR(1,14768975,1,1,2) [2025-03-26 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768975', 'tblTempUsageDetail_20' ) start [2025-03-26 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768975', 'tblTempUsageDetail_20' ) end [2025-03-26 19:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:30:25] Production.INFO: ==10149== Releasing lock... [2025-03-26 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:30:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-26 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:31:05 [end_date_ymd] => 2025-03-26 19:31:05 [RateCDR] => 1 ) [2025-03-26 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:31:05' and `end` < '2025-03-26 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:31:19] Production.INFO: count ==4634 [2025-03-26 19:31:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:31:05 - End Time 2025-03-26 19:31:05 [2025-03-26 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768981', 'tblTempUsageDetail_20' ) start [2025-03-26 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768981', 'tblTempUsageDetail_20' ) end [2025-03-26 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768981', 'tblTempVendorCDR_20' ) start [2025-03-26 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768981', 'tblTempVendorCDR_20' ) end [2025-03-26 19:31:20] Production.INFO: ProcessCDR(1,14768981,1,1,2) [2025-03-26 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768981', 'tblTempUsageDetail_20' ) start [2025-03-26 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768981', 'tblTempUsageDetail_20' ) end [2025-03-26 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:31:24] Production.INFO: ==10234== Releasing lock... [2025-03-26 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:31:24] Production.INFO: 62.5 MB #Memory Used# [2025-03-26 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:32:05 [end_date_ymd] => 2025-03-26 19:32:05 [RateCDR] => 1 ) [2025-03-26 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:32:05' and `end` < '2025-03-26 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:32:19] Production.INFO: count ==4622 [2025-03-26 19:32:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:32:05 - End Time 2025-03-26 19:32:05 [2025-03-26 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768986', 'tblTempUsageDetail_20' ) start [2025-03-26 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768986', 'tblTempUsageDetail_20' ) end [2025-03-26 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768986', 'tblTempVendorCDR_20' ) start [2025-03-26 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768986', 'tblTempVendorCDR_20' ) end [2025-03-26 19:32:20] Production.INFO: ProcessCDR(1,14768986,1,1,2) [2025-03-26 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768986', 'tblTempUsageDetail_20' ) start [2025-03-26 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768986', 'tblTempUsageDetail_20' ) end [2025-03-26 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:32:25] Production.INFO: ==10313== Releasing lock... [2025-03-26 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:32:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-26 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:33:05 [end_date_ymd] => 2025-03-26 19:33:05 [RateCDR] => 1 ) [2025-03-26 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:33:05' and `end` < '2025-03-26 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:33:18] Production.INFO: count ==4622 [2025-03-26 19:33:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:33:05 - End Time 2025-03-26 19:33:05 [2025-03-26 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768991', 'tblTempUsageDetail_20' ) start [2025-03-26 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768991', 'tblTempUsageDetail_20' ) end [2025-03-26 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768991', 'tblTempVendorCDR_20' ) start [2025-03-26 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768991', 'tblTempVendorCDR_20' ) end [2025-03-26 19:33:20] Production.INFO: ProcessCDR(1,14768991,1,1,2) [2025-03-26 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768991', 'tblTempUsageDetail_20' ) start [2025-03-26 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768991', 'tblTempUsageDetail_20' ) end [2025-03-26 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:33:23] Production.INFO: ==10436== Releasing lock... [2025-03-26 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:33:23] Production.INFO: 62.5 MB #Memory Used# [2025-03-26 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:34:05 [end_date_ymd] => 2025-03-26 19:34:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:34:05' and `end` < '2025-03-26 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-26 19:34:18] Production.INFO: count ==4596 [2025-03-26 19:34:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:34:05 - End Time 2025-03-26 19:34:05 [2025-03-26 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768996', 'tblTempUsageDetail_20' ) start [2025-03-26 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14768996', 'tblTempUsageDetail_20' ) end [2025-03-26 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768996', 'tblTempVendorCDR_20' ) start [2025-03-26 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14768996', 'tblTempVendorCDR_20' ) end [2025-03-26 19:34:20] Production.INFO: ProcessCDR(1,14768996,1,1,2) [2025-03-26 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14768996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14768996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14768996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14768996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768996', 'tblTempUsageDetail_20' ) start [2025-03-26 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14768996', 'tblTempUsageDetail_20' ) end [2025-03-26 19:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:34:25] Production.INFO: ==10520== Releasing lock... [2025-03-26 19:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:34:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-26 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:35:06 [end_date_ymd] => 2025-03-26 19:35:06 [RateCDR] => 1 ) [2025-03-26 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-26 16:35:06' and `end` < '2025-03-26 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-26 19:35:19] Production.INFO: count ==4548 [2025-03-26 19:35:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:35:06 - End Time 2025-03-26 19:35:06 [2025-03-26 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769001', 'tblTempUsageDetail_20' ) start [2025-03-26 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769001', 'tblTempUsageDetail_20' ) end [2025-03-26 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769001', 'tblTempVendorCDR_20' ) start [2025-03-26 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769001', 'tblTempVendorCDR_20' ) end [2025-03-26 19:35:20] Production.INFO: ProcessCDR(1,14769001,1,1,2) [2025-03-26 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769001', 'tblTempUsageDetail_20' ) start [2025-03-26 19:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769001', 'tblTempUsageDetail_20' ) end [2025-03-26 19:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:35:25] Production.INFO: ==10609== Releasing lock... [2025-03-26 19:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:35:25] Production.INFO: 62 MB #Memory Used# [2025-03-26 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:36:05 [end_date_ymd] => 2025-03-26 19:36:05 [RateCDR] => 1 ) [2025-03-26 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:36:05' and `end` < '2025-03-26 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:36:18] Production.INFO: count ==4537 [2025-03-26 19:36:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:36:05 - End Time 2025-03-26 19:36:05 [2025-03-26 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769006', 'tblTempUsageDetail_20' ) start [2025-03-26 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769006', 'tblTempUsageDetail_20' ) end [2025-03-26 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769006', 'tblTempVendorCDR_20' ) start [2025-03-26 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769006', 'tblTempVendorCDR_20' ) end [2025-03-26 19:36:20] Production.INFO: ProcessCDR(1,14769006,1,1,2) [2025-03-26 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769006', 'tblTempUsageDetail_20' ) start [2025-03-26 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769006', 'tblTempUsageDetail_20' ) end [2025-03-26 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:36:24] Production.INFO: ==10698== Releasing lock... [2025-03-26 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:36:24] Production.INFO: 61.75 MB #Memory Used# [2025-03-26 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:37:05 [end_date_ymd] => 2025-03-26 19:37:05 [RateCDR] => 1 ) [2025-03-26 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:37:05' and `end` < '2025-03-26 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:37:18] Production.INFO: count ==4515 [2025-03-26 19:37:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:37:05 - End Time 2025-03-26 19:37:05 [2025-03-26 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769011', 'tblTempUsageDetail_20' ) start [2025-03-26 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769011', 'tblTempUsageDetail_20' ) end [2025-03-26 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769011', 'tblTempVendorCDR_20' ) start [2025-03-26 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769011', 'tblTempVendorCDR_20' ) end [2025-03-26 19:37:20] Production.INFO: ProcessCDR(1,14769011,1,1,2) [2025-03-26 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769011', 'tblTempUsageDetail_20' ) start [2025-03-26 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769011', 'tblTempUsageDetail_20' ) end [2025-03-26 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:37:23] Production.INFO: ==10780== Releasing lock... [2025-03-26 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:37:23] Production.INFO: 61.75 MB #Memory Used# [2025-03-26 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:38:05 [end_date_ymd] => 2025-03-26 19:38:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:38:05' and `end` < '2025-03-26 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-26 19:38:18] Production.INFO: count ==4503 [2025-03-26 19:38:19] Production.ERROR: pbx CDR StartTime 2025-03-26 16:38:05 - End Time 2025-03-26 19:38:05 [2025-03-26 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769016', 'tblTempUsageDetail_20' ) start [2025-03-26 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769016', 'tblTempUsageDetail_20' ) end [2025-03-26 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769016', 'tblTempVendorCDR_20' ) start [2025-03-26 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769016', 'tblTempVendorCDR_20' ) end [2025-03-26 19:38:20] Production.INFO: ProcessCDR(1,14769016,1,1,2) [2025-03-26 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769016', 'tblTempUsageDetail_20' ) start [2025-03-26 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769016', 'tblTempUsageDetail_20' ) end [2025-03-26 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:38:25] Production.INFO: ==10874== Releasing lock... [2025-03-26 19:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:38:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-26 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:39:05 [end_date_ymd] => 2025-03-26 19:39:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:39:05' and `end` < '2025-03-26 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-26 19:39:18] Production.INFO: count ==4493 [2025-03-26 19:39:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:39:05 - End Time 2025-03-26 19:39:05 [2025-03-26 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769021', 'tblTempUsageDetail_20' ) start [2025-03-26 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769021', 'tblTempUsageDetail_20' ) end [2025-03-26 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769021', 'tblTempVendorCDR_20' ) start [2025-03-26 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769021', 'tblTempVendorCDR_20' ) end [2025-03-26 19:39:20] Production.INFO: ProcessCDR(1,14769021,1,1,2) [2025-03-26 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769021', 'tblTempUsageDetail_20' ) start [2025-03-26 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769021', 'tblTempUsageDetail_20' ) end [2025-03-26 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:39:23] Production.INFO: ==10962== Releasing lock... [2025-03-26 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:39:23] Production.INFO: 61.5 MB #Memory Used# [2025-03-26 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:40:05 [end_date_ymd] => 2025-03-26 19:40:05 [RateCDR] => 1 ) [2025-03-26 19:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:40:05' and `end` < '2025-03-26 19:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:40:18] Production.INFO: count ==4476 [2025-03-26 19:40:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:40:05 - End Time 2025-03-26 19:40:05 [2025-03-26 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769027', 'tblTempUsageDetail_20' ) start [2025-03-26 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769027', 'tblTempUsageDetail_20' ) end [2025-03-26 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769027', 'tblTempVendorCDR_20' ) start [2025-03-26 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769027', 'tblTempVendorCDR_20' ) end [2025-03-26 19:40:20] Production.INFO: ProcessCDR(1,14769027,1,1,2) [2025-03-26 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769027', 'tblTempUsageDetail_20' ) start [2025-03-26 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769027', 'tblTempUsageDetail_20' ) end [2025-03-26 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:40:25] Production.INFO: ==11060== Releasing lock... [2025-03-26 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:40:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-26 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:41:05 [end_date_ymd] => 2025-03-26 19:41:05 [RateCDR] => 1 ) [2025-03-26 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:41:05' and `end` < '2025-03-26 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:41:19] Production.INFO: count ==4456 [2025-03-26 19:41:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:41:05 - End Time 2025-03-26 19:41:05 [2025-03-26 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769032', 'tblTempUsageDetail_20' ) start [2025-03-26 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769032', 'tblTempUsageDetail_20' ) end [2025-03-26 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769032', 'tblTempVendorCDR_20' ) start [2025-03-26 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769032', 'tblTempVendorCDR_20' ) end [2025-03-26 19:41:20] Production.INFO: ProcessCDR(1,14769032,1,1,2) [2025-03-26 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769032', 'tblTempUsageDetail_20' ) start [2025-03-26 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769032', 'tblTempUsageDetail_20' ) end [2025-03-26 19:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:41:26] Production.INFO: ==11153== Releasing lock... [2025-03-26 19:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:41:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-26 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:42:05 [end_date_ymd] => 2025-03-26 19:42:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:42:05' and `end` < '2025-03-26 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-26 19:42:18] Production.INFO: count ==4444 [2025-03-26 19:42:19] Production.ERROR: pbx CDR StartTime 2025-03-26 16:42:05 - End Time 2025-03-26 19:42:05 [2025-03-26 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769037', 'tblTempUsageDetail_20' ) start [2025-03-26 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769037', 'tblTempUsageDetail_20' ) end [2025-03-26 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769037', 'tblTempVendorCDR_20' ) start [2025-03-26 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769037', 'tblTempVendorCDR_20' ) end [2025-03-26 19:42:19] Production.INFO: ProcessCDR(1,14769037,1,1,2) [2025-03-26 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769037', 'tblTempUsageDetail_20' ) start [2025-03-26 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769037', 'tblTempUsageDetail_20' ) end [2025-03-26 19:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:42:25] Production.INFO: ==11244== Releasing lock... [2025-03-26 19:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:42:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-26 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:43:05 [end_date_ymd] => 2025-03-26 19:43:05 [RateCDR] => 1 ) [2025-03-26 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:43:05' and `end` < '2025-03-26 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:43:19] Production.INFO: count ==4439 [2025-03-26 19:43:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:43:05 - End Time 2025-03-26 19:43:05 [2025-03-26 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769042', 'tblTempUsageDetail_20' ) start [2025-03-26 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769042', 'tblTempUsageDetail_20' ) end [2025-03-26 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769042', 'tblTempVendorCDR_20' ) start [2025-03-26 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769042', 'tblTempVendorCDR_20' ) end [2025-03-26 19:43:20] Production.INFO: ProcessCDR(1,14769042,1,1,2) [2025-03-26 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769042', 'tblTempUsageDetail_20' ) start [2025-03-26 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769042', 'tblTempUsageDetail_20' ) end [2025-03-26 19:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:43:24] Production.INFO: ==11337== Releasing lock... [2025-03-26 19:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:43:24] Production.INFO: 61.25 MB #Memory Used# [2025-03-26 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:44:06 [end_date_ymd] => 2025-03-26 19:44:06 [RateCDR] => 1 ) [2025-03-26 19: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-26 16:44:06' and `end` < '2025-03-26 19: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-26 19:44:19] Production.INFO: count ==4426 [2025-03-26 19:44:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:44:06 - End Time 2025-03-26 19:44:06 [2025-03-26 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769047', 'tblTempUsageDetail_20' ) start [2025-03-26 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769047', 'tblTempUsageDetail_20' ) end [2025-03-26 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769047', 'tblTempVendorCDR_20' ) start [2025-03-26 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769047', 'tblTempVendorCDR_20' ) end [2025-03-26 19:44:21] Production.INFO: ProcessCDR(1,14769047,1,1,2) [2025-03-26 19:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769047', 'tblTempUsageDetail_20' ) start [2025-03-26 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769047', 'tblTempUsageDetail_20' ) end [2025-03-26 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:44:24] Production.INFO: ==11430== Releasing lock... [2025-03-26 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:44:24] Production.INFO: 61 MB #Memory Used# [2025-03-26 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:45:05 [end_date_ymd] => 2025-03-26 19:45:05 [RateCDR] => 1 ) [2025-03-26 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:45:05' and `end` < '2025-03-26 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:45:18] Production.INFO: count ==4424 [2025-03-26 19:45:19] Production.ERROR: pbx CDR StartTime 2025-03-26 16:45:05 - End Time 2025-03-26 19:45:05 [2025-03-26 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769052', 'tblTempUsageDetail_20' ) start [2025-03-26 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769052', 'tblTempUsageDetail_20' ) end [2025-03-26 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769052', 'tblTempVendorCDR_20' ) start [2025-03-26 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769052', 'tblTempVendorCDR_20' ) end [2025-03-26 19:45:20] Production.INFO: ProcessCDR(1,14769052,1,1,2) [2025-03-26 19:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769052', 'tblTempUsageDetail_20' ) start [2025-03-26 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769052', 'tblTempUsageDetail_20' ) end [2025-03-26 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:45:23] Production.INFO: ==11523== Releasing lock... [2025-03-26 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:45:23] Production.INFO: 61 MB #Memory Used# [2025-03-26 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:46:05 [end_date_ymd] => 2025-03-26 19:46:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:46:05' and `end` < '2025-03-26 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-26 19:46:18] Production.INFO: count ==4421 [2025-03-26 19:46:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:46:05 - End Time 2025-03-26 19:46:05 [2025-03-26 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769057', 'tblTempUsageDetail_20' ) start [2025-03-26 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769057', 'tblTempUsageDetail_20' ) end [2025-03-26 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769057', 'tblTempVendorCDR_20' ) start [2025-03-26 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769057', 'tblTempVendorCDR_20' ) end [2025-03-26 19:46:20] Production.INFO: ProcessCDR(1,14769057,1,1,2) [2025-03-26 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769057', 'tblTempUsageDetail_20' ) start [2025-03-26 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769057', 'tblTempUsageDetail_20' ) end [2025-03-26 19:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:46:25] Production.INFO: ==11619== Releasing lock... [2025-03-26 19:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:46:25] Production.INFO: 61 MB #Memory Used# [2025-03-26 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:47:06 [end_date_ymd] => 2025-03-26 19:47:06 [RateCDR] => 1 ) [2025-03-26 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-26 16:47:06' and `end` < '2025-03-26 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-26 19:47:19] Production.INFO: count ==4414 [2025-03-26 19:47:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:47:06 - End Time 2025-03-26 19:47:06 [2025-03-26 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769062', 'tblTempUsageDetail_20' ) start [2025-03-26 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769062', 'tblTempUsageDetail_20' ) end [2025-03-26 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769062', 'tblTempVendorCDR_20' ) start [2025-03-26 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769062', 'tblTempVendorCDR_20' ) end [2025-03-26 19:47:20] Production.INFO: ProcessCDR(1,14769062,1,1,2) [2025-03-26 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769062', 'tblTempUsageDetail_20' ) start [2025-03-26 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769062', 'tblTempUsageDetail_20' ) end [2025-03-26 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:47:24] Production.INFO: ==11713== Releasing lock... [2025-03-26 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:47:24] Production.INFO: 61 MB #Memory Used# [2025-03-26 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:48:06 [end_date_ymd] => 2025-03-26 19:48:06 [RateCDR] => 1 ) [2025-03-26 19:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:48:06' and `end` < '2025-03-26 19:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:48:19] Production.INFO: count ==4410 [2025-03-26 19:48:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:48:06 - End Time 2025-03-26 19:48:06 [2025-03-26 19:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769067', 'tblTempUsageDetail_20' ) start [2025-03-26 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769067', 'tblTempUsageDetail_20' ) end [2025-03-26 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769067', 'tblTempVendorCDR_20' ) start [2025-03-26 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769067', 'tblTempVendorCDR_20' ) end [2025-03-26 19:48:21] Production.INFO: ProcessCDR(1,14769067,1,1,2) [2025-03-26 19:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769067', 'tblTempUsageDetail_20' ) start [2025-03-26 19:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769067', 'tblTempUsageDetail_20' ) end [2025-03-26 19:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:48:26] Production.INFO: ==11851== Releasing lock... [2025-03-26 19:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:48:26] Production.INFO: 61 MB #Memory Used# [2025-03-26 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:49:05 [end_date_ymd] => 2025-03-26 19:49:05 [RateCDR] => 1 ) [2025-03-26 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:49:05' and `end` < '2025-03-26 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:49:18] Production.INFO: count ==4391 [2025-03-26 19:49:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:49:05 - End Time 2025-03-26 19:49:05 [2025-03-26 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769072', 'tblTempUsageDetail_20' ) start [2025-03-26 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769072', 'tblTempUsageDetail_20' ) end [2025-03-26 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769072', 'tblTempVendorCDR_20' ) start [2025-03-26 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769072', 'tblTempVendorCDR_20' ) end [2025-03-26 19:49:20] Production.INFO: ProcessCDR(1,14769072,1,1,2) [2025-03-26 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769072', 'tblTempUsageDetail_20' ) start [2025-03-26 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769072', 'tblTempUsageDetail_20' ) end [2025-03-26 19:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:49:25] Production.INFO: ==11949== Releasing lock... [2025-03-26 19:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:49:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-26 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:50:06 [end_date_ymd] => 2025-03-26 19:50:06 [RateCDR] => 1 ) [2025-03-26 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-26 16:50:06' and `end` < '2025-03-26 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-26 19:50:19] Production.INFO: count ==4416 [2025-03-26 19:50:21] Production.ERROR: pbx CDR StartTime 2025-03-26 16:50:06 - End Time 2025-03-26 19:50:06 [2025-03-26 19:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769078', 'tblTempUsageDetail_20' ) start [2025-03-26 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769078', 'tblTempUsageDetail_20' ) end [2025-03-26 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769078', 'tblTempVendorCDR_20' ) start [2025-03-26 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769078', 'tblTempVendorCDR_20' ) end [2025-03-26 19:50:21] Production.INFO: ProcessCDR(1,14769078,1,1,2) [2025-03-26 19:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769078', 'tblTempUsageDetail_20' ) start [2025-03-26 19:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769078', 'tblTempUsageDetail_20' ) end [2025-03-26 19:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:50:26] Production.INFO: ==12047== Releasing lock... [2025-03-26 19:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:50:26] Production.INFO: 61 MB #Memory Used# [2025-03-26 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:51:05 [end_date_ymd] => 2025-03-26 19:51:05 [RateCDR] => 1 ) [2025-03-26 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:51:05' and `end` < '2025-03-26 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:51:18] Production.INFO: count ==4355 [2025-03-26 19:51:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:51:05 - End Time 2025-03-26 19:51:05 [2025-03-26 19:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769083', 'tblTempUsageDetail_20' ) start [2025-03-26 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769083', 'tblTempUsageDetail_20' ) end [2025-03-26 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769083', 'tblTempVendorCDR_20' ) start [2025-03-26 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769083', 'tblTempVendorCDR_20' ) end [2025-03-26 19:51:20] Production.INFO: ProcessCDR(1,14769083,1,1,2) [2025-03-26 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769083', 'tblTempUsageDetail_20' ) start [2025-03-26 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769083', 'tblTempUsageDetail_20' ) end [2025-03-26 19:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:51:25] Production.INFO: ==12139== Releasing lock... [2025-03-26 19:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:51:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-26 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:52:06 [end_date_ymd] => 2025-03-26 19:52:06 [RateCDR] => 1 ) [2025-03-26 19:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:52:06' and `end` < '2025-03-26 19:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:52:19] Production.INFO: count ==4264 [2025-03-26 19:52:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:52:06 - End Time 2025-03-26 19:52:06 [2025-03-26 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769088', 'tblTempUsageDetail_20' ) start [2025-03-26 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769088', 'tblTempUsageDetail_20' ) end [2025-03-26 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769088', 'tblTempVendorCDR_20' ) start [2025-03-26 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769088', 'tblTempVendorCDR_20' ) end [2025-03-26 19:52:20] Production.INFO: ProcessCDR(1,14769088,1,1,2) [2025-03-26 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769088', 'tblTempUsageDetail_20' ) start [2025-03-26 19:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769088', 'tblTempUsageDetail_20' ) end [2025-03-26 19:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:52:26] Production.INFO: ==12229== Releasing lock... [2025-03-26 19:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:52:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-26 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:53:05 [end_date_ymd] => 2025-03-26 19:53:05 [RateCDR] => 1 ) [2025-03-26 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 16:53:05' and `end` < '2025-03-26 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 19:53:18] Production.INFO: count ==4236 [2025-03-26 19:53:19] Production.ERROR: pbx CDR StartTime 2025-03-26 16:53:05 - End Time 2025-03-26 19:53:05 [2025-03-26 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769093', 'tblTempUsageDetail_20' ) start [2025-03-26 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769093', 'tblTempUsageDetail_20' ) end [2025-03-26 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769093', 'tblTempVendorCDR_20' ) start [2025-03-26 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769093', 'tblTempVendorCDR_20' ) end [2025-03-26 19:53:19] Production.INFO: ProcessCDR(1,14769093,1,1,2) [2025-03-26 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769093', 'tblTempUsageDetail_20' ) start [2025-03-26 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769093', 'tblTempUsageDetail_20' ) end [2025-03-26 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:53:23] Production.INFO: ==12317== Releasing lock... [2025-03-26 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:53:23] Production.INFO: 59.5 MB #Memory Used# [2025-03-26 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:54:06 [end_date_ymd] => 2025-03-26 19:54:06 [RateCDR] => 1 ) [2025-03-26 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-26 16:54:06' and `end` < '2025-03-26 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-26 19:54:19] Production.INFO: count ==4136 [2025-03-26 19:54:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:54:06 - End Time 2025-03-26 19:54:06 [2025-03-26 19:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769098', 'tblTempUsageDetail_20' ) start [2025-03-26 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769098', 'tblTempUsageDetail_20' ) end [2025-03-26 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769098', 'tblTempVendorCDR_20' ) start [2025-03-26 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769098', 'tblTempVendorCDR_20' ) end [2025-03-26 19:54:20] Production.INFO: ProcessCDR(1,14769098,1,1,2) [2025-03-26 19:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769098', 'tblTempUsageDetail_20' ) start [2025-03-26 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769098', 'tblTempUsageDetail_20' ) end [2025-03-26 19:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:54:25] Production.INFO: ==12411== Releasing lock... [2025-03-26 19:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:54:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-26 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:55:05 [end_date_ymd] => 2025-03-26 19:55:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:55:05' and `end` < '2025-03-26 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-26 19:55:18] Production.INFO: count ==4129 [2025-03-26 19:55:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:55:05 - End Time 2025-03-26 19:55:05 [2025-03-26 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769103', 'tblTempUsageDetail_20' ) start [2025-03-26 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769103', 'tblTempUsageDetail_20' ) end [2025-03-26 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769103', 'tblTempVendorCDR_20' ) start [2025-03-26 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769103', 'tblTempVendorCDR_20' ) end [2025-03-26 19:55:20] Production.INFO: ProcessCDR(1,14769103,1,1,2) [2025-03-26 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769103', 'tblTempUsageDetail_20' ) start [2025-03-26 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769103', 'tblTempUsageDetail_20' ) end [2025-03-26 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:55:23] Production.INFO: ==12496== Releasing lock... [2025-03-26 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:55:23] Production.INFO: 59 MB #Memory Used# [2025-03-26 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:56:06 [end_date_ymd] => 2025-03-26 19:56:06 [RateCDR] => 1 ) [2025-03-26 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-26 16:56:06' and `end` < '2025-03-26 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-26 19:56:19] Production.INFO: count ==4010 [2025-03-26 19:56:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:56:06 - End Time 2025-03-26 19:56:06 [2025-03-26 19:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769108', 'tblTempUsageDetail_20' ) start [2025-03-26 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769108', 'tblTempUsageDetail_20' ) end [2025-03-26 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769108', 'tblTempVendorCDR_20' ) start [2025-03-26 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769108', 'tblTempVendorCDR_20' ) end [2025-03-26 19:56:20] Production.INFO: ProcessCDR(1,14769108,1,1,2) [2025-03-26 19:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769108', 'tblTempUsageDetail_20' ) start [2025-03-26 19:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769108', 'tblTempUsageDetail_20' ) end [2025-03-26 19:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:56:25] Production.INFO: ==12584== Releasing lock... [2025-03-26 19:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:56:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-26 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:57:05 [end_date_ymd] => 2025-03-26 19:57:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:57:05' and `end` < '2025-03-26 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-26 19:57:18] Production.INFO: count ==3869 [2025-03-26 19:57:19] Production.ERROR: pbx CDR StartTime 2025-03-26 16:57:05 - End Time 2025-03-26 19:57:05 [2025-03-26 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769113', 'tblTempUsageDetail_20' ) start [2025-03-26 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769113', 'tblTempUsageDetail_20' ) end [2025-03-26 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769113', 'tblTempVendorCDR_20' ) start [2025-03-26 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769113', 'tblTempVendorCDR_20' ) end [2025-03-26 19:57:19] Production.INFO: ProcessCDR(1,14769113,1,1,2) [2025-03-26 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769113', 'tblTempUsageDetail_20' ) start [2025-03-26 19:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769113', 'tblTempUsageDetail_20' ) end [2025-03-26 19:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:57:25] Production.INFO: ==12662== Releasing lock... [2025-03-26 19:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:57:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-26 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:58:06 [end_date_ymd] => 2025-03-26 19:58:06 [RateCDR] => 1 ) [2025-03-26 19: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-26 16:58:06' and `end` < '2025-03-26 19: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-26 19:58:18] Production.INFO: count ==3789 [2025-03-26 19:58:20] Production.ERROR: pbx CDR StartTime 2025-03-26 16:58:06 - End Time 2025-03-26 19:58:06 [2025-03-26 19:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769118', 'tblTempUsageDetail_20' ) start [2025-03-26 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769118', 'tblTempUsageDetail_20' ) end [2025-03-26 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769118', 'tblTempVendorCDR_20' ) start [2025-03-26 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769118', 'tblTempVendorCDR_20' ) end [2025-03-26 19:58:20] Production.INFO: ProcessCDR(1,14769118,1,1,2) [2025-03-26 19:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769118', 'tblTempUsageDetail_20' ) start [2025-03-26 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769118', 'tblTempUsageDetail_20' ) end [2025-03-26 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:58:23] Production.INFO: ==12738== Releasing lock... [2025-03-26 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:58:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-26 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 16:59:05 [end_date_ymd] => 2025-03-26 19:59:05 [RateCDR] => 1 ) [2025-03-26 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-26 16:59:05' and `end` < '2025-03-26 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-26 19:59:18] Production.INFO: count ==3783 [2025-03-26 19:59:19] Production.ERROR: pbx CDR StartTime 2025-03-26 16:59:05 - End Time 2025-03-26 19:59:05 [2025-03-26 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769123', 'tblTempUsageDetail_20' ) start [2025-03-26 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769123', 'tblTempUsageDetail_20' ) end [2025-03-26 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769123', 'tblTempVendorCDR_20' ) start [2025-03-26 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769123', 'tblTempVendorCDR_20' ) end [2025-03-26 19:59:19] Production.INFO: ProcessCDR(1,14769123,1,1,2) [2025-03-26 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769123', 'tblTempUsageDetail_20' ) start [2025-03-26 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769123', 'tblTempUsageDetail_20' ) end [2025-03-26 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 19:59:24] Production.INFO: ==12818== Releasing lock... [2025-03-26 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 19:59:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-26 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:00:06 [end_date_ymd] => 2025-03-26 20:00:06 [RateCDR] => 1 ) [2025-03-26 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-26 17:00:06' and `end` < '2025-03-26 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-26 20:00:19] Production.INFO: count ==3702 [2025-03-26 20:00:20] Production.ERROR: pbx CDR StartTime 2025-03-26 17:00:06 - End Time 2025-03-26 20:00:06 [2025-03-26 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769128', 'tblTempUsageDetail_20' ) start [2025-03-26 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769128', 'tblTempUsageDetail_20' ) end [2025-03-26 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769128', 'tblTempVendorCDR_20' ) start [2025-03-26 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769128', 'tblTempVendorCDR_20' ) end [2025-03-26 20:00:20] Production.INFO: ProcessCDR(1,14769128,1,1,2) [2025-03-26 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769128', 'tblTempUsageDetail_20' ) start [2025-03-26 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769128', 'tblTempUsageDetail_20' ) end [2025-03-26 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:00:24] Production.INFO: ==12900== Releasing lock... [2025-03-26 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:00:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-26 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:01:05 [end_date_ymd] => 2025-03-26 20:01:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:01:05' and `end` < '2025-03-26 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-26 20:01:18] Production.INFO: count ==3584 [2025-03-26 20:01:20] Production.ERROR: pbx CDR StartTime 2025-03-26 17:01:05 - End Time 2025-03-26 20:01:05 [2025-03-26 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769134', 'tblTempUsageDetail_20' ) start [2025-03-26 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769134', 'tblTempUsageDetail_20' ) end [2025-03-26 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769134', 'tblTempVendorCDR_20' ) start [2025-03-26 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769134', 'tblTempVendorCDR_20' ) end [2025-03-26 20:01:20] Production.INFO: ProcessCDR(1,14769134,1,1,2) [2025-03-26 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769134', 'tblTempUsageDetail_20' ) start [2025-03-26 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769134', 'tblTempUsageDetail_20' ) end [2025-03-26 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:01:23] Production.INFO: ==13032== Releasing lock... [2025-03-26 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:01:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-26 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:02:05 [end_date_ymd] => 2025-03-26 20:02:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:02:05' and `end` < '2025-03-26 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-26 20:02:18] Production.INFO: count ==3576 [2025-03-26 20:02:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:02:05 - End Time 2025-03-26 20:02:05 [2025-03-26 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769139', 'tblTempUsageDetail_20' ) start [2025-03-26 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769139', 'tblTempUsageDetail_20' ) end [2025-03-26 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769139', 'tblTempVendorCDR_20' ) start [2025-03-26 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769139', 'tblTempVendorCDR_20' ) end [2025-03-26 20:02:20] Production.INFO: ProcessCDR(1,14769139,1,1,2) [2025-03-26 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769139', 'tblTempUsageDetail_20' ) start [2025-03-26 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769139', 'tblTempUsageDetail_20' ) end [2025-03-26 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:02:23] Production.INFO: ==13110== Releasing lock... [2025-03-26 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:02:23] Production.INFO: 54.75 MB #Memory Used# [2025-03-26 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:03:05 [end_date_ymd] => 2025-03-26 20:03:05 [RateCDR] => 1 ) [2025-03-26 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:03:05' and `end` < '2025-03-26 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:03:18] Production.INFO: count ==3575 [2025-03-26 20:03:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:03:05 - End Time 2025-03-26 20:03:05 [2025-03-26 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769144', 'tblTempUsageDetail_20' ) start [2025-03-26 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769144', 'tblTempUsageDetail_20' ) end [2025-03-26 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769144', 'tblTempVendorCDR_20' ) start [2025-03-26 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769144', 'tblTempVendorCDR_20' ) end [2025-03-26 20:03:19] Production.INFO: ProcessCDR(1,14769144,1,1,2) [2025-03-26 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769144', 'tblTempUsageDetail_20' ) start [2025-03-26 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769144', 'tblTempUsageDetail_20' ) end [2025-03-26 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:03:23] Production.INFO: ==13187== Releasing lock... [2025-03-26 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:03:23] Production.INFO: 54.75 MB #Memory Used# [2025-03-26 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:04:05 [end_date_ymd] => 2025-03-26 20:04:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:04:05' and `end` < '2025-03-26 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-26 20:04:18] Production.INFO: count ==3572 [2025-03-26 20:04:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:04:05 - End Time 2025-03-26 20:04:05 [2025-03-26 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769149', 'tblTempUsageDetail_20' ) start [2025-03-26 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769149', 'tblTempUsageDetail_20' ) end [2025-03-26 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769149', 'tblTempVendorCDR_20' ) start [2025-03-26 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769149', 'tblTempVendorCDR_20' ) end [2025-03-26 20:04:20] Production.INFO: ProcessCDR(1,14769149,1,1,2) [2025-03-26 20:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769149', 'tblTempUsageDetail_20' ) start [2025-03-26 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769149', 'tblTempUsageDetail_20' ) end [2025-03-26 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:04:23] Production.INFO: ==13311== Releasing lock... [2025-03-26 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:04:23] Production.INFO: 55 MB #Memory Used# [2025-03-26 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:05:05 [end_date_ymd] => 2025-03-26 20:05:05 [RateCDR] => 1 ) [2025-03-26 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:05:05' and `end` < '2025-03-26 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:05:18] Production.INFO: count ==3553 [2025-03-26 20:05:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:05:05 - End Time 2025-03-26 20:05:05 [2025-03-26 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769154', 'tblTempUsageDetail_20' ) start [2025-03-26 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769154', 'tblTempUsageDetail_20' ) end [2025-03-26 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769154', 'tblTempVendorCDR_20' ) start [2025-03-26 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769154', 'tblTempVendorCDR_20' ) end [2025-03-26 20:05:19] Production.INFO: ProcessCDR(1,14769154,1,1,2) [2025-03-26 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769154', 'tblTempUsageDetail_20' ) start [2025-03-26 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769154', 'tblTempUsageDetail_20' ) end [2025-03-26 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:05:22] Production.INFO: ==13388== Releasing lock... [2025-03-26 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:05:22] Production.INFO: 54.5 MB #Memory Used# [2025-03-26 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:06:05 [end_date_ymd] => 2025-03-26 20:06:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:06:05' and `end` < '2025-03-26 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-26 20:06:18] Production.INFO: count ==3551 [2025-03-26 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:06:05 - End Time 2025-03-26 20:06:05 [2025-03-26 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769159', 'tblTempUsageDetail_20' ) start [2025-03-26 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769159', 'tblTempUsageDetail_20' ) end [2025-03-26 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769159', 'tblTempVendorCDR_20' ) start [2025-03-26 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769159', 'tblTempVendorCDR_20' ) end [2025-03-26 20:06:19] Production.INFO: ProcessCDR(1,14769159,1,1,2) [2025-03-26 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769159', 'tblTempUsageDetail_20' ) start [2025-03-26 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769159', 'tblTempUsageDetail_20' ) end [2025-03-26 20:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:06:24] Production.INFO: ==13469== Releasing lock... [2025-03-26 20:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:06:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-26 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:07:05 [end_date_ymd] => 2025-03-26 20:07:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:07:05' and `end` < '2025-03-26 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-26 20:07:18] Production.INFO: count ==3553 [2025-03-26 20:07:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:07:05 - End Time 2025-03-26 20:07:05 [2025-03-26 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769164', 'tblTempUsageDetail_20' ) start [2025-03-26 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769164', 'tblTempUsageDetail_20' ) end [2025-03-26 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769164', 'tblTempVendorCDR_20' ) start [2025-03-26 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769164', 'tblTempVendorCDR_20' ) end [2025-03-26 20:07:19] Production.INFO: ProcessCDR(1,14769164,1,1,2) [2025-03-26 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769164', 'tblTempUsageDetail_20' ) start [2025-03-26 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769164', 'tblTempUsageDetail_20' ) end [2025-03-26 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:07:22] Production.INFO: ==13548== Releasing lock... [2025-03-26 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:07:22] Production.INFO: 54.5 MB #Memory Used# [2025-03-26 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:08:06 [end_date_ymd] => 2025-03-26 20:08:06 [RateCDR] => 1 ) [2025-03-26 20:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:08:06' and `end` < '2025-03-26 20:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:08:19] Production.INFO: count ==3552 [2025-03-26 20:08:20] Production.ERROR: pbx CDR StartTime 2025-03-26 17:08:06 - End Time 2025-03-26 20:08:06 [2025-03-26 20:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769169', 'tblTempUsageDetail_20' ) start [2025-03-26 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769169', 'tblTempUsageDetail_20' ) end [2025-03-26 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769169', 'tblTempVendorCDR_20' ) start [2025-03-26 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769169', 'tblTempVendorCDR_20' ) end [2025-03-26 20:08:20] Production.INFO: ProcessCDR(1,14769169,1,1,2) [2025-03-26 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769169', 'tblTempUsageDetail_20' ) start [2025-03-26 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769169', 'tblTempUsageDetail_20' ) end [2025-03-26 20:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:08:25] Production.INFO: ==13626== Releasing lock... [2025-03-26 20:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:08:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-26 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:09:05 [end_date_ymd] => 2025-03-26 20:09:05 [RateCDR] => 1 ) [2025-03-26 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:09:05' and `end` < '2025-03-26 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:09:18] Production.INFO: count ==3530 [2025-03-26 20:09:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:09:05 - End Time 2025-03-26 20:09:05 [2025-03-26 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769174', 'tblTempUsageDetail_20' ) start [2025-03-26 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769174', 'tblTempUsageDetail_20' ) end [2025-03-26 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769174', 'tblTempVendorCDR_20' ) start [2025-03-26 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769174', 'tblTempVendorCDR_20' ) end [2025-03-26 20:09:19] Production.INFO: ProcessCDR(1,14769174,1,1,2) [2025-03-26 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769174', 'tblTempUsageDetail_20' ) start [2025-03-26 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769174', 'tblTempUsageDetail_20' ) end [2025-03-26 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:09:24] Production.INFO: ==13703== Releasing lock... [2025-03-26 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:09:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-26 20:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:10:07 [end_date_ymd] => 2025-03-26 20:10:07 [RateCDR] => 1 ) [2025-03-26 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-26 17:10:07' and `end` < '2025-03-26 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-26 20:10:20] Production.INFO: count ==3531 [2025-03-26 20:10:21] Production.ERROR: pbx CDR StartTime 2025-03-26 17:10:07 - End Time 2025-03-26 20:10:07 [2025-03-26 20:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769180', 'tblTempUsageDetail_20' ) start [2025-03-26 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769180', 'tblTempUsageDetail_20' ) end [2025-03-26 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769180', 'tblTempVendorCDR_20' ) start [2025-03-26 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769180', 'tblTempVendorCDR_20' ) end [2025-03-26 20:10:21] Production.INFO: ProcessCDR(1,14769180,1,1,2) [2025-03-26 20:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769180', 'tblTempUsageDetail_20' ) start [2025-03-26 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769180', 'tblTempUsageDetail_20' ) end [2025-03-26 20:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:10:26] Production.INFO: ==13787== Releasing lock... [2025-03-26 20:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:10:26] Production.INFO: 54.25 MB #Memory Used# [2025-03-26 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:11:04 [end_date_ymd] => 2025-03-26 20:11:04 [RateCDR] => 1 ) [2025-03-26 20:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:11:04' and `end` < '2025-03-26 20:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:11:18] Production.INFO: count ==3506 [2025-03-26 20:11:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:11:04 - End Time 2025-03-26 20:11:04 [2025-03-26 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769185', 'tblTempUsageDetail_20' ) start [2025-03-26 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769185', 'tblTempUsageDetail_20' ) end [2025-03-26 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769185', 'tblTempVendorCDR_20' ) start [2025-03-26 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769185', 'tblTempVendorCDR_20' ) end [2025-03-26 20:11:19] Production.INFO: ProcessCDR(1,14769185,1,1,2) [2025-03-26 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769185', 'tblTempUsageDetail_20' ) start [2025-03-26 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769185', 'tblTempUsageDetail_20' ) end [2025-03-26 20:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:11:24] Production.INFO: ==13869== Releasing lock... [2025-03-26 20:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:11:24] Production.INFO: 54 MB #Memory Used# [2025-03-26 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:12:05 [end_date_ymd] => 2025-03-26 20:12:05 [RateCDR] => 1 ) [2025-03-26 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:12:05' and `end` < '2025-03-26 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:12:18] Production.INFO: count ==3504 [2025-03-26 20:12:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:12:05 - End Time 2025-03-26 20:12:05 [2025-03-26 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769190', 'tblTempUsageDetail_20' ) start [2025-03-26 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769190', 'tblTempUsageDetail_20' ) end [2025-03-26 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769190', 'tblTempVendorCDR_20' ) start [2025-03-26 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769190', 'tblTempVendorCDR_20' ) end [2025-03-26 20:12:19] Production.INFO: ProcessCDR(1,14769190,1,1,2) [2025-03-26 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769190', 'tblTempUsageDetail_20' ) start [2025-03-26 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769190', 'tblTempUsageDetail_20' ) end [2025-03-26 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:12:23] Production.INFO: ==13945== Releasing lock... [2025-03-26 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:12:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-26 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:13:05 [end_date_ymd] => 2025-03-26 20:13:05 [RateCDR] => 1 ) [2025-03-26 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:13:05' and `end` < '2025-03-26 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:13:18] Production.INFO: count ==3497 [2025-03-26 20:13:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:13:05 - End Time 2025-03-26 20:13:05 [2025-03-26 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769195', 'tblTempUsageDetail_20' ) start [2025-03-26 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769195', 'tblTempUsageDetail_20' ) end [2025-03-26 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769195', 'tblTempVendorCDR_20' ) start [2025-03-26 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769195', 'tblTempVendorCDR_20' ) end [2025-03-26 20:13:19] Production.INFO: ProcessCDR(1,14769195,1,1,2) [2025-03-26 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769195', 'tblTempUsageDetail_20' ) start [2025-03-26 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769195', 'tblTempUsageDetail_20' ) end [2025-03-26 20:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:13:24] Production.INFO: ==14024== Releasing lock... [2025-03-26 20:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:13:24] Production.INFO: 54 MB #Memory Used# [2025-03-26 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:14:05 [end_date_ymd] => 2025-03-26 20:14:05 [RateCDR] => 1 ) [2025-03-26 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:14:05' and `end` < '2025-03-26 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:14:18] Production.INFO: count ==3474 [2025-03-26 20:14:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:14:05 - End Time 2025-03-26 20:14:05 [2025-03-26 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769200', 'tblTempUsageDetail_20' ) start [2025-03-26 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769200', 'tblTempUsageDetail_20' ) end [2025-03-26 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769200', 'tblTempVendorCDR_20' ) start [2025-03-26 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769200', 'tblTempVendorCDR_20' ) end [2025-03-26 20:14:19] Production.INFO: ProcessCDR(1,14769200,1,1,2) [2025-03-26 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769200', 'tblTempUsageDetail_20' ) start [2025-03-26 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769200', 'tblTempUsageDetail_20' ) end [2025-03-26 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:14:23] Production.INFO: ==14098== Releasing lock... [2025-03-26 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:14:23] Production.INFO: 53.75 MB #Memory Used# [2025-03-26 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:15:05 [end_date_ymd] => 2025-03-26 20:15:05 [RateCDR] => 1 ) [2025-03-26 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:15:05' and `end` < '2025-03-26 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:15:18] Production.INFO: count ==3451 [2025-03-26 20:15:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:15:05 - End Time 2025-03-26 20:15:05 [2025-03-26 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769205', 'tblTempUsageDetail_20' ) start [2025-03-26 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769205', 'tblTempUsageDetail_20' ) end [2025-03-26 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769205', 'tblTempVendorCDR_20' ) start [2025-03-26 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769205', 'tblTempVendorCDR_20' ) end [2025-03-26 20:15:19] Production.INFO: ProcessCDR(1,14769205,1,1,2) [2025-03-26 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769205', 'tblTempUsageDetail_20' ) start [2025-03-26 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769205', 'tblTempUsageDetail_20' ) end [2025-03-26 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:15:22] Production.INFO: ==14171== Releasing lock... [2025-03-26 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:15:22] Production.INFO: 54 MB #Memory Used# [2025-03-26 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:16:05 [end_date_ymd] => 2025-03-26 20:16:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:16:05' and `end` < '2025-03-26 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-26 20:16:18] Production.INFO: count ==3449 [2025-03-26 20:16:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:16:05 - End Time 2025-03-26 20:16:05 [2025-03-26 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769210', 'tblTempUsageDetail_20' ) start [2025-03-26 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769210', 'tblTempUsageDetail_20' ) end [2025-03-26 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769210', 'tblTempVendorCDR_20' ) start [2025-03-26 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769210', 'tblTempVendorCDR_20' ) end [2025-03-26 20:16:19] Production.INFO: ProcessCDR(1,14769210,1,1,2) [2025-03-26 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769210', 'tblTempUsageDetail_20' ) start [2025-03-26 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769210', 'tblTempUsageDetail_20' ) end [2025-03-26 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:16:24] Production.INFO: ==14245== Releasing lock... [2025-03-26 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:16:24] Production.INFO: 53.75 MB #Memory Used# [2025-03-26 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:17:05 [end_date_ymd] => 2025-03-26 20:17:05 [RateCDR] => 1 ) [2025-03-26 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:17:05' and `end` < '2025-03-26 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:17:18] Production.INFO: count ==3435 [2025-03-26 20:17:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:17:05 - End Time 2025-03-26 20:17:05 [2025-03-26 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769215', 'tblTempUsageDetail_20' ) start [2025-03-26 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769215', 'tblTempUsageDetail_20' ) end [2025-03-26 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769215', 'tblTempVendorCDR_20' ) start [2025-03-26 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769215', 'tblTempVendorCDR_20' ) end [2025-03-26 20:17:19] Production.INFO: ProcessCDR(1,14769215,1,1,2) [2025-03-26 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769215', 'tblTempUsageDetail_20' ) start [2025-03-26 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769215', 'tblTempUsageDetail_20' ) end [2025-03-26 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:17:22] Production.INFO: ==14319== Releasing lock... [2025-03-26 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:17:22] Production.INFO: 53.5 MB #Memory Used# [2025-03-26 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:18:06 [end_date_ymd] => 2025-03-26 20:18:06 [RateCDR] => 1 ) [2025-03-26 20: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-26 17:18:06' and `end` < '2025-03-26 20: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-26 20:18:19] Production.INFO: count ==3436 [2025-03-26 20:18:20] Production.ERROR: pbx CDR StartTime 2025-03-26 17:18:06 - End Time 2025-03-26 20:18:06 [2025-03-26 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769220', 'tblTempUsageDetail_20' ) start [2025-03-26 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769220', 'tblTempUsageDetail_20' ) end [2025-03-26 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769220', 'tblTempVendorCDR_20' ) start [2025-03-26 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769220', 'tblTempVendorCDR_20' ) end [2025-03-26 20:18:20] Production.INFO: ProcessCDR(1,14769220,1,1,2) [2025-03-26 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769220', 'tblTempUsageDetail_20' ) start [2025-03-26 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769220', 'tblTempUsageDetail_20' ) end [2025-03-26 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:18:23] Production.INFO: ==14391== Releasing lock... [2025-03-26 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:18:23] Production.INFO: 53.5 MB #Memory Used# [2025-03-26 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:19:05 [end_date_ymd] => 2025-03-26 20:19:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:19:05' and `end` < '2025-03-26 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-26 20:19:18] Production.INFO: count ==3428 [2025-03-26 20:19:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:19:05 - End Time 2025-03-26 20:19:05 [2025-03-26 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769225', 'tblTempUsageDetail_20' ) start [2025-03-26 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769225', 'tblTempUsageDetail_20' ) end [2025-03-26 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769225', 'tblTempVendorCDR_20' ) start [2025-03-26 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769225', 'tblTempVendorCDR_20' ) end [2025-03-26 20:19:19] Production.INFO: ProcessCDR(1,14769225,1,1,2) [2025-03-26 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769225', 'tblTempUsageDetail_20' ) start [2025-03-26 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769225', 'tblTempUsageDetail_20' ) end [2025-03-26 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:19:22] Production.INFO: ==14501== Releasing lock... [2025-03-26 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:19:22] Production.INFO: 53.5 MB #Memory Used# [2025-03-26 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:20:06 [end_date_ymd] => 2025-03-26 20:20:06 [RateCDR] => 1 ) [2025-03-26 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-26 17:20:06' and `end` < '2025-03-26 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-26 20:20:19] Production.INFO: count ==3418 [2025-03-26 20:20:20] Production.ERROR: pbx CDR StartTime 2025-03-26 17:20:06 - End Time 2025-03-26 20:20:06 [2025-03-26 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769230', 'tblTempUsageDetail_20' ) start [2025-03-26 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769230', 'tblTempUsageDetail_20' ) end [2025-03-26 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769230', 'tblTempVendorCDR_20' ) start [2025-03-26 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769230', 'tblTempVendorCDR_20' ) end [2025-03-26 20:20:20] Production.INFO: ProcessCDR(1,14769230,1,1,2) [2025-03-26 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769230', 'tblTempUsageDetail_20' ) start [2025-03-26 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769230', 'tblTempUsageDetail_20' ) end [2025-03-26 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:20:24] Production.INFO: ==14577== Releasing lock... [2025-03-26 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:20:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-26 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:21:05 [end_date_ymd] => 2025-03-26 20:21:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:21:05' and `end` < '2025-03-26 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-26 20:21:18] Production.INFO: count ==3342 [2025-03-26 20:21:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:21:05 - End Time 2025-03-26 20:21:05 [2025-03-26 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769236', 'tblTempUsageDetail_20' ) start [2025-03-26 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769236', 'tblTempUsageDetail_20' ) end [2025-03-26 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769236', 'tblTempVendorCDR_20' ) start [2025-03-26 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769236', 'tblTempVendorCDR_20' ) end [2025-03-26 20:21:19] Production.INFO: ProcessCDR(1,14769236,1,1,2) [2025-03-26 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769236', 'tblTempUsageDetail_20' ) start [2025-03-26 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769236', 'tblTempUsageDetail_20' ) end [2025-03-26 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:21:23] Production.INFO: ==14650== Releasing lock... [2025-03-26 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:21:23] Production.INFO: 53.25 MB #Memory Used# [2025-03-26 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:22:05 [end_date_ymd] => 2025-03-26 20:22:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:22:05' and `end` < '2025-03-26 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-26 20:22:18] Production.INFO: count ==3328 [2025-03-26 20:22:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:22:05 - End Time 2025-03-26 20:22:05 [2025-03-26 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769241', 'tblTempUsageDetail_20' ) start [2025-03-26 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769241', 'tblTempUsageDetail_20' ) end [2025-03-26 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769241', 'tblTempVendorCDR_20' ) start [2025-03-26 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769241', 'tblTempVendorCDR_20' ) end [2025-03-26 20:22:19] Production.INFO: ProcessCDR(1,14769241,1,1,2) [2025-03-26 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769241', 'tblTempUsageDetail_20' ) start [2025-03-26 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769241', 'tblTempUsageDetail_20' ) end [2025-03-26 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:22:22] Production.INFO: ==14722== Releasing lock... [2025-03-26 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:22:22] Production.INFO: 53.75 MB #Memory Used# [2025-03-26 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:23:05 [end_date_ymd] => 2025-03-26 20:23:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:23:05' and `end` < '2025-03-26 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-26 20:23:18] Production.INFO: count ==3313 [2025-03-26 20:23:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:23:05 - End Time 2025-03-26 20:23:05 [2025-03-26 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769246', 'tblTempUsageDetail_20' ) start [2025-03-26 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769246', 'tblTempUsageDetail_20' ) end [2025-03-26 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769246', 'tblTempVendorCDR_20' ) start [2025-03-26 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769246', 'tblTempVendorCDR_20' ) end [2025-03-26 20:23:19] Production.INFO: ProcessCDR(1,14769246,1,1,2) [2025-03-26 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769246', 'tblTempUsageDetail_20' ) start [2025-03-26 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769246', 'tblTempUsageDetail_20' ) end [2025-03-26 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:23:23] Production.INFO: ==14796== Releasing lock... [2025-03-26 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:23:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-26 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:24:05 [end_date_ymd] => 2025-03-26 20:24:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:24:05' and `end` < '2025-03-26 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-26 20:24:18] Production.INFO: count ==3278 [2025-03-26 20:24:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:24:05 - End Time 2025-03-26 20:24:05 [2025-03-26 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769251', 'tblTempUsageDetail_20' ) start [2025-03-26 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769251', 'tblTempUsageDetail_20' ) end [2025-03-26 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769251', 'tblTempVendorCDR_20' ) start [2025-03-26 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769251', 'tblTempVendorCDR_20' ) end [2025-03-26 20:24:19] Production.INFO: ProcessCDR(1,14769251,1,1,2) [2025-03-26 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769251', 'tblTempUsageDetail_20' ) start [2025-03-26 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769251', 'tblTempUsageDetail_20' ) end [2025-03-26 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:24:23] Production.INFO: ==14872== Releasing lock... [2025-03-26 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:24:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-26 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:25:05 [end_date_ymd] => 2025-03-26 20:25:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:25:05' and `end` < '2025-03-26 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-26 20:25:18] Production.INFO: count ==3228 [2025-03-26 20:25:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:25:05 - End Time 2025-03-26 20:25:05 [2025-03-26 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769256', 'tblTempUsageDetail_20' ) start [2025-03-26 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769256', 'tblTempUsageDetail_20' ) end [2025-03-26 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769256', 'tblTempVendorCDR_20' ) start [2025-03-26 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769256', 'tblTempVendorCDR_20' ) end [2025-03-26 20:25:19] Production.INFO: ProcessCDR(1,14769256,1,1,2) [2025-03-26 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769256', 'tblTempUsageDetail_20' ) start [2025-03-26 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769256', 'tblTempUsageDetail_20' ) end [2025-03-26 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:25:23] Production.INFO: ==14943== Releasing lock... [2025-03-26 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:25:23] Production.INFO: 52.5 MB #Memory Used# [2025-03-26 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:26:05 [end_date_ymd] => 2025-03-26 20:26:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:26:05' and `end` < '2025-03-26 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-26 20:26:18] Production.INFO: count ==3200 [2025-03-26 20:26:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:26:05 - End Time 2025-03-26 20:26:05 [2025-03-26 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769261', 'tblTempUsageDetail_20' ) start [2025-03-26 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769261', 'tblTempUsageDetail_20' ) end [2025-03-26 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769261', 'tblTempVendorCDR_20' ) start [2025-03-26 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769261', 'tblTempVendorCDR_20' ) end [2025-03-26 20:26:19] Production.INFO: ProcessCDR(1,14769261,1,1,2) [2025-03-26 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769261', 'tblTempUsageDetail_20' ) start [2025-03-26 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769261', 'tblTempUsageDetail_20' ) end [2025-03-26 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:26:22] Production.INFO: ==15016== Releasing lock... [2025-03-26 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:26:22] Production.INFO: 51.75 MB #Memory Used# [2025-03-26 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:27:05 [end_date_ymd] => 2025-03-26 20:27:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:27:05' and `end` < '2025-03-26 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-26 20:27:18] Production.INFO: count ==3127 [2025-03-26 20:27:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:27:05 - End Time 2025-03-26 20:27:05 [2025-03-26 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769266', 'tblTempUsageDetail_20' ) start [2025-03-26 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769266', 'tblTempUsageDetail_20' ) end [2025-03-26 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769266', 'tblTempVendorCDR_20' ) start [2025-03-26 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769266', 'tblTempVendorCDR_20' ) end [2025-03-26 20:27:19] Production.INFO: ProcessCDR(1,14769266,1,1,2) [2025-03-26 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769266', 'tblTempUsageDetail_20' ) start [2025-03-26 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769266', 'tblTempUsageDetail_20' ) end [2025-03-26 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:27:22] Production.INFO: ==15090== Releasing lock... [2025-03-26 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:27:22] Production.INFO: 51.25 MB #Memory Used# [2025-03-26 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:28:05 [end_date_ymd] => 2025-03-26 20:28:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:28:05' and `end` < '2025-03-26 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-26 20:28:18] Production.INFO: count ==3083 [2025-03-26 20:28:18] Production.ERROR: pbx CDR StartTime 2025-03-26 17:28:05 - End Time 2025-03-26 20:28:05 [2025-03-26 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769271', 'tblTempUsageDetail_20' ) start [2025-03-26 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769271', 'tblTempUsageDetail_20' ) end [2025-03-26 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769271', 'tblTempVendorCDR_20' ) start [2025-03-26 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769271', 'tblTempVendorCDR_20' ) end [2025-03-26 20:28:19] Production.INFO: ProcessCDR(1,14769271,1,1,2) [2025-03-26 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769271', 'tblTempUsageDetail_20' ) start [2025-03-26 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769271', 'tblTempUsageDetail_20' ) end [2025-03-26 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:28:22] Production.INFO: ==15164== Releasing lock... [2025-03-26 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:28:22] Production.INFO: 51 MB #Memory Used# [2025-03-26 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:29:05 [end_date_ymd] => 2025-03-26 20:29:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:29:05' and `end` < '2025-03-26 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-26 20:29:18] Production.INFO: count ==3088 [2025-03-26 20:29:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:29:05 - End Time 2025-03-26 20:29:05 [2025-03-26 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769276', 'tblTempUsageDetail_20' ) start [2025-03-26 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769276', 'tblTempUsageDetail_20' ) end [2025-03-26 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769276', 'tblTempVendorCDR_20' ) start [2025-03-26 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769276', 'tblTempVendorCDR_20' ) end [2025-03-26 20:29:19] Production.INFO: ProcessCDR(1,14769276,1,1,2) [2025-03-26 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769276', 'tblTempUsageDetail_20' ) start [2025-03-26 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769276', 'tblTempUsageDetail_20' ) end [2025-03-26 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:29:22] Production.INFO: ==15236== Releasing lock... [2025-03-26 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:29:22] Production.INFO: 51.25 MB #Memory Used# [2025-03-26 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:30:06 [end_date_ymd] => 2025-03-26 20:30:06 [RateCDR] => 1 ) [2025-03-26 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-26 17:30:06' and `end` < '2025-03-26 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-26 20:30:19] Production.INFO: count ==3086 [2025-03-26 20:30:20] Production.ERROR: pbx CDR StartTime 2025-03-26 17:30:06 - End Time 2025-03-26 20:30:06 [2025-03-26 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769282', 'tblTempUsageDetail_20' ) start [2025-03-26 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769282', 'tblTempUsageDetail_20' ) end [2025-03-26 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769282', 'tblTempVendorCDR_20' ) start [2025-03-26 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769282', 'tblTempVendorCDR_20' ) end [2025-03-26 20:30:20] Production.INFO: ProcessCDR(1,14769282,1,1,2) [2025-03-26 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769282', 'tblTempUsageDetail_20' ) start [2025-03-26 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769282', 'tblTempUsageDetail_20' ) end [2025-03-26 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:30:23] Production.INFO: ==15310== Releasing lock... [2025-03-26 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:30:23] Production.INFO: 51 MB #Memory Used# [2025-03-26 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:31:06 [end_date_ymd] => 2025-03-26 20:31:06 [RateCDR] => 1 ) [2025-03-26 20: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-26 17:31:06' and `end` < '2025-03-26 20: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-26 20:31:19] Production.INFO: count ==3042 [2025-03-26 20:31:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:31:06 - End Time 2025-03-26 20:31:06 [2025-03-26 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769287', 'tblTempUsageDetail_20' ) start [2025-03-26 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769287', 'tblTempUsageDetail_20' ) end [2025-03-26 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769287', 'tblTempVendorCDR_20' ) start [2025-03-26 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769287', 'tblTempVendorCDR_20' ) end [2025-03-26 20:31:20] Production.INFO: ProcessCDR(1,14769287,1,1,2) [2025-03-26 20:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769287', 'tblTempUsageDetail_20' ) start [2025-03-26 20:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769287', 'tblTempUsageDetail_20' ) end [2025-03-26 20:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:31:25] Production.INFO: ==15382== Releasing lock... [2025-03-26 20:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:31:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-26 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:32:05 [end_date_ymd] => 2025-03-26 20:32:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:32:05' and `end` < '2025-03-26 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-26 20:32:18] Production.INFO: count ==3051 [2025-03-26 20:32:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:32:05 - End Time 2025-03-26 20:32:05 [2025-03-26 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769292', 'tblTempUsageDetail_20' ) start [2025-03-26 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769292', 'tblTempUsageDetail_20' ) end [2025-03-26 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769292', 'tblTempVendorCDR_20' ) start [2025-03-26 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769292', 'tblTempVendorCDR_20' ) end [2025-03-26 20:32:19] Production.INFO: ProcessCDR(1,14769292,1,1,2) [2025-03-26 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769292', 'tblTempUsageDetail_20' ) start [2025-03-26 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769292', 'tblTempUsageDetail_20' ) end [2025-03-26 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:32:24] Production.INFO: ==15451== Releasing lock... [2025-03-26 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:32:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-26 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:33:06 [end_date_ymd] => 2025-03-26 20:33:06 [RateCDR] => 1 ) [2025-03-26 20: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-26 17:33:06' and `end` < '2025-03-26 20: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-26 20:33:19] Production.INFO: count ==3052 [2025-03-26 20:33:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:33:06 - End Time 2025-03-26 20:33:06 [2025-03-26 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769297', 'tblTempUsageDetail_20' ) start [2025-03-26 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769297', 'tblTempUsageDetail_20' ) end [2025-03-26 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769297', 'tblTempVendorCDR_20' ) start [2025-03-26 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769297', 'tblTempVendorCDR_20' ) end [2025-03-26 20:33:19] Production.INFO: ProcessCDR(1,14769297,1,1,2) [2025-03-26 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769297', 'tblTempUsageDetail_20' ) start [2025-03-26 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769297', 'tblTempUsageDetail_20' ) end [2025-03-26 20:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:33:24] Production.INFO: ==15523== Releasing lock... [2025-03-26 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:33:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-26 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:34:05 [end_date_ymd] => 2025-03-26 20:34:05 [RateCDR] => 1 ) [2025-03-26 20: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-26 17:34:05' and `end` < '2025-03-26 20: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-26 20:34:18] Production.INFO: count ==3051 [2025-03-26 20:34:18] Production.ERROR: pbx CDR StartTime 2025-03-26 17:34:05 - End Time 2025-03-26 20:34:05 [2025-03-26 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769302', 'tblTempUsageDetail_20' ) start [2025-03-26 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769302', 'tblTempUsageDetail_20' ) end [2025-03-26 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769302', 'tblTempVendorCDR_20' ) start [2025-03-26 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769302', 'tblTempVendorCDR_20' ) end [2025-03-26 20:34:18] Production.INFO: ProcessCDR(1,14769302,1,1,2) [2025-03-26 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769302', 'tblTempUsageDetail_20' ) start [2025-03-26 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769302', 'tblTempUsageDetail_20' ) end [2025-03-26 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:34:23] Production.INFO: ==15593== Releasing lock... [2025-03-26 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:34:23] Production.INFO: 50.75 MB #Memory Used# [2025-03-26 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:35:05 [end_date_ymd] => 2025-03-26 20:35:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:35:05' and `end` < '2025-03-26 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-26 20:35:18] Production.INFO: count ==3052 [2025-03-26 20:35:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:35:05 - End Time 2025-03-26 20:35:05 [2025-03-26 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769307', 'tblTempUsageDetail_20' ) start [2025-03-26 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769307', 'tblTempUsageDetail_20' ) end [2025-03-26 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769307', 'tblTempVendorCDR_20' ) start [2025-03-26 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769307', 'tblTempVendorCDR_20' ) end [2025-03-26 20:35:19] Production.INFO: ProcessCDR(1,14769307,1,1,2) [2025-03-26 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769307', 'tblTempUsageDetail_20' ) start [2025-03-26 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769307', 'tblTempUsageDetail_20' ) end [2025-03-26 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:35:24] Production.INFO: ==15702== Releasing lock... [2025-03-26 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:35:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-26 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:36:05 [end_date_ymd] => 2025-03-26 20:36:05 [RateCDR] => 1 ) [2025-03-26 20: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-26 17:36:05' and `end` < '2025-03-26 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-26 20:36:18] Production.INFO: count ==3051 [2025-03-26 20:36:18] Production.ERROR: pbx CDR StartTime 2025-03-26 17:36:05 - End Time 2025-03-26 20:36:05 [2025-03-26 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769312', 'tblTempUsageDetail_20' ) start [2025-03-26 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769312', 'tblTempUsageDetail_20' ) end [2025-03-26 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769312', 'tblTempVendorCDR_20' ) start [2025-03-26 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769312', 'tblTempVendorCDR_20' ) end [2025-03-26 20:36:18] Production.INFO: ProcessCDR(1,14769312,1,1,2) [2025-03-26 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769312', 'tblTempUsageDetail_20' ) start [2025-03-26 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769312', 'tblTempUsageDetail_20' ) end [2025-03-26 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:36:22] Production.INFO: ==15771== Releasing lock... [2025-03-26 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:36:22] Production.INFO: 51 MB #Memory Used# [2025-03-26 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:37:05 [end_date_ymd] => 2025-03-26 20:37:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:37:05' and `end` < '2025-03-26 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-26 20:37:18] Production.INFO: count ==3044 [2025-03-26 20:37:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:37:05 - End Time 2025-03-26 20:37:05 [2025-03-26 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769317', 'tblTempUsageDetail_20' ) start [2025-03-26 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769317', 'tblTempUsageDetail_20' ) end [2025-03-26 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769317', 'tblTempVendorCDR_20' ) start [2025-03-26 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769317', 'tblTempVendorCDR_20' ) end [2025-03-26 20:37:19] Production.INFO: ProcessCDR(1,14769317,1,1,2) [2025-03-26 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769317', 'tblTempUsageDetail_20' ) start [2025-03-26 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769317', 'tblTempUsageDetail_20' ) end [2025-03-26 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:37:24] Production.INFO: ==15846== Releasing lock... [2025-03-26 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:37:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-26 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:38:06 [end_date_ymd] => 2025-03-26 20:38:06 [RateCDR] => 1 ) [2025-03-26 20:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:38:06' and `end` < '2025-03-26 20:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:38:19] Production.INFO: count ==3039 [2025-03-26 20:38:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:38:06 - End Time 2025-03-26 20:38:06 [2025-03-26 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769322', 'tblTempUsageDetail_20' ) start [2025-03-26 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769322', 'tblTempUsageDetail_20' ) end [2025-03-26 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769322', 'tblTempVendorCDR_20' ) start [2025-03-26 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769322', 'tblTempVendorCDR_20' ) end [2025-03-26 20:38:19] Production.INFO: ProcessCDR(1,14769322,1,1,2) [2025-03-26 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769322', 'tblTempUsageDetail_20' ) start [2025-03-26 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769322', 'tblTempUsageDetail_20' ) end [2025-03-26 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:38:23] Production.INFO: ==15925== Releasing lock... [2025-03-26 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:38:23] Production.INFO: 50.5 MB #Memory Used# [2025-03-26 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:39:05 [end_date_ymd] => 2025-03-26 20:39:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:39:05' and `end` < '2025-03-26 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-26 20:39:18] Production.INFO: count ==3040 [2025-03-26 20:39:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:39:05 - End Time 2025-03-26 20:39:05 [2025-03-26 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769327', 'tblTempUsageDetail_20' ) start [2025-03-26 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769327', 'tblTempUsageDetail_20' ) end [2025-03-26 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769327', 'tblTempVendorCDR_20' ) start [2025-03-26 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769327', 'tblTempVendorCDR_20' ) end [2025-03-26 20:39:19] Production.INFO: ProcessCDR(1,14769327,1,1,2) [2025-03-26 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769327', 'tblTempUsageDetail_20' ) start [2025-03-26 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769327', 'tblTempUsageDetail_20' ) end [2025-03-26 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:39:22] Production.INFO: ==15997== Releasing lock... [2025-03-26 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:39:22] Production.INFO: 50.5 MB #Memory Used# [2025-03-26 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:40:06 [end_date_ymd] => 2025-03-26 20:40:06 [RateCDR] => 1 ) [2025-03-26 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:40:06' and `end` < '2025-03-26 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:40:19] Production.INFO: count ==3013 [2025-03-26 20:40:20] Production.ERROR: pbx CDR StartTime 2025-03-26 17:40:06 - End Time 2025-03-26 20:40:06 [2025-03-26 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769333', 'tblTempUsageDetail_20' ) start [2025-03-26 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769333', 'tblTempUsageDetail_20' ) end [2025-03-26 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769333', 'tblTempVendorCDR_20' ) start [2025-03-26 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769333', 'tblTempVendorCDR_20' ) end [2025-03-26 20:40:20] Production.INFO: ProcessCDR(1,14769333,1,1,2) [2025-03-26 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769333', 'tblTempUsageDetail_20' ) start [2025-03-26 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769333', 'tblTempUsageDetail_20' ) end [2025-03-26 20:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:40:25] Production.INFO: ==16071== Releasing lock... [2025-03-26 20:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:40:25] Production.INFO: 51 MB #Memory Used# [2025-03-26 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:41:05 [end_date_ymd] => 2025-03-26 20:41:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:41:05' and `end` < '2025-03-26 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-26 20:41:18] Production.INFO: count ==2957 [2025-03-26 20:41:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:41:05 - End Time 2025-03-26 20:41:05 [2025-03-26 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769338', 'tblTempUsageDetail_20' ) start [2025-03-26 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769338', 'tblTempUsageDetail_20' ) end [2025-03-26 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769338', 'tblTempVendorCDR_20' ) start [2025-03-26 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769338', 'tblTempVendorCDR_20' ) end [2025-03-26 20:41:19] Production.INFO: ProcessCDR(1,14769338,1,1,2) [2025-03-26 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769338', 'tblTempUsageDetail_20' ) start [2025-03-26 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769338', 'tblTempUsageDetail_20' ) end [2025-03-26 20:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:41:24] Production.INFO: ==16148== Releasing lock... [2025-03-26 20:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:41:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-26 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:42:05 [end_date_ymd] => 2025-03-26 20:42:05 [RateCDR] => 1 ) [2025-03-26 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:42:05' and `end` < '2025-03-26 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:42:18] Production.INFO: count ==2938 [2025-03-26 20:42:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:42:05 - End Time 2025-03-26 20:42:05 [2025-03-26 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769343', 'tblTempUsageDetail_20' ) start [2025-03-26 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769343', 'tblTempUsageDetail_20' ) end [2025-03-26 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769343', 'tblTempVendorCDR_20' ) start [2025-03-26 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769343', 'tblTempVendorCDR_20' ) end [2025-03-26 20:42:19] Production.INFO: ProcessCDR(1,14769343,1,1,2) [2025-03-26 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769343', 'tblTempUsageDetail_20' ) start [2025-03-26 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769343', 'tblTempUsageDetail_20' ) end [2025-03-26 20:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:42:24] Production.INFO: ==16219== Releasing lock... [2025-03-26 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:42:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-26 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:43:05 [end_date_ymd] => 2025-03-26 20:43:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:43:05' and `end` < '2025-03-26 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-26 20:43:18] Production.INFO: count ==2929 [2025-03-26 20:43:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:43:05 - End Time 2025-03-26 20:43:05 [2025-03-26 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769348', 'tblTempUsageDetail_20' ) start [2025-03-26 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769348', 'tblTempUsageDetail_20' ) end [2025-03-26 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769348', 'tblTempVendorCDR_20' ) start [2025-03-26 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769348', 'tblTempVendorCDR_20' ) end [2025-03-26 20:43:19] Production.INFO: ProcessCDR(1,14769348,1,1,2) [2025-03-26 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769348', 'tblTempUsageDetail_20' ) start [2025-03-26 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769348', 'tblTempUsageDetail_20' ) end [2025-03-26 20:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:43:24] Production.INFO: ==16297== Releasing lock... [2025-03-26 20:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:43:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-26 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:44:05 [end_date_ymd] => 2025-03-26 20:44:05 [RateCDR] => 1 ) [2025-03-26 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:44:05' and `end` < '2025-03-26 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:44:18] Production.INFO: count ==2922 [2025-03-26 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-26 17:44:05 - End Time 2025-03-26 20:44:05 [2025-03-26 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769353', 'tblTempUsageDetail_20' ) start [2025-03-26 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769353', 'tblTempUsageDetail_20' ) end [2025-03-26 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769353', 'tblTempVendorCDR_20' ) start [2025-03-26 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769353', 'tblTempVendorCDR_20' ) end [2025-03-26 20:44:19] Production.INFO: ProcessCDR(1,14769353,1,1,2) [2025-03-26 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769353', 'tblTempUsageDetail_20' ) start [2025-03-26 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769353', 'tblTempUsageDetail_20' ) end [2025-03-26 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:44:23] Production.INFO: ==16367== Releasing lock... [2025-03-26 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:44:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-26 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:45:05 [end_date_ymd] => 2025-03-26 20:45:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:45:05' and `end` < '2025-03-26 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-26 20:45:17] Production.INFO: count ==2915 [2025-03-26 20:45:18] Production.ERROR: pbx CDR StartTime 2025-03-26 17:45:05 - End Time 2025-03-26 20:45:05 [2025-03-26 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769358', 'tblTempUsageDetail_20' ) start [2025-03-26 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769358', 'tblTempUsageDetail_20' ) end [2025-03-26 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769358', 'tblTempVendorCDR_20' ) start [2025-03-26 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769358', 'tblTempVendorCDR_20' ) end [2025-03-26 20:45:18] Production.INFO: ProcessCDR(1,14769358,1,1,2) [2025-03-26 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769358', 'tblTempUsageDetail_20' ) start [2025-03-26 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769358', 'tblTempUsageDetail_20' ) end [2025-03-26 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:45:22] Production.INFO: ==16437== Releasing lock... [2025-03-26 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:45:22] Production.INFO: 50 MB #Memory Used# [2025-03-26 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:46:05 [end_date_ymd] => 2025-03-26 20:46:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:46:05' and `end` < '2025-03-26 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:46:18] Production.INFO: count ==2912 [2025-03-26 20:46:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:46:05 - End Time 2025-03-26 20:46:05 [2025-03-26 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769363', 'tblTempUsageDetail_20' ) start [2025-03-26 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769363', 'tblTempUsageDetail_20' ) end [2025-03-26 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769363', 'tblTempVendorCDR_20' ) start [2025-03-26 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769363', 'tblTempVendorCDR_20' ) end [2025-03-26 20:46:19] Production.INFO: ProcessCDR(1,14769363,1,1,2) [2025-03-26 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769363', 'tblTempUsageDetail_20' ) start [2025-03-26 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769363', 'tblTempUsageDetail_20' ) end [2025-03-26 20:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:46:24] Production.INFO: ==16508== Releasing lock... [2025-03-26 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:46:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-26 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:47:05 [end_date_ymd] => 2025-03-26 20:47:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:47:05' and `end` < '2025-03-26 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-26 20:47:18] Production.INFO: count ==2908 [2025-03-26 20:47:18] Production.ERROR: pbx CDR StartTime 2025-03-26 17:47:05 - End Time 2025-03-26 20:47:05 [2025-03-26 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769368', 'tblTempUsageDetail_20' ) start [2025-03-26 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769368', 'tblTempUsageDetail_20' ) end [2025-03-26 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769368', 'tblTempVendorCDR_20' ) start [2025-03-26 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769368', 'tblTempVendorCDR_20' ) end [2025-03-26 20:47:18] Production.INFO: ProcessCDR(1,14769368,1,1,2) [2025-03-26 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769368', 'tblTempUsageDetail_20' ) start [2025-03-26 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769368', 'tblTempUsageDetail_20' ) end [2025-03-26 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:47:22] Production.INFO: ==16581== Releasing lock... [2025-03-26 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:47:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-26 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:48:05 [end_date_ymd] => 2025-03-26 20:48:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:48:05' and `end` < '2025-03-26 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-26 20:48:18] Production.INFO: count ==2877 [2025-03-26 20:48:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:48:05 - End Time 2025-03-26 20:48:05 [2025-03-26 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769373', 'tblTempUsageDetail_20' ) start [2025-03-26 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769373', 'tblTempUsageDetail_20' ) end [2025-03-26 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769373', 'tblTempVendorCDR_20' ) start [2025-03-26 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769373', 'tblTempVendorCDR_20' ) end [2025-03-26 20:48:19] Production.INFO: ProcessCDR(1,14769373,1,1,2) [2025-03-26 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769373', 'tblTempUsageDetail_20' ) start [2025-03-26 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769373', 'tblTempUsageDetail_20' ) end [2025-03-26 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:48:23] Production.INFO: ==16652== Releasing lock... [2025-03-26 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:48:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-26 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:49:05 [end_date_ymd] => 2025-03-26 20:49:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:49:05' and `end` < '2025-03-26 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-26 20:49:18] Production.INFO: count ==2876 [2025-03-26 20:49:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:49:05 - End Time 2025-03-26 20:49:05 [2025-03-26 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769378', 'tblTempUsageDetail_20' ) start [2025-03-26 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769378', 'tblTempUsageDetail_20' ) end [2025-03-26 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769378', 'tblTempVendorCDR_20' ) start [2025-03-26 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769378', 'tblTempVendorCDR_20' ) end [2025-03-26 20:49:19] Production.INFO: ProcessCDR(1,14769378,1,1,2) [2025-03-26 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769378', 'tblTempUsageDetail_20' ) start [2025-03-26 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769378', 'tblTempUsageDetail_20' ) end [2025-03-26 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:49:23] Production.INFO: ==16724== Releasing lock... [2025-03-26 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:49:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-26 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:50:06 [end_date_ymd] => 2025-03-26 20:50:06 [RateCDR] => 1 ) [2025-03-26 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-26 17:50:06' and `end` < '2025-03-26 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-26 20:50:19] Production.INFO: count ==2870 [2025-03-26 20:50:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:50:06 - End Time 2025-03-26 20:50:06 [2025-03-26 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769384', 'tblTempUsageDetail_20' ) start [2025-03-26 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769384', 'tblTempUsageDetail_20' ) end [2025-03-26 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769384', 'tblTempVendorCDR_20' ) start [2025-03-26 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769384', 'tblTempVendorCDR_20' ) end [2025-03-26 20:50:19] Production.INFO: ProcessCDR(1,14769384,1,1,2) [2025-03-26 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769384', 'tblTempUsageDetail_20' ) start [2025-03-26 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769384', 'tblTempUsageDetail_20' ) end [2025-03-26 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:50:23] Production.INFO: ==16835== Releasing lock... [2025-03-26 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:50:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-26 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:51:05 [end_date_ymd] => 2025-03-26 20:51:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:51:05' and `end` < '2025-03-26 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-26 20:51:17] Production.INFO: count ==2810 [2025-03-26 20:51:18] Production.ERROR: pbx CDR StartTime 2025-03-26 17:51:05 - End Time 2025-03-26 20:51:05 [2025-03-26 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769389', 'tblTempUsageDetail_20' ) start [2025-03-26 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769389', 'tblTempUsageDetail_20' ) end [2025-03-26 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769389', 'tblTempVendorCDR_20' ) start [2025-03-26 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769389', 'tblTempVendorCDR_20' ) end [2025-03-26 20:51:18] Production.INFO: ProcessCDR(1,14769389,1,1,2) [2025-03-26 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769389', 'tblTempUsageDetail_20' ) start [2025-03-26 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769389', 'tblTempUsageDetail_20' ) end [2025-03-26 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:51:23] Production.INFO: ==16909== Releasing lock... [2025-03-26 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:51:23] Production.INFO: 49 MB #Memory Used# [2025-03-26 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:52:05 [end_date_ymd] => 2025-03-26 20:52:05 [RateCDR] => 1 ) [2025-03-26 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:52:05' and `end` < '2025-03-26 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:52:18] Production.INFO: count ==2810 [2025-03-26 20:52:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:52:05 - End Time 2025-03-26 20:52:05 [2025-03-26 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769394', 'tblTempUsageDetail_20' ) start [2025-03-26 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769394', 'tblTempUsageDetail_20' ) end [2025-03-26 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769394', 'tblTempVendorCDR_20' ) start [2025-03-26 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769394', 'tblTempVendorCDR_20' ) end [2025-03-26 20:52:19] Production.INFO: ProcessCDR(1,14769394,1,1,2) [2025-03-26 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769394', 'tblTempUsageDetail_20' ) start [2025-03-26 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769394', 'tblTempUsageDetail_20' ) end [2025-03-26 20:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:52:24] Production.INFO: ==16980== Releasing lock... [2025-03-26 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:52:24] Production.INFO: 49 MB #Memory Used# [2025-03-26 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:53:05 [end_date_ymd] => 2025-03-26 20:53:05 [RateCDR] => 1 ) [2025-03-26 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:53:05' and `end` < '2025-03-26 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:53:18] Production.INFO: count ==2798 [2025-03-26 20:53:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:53:05 - End Time 2025-03-26 20:53:05 [2025-03-26 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769399', 'tblTempUsageDetail_20' ) start [2025-03-26 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769399', 'tblTempUsageDetail_20' ) end [2025-03-26 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769399', 'tblTempVendorCDR_20' ) start [2025-03-26 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769399', 'tblTempVendorCDR_20' ) end [2025-03-26 20:53:19] Production.INFO: ProcessCDR(1,14769399,1,1,2) [2025-03-26 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769399', 'tblTempUsageDetail_20' ) start [2025-03-26 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769399', 'tblTempUsageDetail_20' ) end [2025-03-26 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:53:22] Production.INFO: ==17055== Releasing lock... [2025-03-26 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:53:22] Production.INFO: 49 MB #Memory Used# [2025-03-26 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:54:06 [end_date_ymd] => 2025-03-26 20:54:06 [RateCDR] => 1 ) [2025-03-26 20: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-26 17:54:06' and `end` < '2025-03-26 20: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-26 20:54:19] Production.INFO: count ==2771 [2025-03-26 20:54:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:54:06 - End Time 2025-03-26 20:54:06 [2025-03-26 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769404', 'tblTempUsageDetail_20' ) start [2025-03-26 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769404', 'tblTempUsageDetail_20' ) end [2025-03-26 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769404', 'tblTempVendorCDR_20' ) start [2025-03-26 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769404', 'tblTempVendorCDR_20' ) end [2025-03-26 20:54:19] Production.INFO: ProcessCDR(1,14769404,1,1,2) [2025-03-26 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769404', 'tblTempUsageDetail_20' ) start [2025-03-26 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769404', 'tblTempUsageDetail_20' ) end [2025-03-26 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:54:23] Production.INFO: ==17128== Releasing lock... [2025-03-26 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:54:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-26 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:55:05 [end_date_ymd] => 2025-03-26 20:55:05 [RateCDR] => 1 ) [2025-03-26 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:55:05' and `end` < '2025-03-26 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:55:17] Production.INFO: count ==2758 [2025-03-26 20:55:18] Production.ERROR: pbx CDR StartTime 2025-03-26 17:55:05 - End Time 2025-03-26 20:55:05 [2025-03-26 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769409', 'tblTempUsageDetail_20' ) start [2025-03-26 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769409', 'tblTempUsageDetail_20' ) end [2025-03-26 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769409', 'tblTempVendorCDR_20' ) start [2025-03-26 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769409', 'tblTempVendorCDR_20' ) end [2025-03-26 20:55:18] Production.INFO: ProcessCDR(1,14769409,1,1,2) [2025-03-26 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769409', 'tblTempUsageDetail_20' ) start [2025-03-26 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769409', 'tblTempUsageDetail_20' ) end [2025-03-26 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:55:23] Production.INFO: ==17198== Releasing lock... [2025-03-26 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:55:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-26 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:56:05 [end_date_ymd] => 2025-03-26 20:56:05 [RateCDR] => 1 ) [2025-03-26 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-26 17:56:05' and `end` < '2025-03-26 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-26 20:56:17] Production.INFO: count ==2740 [2025-03-26 20:56:18] Production.ERROR: pbx CDR StartTime 2025-03-26 17:56:05 - End Time 2025-03-26 20:56:05 [2025-03-26 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769414', 'tblTempUsageDetail_20' ) start [2025-03-26 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769414', 'tblTempUsageDetail_20' ) end [2025-03-26 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769414', 'tblTempVendorCDR_20' ) start [2025-03-26 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769414', 'tblTempVendorCDR_20' ) end [2025-03-26 20:56:18] Production.INFO: ProcessCDR(1,14769414,1,1,2) [2025-03-26 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769414', 'tblTempUsageDetail_20' ) start [2025-03-26 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769414', 'tblTempUsageDetail_20' ) end [2025-03-26 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:56:23] Production.INFO: ==17270== Releasing lock... [2025-03-26 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:56:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-26 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:57:06 [end_date_ymd] => 2025-03-26 20:57:06 [RateCDR] => 1 ) [2025-03-26 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-26 17:57:06' and `end` < '2025-03-26 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-26 20:57:19] Production.INFO: count ==2733 [2025-03-26 20:57:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:57:06 - End Time 2025-03-26 20:57:06 [2025-03-26 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769419', 'tblTempUsageDetail_20' ) start [2025-03-26 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769419', 'tblTempUsageDetail_20' ) end [2025-03-26 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769419', 'tblTempVendorCDR_20' ) start [2025-03-26 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769419', 'tblTempVendorCDR_20' ) end [2025-03-26 20:57:19] Production.INFO: ProcessCDR(1,14769419,1,1,2) [2025-03-26 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769419', 'tblTempUsageDetail_20' ) start [2025-03-26 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769419', 'tblTempUsageDetail_20' ) end [2025-03-26 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:57:23] Production.INFO: ==17340== Releasing lock... [2025-03-26 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:57:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-26 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:58:06 [end_date_ymd] => 2025-03-26 20:58:06 [RateCDR] => 1 ) [2025-03-26 20: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-26 17:58:06' and `end` < '2025-03-26 20: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-26 20:58:18] Production.INFO: count ==2741 [2025-03-26 20:58:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:58:06 - End Time 2025-03-26 20:58:06 [2025-03-26 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769424', 'tblTempUsageDetail_20' ) start [2025-03-26 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769424', 'tblTempUsageDetail_20' ) end [2025-03-26 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769424', 'tblTempVendorCDR_20' ) start [2025-03-26 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769424', 'tblTempVendorCDR_20' ) end [2025-03-26 20:58:19] Production.INFO: ProcessCDR(1,14769424,1,1,2) [2025-03-26 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769424', 'tblTempUsageDetail_20' ) start [2025-03-26 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769424', 'tblTempUsageDetail_20' ) end [2025-03-26 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:58:23] Production.INFO: ==17410== Releasing lock... [2025-03-26 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:58:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-26 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 17:59:05 [end_date_ymd] => 2025-03-26 20:59:05 [RateCDR] => 1 ) [2025-03-26 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 17:59:05' and `end` < '2025-03-26 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 20:59:18] Production.INFO: count ==2738 [2025-03-26 20:59:19] Production.ERROR: pbx CDR StartTime 2025-03-26 17:59:05 - End Time 2025-03-26 20:59:05 [2025-03-26 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769429', 'tblTempUsageDetail_20' ) start [2025-03-26 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769429', 'tblTempUsageDetail_20' ) end [2025-03-26 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769429', 'tblTempVendorCDR_20' ) start [2025-03-26 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769429', 'tblTempVendorCDR_20' ) end [2025-03-26 20:59:19] Production.INFO: ProcessCDR(1,14769429,1,1,2) [2025-03-26 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769429', 'tblTempUsageDetail_20' ) start [2025-03-26 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769429', 'tblTempUsageDetail_20' ) end [2025-03-26 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 20:59:22] Production.INFO: ==17481== Releasing lock... [2025-03-26 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 20:59:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-26 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:00:06 [end_date_ymd] => 2025-03-26 21:00:06 [RateCDR] => 1 ) [2025-03-26 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-26 18:00:06' and `end` < '2025-03-26 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-26 21:00:19] Production.INFO: count ==2745 [2025-03-26 21:00:20] Production.ERROR: pbx CDR StartTime 2025-03-26 18:00:06 - End Time 2025-03-26 21:00:06 [2025-03-26 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769435', 'tblTempUsageDetail_20' ) start [2025-03-26 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769435', 'tblTempUsageDetail_20' ) end [2025-03-26 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769435', 'tblTempVendorCDR_20' ) start [2025-03-26 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769435', 'tblTempVendorCDR_20' ) end [2025-03-26 21:00:20] Production.INFO: ProcessCDR(1,14769435,1,1,2) [2025-03-26 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769435', 'tblTempUsageDetail_20' ) start [2025-03-26 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769435', 'tblTempUsageDetail_20' ) end [2025-03-26 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:00:25] Production.INFO: ==17554== Releasing lock... [2025-03-26 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:00:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-26 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:01:06 [end_date_ymd] => 2025-03-26 21:01:06 [RateCDR] => 1 ) [2025-03-26 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-26 18:01:06' and `end` < '2025-03-26 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-26 21:01:18] Production.INFO: count ==2697 [2025-03-26 21:01:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:01:06 - End Time 2025-03-26 21:01:06 [2025-03-26 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769440', 'tblTempUsageDetail_20' ) start [2025-03-26 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769440', 'tblTempUsageDetail_20' ) end [2025-03-26 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769440', 'tblTempVendorCDR_20' ) start [2025-03-26 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769440', 'tblTempVendorCDR_20' ) end [2025-03-26 21:01:19] Production.INFO: ProcessCDR(1,14769440,1,1,2) [2025-03-26 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769440', 'tblTempUsageDetail_20' ) start [2025-03-26 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769440', 'tblTempUsageDetail_20' ) end [2025-03-26 21:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:01:24] Production.INFO: ==17642== Releasing lock... [2025-03-26 21:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:01:24] Production.INFO: 48 MB #Memory Used# [2025-03-26 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:02:05 [end_date_ymd] => 2025-03-26 21:02:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:02:05' and `end` < '2025-03-26 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-26 21:02:18] Production.INFO: count ==2684 [2025-03-26 21:02:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:02:05 - End Time 2025-03-26 21:02:05 [2025-03-26 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769445', 'tblTempUsageDetail_20' ) start [2025-03-26 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769445', 'tblTempUsageDetail_20' ) end [2025-03-26 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769445', 'tblTempVendorCDR_20' ) start [2025-03-26 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769445', 'tblTempVendorCDR_20' ) end [2025-03-26 21:02:19] Production.INFO: ProcessCDR(1,14769445,1,1,2) [2025-03-26 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769445', 'tblTempUsageDetail_20' ) start [2025-03-26 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769445', 'tblTempUsageDetail_20' ) end [2025-03-26 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:02:23] Production.INFO: ==17717== Releasing lock... [2025-03-26 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:02:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-26 21:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:03:06 [end_date_ymd] => 2025-03-26 21:03:06 [RateCDR] => 1 ) [2025-03-26 21:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:03:06' and `end` < '2025-03-26 21:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:03:19] Production.INFO: count ==2686 [2025-03-26 21:03:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:03:06 - End Time 2025-03-26 21:03:06 [2025-03-26 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769450', 'tblTempUsageDetail_20' ) start [2025-03-26 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769450', 'tblTempUsageDetail_20' ) end [2025-03-26 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769450', 'tblTempVendorCDR_20' ) start [2025-03-26 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769450', 'tblTempVendorCDR_20' ) end [2025-03-26 21:03:19] Production.INFO: ProcessCDR(1,14769450,1,1,2) [2025-03-26 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769450', 'tblTempUsageDetail_20' ) start [2025-03-26 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769450', 'tblTempUsageDetail_20' ) end [2025-03-26 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:03:23] Production.INFO: ==17788== Releasing lock... [2025-03-26 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:03:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-26 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:04:05 [end_date_ymd] => 2025-03-26 21:04:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:04:05' and `end` < '2025-03-26 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-26 21:04:18] Production.INFO: count ==2676 [2025-03-26 21:04:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:04:05 - End Time 2025-03-26 21:04:05 [2025-03-26 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769455', 'tblTempUsageDetail_20' ) start [2025-03-26 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769455', 'tblTempUsageDetail_20' ) end [2025-03-26 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769455', 'tblTempVendorCDR_20' ) start [2025-03-26 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769455', 'tblTempVendorCDR_20' ) end [2025-03-26 21:04:19] Production.INFO: ProcessCDR(1,14769455,1,1,2) [2025-03-26 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769455', 'tblTempUsageDetail_20' ) start [2025-03-26 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769455', 'tblTempUsageDetail_20' ) end [2025-03-26 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:04:22] Production.INFO: ==17863== Releasing lock... [2025-03-26 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:04:22] Production.INFO: 48 MB #Memory Used# [2025-03-26 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:05:05 [end_date_ymd] => 2025-03-26 21:05:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:05:05' and `end` < '2025-03-26 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-26 21:05:18] Production.INFO: count ==2670 [2025-03-26 21:05:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:05:05 - End Time 2025-03-26 21:05:05 [2025-03-26 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769460', 'tblTempUsageDetail_20' ) start [2025-03-26 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769460', 'tblTempUsageDetail_20' ) end [2025-03-26 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769460', 'tblTempVendorCDR_20' ) start [2025-03-26 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769460', 'tblTempVendorCDR_20' ) end [2025-03-26 21:05:19] Production.INFO: ProcessCDR(1,14769460,1,1,2) [2025-03-26 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769460', 'tblTempUsageDetail_20' ) start [2025-03-26 21:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769460', 'tblTempUsageDetail_20' ) end [2025-03-26 21:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:05:24] Production.INFO: ==17973== Releasing lock... [2025-03-26 21:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:05:24] Production.INFO: 48 MB #Memory Used# [2025-03-26 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:06:06 [end_date_ymd] => 2025-03-26 21:06:06 [RateCDR] => 1 ) [2025-03-26 21: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-26 18:06:06' and `end` < '2025-03-26 21: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-26 21:06:18] Production.INFO: count ==2668 [2025-03-26 21:06:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:06:06 - End Time 2025-03-26 21:06:06 [2025-03-26 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769465', 'tblTempUsageDetail_20' ) start [2025-03-26 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769465', 'tblTempUsageDetail_20' ) end [2025-03-26 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769465', 'tblTempVendorCDR_20' ) start [2025-03-26 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769465', 'tblTempVendorCDR_20' ) end [2025-03-26 21:06:19] Production.INFO: ProcessCDR(1,14769465,1,1,2) [2025-03-26 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769465', 'tblTempUsageDetail_20' ) start [2025-03-26 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769465', 'tblTempUsageDetail_20' ) end [2025-03-26 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:06:23] Production.INFO: ==18043== Releasing lock... [2025-03-26 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:06:23] Production.INFO: 48 MB #Memory Used# [2025-03-26 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:07:05 [end_date_ymd] => 2025-03-26 21:07:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:07:05' and `end` < '2025-03-26 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-26 21:07:18] Production.INFO: count ==2662 [2025-03-26 21:07:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:07:05 - End Time 2025-03-26 21:07:05 [2025-03-26 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769470', 'tblTempUsageDetail_20' ) start [2025-03-26 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769470', 'tblTempUsageDetail_20' ) end [2025-03-26 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769470', 'tblTempVendorCDR_20' ) start [2025-03-26 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769470', 'tblTempVendorCDR_20' ) end [2025-03-26 21:07:19] Production.INFO: ProcessCDR(1,14769470,1,1,2) [2025-03-26 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769470', 'tblTempUsageDetail_20' ) start [2025-03-26 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769470', 'tblTempUsageDetail_20' ) end [2025-03-26 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:07:23] Production.INFO: ==18114== Releasing lock... [2025-03-26 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:07:23] Production.INFO: 48 MB #Memory Used# [2025-03-26 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:08:05 [end_date_ymd] => 2025-03-26 21:08:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:08:05' and `end` < '2025-03-26 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-26 21:08:18] Production.INFO: count ==2667 [2025-03-26 21:08:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:08:05 - End Time 2025-03-26 21:08:05 [2025-03-26 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769475', 'tblTempUsageDetail_20' ) start [2025-03-26 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769475', 'tblTempUsageDetail_20' ) end [2025-03-26 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769475', 'tblTempVendorCDR_20' ) start [2025-03-26 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769475', 'tblTempVendorCDR_20' ) end [2025-03-26 21:08:19] Production.INFO: ProcessCDR(1,14769475,1,1,2) [2025-03-26 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769475', 'tblTempUsageDetail_20' ) start [2025-03-26 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769475', 'tblTempUsageDetail_20' ) end [2025-03-26 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:08:22] Production.INFO: ==18192== Releasing lock... [2025-03-26 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:08:22] Production.INFO: 48 MB #Memory Used# [2025-03-26 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:09:05 [end_date_ymd] => 2025-03-26 21:09:05 [RateCDR] => 1 ) [2025-03-26 21: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-26 18:09:05' and `end` < '2025-03-26 21: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-26 21:09:18] Production.INFO: count ==2674 [2025-03-26 21:09:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:09:05 - End Time 2025-03-26 21:09:05 [2025-03-26 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769480', 'tblTempUsageDetail_20' ) start [2025-03-26 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769480', 'tblTempUsageDetail_20' ) end [2025-03-26 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769480', 'tblTempVendorCDR_20' ) start [2025-03-26 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769480', 'tblTempVendorCDR_20' ) end [2025-03-26 21:09:19] Production.INFO: ProcessCDR(1,14769480,1,1,2) [2025-03-26 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769480', 'tblTempUsageDetail_20' ) start [2025-03-26 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769480', 'tblTempUsageDetail_20' ) end [2025-03-26 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:09:22] Production.INFO: ==18266== Releasing lock... [2025-03-26 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:09:22] Production.INFO: 48 MB #Memory Used# [2025-03-26 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:10:06 [end_date_ymd] => 2025-03-26 21:10:06 [RateCDR] => 1 ) [2025-03-26 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:10:06' and `end` < '2025-03-26 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:10:19] Production.INFO: count ==2660 [2025-03-26 21:10:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:10:06 - End Time 2025-03-26 21:10:06 [2025-03-26 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769486', 'tblTempUsageDetail_20' ) start [2025-03-26 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769486', 'tblTempUsageDetail_20' ) end [2025-03-26 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769486', 'tblTempVendorCDR_20' ) start [2025-03-26 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769486', 'tblTempVendorCDR_20' ) end [2025-03-26 21:10:20] Production.INFO: ProcessCDR(1,14769486,1,1,2) [2025-03-26 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769486', 'tblTempUsageDetail_20' ) start [2025-03-26 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769486', 'tblTempUsageDetail_20' ) end [2025-03-26 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:10:23] Production.INFO: ==18341== Releasing lock... [2025-03-26 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:10:23] Production.INFO: 48 MB #Memory Used# [2025-03-26 21:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:11:06 [end_date_ymd] => 2025-03-26 21:11:06 [RateCDR] => 1 ) [2025-03-26 21: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-26 18:11:06' and `end` < '2025-03-26 21: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-26 21:11:18] Production.INFO: count ==2581 [2025-03-26 21:11:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:11:06 - End Time 2025-03-26 21:11:06 [2025-03-26 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769491', 'tblTempUsageDetail_20' ) start [2025-03-26 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769491', 'tblTempUsageDetail_20' ) end [2025-03-26 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769491', 'tblTempVendorCDR_20' ) start [2025-03-26 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769491', 'tblTempVendorCDR_20' ) end [2025-03-26 21:11:19] Production.INFO: ProcessCDR(1,14769491,1,1,2) [2025-03-26 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769491', 'tblTempUsageDetail_20' ) start [2025-03-26 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769491', 'tblTempUsageDetail_20' ) end [2025-03-26 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:11:22] Production.INFO: ==18416== Releasing lock... [2025-03-26 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:11:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-26 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:12:05 [end_date_ymd] => 2025-03-26 21:12:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:12:05' and `end` < '2025-03-26 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-26 21:12:18] Production.INFO: count ==2571 [2025-03-26 21:12:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:12:05 - End Time 2025-03-26 21:12:05 [2025-03-26 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769496', 'tblTempUsageDetail_20' ) start [2025-03-26 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769496', 'tblTempUsageDetail_20' ) end [2025-03-26 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769496', 'tblTempVendorCDR_20' ) start [2025-03-26 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769496', 'tblTempVendorCDR_20' ) end [2025-03-26 21:12:19] Production.INFO: ProcessCDR(1,14769496,1,1,2) [2025-03-26 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769496', 'tblTempUsageDetail_20' ) start [2025-03-26 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769496', 'tblTempUsageDetail_20' ) end [2025-03-26 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:12:22] Production.INFO: ==18486== Releasing lock... [2025-03-26 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:12:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-26 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:13:05 [end_date_ymd] => 2025-03-26 21:13:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:13:05' and `end` < '2025-03-26 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-26 21:13:18] Production.INFO: count ==2545 [2025-03-26 21:13:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:13:05 - End Time 2025-03-26 21:13:05 [2025-03-26 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769501', 'tblTempUsageDetail_20' ) start [2025-03-26 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769501', 'tblTempUsageDetail_20' ) end [2025-03-26 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769501', 'tblTempVendorCDR_20' ) start [2025-03-26 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769501', 'tblTempVendorCDR_20' ) end [2025-03-26 21:13:19] Production.INFO: ProcessCDR(1,14769501,1,1,2) [2025-03-26 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769501', 'tblTempUsageDetail_20' ) start [2025-03-26 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769501', 'tblTempUsageDetail_20' ) end [2025-03-26 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:13:23] Production.INFO: ==18558== Releasing lock... [2025-03-26 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:13:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-26 21:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:14:04 [end_date_ymd] => 2025-03-26 21:14:04 [RateCDR] => 1 ) [2025-03-26 21:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:14:04' and `end` < '2025-03-26 21:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:14:17] Production.INFO: count ==2534 [2025-03-26 21:14:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:14:04 - End Time 2025-03-26 21:14:04 [2025-03-26 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769506', 'tblTempUsageDetail_20' ) start [2025-03-26 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769506', 'tblTempUsageDetail_20' ) end [2025-03-26 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769506', 'tblTempVendorCDR_20' ) start [2025-03-26 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769506', 'tblTempVendorCDR_20' ) end [2025-03-26 21:14:18] Production.INFO: ProcessCDR(1,14769506,1,1,2) [2025-03-26 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769506', 'tblTempUsageDetail_20' ) start [2025-03-26 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769506', 'tblTempUsageDetail_20' ) end [2025-03-26 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:14:21] Production.INFO: ==18628== Releasing lock... [2025-03-26 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:14:21] Production.INFO: 47 MB #Memory Used# [2025-03-26 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:15:05 [end_date_ymd] => 2025-03-26 21:15:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:15:05' and `end` < '2025-03-26 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-26 21:15:18] Production.INFO: count ==2531 [2025-03-26 21:15:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:15:05 - End Time 2025-03-26 21:15:05 [2025-03-26 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769511', 'tblTempUsageDetail_20' ) start [2025-03-26 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769511', 'tblTempUsageDetail_20' ) end [2025-03-26 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769511', 'tblTempVendorCDR_20' ) start [2025-03-26 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769511', 'tblTempVendorCDR_20' ) end [2025-03-26 21:15:19] Production.INFO: ProcessCDR(1,14769511,1,1,2) [2025-03-26 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769511', 'tblTempUsageDetail_20' ) start [2025-03-26 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769511', 'tblTempUsageDetail_20' ) end [2025-03-26 21:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:15:24] Production.INFO: ==18701== Releasing lock... [2025-03-26 21:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:15:24] Production.INFO: 47 MB #Memory Used# [2025-03-26 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:16:05 [end_date_ymd] => 2025-03-26 21:16:05 [RateCDR] => 1 ) [2025-03-26 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:16:05' and `end` < '2025-03-26 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:16:18] Production.INFO: count ==2530 [2025-03-26 21:16:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:16:05 - End Time 2025-03-26 21:16:05 [2025-03-26 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769516', 'tblTempUsageDetail_20' ) start [2025-03-26 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769516', 'tblTempUsageDetail_20' ) end [2025-03-26 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769516', 'tblTempVendorCDR_20' ) start [2025-03-26 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769516', 'tblTempVendorCDR_20' ) end [2025-03-26 21:16:18] Production.INFO: ProcessCDR(1,14769516,1,1,2) [2025-03-26 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769516', 'tblTempUsageDetail_20' ) start [2025-03-26 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769516', 'tblTempUsageDetail_20' ) end [2025-03-26 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:16:23] Production.INFO: ==18773== Releasing lock... [2025-03-26 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:16:23] Production.INFO: 47 MB #Memory Used# [2025-03-26 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:17:05 [end_date_ymd] => 2025-03-26 21:17:05 [RateCDR] => 1 ) [2025-03-26 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:17:05' and `end` < '2025-03-26 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:17:18] Production.INFO: count ==2533 [2025-03-26 21:17:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:17:05 - End Time 2025-03-26 21:17:05 [2025-03-26 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769521', 'tblTempUsageDetail_20' ) start [2025-03-26 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769521', 'tblTempUsageDetail_20' ) end [2025-03-26 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769521', 'tblTempVendorCDR_20' ) start [2025-03-26 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769521', 'tblTempVendorCDR_20' ) end [2025-03-26 21:17:19] Production.INFO: ProcessCDR(1,14769521,1,1,2) [2025-03-26 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769521', 'tblTempUsageDetail_20' ) start [2025-03-26 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769521', 'tblTempUsageDetail_20' ) end [2025-03-26 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:17:22] Production.INFO: ==18843== Releasing lock... [2025-03-26 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:17:22] Production.INFO: 47 MB #Memory Used# [2025-03-26 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:18:05 [end_date_ymd] => 2025-03-26 21:18:05 [RateCDR] => 1 ) [2025-03-26 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:18:05' and `end` < '2025-03-26 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:18:18] Production.INFO: count ==2516 [2025-03-26 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:18:05 - End Time 2025-03-26 21:18:05 [2025-03-26 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769526', 'tblTempUsageDetail_20' ) start [2025-03-26 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769526', 'tblTempUsageDetail_20' ) end [2025-03-26 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769526', 'tblTempVendorCDR_20' ) start [2025-03-26 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769526', 'tblTempVendorCDR_20' ) end [2025-03-26 21:18:18] Production.INFO: ProcessCDR(1,14769526,1,1,2) [2025-03-26 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769526', 'tblTempUsageDetail_20' ) start [2025-03-26 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769526', 'tblTempUsageDetail_20' ) end [2025-03-26 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:18:22] Production.INFO: ==18925== Releasing lock... [2025-03-26 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:18:22] Production.INFO: 47 MB #Memory Used# [2025-03-26 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:19:05 [end_date_ymd] => 2025-03-26 21:19:05 [RateCDR] => 1 ) [2025-03-26 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:19:05' and `end` < '2025-03-26 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:19:18] Production.INFO: count ==2514 [2025-03-26 21:19:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:19:05 - End Time 2025-03-26 21:19:05 [2025-03-26 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769531', 'tblTempUsageDetail_20' ) start [2025-03-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769531', 'tblTempUsageDetail_20' ) end [2025-03-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769531', 'tblTempVendorCDR_20' ) start [2025-03-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769531', 'tblTempVendorCDR_20' ) end [2025-03-26 21:19:19] Production.INFO: ProcessCDR(1,14769531,1,1,2) [2025-03-26 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769531', 'tblTempUsageDetail_20' ) start [2025-03-26 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769531', 'tblTempUsageDetail_20' ) end [2025-03-26 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:19:22] Production.INFO: ==18996== Releasing lock... [2025-03-26 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:19:22] Production.INFO: 47 MB #Memory Used# [2025-03-26 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:20:06 [end_date_ymd] => 2025-03-26 21:20:06 [RateCDR] => 1 ) [2025-03-26 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-26 18:20:06' and `end` < '2025-03-26 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-26 21:20:18] Production.INFO: count ==2505 [2025-03-26 21:20:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:20:06 - End Time 2025-03-26 21:20:06 [2025-03-26 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769537', 'tblTempUsageDetail_20' ) start [2025-03-26 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769537', 'tblTempUsageDetail_20' ) end [2025-03-26 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769537', 'tblTempVendorCDR_20' ) start [2025-03-26 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769537', 'tblTempVendorCDR_20' ) end [2025-03-26 21:20:19] Production.INFO: ProcessCDR(1,14769537,1,1,2) [2025-03-26 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769537', 'tblTempUsageDetail_20' ) start [2025-03-26 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769537', 'tblTempUsageDetail_20' ) end [2025-03-26 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:20:23] Production.INFO: ==19068== Releasing lock... [2025-03-26 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:20:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-26 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:21:05 [end_date_ymd] => 2025-03-26 21:21:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:21:05' and `end` < '2025-03-26 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-26 21:21:18] Production.INFO: count ==2474 [2025-03-26 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:21:05 - End Time 2025-03-26 21:21:05 [2025-03-26 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769542', 'tblTempUsageDetail_20' ) start [2025-03-26 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769542', 'tblTempUsageDetail_20' ) end [2025-03-26 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769542', 'tblTempVendorCDR_20' ) start [2025-03-26 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769542', 'tblTempVendorCDR_20' ) end [2025-03-26 21:21:18] Production.INFO: ProcessCDR(1,14769542,1,1,2) [2025-03-26 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769542', 'tblTempUsageDetail_20' ) start [2025-03-26 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769542', 'tblTempUsageDetail_20' ) end [2025-03-26 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:21:23] Production.INFO: ==19188== Releasing lock... [2025-03-26 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:21:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-26 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:22:06 [end_date_ymd] => 2025-03-26 21:22:06 [RateCDR] => 1 ) [2025-03-26 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:22:06' and `end` < '2025-03-26 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:22:19] Production.INFO: count ==2483 [2025-03-26 21:22:20] Production.ERROR: pbx CDR StartTime 2025-03-26 18:22:06 - End Time 2025-03-26 21:22:06 [2025-03-26 21:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769547', 'tblTempUsageDetail_20' ) start [2025-03-26 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769547', 'tblTempUsageDetail_20' ) end [2025-03-26 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769547', 'tblTempVendorCDR_20' ) start [2025-03-26 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769547', 'tblTempVendorCDR_20' ) end [2025-03-26 21:22:20] Production.INFO: ProcessCDR(1,14769547,1,1,2) [2025-03-26 21:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769547', 'tblTempUsageDetail_20' ) start [2025-03-26 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769547', 'tblTempUsageDetail_20' ) end [2025-03-26 21:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:22:24] Production.INFO: ==19266== Releasing lock... [2025-03-26 21:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:22:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-26 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:23:06 [end_date_ymd] => 2025-03-26 21:23:06 [RateCDR] => 1 ) [2025-03-26 21: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-26 18:23:06' and `end` < '2025-03-26 21: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-26 21:23:19] Production.INFO: count ==2490 [2025-03-26 21:23:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:23:06 - End Time 2025-03-26 21:23:06 [2025-03-26 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769552', 'tblTempUsageDetail_20' ) start [2025-03-26 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769552', 'tblTempUsageDetail_20' ) end [2025-03-26 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769552', 'tblTempVendorCDR_20' ) start [2025-03-26 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769552', 'tblTempVendorCDR_20' ) end [2025-03-26 21:23:19] Production.INFO: ProcessCDR(1,14769552,1,1,2) [2025-03-26 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769552', 'tblTempUsageDetail_20' ) start [2025-03-26 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769552', 'tblTempUsageDetail_20' ) end [2025-03-26 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:23:23] Production.INFO: ==19341== Releasing lock... [2025-03-26 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:23:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-26 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:24:06 [end_date_ymd] => 2025-03-26 21:24:06 [RateCDR] => 1 ) [2025-03-26 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-26 18:24:06' and `end` < '2025-03-26 21:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:24:19] Production.INFO: count ==2506 [2025-03-26 21:24:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:24:06 - End Time 2025-03-26 21:24:06 [2025-03-26 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769557', 'tblTempUsageDetail_20' ) start [2025-03-26 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769557', 'tblTempUsageDetail_20' ) end [2025-03-26 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769557', 'tblTempVendorCDR_20' ) start [2025-03-26 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769557', 'tblTempVendorCDR_20' ) end [2025-03-26 21:24:19] Production.INFO: ProcessCDR(1,14769557,1,1,2) [2025-03-26 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769557', 'tblTempUsageDetail_20' ) start [2025-03-26 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769557', 'tblTempUsageDetail_20' ) end [2025-03-26 21:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:24:24] Production.INFO: ==19415== Releasing lock... [2025-03-26 21:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:24:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-26 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:25:05 [end_date_ymd] => 2025-03-26 21:25:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:25:05' and `end` < '2025-03-26 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-26 21:25:18] Production.INFO: count ==2491 [2025-03-26 21:25:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:25:05 - End Time 2025-03-26 21:25:05 [2025-03-26 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769562', 'tblTempUsageDetail_20' ) start [2025-03-26 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769562', 'tblTempUsageDetail_20' ) end [2025-03-26 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769562', 'tblTempVendorCDR_20' ) start [2025-03-26 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769562', 'tblTempVendorCDR_20' ) end [2025-03-26 21:25:19] Production.INFO: ProcessCDR(1,14769562,1,1,2) [2025-03-26 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769562', 'tblTempUsageDetail_20' ) start [2025-03-26 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769562', 'tblTempUsageDetail_20' ) end [2025-03-26 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:25:23] Production.INFO: ==19487== Releasing lock... [2025-03-26 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:25:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-26 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:26:05 [end_date_ymd] => 2025-03-26 21:26:05 [RateCDR] => 1 ) [2025-03-26 21: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-26 18:26:05' and `end` < '2025-03-26 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-26 21:26:18] Production.INFO: count ==2487 [2025-03-26 21:26:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:26:05 - End Time 2025-03-26 21:26:05 [2025-03-26 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769567', 'tblTempUsageDetail_20' ) start [2025-03-26 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769567', 'tblTempUsageDetail_20' ) end [2025-03-26 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769567', 'tblTempVendorCDR_20' ) start [2025-03-26 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769567', 'tblTempVendorCDR_20' ) end [2025-03-26 21:26:19] Production.INFO: ProcessCDR(1,14769567,1,1,2) [2025-03-26 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769567', 'tblTempUsageDetail_20' ) start [2025-03-26 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769567', 'tblTempUsageDetail_20' ) end [2025-03-26 21:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:26:24] Production.INFO: ==19566== Releasing lock... [2025-03-26 21:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:26:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-26 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:27:04 [end_date_ymd] => 2025-03-26 21:27:04 [RateCDR] => 1 ) [2025-03-26 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:27:04' and `end` < '2025-03-26 21: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-26 21:27:17] Production.INFO: count ==2484 [2025-03-26 21:27:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:27:04 - End Time 2025-03-26 21:27:04 [2025-03-26 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769572', 'tblTempUsageDetail_20' ) start [2025-03-26 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769572', 'tblTempUsageDetail_20' ) end [2025-03-26 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769572', 'tblTempVendorCDR_20' ) start [2025-03-26 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769572', 'tblTempVendorCDR_20' ) end [2025-03-26 21:27:18] Production.INFO: ProcessCDR(1,14769572,1,1,2) [2025-03-26 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769572', 'tblTempUsageDetail_20' ) start [2025-03-26 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769572', 'tblTempUsageDetail_20' ) end [2025-03-26 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:27:23] Production.INFO: ==19639== Releasing lock... [2025-03-26 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:27:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-26 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:28:05 [end_date_ymd] => 2025-03-26 21:28:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:28:05' and `end` < '2025-03-26 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-26 21:28:18] Production.INFO: count ==2481 [2025-03-26 21:28:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:28:05 - End Time 2025-03-26 21:28:05 [2025-03-26 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769577', 'tblTempUsageDetail_20' ) start [2025-03-26 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769577', 'tblTempUsageDetail_20' ) end [2025-03-26 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769577', 'tblTempVendorCDR_20' ) start [2025-03-26 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769577', 'tblTempVendorCDR_20' ) end [2025-03-26 21:28:18] Production.INFO: ProcessCDR(1,14769577,1,1,2) [2025-03-26 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769577', 'tblTempUsageDetail_20' ) start [2025-03-26 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769577', 'tblTempUsageDetail_20' ) end [2025-03-26 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:28:21] Production.INFO: ==19711== Releasing lock... [2025-03-26 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:28:21] Production.INFO: 46.75 MB #Memory Used# [2025-03-26 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:29:05 [end_date_ymd] => 2025-03-26 21:29:05 [RateCDR] => 1 ) [2025-03-26 21: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-26 18:29:05' and `end` < '2025-03-26 21: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-26 21:29:18] Production.INFO: count ==2485 [2025-03-26 21:29:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:29:05 - End Time 2025-03-26 21:29:05 [2025-03-26 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769582', 'tblTempUsageDetail_20' ) start [2025-03-26 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769582', 'tblTempUsageDetail_20' ) end [2025-03-26 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769582', 'tblTempVendorCDR_20' ) start [2025-03-26 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769582', 'tblTempVendorCDR_20' ) end [2025-03-26 21:29:19] Production.INFO: ProcessCDR(1,14769582,1,1,2) [2025-03-26 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769582', 'tblTempUsageDetail_20' ) start [2025-03-26 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769582', 'tblTempUsageDetail_20' ) end [2025-03-26 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:29:22] Production.INFO: ==19780== Releasing lock... [2025-03-26 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:29:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-26 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:30:06 [end_date_ymd] => 2025-03-26 21:30:06 [RateCDR] => 1 ) [2025-03-26 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-26 18:30:06' and `end` < '2025-03-26 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-26 21:30:18] Production.INFO: count ==2477 [2025-03-26 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:30:06 - End Time 2025-03-26 21:30:06 [2025-03-26 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769587', 'tblTempUsageDetail_20' ) start [2025-03-26 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769587', 'tblTempUsageDetail_20' ) end [2025-03-26 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769587', 'tblTempVendorCDR_20' ) start [2025-03-26 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769587', 'tblTempVendorCDR_20' ) end [2025-03-26 21:30:19] Production.INFO: ProcessCDR(1,14769587,1,1,2) [2025-03-26 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769587', 'tblTempUsageDetail_20' ) start [2025-03-26 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769587', 'tblTempUsageDetail_20' ) end [2025-03-26 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:30:24] Production.INFO: ==19854== Releasing lock... [2025-03-26 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:30:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-26 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:31:05 [end_date_ymd] => 2025-03-26 21:31:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:31:05' and `end` < '2025-03-26 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-26 21:31:18] Production.INFO: count ==2437 [2025-03-26 21:31:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:31:05 - End Time 2025-03-26 21:31:05 [2025-03-26 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769593', 'tblTempUsageDetail_20' ) start [2025-03-26 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769593', 'tblTempUsageDetail_20' ) end [2025-03-26 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769593', 'tblTempVendorCDR_20' ) start [2025-03-26 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769593', 'tblTempVendorCDR_20' ) end [2025-03-26 21:31:18] Production.INFO: ProcessCDR(1,14769593,1,1,2) [2025-03-26 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769593', 'tblTempUsageDetail_20' ) start [2025-03-26 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769593', 'tblTempUsageDetail_20' ) end [2025-03-26 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:31:22] Production.INFO: ==19927== Releasing lock... [2025-03-26 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:31:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-26 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:32:05 [end_date_ymd] => 2025-03-26 21:32:05 [RateCDR] => 1 ) [2025-03-26 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:32:05' and `end` < '2025-03-26 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:32:18] Production.INFO: count ==2452 [2025-03-26 21:32:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:32:05 - End Time 2025-03-26 21:32:05 [2025-03-26 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769598', 'tblTempUsageDetail_20' ) start [2025-03-26 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769598', 'tblTempUsageDetail_20' ) end [2025-03-26 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769598', 'tblTempVendorCDR_20' ) start [2025-03-26 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769598', 'tblTempVendorCDR_20' ) end [2025-03-26 21:32:19] Production.INFO: ProcessCDR(1,14769598,1,1,2) [2025-03-26 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769598', 'tblTempUsageDetail_20' ) start [2025-03-26 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769598', 'tblTempUsageDetail_20' ) end [2025-03-26 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:32:23] Production.INFO: ==19998== Releasing lock... [2025-03-26 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:32:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-26 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:33:05 [end_date_ymd] => 2025-03-26 21:33:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:33:05' and `end` < '2025-03-26 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-26 21:33:17] Production.INFO: count ==2454 [2025-03-26 21:33:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:33:05 - End Time 2025-03-26 21:33:05 [2025-03-26 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769603', 'tblTempUsageDetail_20' ) start [2025-03-26 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769603', 'tblTempUsageDetail_20' ) end [2025-03-26 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769603', 'tblTempVendorCDR_20' ) start [2025-03-26 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769603', 'tblTempVendorCDR_20' ) end [2025-03-26 21:33:18] Production.INFO: ProcessCDR(1,14769603,1,1,2) [2025-03-26 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769603', 'tblTempUsageDetail_20' ) start [2025-03-26 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769603', 'tblTempUsageDetail_20' ) end [2025-03-26 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:33:21] Production.INFO: ==20068== Releasing lock... [2025-03-26 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:33:21] Production.INFO: 46.5 MB #Memory Used# [2025-03-26 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:34:06 [end_date_ymd] => 2025-03-26 21:34:06 [RateCDR] => 1 ) [2025-03-26 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-26 18:34:06' and `end` < '2025-03-26 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-26 21:34:18] Production.INFO: count ==2423 [2025-03-26 21:34:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:34:06 - End Time 2025-03-26 21:34:06 [2025-03-26 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769608', 'tblTempUsageDetail_20' ) start [2025-03-26 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769608', 'tblTempUsageDetail_20' ) end [2025-03-26 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769608', 'tblTempVendorCDR_20' ) start [2025-03-26 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769608', 'tblTempVendorCDR_20' ) end [2025-03-26 21:34:19] Production.INFO: ProcessCDR(1,14769608,1,1,2) [2025-03-26 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769608', 'tblTempUsageDetail_20' ) start [2025-03-26 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769608', 'tblTempUsageDetail_20' ) end [2025-03-26 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:34:23] Production.INFO: ==20140== Releasing lock... [2025-03-26 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:34:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-26 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:35:05 [end_date_ymd] => 2025-03-26 21:35:05 [RateCDR] => 1 ) [2025-03-26 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:35:05' and `end` < '2025-03-26 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:35:17] Production.INFO: count ==2411 [2025-03-26 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:35:05 - End Time 2025-03-26 21:35:05 [2025-03-26 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769613', 'tblTempUsageDetail_20' ) start [2025-03-26 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769613', 'tblTempUsageDetail_20' ) end [2025-03-26 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769613', 'tblTempVendorCDR_20' ) start [2025-03-26 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769613', 'tblTempVendorCDR_20' ) end [2025-03-26 21:35:18] Production.INFO: ProcessCDR(1,14769613,1,1,2) [2025-03-26 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769613', 'tblTempUsageDetail_20' ) start [2025-03-26 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769613', 'tblTempUsageDetail_20' ) end [2025-03-26 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:35:21] Production.INFO: ==20212== Releasing lock... [2025-03-26 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:35:21] Production.INFO: 46.25 MB #Memory Used# [2025-03-26 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:36:05 [end_date_ymd] => 2025-03-26 21:36:05 [RateCDR] => 1 ) [2025-03-26 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:36:05' and `end` < '2025-03-26 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:36:18] Production.INFO: count ==2383 [2025-03-26 21:36:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:36:05 - End Time 2025-03-26 21:36:05 [2025-03-26 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769618', 'tblTempUsageDetail_20' ) start [2025-03-26 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769618', 'tblTempUsageDetail_20' ) end [2025-03-26 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769618', 'tblTempVendorCDR_20' ) start [2025-03-26 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769618', 'tblTempVendorCDR_20' ) end [2025-03-26 21:36:19] Production.INFO: ProcessCDR(1,14769618,1,1,2) [2025-03-26 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769618', 'tblTempUsageDetail_20' ) start [2025-03-26 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769618', 'tblTempUsageDetail_20' ) end [2025-03-26 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:36:23] Production.INFO: ==20326== Releasing lock... [2025-03-26 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:36:23] Production.INFO: 46 MB #Memory Used# [2025-03-26 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:37:05 [end_date_ymd] => 2025-03-26 21:37:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:37:05' and `end` < '2025-03-26 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-26 21:37:18] Production.INFO: count ==2374 [2025-03-26 21:37:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:37:05 - End Time 2025-03-26 21:37:05 [2025-03-26 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769623', 'tblTempUsageDetail_20' ) start [2025-03-26 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769623', 'tblTempUsageDetail_20' ) end [2025-03-26 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769623', 'tblTempVendorCDR_20' ) start [2025-03-26 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769623', 'tblTempVendorCDR_20' ) end [2025-03-26 21:37:19] Production.INFO: ProcessCDR(1,14769623,1,1,2) [2025-03-26 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769623', 'tblTempUsageDetail_20' ) start [2025-03-26 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769623', 'tblTempUsageDetail_20' ) end [2025-03-26 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:37:22] Production.INFO: ==20399== Releasing lock... [2025-03-26 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:37:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-26 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:38:05 [end_date_ymd] => 2025-03-26 21:38:05 [RateCDR] => 1 ) [2025-03-26 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:38:05' and `end` < '2025-03-26 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:38:18] Production.INFO: count ==2374 [2025-03-26 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:38:05 - End Time 2025-03-26 21:38:05 [2025-03-26 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769628', 'tblTempUsageDetail_20' ) start [2025-03-26 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769628', 'tblTempUsageDetail_20' ) end [2025-03-26 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769628', 'tblTempVendorCDR_20' ) start [2025-03-26 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769628', 'tblTempVendorCDR_20' ) end [2025-03-26 21:38:18] Production.INFO: ProcessCDR(1,14769628,1,1,2) [2025-03-26 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769628', 'tblTempUsageDetail_20' ) start [2025-03-26 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769628', 'tblTempUsageDetail_20' ) end [2025-03-26 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:38:22] Production.INFO: ==20469== Releasing lock... [2025-03-26 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:38:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-26 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:39:06 [end_date_ymd] => 2025-03-26 21:39:06 [RateCDR] => 1 ) [2025-03-26 21: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-26 18:39:06' and `end` < '2025-03-26 21: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-26 21:39:19] Production.INFO: count ==2377 [2025-03-26 21:39:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:39:06 - End Time 2025-03-26 21:39:06 [2025-03-26 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769633', 'tblTempUsageDetail_20' ) start [2025-03-26 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769633', 'tblTempUsageDetail_20' ) end [2025-03-26 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769633', 'tblTempVendorCDR_20' ) start [2025-03-26 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769633', 'tblTempVendorCDR_20' ) end [2025-03-26 21:39:19] Production.INFO: ProcessCDR(1,14769633,1,1,2) [2025-03-26 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769633', 'tblTempUsageDetail_20' ) start [2025-03-26 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769633', 'tblTempUsageDetail_20' ) end [2025-03-26 21:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:39:24] Production.INFO: ==20540== Releasing lock... [2025-03-26 21:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:39:24] Production.INFO: 46 MB #Memory Used# [2025-03-26 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:40:05 [end_date_ymd] => 2025-03-26 21:40:05 [RateCDR] => 1 ) [2025-03-26 21: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-26 18:40:05' and `end` < '2025-03-26 21: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-26 21:40:18] Production.INFO: count ==2378 [2025-03-26 21:40:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:40:05 - End Time 2025-03-26 21:40:05 [2025-03-26 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769638', 'tblTempUsageDetail_20' ) start [2025-03-26 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769638', 'tblTempUsageDetail_20' ) end [2025-03-26 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769638', 'tblTempVendorCDR_20' ) start [2025-03-26 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769638', 'tblTempVendorCDR_20' ) end [2025-03-26 21:40:19] Production.INFO: ProcessCDR(1,14769638,1,1,2) [2025-03-26 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769638', 'tblTempUsageDetail_20' ) start [2025-03-26 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769638', 'tblTempUsageDetail_20' ) end [2025-03-26 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:40:24] Production.INFO: ==20610== Releasing lock... [2025-03-26 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:40:24] Production.INFO: 46 MB #Memory Used# [2025-03-26 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:41:06 [end_date_ymd] => 2025-03-26 21:41:06 [RateCDR] => 1 ) [2025-03-26 21: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-26 18:41:06' and `end` < '2025-03-26 21: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-26 21:41:18] Production.INFO: count ==2388 [2025-03-26 21:41:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:41:06 - End Time 2025-03-26 21:41:06 [2025-03-26 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769644', 'tblTempUsageDetail_20' ) start [2025-03-26 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769644', 'tblTempUsageDetail_20' ) end [2025-03-26 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769644', 'tblTempVendorCDR_20' ) start [2025-03-26 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769644', 'tblTempVendorCDR_20' ) end [2025-03-26 21:41:19] Production.INFO: ProcessCDR(1,14769644,1,1,2) [2025-03-26 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769644', 'tblTempUsageDetail_20' ) start [2025-03-26 21:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769644', 'tblTempUsageDetail_20' ) end [2025-03-26 21:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:41:24] Production.INFO: ==20690== Releasing lock... [2025-03-26 21:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:41:24] Production.INFO: 46 MB #Memory Used# [2025-03-26 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:42:05 [end_date_ymd] => 2025-03-26 21:42:05 [RateCDR] => 1 ) [2025-03-26 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:42:05' and `end` < '2025-03-26 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:42:17] Production.INFO: count ==2393 [2025-03-26 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:42:05 - End Time 2025-03-26 21:42:05 [2025-03-26 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769649', 'tblTempUsageDetail_20' ) start [2025-03-26 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769649', 'tblTempUsageDetail_20' ) end [2025-03-26 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769649', 'tblTempVendorCDR_20' ) start [2025-03-26 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769649', 'tblTempVendorCDR_20' ) end [2025-03-26 21:42:18] Production.INFO: ProcessCDR(1,14769649,1,1,2) [2025-03-26 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769649', 'tblTempUsageDetail_20' ) start [2025-03-26 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769649', 'tblTempUsageDetail_20' ) end [2025-03-26 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:42:23] Production.INFO: ==20761== Releasing lock... [2025-03-26 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:42:23] Production.INFO: 46 MB #Memory Used# [2025-03-26 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:43:05 [end_date_ymd] => 2025-03-26 21:43:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:43:05' and `end` < '2025-03-26 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-26 21:43:18] Production.INFO: count ==2395 [2025-03-26 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:43:05 - End Time 2025-03-26 21:43:05 [2025-03-26 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769654', 'tblTempUsageDetail_20' ) start [2025-03-26 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769654', 'tblTempUsageDetail_20' ) end [2025-03-26 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769654', 'tblTempVendorCDR_20' ) start [2025-03-26 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769654', 'tblTempVendorCDR_20' ) end [2025-03-26 21:43:18] Production.INFO: ProcessCDR(1,14769654,1,1,2) [2025-03-26 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769654', 'tblTempUsageDetail_20' ) start [2025-03-26 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769654', 'tblTempUsageDetail_20' ) end [2025-03-26 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:43:23] Production.INFO: ==20834== Releasing lock... [2025-03-26 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:43:23] Production.INFO: 46 MB #Memory Used# [2025-03-26 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:44:05 [end_date_ymd] => 2025-03-26 21:44:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:44:05' and `end` < '2025-03-26 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-26 21:44:17] Production.INFO: count ==2418 [2025-03-26 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:44:05 - End Time 2025-03-26 21:44:05 [2025-03-26 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769659', 'tblTempUsageDetail_20' ) start [2025-03-26 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769659', 'tblTempUsageDetail_20' ) end [2025-03-26 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769659', 'tblTempVendorCDR_20' ) start [2025-03-26 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769659', 'tblTempVendorCDR_20' ) end [2025-03-26 21:44:18] Production.INFO: ProcessCDR(1,14769659,1,1,2) [2025-03-26 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769659', 'tblTempUsageDetail_20' ) start [2025-03-26 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769659', 'tblTempUsageDetail_20' ) end [2025-03-26 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:44:21] Production.INFO: ==20904== Releasing lock... [2025-03-26 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:44:21] Production.INFO: 46.25 MB #Memory Used# [2025-03-26 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:45:05 [end_date_ymd] => 2025-03-26 21:45:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:45:05' and `end` < '2025-03-26 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-26 21:45:18] Production.INFO: count ==2415 [2025-03-26 21:45:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:45:05 - End Time 2025-03-26 21:45:05 [2025-03-26 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769664', 'tblTempUsageDetail_20' ) start [2025-03-26 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769664', 'tblTempUsageDetail_20' ) end [2025-03-26 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769664', 'tblTempVendorCDR_20' ) start [2025-03-26 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769664', 'tblTempVendorCDR_20' ) end [2025-03-26 21:45:19] Production.INFO: ProcessCDR(1,14769664,1,1,2) [2025-03-26 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769664', 'tblTempUsageDetail_20' ) start [2025-03-26 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769664', 'tblTempUsageDetail_20' ) end [2025-03-26 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:45:22] Production.INFO: ==20976== Releasing lock... [2025-03-26 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:45:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-26 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:46:05 [end_date_ymd] => 2025-03-26 21:46:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:46:05' and `end` < '2025-03-26 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-26 21:46:18] Production.INFO: count ==2428 [2025-03-26 21:46:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:46:05 - End Time 2025-03-26 21:46:05 [2025-03-26 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769669', 'tblTempUsageDetail_20' ) start [2025-03-26 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769669', 'tblTempUsageDetail_20' ) end [2025-03-26 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769669', 'tblTempVendorCDR_20' ) start [2025-03-26 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769669', 'tblTempVendorCDR_20' ) end [2025-03-26 21:46:19] Production.INFO: ProcessCDR(1,14769669,1,1,2) [2025-03-26 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769669', 'tblTempUsageDetail_20' ) start [2025-03-26 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769669', 'tblTempUsageDetail_20' ) end [2025-03-26 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:46:22] Production.INFO: ==21046== Releasing lock... [2025-03-26 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:46:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-26 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:47:05 [end_date_ymd] => 2025-03-26 21:47:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:47:05' and `end` < '2025-03-26 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-26 21:47:18] Production.INFO: count ==2415 [2025-03-26 21:47:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:47:05 - End Time 2025-03-26 21:47:05 [2025-03-26 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769674', 'tblTempUsageDetail_20' ) start [2025-03-26 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769674', 'tblTempUsageDetail_20' ) end [2025-03-26 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769674', 'tblTempVendorCDR_20' ) start [2025-03-26 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769674', 'tblTempVendorCDR_20' ) end [2025-03-26 21:47:19] Production.INFO: ProcessCDR(1,14769674,1,1,2) [2025-03-26 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769674', 'tblTempUsageDetail_20' ) start [2025-03-26 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769674', 'tblTempUsageDetail_20' ) end [2025-03-26 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:47:22] Production.INFO: ==21118== Releasing lock... [2025-03-26 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:47:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-26 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:48:05 [end_date_ymd] => 2025-03-26 21:48:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:48:05' and `end` < '2025-03-26 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-26 21:48:17] Production.INFO: count ==2402 [2025-03-26 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:48:05 - End Time 2025-03-26 21:48:05 [2025-03-26 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769679', 'tblTempUsageDetail_20' ) start [2025-03-26 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769679', 'tblTempUsageDetail_20' ) end [2025-03-26 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769679', 'tblTempVendorCDR_20' ) start [2025-03-26 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769679', 'tblTempVendorCDR_20' ) end [2025-03-26 21:48:18] Production.INFO: ProcessCDR(1,14769679,1,1,2) [2025-03-26 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769679', 'tblTempUsageDetail_20' ) start [2025-03-26 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769679', 'tblTempUsageDetail_20' ) end [2025-03-26 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:48:23] Production.INFO: ==21190== Releasing lock... [2025-03-26 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:48:23] Production.INFO: 46 MB #Memory Used# [2025-03-26 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:49:05 [end_date_ymd] => 2025-03-26 21:49:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:49:05' and `end` < '2025-03-26 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-26 21:49:18] Production.INFO: count ==2404 [2025-03-26 21:49:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:49:05 - End Time 2025-03-26 21:49:05 [2025-03-26 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769684', 'tblTempUsageDetail_20' ) start [2025-03-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769684', 'tblTempUsageDetail_20' ) end [2025-03-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769684', 'tblTempVendorCDR_20' ) start [2025-03-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769684', 'tblTempVendorCDR_20' ) end [2025-03-26 21:49:18] Production.INFO: ProcessCDR(1,14769684,1,1,2) [2025-03-26 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769684', 'tblTempUsageDetail_20' ) start [2025-03-26 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769684', 'tblTempUsageDetail_20' ) end [2025-03-26 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:49:22] Production.INFO: ==21265== Releasing lock... [2025-03-26 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:49:22] Production.INFO: 46 MB #Memory Used# [2025-03-26 21:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:50:07 [end_date_ymd] => 2025-03-26 21:50:07 [RateCDR] => 1 ) [2025-03-26 21: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-26 18:50:07' and `end` < '2025-03-26 21: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-26 21:50:20] Production.INFO: count ==2402 [2025-03-26 21:50:20] Production.ERROR: pbx CDR StartTime 2025-03-26 18:50:07 - End Time 2025-03-26 21:50:07 [2025-03-26 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769690', 'tblTempUsageDetail_20' ) start [2025-03-26 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769690', 'tblTempUsageDetail_20' ) end [2025-03-26 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769690', 'tblTempVendorCDR_20' ) start [2025-03-26 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769690', 'tblTempVendorCDR_20' ) end [2025-03-26 21:50:20] Production.INFO: ProcessCDR(1,14769690,1,1,2) [2025-03-26 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769690', 'tblTempUsageDetail_20' ) start [2025-03-26 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769690', 'tblTempUsageDetail_20' ) end [2025-03-26 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:50:23] Production.INFO: ==21338== Releasing lock... [2025-03-26 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:50:23] Production.INFO: 46 MB #Memory Used# [2025-03-26 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:51:05 [end_date_ymd] => 2025-03-26 21:51:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:51:05' and `end` < '2025-03-26 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-26 21:51:18] Production.INFO: count ==2387 [2025-03-26 21:51:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:51:05 - End Time 2025-03-26 21:51:05 [2025-03-26 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769695', 'tblTempUsageDetail_20' ) start [2025-03-26 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769695', 'tblTempUsageDetail_20' ) end [2025-03-26 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769695', 'tblTempVendorCDR_20' ) start [2025-03-26 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769695', 'tblTempVendorCDR_20' ) end [2025-03-26 21:51:19] Production.INFO: ProcessCDR(1,14769695,1,1,2) [2025-03-26 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769695', 'tblTempUsageDetail_20' ) start [2025-03-26 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769695', 'tblTempUsageDetail_20' ) end [2025-03-26 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:51:22] Production.INFO: ==21410== Releasing lock... [2025-03-26 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:51:22] Production.INFO: 46 MB #Memory Used# [2025-03-26 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:52:05 [end_date_ymd] => 2025-03-26 21:52:05 [RateCDR] => 1 ) [2025-03-26 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:52:05' and `end` < '2025-03-26 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:52:18] Production.INFO: count ==2388 [2025-03-26 21:52:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:52:05 - End Time 2025-03-26 21:52:05 [2025-03-26 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769700', 'tblTempUsageDetail_20' ) start [2025-03-26 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769700', 'tblTempUsageDetail_20' ) end [2025-03-26 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769700', 'tblTempVendorCDR_20' ) start [2025-03-26 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769700', 'tblTempVendorCDR_20' ) end [2025-03-26 21:52:19] Production.INFO: ProcessCDR(1,14769700,1,1,2) [2025-03-26 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769700', 'tblTempUsageDetail_20' ) start [2025-03-26 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769700', 'tblTempUsageDetail_20' ) end [2025-03-26 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:52:22] Production.INFO: ==21522== Releasing lock... [2025-03-26 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:52:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-26 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:53:05 [end_date_ymd] => 2025-03-26 21:53:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:53:05' and `end` < '2025-03-26 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-26 21:53:18] Production.INFO: count ==2390 [2025-03-26 21:53:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:53:05 - End Time 2025-03-26 21:53:05 [2025-03-26 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769705', 'tblTempUsageDetail_20' ) start [2025-03-26 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769705', 'tblTempUsageDetail_20' ) end [2025-03-26 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769705', 'tblTempVendorCDR_20' ) start [2025-03-26 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769705', 'tblTempVendorCDR_20' ) end [2025-03-26 21:53:19] Production.INFO: ProcessCDR(1,14769705,1,1,2) [2025-03-26 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769705', 'tblTempUsageDetail_20' ) start [2025-03-26 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769705', 'tblTempUsageDetail_20' ) end [2025-03-26 21:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:53:24] Production.INFO: ==21593== Releasing lock... [2025-03-26 21:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:53:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-26 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:54:06 [end_date_ymd] => 2025-03-26 21:54:06 [RateCDR] => 1 ) [2025-03-26 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-26 18:54:06' and `end` < '2025-03-26 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-26 21:54:18] Production.INFO: count ==2387 [2025-03-26 21:54:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:54:06 - End Time 2025-03-26 21:54:06 [2025-03-26 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769710', 'tblTempUsageDetail_20' ) start [2025-03-26 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769710', 'tblTempUsageDetail_20' ) end [2025-03-26 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769710', 'tblTempVendorCDR_20' ) start [2025-03-26 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769710', 'tblTempVendorCDR_20' ) end [2025-03-26 21:54:19] Production.INFO: ProcessCDR(1,14769710,1,1,2) [2025-03-26 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769710', 'tblTempUsageDetail_20' ) start [2025-03-26 21:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769710', 'tblTempUsageDetail_20' ) end [2025-03-26 21:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:54:24] Production.INFO: ==21666== Releasing lock... [2025-03-26 21:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:54:24] Production.INFO: 46 MB #Memory Used# [2025-03-26 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:55:05 [end_date_ymd] => 2025-03-26 21:55:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:55:05' and `end` < '2025-03-26 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-26 21:55:18] Production.INFO: count ==2385 [2025-03-26 21:55:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:55:05 - End Time 2025-03-26 21:55:05 [2025-03-26 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769715', 'tblTempUsageDetail_20' ) start [2025-03-26 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769715', 'tblTempUsageDetail_20' ) end [2025-03-26 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769715', 'tblTempVendorCDR_20' ) start [2025-03-26 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769715', 'tblTempVendorCDR_20' ) end [2025-03-26 21:55:19] Production.INFO: ProcessCDR(1,14769715,1,1,2) [2025-03-26 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769715', 'tblTempUsageDetail_20' ) start [2025-03-26 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769715', 'tblTempUsageDetail_20' ) end [2025-03-26 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:55:22] Production.INFO: ==21736== Releasing lock... [2025-03-26 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:55:22] Production.INFO: 46 MB #Memory Used# [2025-03-26 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:56:05 [end_date_ymd] => 2025-03-26 21:56:05 [RateCDR] => 1 ) [2025-03-26 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 18:56:05' and `end` < '2025-03-26 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 21:56:18] Production.INFO: count ==2393 [2025-03-26 21:56:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:56:05 - End Time 2025-03-26 21:56:05 [2025-03-26 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769720', 'tblTempUsageDetail_20' ) start [2025-03-26 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769720', 'tblTempUsageDetail_20' ) end [2025-03-26 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769720', 'tblTempVendorCDR_20' ) start [2025-03-26 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769720', 'tblTempVendorCDR_20' ) end [2025-03-26 21:56:19] Production.INFO: ProcessCDR(1,14769720,1,1,2) [2025-03-26 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769720', 'tblTempUsageDetail_20' ) start [2025-03-26 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769720', 'tblTempUsageDetail_20' ) end [2025-03-26 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:56:22] Production.INFO: ==21808== Releasing lock... [2025-03-26 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:56:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-26 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:57:05 [end_date_ymd] => 2025-03-26 21:57:05 [RateCDR] => 1 ) [2025-03-26 21: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-26 18:57:05' and `end` < '2025-03-26 21: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-26 21:57:18] Production.INFO: count ==2386 [2025-03-26 21:57:18] Production.ERROR: pbx CDR StartTime 2025-03-26 18:57:05 - End Time 2025-03-26 21:57:05 [2025-03-26 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769725', 'tblTempUsageDetail_20' ) start [2025-03-26 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769725', 'tblTempUsageDetail_20' ) end [2025-03-26 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769725', 'tblTempVendorCDR_20' ) start [2025-03-26 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769725', 'tblTempVendorCDR_20' ) end [2025-03-26 21:57:18] Production.INFO: ProcessCDR(1,14769725,1,1,2) [2025-03-26 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769725', 'tblTempUsageDetail_20' ) start [2025-03-26 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769725', 'tblTempUsageDetail_20' ) end [2025-03-26 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:57:22] Production.INFO: ==21877== Releasing lock... [2025-03-26 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:57:22] Production.INFO: 46 MB #Memory Used# [2025-03-26 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:58:05 [end_date_ymd] => 2025-03-26 21:58:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:58:05' and `end` < '2025-03-26 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-26 21:58:18] Production.INFO: count ==2391 [2025-03-26 21:58:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:58:05 - End Time 2025-03-26 21:58:05 [2025-03-26 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769730', 'tblTempUsageDetail_20' ) start [2025-03-26 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769730', 'tblTempUsageDetail_20' ) end [2025-03-26 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769730', 'tblTempVendorCDR_20' ) start [2025-03-26 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769730', 'tblTempVendorCDR_20' ) end [2025-03-26 21:58:19] Production.INFO: ProcessCDR(1,14769730,1,1,2) [2025-03-26 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769730', 'tblTempUsageDetail_20' ) start [2025-03-26 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769730', 'tblTempUsageDetail_20' ) end [2025-03-26 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:58:22] Production.INFO: ==21951== Releasing lock... [2025-03-26 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:58:22] Production.INFO: 46 MB #Memory Used# [2025-03-26 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 18:59:05 [end_date_ymd] => 2025-03-26 21:59:05 [RateCDR] => 1 ) [2025-03-26 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-26 18:59:05' and `end` < '2025-03-26 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-26 21:59:18] Production.INFO: count ==2363 [2025-03-26 21:59:19] Production.ERROR: pbx CDR StartTime 2025-03-26 18:59:05 - End Time 2025-03-26 21:59:05 [2025-03-26 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769735', 'tblTempUsageDetail_20' ) start [2025-03-26 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769735', 'tblTempUsageDetail_20' ) end [2025-03-26 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769735', 'tblTempVendorCDR_20' ) start [2025-03-26 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769735', 'tblTempVendorCDR_20' ) end [2025-03-26 21:59:19] Production.INFO: ProcessCDR(1,14769735,1,1,2) [2025-03-26 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769735', 'tblTempUsageDetail_20' ) start [2025-03-26 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769735', 'tblTempUsageDetail_20' ) end [2025-03-26 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 21:59:22] Production.INFO: ==22021== Releasing lock... [2025-03-26 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 21:59:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-26 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:00:06 [end_date_ymd] => 2025-03-26 22:00:06 [RateCDR] => 1 ) [2025-03-26 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-26 19:00:06' and `end` < '2025-03-26 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-26 22:00:18] Production.INFO: count ==2354 [2025-03-26 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:00:06 - End Time 2025-03-26 22:00:06 [2025-03-26 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769741', 'tblTempUsageDetail_20' ) start [2025-03-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769741', 'tblTempUsageDetail_20' ) end [2025-03-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769741', 'tblTempVendorCDR_20' ) start [2025-03-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769741', 'tblTempVendorCDR_20' ) end [2025-03-26 22:00:19] Production.INFO: ProcessCDR(1,14769741,1,1,2) [2025-03-26 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769741', 'tblTempUsageDetail_20' ) start [2025-03-26 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769741', 'tblTempUsageDetail_20' ) end [2025-03-26 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:00:23] Production.INFO: ==22100== Releasing lock... [2025-03-26 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:00:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-26 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:01:05 [end_date_ymd] => 2025-03-26 22:01:05 [RateCDR] => 1 ) [2025-03-26 22: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-26 19:01:05' and `end` < '2025-03-26 22: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-26 22:01:18] Production.INFO: count ==2223 [2025-03-26 22:01:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:01:05 - End Time 2025-03-26 22:01:05 [2025-03-26 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769746', 'tblTempUsageDetail_20' ) start [2025-03-26 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769746', 'tblTempUsageDetail_20' ) end [2025-03-26 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769746', 'tblTempVendorCDR_20' ) start [2025-03-26 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769746', 'tblTempVendorCDR_20' ) end [2025-03-26 22:01:19] Production.INFO: ProcessCDR(1,14769746,1,1,2) [2025-03-26 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769746', 'tblTempUsageDetail_20' ) start [2025-03-26 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769746', 'tblTempUsageDetail_20' ) end [2025-03-26 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:01:22] Production.INFO: ==22187== Releasing lock... [2025-03-26 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:01:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-26 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:02:06 [end_date_ymd] => 2025-03-26 22:02:06 [RateCDR] => 1 ) [2025-03-26 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-26 19:02:06' and `end` < '2025-03-26 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-26 22:02:18] Production.INFO: count ==2219 [2025-03-26 22:02:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:02:06 - End Time 2025-03-26 22:02:06 [2025-03-26 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769749', 'tblTempUsageDetail_20' ) start [2025-03-26 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769749', 'tblTempUsageDetail_20' ) end [2025-03-26 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769749', 'tblTempVendorCDR_20' ) start [2025-03-26 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769749', 'tblTempVendorCDR_20' ) end [2025-03-26 22:02:19] Production.INFO: ProcessCDR(1,14769749,1,1,2) [2025-03-26 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769749', 'tblTempUsageDetail_20' ) start [2025-03-26 22:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769749', 'tblTempUsageDetail_20' ) end [2025-03-26 22:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:02:24] Production.INFO: ==22262== Releasing lock... [2025-03-26 22:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:02:24] Production.INFO: 45 MB #Memory Used# [2025-03-26 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:03:05 [end_date_ymd] => 2025-03-26 22:03:05 [RateCDR] => 1 ) [2025-03-26 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:03:05' and `end` < '2025-03-26 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:03:18] Production.INFO: count ==2212 [2025-03-26 22:03:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:03:05 - End Time 2025-03-26 22:03:05 [2025-03-26 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769756', 'tblTempUsageDetail_20' ) start [2025-03-26 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769756', 'tblTempUsageDetail_20' ) end [2025-03-26 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769756', 'tblTempVendorCDR_20' ) start [2025-03-26 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769756', 'tblTempVendorCDR_20' ) end [2025-03-26 22:03:19] Production.INFO: ProcessCDR(1,14769756,1,1,2) [2025-03-26 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769756', 'tblTempUsageDetail_20' ) start [2025-03-26 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769756', 'tblTempUsageDetail_20' ) end [2025-03-26 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:03:22] Production.INFO: ==22335== Releasing lock... [2025-03-26 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:03:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-26 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:04:06 [end_date_ymd] => 2025-03-26 22:04:06 [RateCDR] => 1 ) [2025-03-26 22:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:04:06' and `end` < '2025-03-26 22:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:04:18] Production.INFO: count ==2190 [2025-03-26 22:04:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:04:06 - End Time 2025-03-26 22:04:06 [2025-03-26 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769761', 'tblTempUsageDetail_20' ) start [2025-03-26 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769761', 'tblTempUsageDetail_20' ) end [2025-03-26 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769761', 'tblTempVendorCDR_20' ) start [2025-03-26 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769761', 'tblTempVendorCDR_20' ) end [2025-03-26 22:04:19] Production.INFO: ProcessCDR(1,14769761,1,1,2) [2025-03-26 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769761', 'tblTempUsageDetail_20' ) start [2025-03-26 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769761', 'tblTempUsageDetail_20' ) end [2025-03-26 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:04:22] Production.INFO: ==22406== Releasing lock... [2025-03-26 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:04:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-26 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:05:05 [end_date_ymd] => 2025-03-26 22:05:05 [RateCDR] => 1 ) [2025-03-26 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:05:05' and `end` < '2025-03-26 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:05:18] Production.INFO: count ==2188 [2025-03-26 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:05:05 - End Time 2025-03-26 22:05:05 [2025-03-26 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769766', 'tblTempUsageDetail_20' ) start [2025-03-26 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769766', 'tblTempUsageDetail_20' ) end [2025-03-26 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769766', 'tblTempVendorCDR_20' ) start [2025-03-26 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769766', 'tblTempVendorCDR_20' ) end [2025-03-26 22:05:18] Production.INFO: ProcessCDR(1,14769766,1,1,2) [2025-03-26 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769766', 'tblTempUsageDetail_20' ) start [2025-03-26 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769766', 'tblTempUsageDetail_20' ) end [2025-03-26 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:05:22] Production.INFO: ==22477== Releasing lock... [2025-03-26 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:05:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-26 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:06:05 [end_date_ymd] => 2025-03-26 22:06:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:06:05' and `end` < '2025-03-26 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-26 22:06:18] Production.INFO: count ==2193 [2025-03-26 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:06:05 - End Time 2025-03-26 22:06:05 [2025-03-26 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769771', 'tblTempUsageDetail_20' ) start [2025-03-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769771', 'tblTempUsageDetail_20' ) end [2025-03-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769771', 'tblTempVendorCDR_20' ) start [2025-03-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769771', 'tblTempVendorCDR_20' ) end [2025-03-26 22:06:18] Production.INFO: ProcessCDR(1,14769771,1,1,2) [2025-03-26 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769771', 'tblTempUsageDetail_20' ) start [2025-03-26 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769771', 'tblTempUsageDetail_20' ) end [2025-03-26 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:06:22] Production.INFO: ==22552== Releasing lock... [2025-03-26 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:06:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-26 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:07:05 [end_date_ymd] => 2025-03-26 22:07:05 [RateCDR] => 1 ) [2025-03-26 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:07:05' and `end` < '2025-03-26 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:07:17] Production.INFO: count ==2190 [2025-03-26 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:07:05 - End Time 2025-03-26 22:07:05 [2025-03-26 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769776', 'tblTempUsageDetail_20' ) start [2025-03-26 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769776', 'tblTempUsageDetail_20' ) end [2025-03-26 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769776', 'tblTempVendorCDR_20' ) start [2025-03-26 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769776', 'tblTempVendorCDR_20' ) end [2025-03-26 22:07:18] Production.INFO: ProcessCDR(1,14769776,1,1,2) [2025-03-26 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769776', 'tblTempUsageDetail_20' ) start [2025-03-26 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769776', 'tblTempUsageDetail_20' ) end [2025-03-26 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:07:21] Production.INFO: ==22662== Releasing lock... [2025-03-26 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:07:21] Production.INFO: 44.5 MB #Memory Used# [2025-03-26 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:08:05 [end_date_ymd] => 2025-03-26 22:08:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:08:05' and `end` < '2025-03-26 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:08:18] Production.INFO: count ==2189 [2025-03-26 22:08:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:08:05 - End Time 2025-03-26 22:08:05 [2025-03-26 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769781', 'tblTempUsageDetail_20' ) start [2025-03-26 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769781', 'tblTempUsageDetail_20' ) end [2025-03-26 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769781', 'tblTempVendorCDR_20' ) start [2025-03-26 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769781', 'tblTempVendorCDR_20' ) end [2025-03-26 22:08:19] Production.INFO: ProcessCDR(1,14769781,1,1,2) [2025-03-26 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769781', 'tblTempUsageDetail_20' ) start [2025-03-26 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769781', 'tblTempUsageDetail_20' ) end [2025-03-26 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:08:22] Production.INFO: ==22738== Releasing lock... [2025-03-26 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:08:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-26 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:09:05 [end_date_ymd] => 2025-03-26 22:09:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:09:05' and `end` < '2025-03-26 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-26 22:09:18] Production.INFO: count ==2190 [2025-03-26 22:09:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:09:05 - End Time 2025-03-26 22:09:05 [2025-03-26 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769786', 'tblTempUsageDetail_20' ) start [2025-03-26 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769786', 'tblTempUsageDetail_20' ) end [2025-03-26 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769786', 'tblTempVendorCDR_20' ) start [2025-03-26 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769786', 'tblTempVendorCDR_20' ) end [2025-03-26 22:09:18] Production.INFO: ProcessCDR(1,14769786,1,1,2) [2025-03-26 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769786', 'tblTempUsageDetail_20' ) start [2025-03-26 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769786', 'tblTempUsageDetail_20' ) end [2025-03-26 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:09:22] Production.INFO: ==22812== Releasing lock... [2025-03-26 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:09:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-26 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:10:06 [end_date_ymd] => 2025-03-26 22:10:06 [RateCDR] => 1 ) [2025-03-26 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-26 19:10:06' and `end` < '2025-03-26 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-26 22:10:18] Production.INFO: count ==2173 [2025-03-26 22:10:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:10:06 - End Time 2025-03-26 22:10:06 [2025-03-26 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769792', 'tblTempUsageDetail_20' ) start [2025-03-26 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769792', 'tblTempUsageDetail_20' ) end [2025-03-26 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769792', 'tblTempVendorCDR_20' ) start [2025-03-26 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769792', 'tblTempVendorCDR_20' ) end [2025-03-26 22:10:19] Production.INFO: ProcessCDR(1,14769792,1,1,2) [2025-03-26 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769792', 'tblTempUsageDetail_20' ) start [2025-03-26 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769792', 'tblTempUsageDetail_20' ) end [2025-03-26 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:10:23] Production.INFO: ==22886== Releasing lock... [2025-03-26 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:10:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-26 22:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:11:04 [end_date_ymd] => 2025-03-26 22:11:04 [RateCDR] => 1 ) [2025-03-26 22:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:11:04' and `end` < '2025-03-26 22:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:11:17] Production.INFO: count ==2078 [2025-03-26 22:11:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:11:04 - End Time 2025-03-26 22:11:04 [2025-03-26 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769797', 'tblTempUsageDetail_20' ) start [2025-03-26 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769797', 'tblTempUsageDetail_20' ) end [2025-03-26 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769797', 'tblTempVendorCDR_20' ) start [2025-03-26 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769797', 'tblTempVendorCDR_20' ) end [2025-03-26 22:11:18] Production.INFO: ProcessCDR(1,14769797,1,1,2) [2025-03-26 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769797', 'tblTempUsageDetail_20' ) start [2025-03-26 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769797', 'tblTempUsageDetail_20' ) end [2025-03-26 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:11:21] Production.INFO: ==22961== Releasing lock... [2025-03-26 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:11:21] Production.INFO: 43.75 MB #Memory Used# [2025-03-26 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:12:06 [end_date_ymd] => 2025-03-26 22:12:06 [RateCDR] => 1 ) [2025-03-26 22:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:12:06' and `end` < '2025-03-26 22:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:12:18] Production.INFO: count ==2082 [2025-03-26 22:12:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:12:06 - End Time 2025-03-26 22:12:06 [2025-03-26 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769802', 'tblTempUsageDetail_20' ) start [2025-03-26 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769802', 'tblTempUsageDetail_20' ) end [2025-03-26 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769802', 'tblTempVendorCDR_20' ) start [2025-03-26 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769802', 'tblTempVendorCDR_20' ) end [2025-03-26 22:12:19] Production.INFO: ProcessCDR(1,14769802,1,1,2) [2025-03-26 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769802', 'tblTempUsageDetail_20' ) start [2025-03-26 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769802', 'tblTempUsageDetail_20' ) end [2025-03-26 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:12:22] Production.INFO: ==23037== Releasing lock... [2025-03-26 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:12:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-26 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:13:04 [end_date_ymd] => 2025-03-26 22:13:04 [RateCDR] => 1 ) [2025-03-26 22: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-26 19:13:04' and `end` < '2025-03-26 22: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-26 22:13:17] Production.INFO: count ==2080 [2025-03-26 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:13:04 - End Time 2025-03-26 22:13:04 [2025-03-26 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769807', 'tblTempUsageDetail_20' ) start [2025-03-26 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769807', 'tblTempUsageDetail_20' ) end [2025-03-26 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769807', 'tblTempVendorCDR_20' ) start [2025-03-26 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769807', 'tblTempVendorCDR_20' ) end [2025-03-26 22:13:18] Production.INFO: ProcessCDR(1,14769807,1,1,2) [2025-03-26 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769807', 'tblTempUsageDetail_20' ) start [2025-03-26 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769807', 'tblTempUsageDetail_20' ) end [2025-03-26 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:13:21] Production.INFO: ==23109== Releasing lock... [2025-03-26 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:13:21] Production.INFO: 43.75 MB #Memory Used# [2025-03-26 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:14:05 [end_date_ymd] => 2025-03-26 22:14:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:14:05' and `end` < '2025-03-26 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-26 22:14:18] Production.INFO: count ==2078 [2025-03-26 22:14:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:14:05 - End Time 2025-03-26 22:14:05 [2025-03-26 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769812', 'tblTempUsageDetail_20' ) start [2025-03-26 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769812', 'tblTempUsageDetail_20' ) end [2025-03-26 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769812', 'tblTempVendorCDR_20' ) start [2025-03-26 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769812', 'tblTempVendorCDR_20' ) end [2025-03-26 22:14:18] Production.INFO: ProcessCDR(1,14769812,1,1,2) [2025-03-26 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769812', 'tblTempUsageDetail_20' ) start [2025-03-26 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769812', 'tblTempUsageDetail_20' ) end [2025-03-26 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:14:22] Production.INFO: ==23187== Releasing lock... [2025-03-26 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:14:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-26 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:15:05 [end_date_ymd] => 2025-03-26 22:15:05 [RateCDR] => 1 ) [2025-03-26 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:15:05' and `end` < '2025-03-26 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:15:18] Production.INFO: count ==2070 [2025-03-26 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:15:05 - End Time 2025-03-26 22:15:05 [2025-03-26 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769817', 'tblTempUsageDetail_20' ) start [2025-03-26 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769817', 'tblTempUsageDetail_20' ) end [2025-03-26 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769817', 'tblTempVendorCDR_20' ) start [2025-03-26 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769817', 'tblTempVendorCDR_20' ) end [2025-03-26 22:15:19] Production.INFO: ProcessCDR(1,14769817,1,1,2) [2025-03-26 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769817', 'tblTempUsageDetail_20' ) start [2025-03-26 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769817', 'tblTempUsageDetail_20' ) end [2025-03-26 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:15:22] Production.INFO: ==23267== Releasing lock... [2025-03-26 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:15:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-26 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:16:05 [end_date_ymd] => 2025-03-26 22:16:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:16:05' and `end` < '2025-03-26 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-26 22:16:18] Production.INFO: count ==2069 [2025-03-26 22:16:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:16:05 - End Time 2025-03-26 22:16:05 [2025-03-26 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769822', 'tblTempUsageDetail_20' ) start [2025-03-26 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769822', 'tblTempUsageDetail_20' ) end [2025-03-26 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769822', 'tblTempVendorCDR_20' ) start [2025-03-26 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769822', 'tblTempVendorCDR_20' ) end [2025-03-26 22:16:19] Production.INFO: ProcessCDR(1,14769822,1,1,2) [2025-03-26 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769822', 'tblTempUsageDetail_20' ) start [2025-03-26 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769822', 'tblTempUsageDetail_20' ) end [2025-03-26 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:16:22] Production.INFO: ==23345== Releasing lock... [2025-03-26 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:16:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-26 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:17:05 [end_date_ymd] => 2025-03-26 22:17:05 [RateCDR] => 1 ) [2025-03-26 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:17:05' and `end` < '2025-03-26 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:17:18] Production.INFO: count ==2069 [2025-03-26 22:17:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:17:05 - End Time 2025-03-26 22:17:05 [2025-03-26 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769827', 'tblTempUsageDetail_20' ) start [2025-03-26 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769827', 'tblTempUsageDetail_20' ) end [2025-03-26 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769827', 'tblTempVendorCDR_20' ) start [2025-03-26 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769827', 'tblTempVendorCDR_20' ) end [2025-03-26 22:17:19] Production.INFO: ProcessCDR(1,14769827,1,1,2) [2025-03-26 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769827', 'tblTempUsageDetail_20' ) start [2025-03-26 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769827', 'tblTempUsageDetail_20' ) end [2025-03-26 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:17:22] Production.INFO: ==23417== Releasing lock... [2025-03-26 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:17:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-26 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:18:05 [end_date_ymd] => 2025-03-26 22:18:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:18:05' and `end` < '2025-03-26 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-26 22:18:18] Production.INFO: count ==2058 [2025-03-26 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:18:05 - End Time 2025-03-26 22:18:05 [2025-03-26 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769832', 'tblTempUsageDetail_20' ) start [2025-03-26 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769832', 'tblTempUsageDetail_20' ) end [2025-03-26 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769832', 'tblTempVendorCDR_20' ) start [2025-03-26 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769832', 'tblTempVendorCDR_20' ) end [2025-03-26 22:18:18] Production.INFO: ProcessCDR(1,14769832,1,1,2) [2025-03-26 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769832', 'tblTempUsageDetail_20' ) start [2025-03-26 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769832', 'tblTempUsageDetail_20' ) end [2025-03-26 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:18:22] Production.INFO: ==23488== Releasing lock... [2025-03-26 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:18:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-26 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:19:05 [end_date_ymd] => 2025-03-26 22:19:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:19:05' and `end` < '2025-03-26 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-26 22:19:18] Production.INFO: count ==2055 [2025-03-26 22:19:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:19:05 - End Time 2025-03-26 22:19:05 [2025-03-26 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769837', 'tblTempUsageDetail_20' ) start [2025-03-26 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769837', 'tblTempUsageDetail_20' ) end [2025-03-26 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769837', 'tblTempVendorCDR_20' ) start [2025-03-26 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769837', 'tblTempVendorCDR_20' ) end [2025-03-26 22:19:19] Production.INFO: ProcessCDR(1,14769837,1,1,2) [2025-03-26 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769837', 'tblTempUsageDetail_20' ) start [2025-03-26 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769837', 'tblTempUsageDetail_20' ) end [2025-03-26 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:19:22] Production.INFO: ==23564== Releasing lock... [2025-03-26 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:19:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-26 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:20:05 [end_date_ymd] => 2025-03-26 22:20:05 [RateCDR] => 1 ) [2025-03-26 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:20:05' and `end` < '2025-03-26 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:20:18] Production.INFO: count ==2059 [2025-03-26 22:20:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:20:05 - End Time 2025-03-26 22:20:05 [2025-03-26 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769842', 'tblTempUsageDetail_20' ) start [2025-03-26 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769842', 'tblTempUsageDetail_20' ) end [2025-03-26 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769842', 'tblTempVendorCDR_20' ) start [2025-03-26 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769842', 'tblTempVendorCDR_20' ) end [2025-03-26 22:20:18] Production.INFO: ProcessCDR(1,14769842,1,1,2) [2025-03-26 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769842', 'tblTempUsageDetail_20' ) start [2025-03-26 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769842', 'tblTempUsageDetail_20' ) end [2025-03-26 22:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:20:24] Production.INFO: ==23643== Releasing lock... [2025-03-26 22:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:20:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-26 22:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:21:06 [end_date_ymd] => 2025-03-26 22:21:06 [RateCDR] => 1 ) [2025-03-26 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-26 19:21:06' and `end` < '2025-03-26 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-26 22:21:18] Production.INFO: count ==1932 [2025-03-26 22:21:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:21:06 - End Time 2025-03-26 22:21:06 [2025-03-26 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769848', 'tblTempUsageDetail_20' ) start [2025-03-26 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769848', 'tblTempUsageDetail_20' ) end [2025-03-26 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769848', 'tblTempVendorCDR_20' ) start [2025-03-26 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769848', 'tblTempVendorCDR_20' ) end [2025-03-26 22:21:19] Production.INFO: ProcessCDR(1,14769848,1,1,2) [2025-03-26 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769848', 'tblTempUsageDetail_20' ) start [2025-03-26 22:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769848', 'tblTempUsageDetail_20' ) end [2025-03-26 22:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:21:24] Production.INFO: ==23722== Releasing lock... [2025-03-26 22:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:21:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-26 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:22:05 [end_date_ymd] => 2025-03-26 22:22:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:22:05' and `end` < '2025-03-26 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-26 22:22:18] Production.INFO: count ==1930 [2025-03-26 22:22:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:22:05 - End Time 2025-03-26 22:22:05 [2025-03-26 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769853', 'tblTempUsageDetail_20' ) start [2025-03-26 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769853', 'tblTempUsageDetail_20' ) end [2025-03-26 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769853', 'tblTempVendorCDR_20' ) start [2025-03-26 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769853', 'tblTempVendorCDR_20' ) end [2025-03-26 22:22:19] Production.INFO: ProcessCDR(1,14769853,1,1,2) [2025-03-26 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769853', 'tblTempUsageDetail_20' ) start [2025-03-26 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769853', 'tblTempUsageDetail_20' ) end [2025-03-26 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:22:22] Production.INFO: ==23794== Releasing lock... [2025-03-26 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:22:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-26 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:23:06 [end_date_ymd] => 2025-03-26 22:23:06 [RateCDR] => 1 ) [2025-03-26 22: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-26 19:23:06' and `end` < '2025-03-26 22: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-26 22:23:18] Production.INFO: count ==1915 [2025-03-26 22:23:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:23:06 - End Time 2025-03-26 22:23:06 [2025-03-26 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769858', 'tblTempUsageDetail_20' ) start [2025-03-26 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769858', 'tblTempUsageDetail_20' ) end [2025-03-26 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769858', 'tblTempVendorCDR_20' ) start [2025-03-26 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769858', 'tblTempVendorCDR_20' ) end [2025-03-26 22:23:19] Production.INFO: ProcessCDR(1,14769858,1,1,2) [2025-03-26 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769858', 'tblTempUsageDetail_20' ) start [2025-03-26 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769858', 'tblTempUsageDetail_20' ) end [2025-03-26 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:23:22] Production.INFO: ==23904== Releasing lock... [2025-03-26 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:23:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-26 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:24:05 [end_date_ymd] => 2025-03-26 22:24:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:24:05' and `end` < '2025-03-26 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-26 22:24:18] Production.INFO: count ==1906 [2025-03-26 22:24:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:24:05 - End Time 2025-03-26 22:24:05 [2025-03-26 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769863', 'tblTempUsageDetail_20' ) start [2025-03-26 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769863', 'tblTempUsageDetail_20' ) end [2025-03-26 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769863', 'tblTempVendorCDR_20' ) start [2025-03-26 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769863', 'tblTempVendorCDR_20' ) end [2025-03-26 22:24:19] Production.INFO: ProcessCDR(1,14769863,1,1,2) [2025-03-26 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769863', 'tblTempUsageDetail_20' ) start [2025-03-26 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769863', 'tblTempUsageDetail_20' ) end [2025-03-26 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:24:22] Production.INFO: ==23978== Releasing lock... [2025-03-26 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:24:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-26 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:25:05 [end_date_ymd] => 2025-03-26 22:25:05 [RateCDR] => 1 ) [2025-03-26 22: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-26 19:25:05' and `end` < '2025-03-26 22: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-26 22:25:18] Production.INFO: count ==1917 [2025-03-26 22:25:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:25:05 - End Time 2025-03-26 22:25:05 [2025-03-26 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769868', 'tblTempUsageDetail_20' ) start [2025-03-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769868', 'tblTempUsageDetail_20' ) end [2025-03-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769868', 'tblTempVendorCDR_20' ) start [2025-03-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769868', 'tblTempVendorCDR_20' ) end [2025-03-26 22:25:18] Production.INFO: ProcessCDR(1,14769868,1,1,2) [2025-03-26 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769868', 'tblTempUsageDetail_20' ) start [2025-03-26 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769868', 'tblTempUsageDetail_20' ) end [2025-03-26 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:25:22] Production.INFO: ==24051== Releasing lock... [2025-03-26 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:25:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-26 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:26:05 [end_date_ymd] => 2025-03-26 22:26:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:26:05' and `end` < '2025-03-26 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-26 22:26:18] Production.INFO: count ==1917 [2025-03-26 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:26:05 - End Time 2025-03-26 22:26:05 [2025-03-26 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769873', 'tblTempUsageDetail_20' ) start [2025-03-26 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769873', 'tblTempUsageDetail_20' ) end [2025-03-26 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769873', 'tblTempVendorCDR_20' ) start [2025-03-26 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769873', 'tblTempVendorCDR_20' ) end [2025-03-26 22:26:18] Production.INFO: ProcessCDR(1,14769873,1,1,2) [2025-03-26 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769873', 'tblTempUsageDetail_20' ) start [2025-03-26 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769873', 'tblTempUsageDetail_20' ) end [2025-03-26 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:26:23] Production.INFO: ==24124== Releasing lock... [2025-03-26 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:26:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-26 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:27:05 [end_date_ymd] => 2025-03-26 22:27:05 [RateCDR] => 1 ) [2025-03-26 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:27:05' and `end` < '2025-03-26 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:27:17] Production.INFO: count ==1923 [2025-03-26 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:27:05 - End Time 2025-03-26 22:27:05 [2025-03-26 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769878', 'tblTempUsageDetail_20' ) start [2025-03-26 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769878', 'tblTempUsageDetail_20' ) end [2025-03-26 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769878', 'tblTempVendorCDR_20' ) start [2025-03-26 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769878', 'tblTempVendorCDR_20' ) end [2025-03-26 22:27:18] Production.INFO: ProcessCDR(1,14769878,1,1,2) [2025-03-26 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769878', 'tblTempUsageDetail_20' ) start [2025-03-26 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769878', 'tblTempUsageDetail_20' ) end [2025-03-26 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:27:21] Production.INFO: ==24197== Releasing lock... [2025-03-26 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:27:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-26 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:28:05 [end_date_ymd] => 2025-03-26 22:28:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:28:05' and `end` < '2025-03-26 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-26 22:28:18] Production.INFO: count ==1922 [2025-03-26 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:28:05 - End Time 2025-03-26 22:28:05 [2025-03-26 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769883', 'tblTempUsageDetail_20' ) start [2025-03-26 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769883', 'tblTempUsageDetail_20' ) end [2025-03-26 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769883', 'tblTempVendorCDR_20' ) start [2025-03-26 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769883', 'tblTempVendorCDR_20' ) end [2025-03-26 22:28:18] Production.INFO: ProcessCDR(1,14769883,1,1,2) [2025-03-26 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769883', 'tblTempUsageDetail_20' ) start [2025-03-26 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769883', 'tblTempUsageDetail_20' ) end [2025-03-26 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:28:22] Production.INFO: ==24273== Releasing lock... [2025-03-26 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:28:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-26 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:29:05 [end_date_ymd] => 2025-03-26 22:29:05 [RateCDR] => 1 ) [2025-03-26 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:29:05' and `end` < '2025-03-26 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:29:18] Production.INFO: count ==1921 [2025-03-26 22:29:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:29:05 - End Time 2025-03-26 22:29:05 [2025-03-26 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769888', 'tblTempUsageDetail_20' ) start [2025-03-26 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769888', 'tblTempUsageDetail_20' ) end [2025-03-26 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769888', 'tblTempVendorCDR_20' ) start [2025-03-26 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769888', 'tblTempVendorCDR_20' ) end [2025-03-26 22:29:19] Production.INFO: ProcessCDR(1,14769888,1,1,2) [2025-03-26 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769888', 'tblTempUsageDetail_20' ) start [2025-03-26 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769888', 'tblTempUsageDetail_20' ) end [2025-03-26 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:29:22] Production.INFO: ==24347== Releasing lock... [2025-03-26 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:29:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-26 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:30:06 [end_date_ymd] => 2025-03-26 22:30:06 [RateCDR] => 1 ) [2025-03-26 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-26 19:30:06' and `end` < '2025-03-26 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-26 22:30:18] Production.INFO: count ==1917 [2025-03-26 22:30:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:30:06 - End Time 2025-03-26 22:30:06 [2025-03-26 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769894', 'tblTempUsageDetail_20' ) start [2025-03-26 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769894', 'tblTempUsageDetail_20' ) end [2025-03-26 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769894', 'tblTempVendorCDR_20' ) start [2025-03-26 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769894', 'tblTempVendorCDR_20' ) end [2025-03-26 22:30:19] Production.INFO: ProcessCDR(1,14769894,1,1,2) [2025-03-26 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769894', 'tblTempUsageDetail_20' ) start [2025-03-26 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769894', 'tblTempUsageDetail_20' ) end [2025-03-26 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:30:22] Production.INFO: ==24423== Releasing lock... [2025-03-26 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:30:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-26 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:31:05 [end_date_ymd] => 2025-03-26 22:31:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:31:05' and `end` < '2025-03-26 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-26 22:31:17] Production.INFO: count ==1806 [2025-03-26 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:31:05 - End Time 2025-03-26 22:31:05 [2025-03-26 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769899', 'tblTempUsageDetail_20' ) start [2025-03-26 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769899', 'tblTempUsageDetail_20' ) end [2025-03-26 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769899', 'tblTempVendorCDR_20' ) start [2025-03-26 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769899', 'tblTempVendorCDR_20' ) end [2025-03-26 22:31:18] Production.INFO: ProcessCDR(1,14769899,1,1,2) [2025-03-26 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769899', 'tblTempUsageDetail_20' ) start [2025-03-26 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769899', 'tblTempUsageDetail_20' ) end [2025-03-26 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:31:21] Production.INFO: ==24498== Releasing lock... [2025-03-26 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:31:21] Production.INFO: 41.75 MB #Memory Used# [2025-03-26 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:32:06 [end_date_ymd] => 2025-03-26 22:32:06 [RateCDR] => 1 ) [2025-03-26 22: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-26 19:32:06' and `end` < '2025-03-26 22: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-26 22:32:18] Production.INFO: count ==1799 [2025-03-26 22:32:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:32:06 - End Time 2025-03-26 22:32:06 [2025-03-26 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769904', 'tblTempUsageDetail_20' ) start [2025-03-26 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769904', 'tblTempUsageDetail_20' ) end [2025-03-26 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769904', 'tblTempVendorCDR_20' ) start [2025-03-26 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769904', 'tblTempVendorCDR_20' ) end [2025-03-26 22:32:19] Production.INFO: ProcessCDR(1,14769904,1,1,2) [2025-03-26 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769904', 'tblTempUsageDetail_20' ) start [2025-03-26 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769904', 'tblTempUsageDetail_20' ) end [2025-03-26 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:32:23] Production.INFO: ==24570== Releasing lock... [2025-03-26 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:32:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-26 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:33:05 [end_date_ymd] => 2025-03-26 22:33:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:33:05' and `end` < '2025-03-26 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-26 22:33:17] Production.INFO: count ==1791 [2025-03-26 22:33:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:33:05 - End Time 2025-03-26 22:33:05 [2025-03-26 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769909', 'tblTempUsageDetail_20' ) start [2025-03-26 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769909', 'tblTempUsageDetail_20' ) end [2025-03-26 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769909', 'tblTempVendorCDR_20' ) start [2025-03-26 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769909', 'tblTempVendorCDR_20' ) end [2025-03-26 22:33:18] Production.INFO: ProcessCDR(1,14769909,1,1,2) [2025-03-26 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769909', 'tblTempUsageDetail_20' ) start [2025-03-26 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769909', 'tblTempUsageDetail_20' ) end [2025-03-26 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:33:21] Production.INFO: ==24641== Releasing lock... [2025-03-26 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:33:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-26 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:34:05 [end_date_ymd] => 2025-03-26 22:34:05 [RateCDR] => 1 ) [2025-03-26 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:34:05' and `end` < '2025-03-26 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:34:18] Production.INFO: count ==1780 [2025-03-26 22:34:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:34:05 - End Time 2025-03-26 22:34:05 [2025-03-26 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769914', 'tblTempUsageDetail_20' ) start [2025-03-26 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769914', 'tblTempUsageDetail_20' ) end [2025-03-26 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769914', 'tblTempVendorCDR_20' ) start [2025-03-26 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769914', 'tblTempVendorCDR_20' ) end [2025-03-26 22:34:19] Production.INFO: ProcessCDR(1,14769914,1,1,2) [2025-03-26 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769914', 'tblTempUsageDetail_20' ) start [2025-03-26 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769914', 'tblTempUsageDetail_20' ) end [2025-03-26 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:34:22] Production.INFO: ==24718== Releasing lock... [2025-03-26 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:34:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-26 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:35:05 [end_date_ymd] => 2025-03-26 22:35:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:35:05' and `end` < '2025-03-26 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-26 22:35:18] Production.INFO: count ==1780 [2025-03-26 22:35:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:35:05 - End Time 2025-03-26 22:35:05 [2025-03-26 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769919', 'tblTempUsageDetail_20' ) start [2025-03-26 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769919', 'tblTempUsageDetail_20' ) end [2025-03-26 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769919', 'tblTempVendorCDR_20' ) start [2025-03-26 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769919', 'tblTempVendorCDR_20' ) end [2025-03-26 22:35:18] Production.INFO: ProcessCDR(1,14769919,1,1,2) [2025-03-26 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769919', 'tblTempUsageDetail_20' ) start [2025-03-26 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769919', 'tblTempUsageDetail_20' ) end [2025-03-26 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:35:22] Production.INFO: ==24792== Releasing lock... [2025-03-26 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:35:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-26 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:36:05 [end_date_ymd] => 2025-03-26 22:36:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:36:05' and `end` < '2025-03-26 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-26 22:36:18] Production.INFO: count ==1779 [2025-03-26 22:36:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:36:05 - End Time 2025-03-26 22:36:05 [2025-03-26 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769924', 'tblTempUsageDetail_20' ) start [2025-03-26 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769924', 'tblTempUsageDetail_20' ) end [2025-03-26 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769924', 'tblTempVendorCDR_20' ) start [2025-03-26 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769924', 'tblTempVendorCDR_20' ) end [2025-03-26 22:36:19] Production.INFO: ProcessCDR(1,14769924,1,1,2) [2025-03-26 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769924', 'tblTempUsageDetail_20' ) start [2025-03-26 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769924', 'tblTempUsageDetail_20' ) end [2025-03-26 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:36:22] Production.INFO: ==24865== Releasing lock... [2025-03-26 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:36:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-26 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:37:05 [end_date_ymd] => 2025-03-26 22:37:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:37:05' and `end` < '2025-03-26 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-26 22:37:18] Production.INFO: count ==1778 [2025-03-26 22:37:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:37:05 - End Time 2025-03-26 22:37:05 [2025-03-26 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769929', 'tblTempUsageDetail_20' ) start [2025-03-26 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769929', 'tblTempUsageDetail_20' ) end [2025-03-26 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769929', 'tblTempVendorCDR_20' ) start [2025-03-26 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769929', 'tblTempVendorCDR_20' ) end [2025-03-26 22:37:18] Production.INFO: ProcessCDR(1,14769929,1,1,2) [2025-03-26 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769929', 'tblTempUsageDetail_20' ) start [2025-03-26 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769929', 'tblTempUsageDetail_20' ) end [2025-03-26 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:37:22] Production.INFO: ==24936== Releasing lock... [2025-03-26 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:37:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-26 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:38:06 [end_date_ymd] => 2025-03-26 22:38:06 [RateCDR] => 1 ) [2025-03-26 22: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-26 19:38:06' and `end` < '2025-03-26 22: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-26 22:38:18] Production.INFO: count ==1776 [2025-03-26 22:38:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:38:06 - End Time 2025-03-26 22:38:06 [2025-03-26 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769934', 'tblTempUsageDetail_20' ) start [2025-03-26 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769934', 'tblTempUsageDetail_20' ) end [2025-03-26 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769934', 'tblTempVendorCDR_20' ) start [2025-03-26 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769934', 'tblTempVendorCDR_20' ) end [2025-03-26 22:38:19] Production.INFO: ProcessCDR(1,14769934,1,1,2) [2025-03-26 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769934', 'tblTempUsageDetail_20' ) start [2025-03-26 22:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769934', 'tblTempUsageDetail_20' ) end [2025-03-26 22:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:38:24] Production.INFO: ==25049== Releasing lock... [2025-03-26 22:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:38:24] Production.INFO: 41 MB #Memory Used# [2025-03-26 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:39:05 [end_date_ymd] => 2025-03-26 22:39:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:39:05' and `end` < '2025-03-26 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-26 22:39:17] Production.INFO: count ==1773 [2025-03-26 22:39:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:39:05 - End Time 2025-03-26 22:39:05 [2025-03-26 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769939', 'tblTempUsageDetail_20' ) start [2025-03-26 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769939', 'tblTempUsageDetail_20' ) end [2025-03-26 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769939', 'tblTempVendorCDR_20' ) start [2025-03-26 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769939', 'tblTempVendorCDR_20' ) end [2025-03-26 22:39:18] Production.INFO: ProcessCDR(1,14769939,1,1,2) [2025-03-26 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769939', 'tblTempUsageDetail_20' ) start [2025-03-26 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769939', 'tblTempUsageDetail_20' ) end [2025-03-26 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:39:21] Production.INFO: ==25127== Releasing lock... [2025-03-26 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:39:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-26 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:40:06 [end_date_ymd] => 2025-03-26 22:40:06 [RateCDR] => 1 ) [2025-03-26 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:40:06' and `end` < '2025-03-26 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:40:19] Production.INFO: count ==1771 [2025-03-26 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:40:06 - End Time 2025-03-26 22:40:06 [2025-03-26 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769945', 'tblTempUsageDetail_20' ) start [2025-03-26 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769945', 'tblTempUsageDetail_20' ) end [2025-03-26 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769945', 'tblTempVendorCDR_20' ) start [2025-03-26 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769945', 'tblTempVendorCDR_20' ) end [2025-03-26 22:40:19] Production.INFO: ProcessCDR(1,14769945,1,1,2) [2025-03-26 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769945', 'tblTempUsageDetail_20' ) start [2025-03-26 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769945', 'tblTempUsageDetail_20' ) end [2025-03-26 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:40:23] Production.INFO: ==25204== Releasing lock... [2025-03-26 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:40:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-26 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:41:05 [end_date_ymd] => 2025-03-26 22:41:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:41:05' and `end` < '2025-03-26 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-26 22:41:17] Production.INFO: count ==1717 [2025-03-26 22:41:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:41:05 - End Time 2025-03-26 22:41:05 [2025-03-26 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769950', 'tblTempUsageDetail_20' ) start [2025-03-26 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769950', 'tblTempUsageDetail_20' ) end [2025-03-26 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769950', 'tblTempVendorCDR_20' ) start [2025-03-26 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769950', 'tblTempVendorCDR_20' ) end [2025-03-26 22:41:18] Production.INFO: ProcessCDR(1,14769950,1,1,2) [2025-03-26 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769950', 'tblTempUsageDetail_20' ) start [2025-03-26 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769950', 'tblTempUsageDetail_20' ) end [2025-03-26 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:41:21] Production.INFO: ==25279== Releasing lock... [2025-03-26 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:41:21] Production.INFO: 41 MB #Memory Used# [2025-03-26 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:42:05 [end_date_ymd] => 2025-03-26 22:42:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:42:05' and `end` < '2025-03-26 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-26 22:42:18] Production.INFO: count ==1716 [2025-03-26 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:42:05 - End Time 2025-03-26 22:42:05 [2025-03-26 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769955', 'tblTempUsageDetail_20' ) start [2025-03-26 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769955', 'tblTempUsageDetail_20' ) end [2025-03-26 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769955', 'tblTempVendorCDR_20' ) start [2025-03-26 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769955', 'tblTempVendorCDR_20' ) end [2025-03-26 22:42:18] Production.INFO: ProcessCDR(1,14769955,1,1,2) [2025-03-26 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769955', 'tblTempUsageDetail_20' ) start [2025-03-26 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769955', 'tblTempUsageDetail_20' ) end [2025-03-26 22:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:42:24] Production.INFO: ==25350== Releasing lock... [2025-03-26 22:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:42:24] Production.INFO: 41 MB #Memory Used# [2025-03-26 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:43:05 [end_date_ymd] => 2025-03-26 22:43:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:43:05' and `end` < '2025-03-26 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-26 22:43:18] Production.INFO: count ==1702 [2025-03-26 22:43:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:43:05 - End Time 2025-03-26 22:43:05 [2025-03-26 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769960', 'tblTempUsageDetail_20' ) start [2025-03-26 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769960', 'tblTempUsageDetail_20' ) end [2025-03-26 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769960', 'tblTempVendorCDR_20' ) start [2025-03-26 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769960', 'tblTempVendorCDR_20' ) end [2025-03-26 22:43:18] Production.INFO: ProcessCDR(1,14769960,1,1,2) [2025-03-26 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769960', 'tblTempUsageDetail_20' ) start [2025-03-26 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769960', 'tblTempUsageDetail_20' ) end [2025-03-26 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:43:23] Production.INFO: ==25423== Releasing lock... [2025-03-26 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:43:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-26 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:44:06 [end_date_ymd] => 2025-03-26 22:44:06 [RateCDR] => 1 ) [2025-03-26 22: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-26 19:44:06' and `end` < '2025-03-26 22: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-26 22:44:18] Production.INFO: count ==1696 [2025-03-26 22:44:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:44:06 - End Time 2025-03-26 22:44:06 [2025-03-26 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769965', 'tblTempUsageDetail_20' ) start [2025-03-26 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769965', 'tblTempUsageDetail_20' ) end [2025-03-26 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769965', 'tblTempVendorCDR_20' ) start [2025-03-26 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769965', 'tblTempVendorCDR_20' ) end [2025-03-26 22:44:19] Production.INFO: ProcessCDR(1,14769965,1,1,2) [2025-03-26 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769965', 'tblTempUsageDetail_20' ) start [2025-03-26 22:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769965', 'tblTempUsageDetail_20' ) end [2025-03-26 22:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:44:24] Production.INFO: ==25497== Releasing lock... [2025-03-26 22:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:44:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-26 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:45:05 [end_date_ymd] => 2025-03-26 22:45:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:45:05' and `end` < '2025-03-26 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-26 22:45:17] Production.INFO: count ==1698 [2025-03-26 22:45:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:45:05 - End Time 2025-03-26 22:45:05 [2025-03-26 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769969', 'tblTempUsageDetail_20' ) start [2025-03-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769969', 'tblTempUsageDetail_20' ) end [2025-03-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769969', 'tblTempVendorCDR_20' ) start [2025-03-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769969', 'tblTempVendorCDR_20' ) end [2025-03-26 22:45:18] Production.INFO: ProcessCDR(1,14769969,1,1,2) [2025-03-26 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769969', 'tblTempUsageDetail_20' ) start [2025-03-26 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769969', 'tblTempUsageDetail_20' ) end [2025-03-26 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:45:21] Production.INFO: ==25567== Releasing lock... [2025-03-26 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:45:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-26 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:46:06 [end_date_ymd] => 2025-03-26 22:46:06 [RateCDR] => 1 ) [2025-03-26 22:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:46:06' and `end` < '2025-03-26 22:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:46:19] Production.INFO: count ==1708 [2025-03-26 22:46:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:46:06 - End Time 2025-03-26 22:46:06 [2025-03-26 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769975', 'tblTempUsageDetail_20' ) start [2025-03-26 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769975', 'tblTempUsageDetail_20' ) end [2025-03-26 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769975', 'tblTempVendorCDR_20' ) start [2025-03-26 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769975', 'tblTempVendorCDR_20' ) end [2025-03-26 22:46:19] Production.INFO: ProcessCDR(1,14769975,1,1,2) [2025-03-26 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769975', 'tblTempUsageDetail_20' ) start [2025-03-26 22:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769975', 'tblTempUsageDetail_20' ) end [2025-03-26 22:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:46:24] Production.INFO: ==25639== Releasing lock... [2025-03-26 22:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:46:24] Production.INFO: 41 MB #Memory Used# [2025-03-26 22:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:47:06 [end_date_ymd] => 2025-03-26 22:47:06 [RateCDR] => 1 ) [2025-03-26 22: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-26 19:47:06' and `end` < '2025-03-26 22: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-26 22:47:19] Production.INFO: count ==1712 [2025-03-26 22:47:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:47:06 - End Time 2025-03-26 22:47:06 [2025-03-26 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769980', 'tblTempUsageDetail_20' ) start [2025-03-26 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769980', 'tblTempUsageDetail_20' ) end [2025-03-26 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769980', 'tblTempVendorCDR_20' ) start [2025-03-26 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769980', 'tblTempVendorCDR_20' ) end [2025-03-26 22:47:19] Production.INFO: ProcessCDR(1,14769980,1,1,2) [2025-03-26 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769980', 'tblTempUsageDetail_20' ) start [2025-03-26 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769980', 'tblTempUsageDetail_20' ) end [2025-03-26 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:47:23] Production.INFO: ==25718== Releasing lock... [2025-03-26 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:47:23] Production.INFO: 41 MB #Memory Used# [2025-03-26 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:48:05 [end_date_ymd] => 2025-03-26 22:48:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:48:05' and `end` < '2025-03-26 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-26 22:48:18] Production.INFO: count ==1711 [2025-03-26 22:48:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:48:05 - End Time 2025-03-26 22:48:05 [2025-03-26 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769985', 'tblTempUsageDetail_20' ) start [2025-03-26 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769985', 'tblTempUsageDetail_20' ) end [2025-03-26 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769985', 'tblTempVendorCDR_20' ) start [2025-03-26 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769985', 'tblTempVendorCDR_20' ) end [2025-03-26 22:48:19] Production.INFO: ProcessCDR(1,14769985,1,1,2) [2025-03-26 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769985', 'tblTempUsageDetail_20' ) start [2025-03-26 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769985', 'tblTempUsageDetail_20' ) end [2025-03-26 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:48:22] Production.INFO: ==25788== Releasing lock... [2025-03-26 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:48:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-26 22:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:49:06 [end_date_ymd] => 2025-03-26 22:49:06 [RateCDR] => 1 ) [2025-03-26 22: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-26 19:49:06' and `end` < '2025-03-26 22: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-26 22:49:18] Production.INFO: count ==1714 [2025-03-26 22:49:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:49:06 - End Time 2025-03-26 22:49:06 [2025-03-26 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769990', 'tblTempUsageDetail_20' ) start [2025-03-26 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769990', 'tblTempUsageDetail_20' ) end [2025-03-26 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769990', 'tblTempVendorCDR_20' ) start [2025-03-26 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769990', 'tblTempVendorCDR_20' ) end [2025-03-26 22:49:19] Production.INFO: ProcessCDR(1,14769990,1,1,2) [2025-03-26 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769990', 'tblTempUsageDetail_20' ) start [2025-03-26 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769990', 'tblTempUsageDetail_20' ) end [2025-03-26 22:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:49:24] Production.INFO: ==25858== Releasing lock... [2025-03-26 22:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:49:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-26 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:50:06 [end_date_ymd] => 2025-03-26 22:50:06 [RateCDR] => 1 ) [2025-03-26 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-26 19:50:06' and `end` < '2025-03-26 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-26 22:50:19] Production.INFO: count ==1687 [2025-03-26 22:50:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:50:06 - End Time 2025-03-26 22:50:06 [2025-03-26 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769996', 'tblTempUsageDetail_20' ) start [2025-03-26 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14769996', 'tblTempUsageDetail_20' ) end [2025-03-26 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769996', 'tblTempVendorCDR_20' ) start [2025-03-26 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14769996', 'tblTempVendorCDR_20' ) end [2025-03-26 22:50:19] Production.INFO: ProcessCDR(1,14769996,1,1,2) [2025-03-26 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14769996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14769996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14769996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14769996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769996', 'tblTempUsageDetail_20' ) start [2025-03-26 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14769996', 'tblTempUsageDetail_20' ) end [2025-03-26 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:50:23] Production.INFO: ==25932== Releasing lock... [2025-03-26 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:50:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-26 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:51:05 [end_date_ymd] => 2025-03-26 22:51:05 [RateCDR] => 1 ) [2025-03-26 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:51:05' and `end` < '2025-03-26 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:51:17] Production.INFO: count ==1620 [2025-03-26 22:51:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:51:05 - End Time 2025-03-26 22:51:05 [2025-03-26 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770001', 'tblTempUsageDetail_20' ) start [2025-03-26 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770001', 'tblTempUsageDetail_20' ) end [2025-03-26 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770001', 'tblTempVendorCDR_20' ) start [2025-03-26 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770001', 'tblTempVendorCDR_20' ) end [2025-03-26 22:51:18] Production.INFO: ProcessCDR(1,14770001,1,1,2) [2025-03-26 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770001', 'tblTempUsageDetail_20' ) start [2025-03-26 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770001', 'tblTempUsageDetail_20' ) end [2025-03-26 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:51:21] Production.INFO: ==26004== Releasing lock... [2025-03-26 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:51:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-26 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:52:05 [end_date_ymd] => 2025-03-26 22:52:05 [RateCDR] => 1 ) [2025-03-26 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:52:05' and `end` < '2025-03-26 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:52:18] Production.INFO: count ==1633 [2025-03-26 22:52:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:52:05 - End Time 2025-03-26 22:52:05 [2025-03-26 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770006', 'tblTempUsageDetail_20' ) start [2025-03-26 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770006', 'tblTempUsageDetail_20' ) end [2025-03-26 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770006', 'tblTempVendorCDR_20' ) start [2025-03-26 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770006', 'tblTempVendorCDR_20' ) end [2025-03-26 22:52:19] Production.INFO: ProcessCDR(1,14770006,1,1,2) [2025-03-26 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770006', 'tblTempUsageDetail_20' ) start [2025-03-26 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770006', 'tblTempUsageDetail_20' ) end [2025-03-26 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:52:22] Production.INFO: ==26075== Releasing lock... [2025-03-26 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:52:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-26 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:53:05 [end_date_ymd] => 2025-03-26 22:53:05 [RateCDR] => 1 ) [2025-03-26 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:53:05' and `end` < '2025-03-26 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:53:18] Production.INFO: count ==1638 [2025-03-26 22:53:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:53:05 - End Time 2025-03-26 22:53:05 [2025-03-26 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770011', 'tblTempUsageDetail_20' ) start [2025-03-26 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770011', 'tblTempUsageDetail_20' ) end [2025-03-26 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770011', 'tblTempVendorCDR_20' ) start [2025-03-26 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770011', 'tblTempVendorCDR_20' ) end [2025-03-26 22:53:18] Production.INFO: ProcessCDR(1,14770011,1,1,2) [2025-03-26 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770011', 'tblTempUsageDetail_20' ) start [2025-03-26 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770011', 'tblTempUsageDetail_20' ) end [2025-03-26 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:53:21] Production.INFO: ==26147== Releasing lock... [2025-03-26 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:53:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-26 22:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:54:06 [end_date_ymd] => 2025-03-26 22:54:06 [RateCDR] => 1 ) [2025-03-26 22:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 19:54:06' and `end` < '2025-03-26 22:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 22:54:18] Production.INFO: count ==1635 [2025-03-26 22:54:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:54:06 - End Time 2025-03-26 22:54:06 [2025-03-26 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770016', 'tblTempUsageDetail_20' ) start [2025-03-26 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770016', 'tblTempUsageDetail_20' ) end [2025-03-26 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770016', 'tblTempVendorCDR_20' ) start [2025-03-26 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770016', 'tblTempVendorCDR_20' ) end [2025-03-26 22:54:19] Production.INFO: ProcessCDR(1,14770016,1,1,2) [2025-03-26 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770016', 'tblTempUsageDetail_20' ) start [2025-03-26 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770016', 'tblTempUsageDetail_20' ) end [2025-03-26 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:54:22] Production.INFO: ==26259== Releasing lock... [2025-03-26 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:54:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-26 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:55:06 [end_date_ymd] => 2025-03-26 22:55:06 [RateCDR] => 1 ) [2025-03-26 22: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-26 19:55:06' and `end` < '2025-03-26 22: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-26 22:55:18] Production.INFO: count ==1631 [2025-03-26 22:55:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:55:06 - End Time 2025-03-26 22:55:06 [2025-03-26 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770021', 'tblTempUsageDetail_20' ) start [2025-03-26 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770021', 'tblTempUsageDetail_20' ) end [2025-03-26 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770021', 'tblTempVendorCDR_20' ) start [2025-03-26 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770021', 'tblTempVendorCDR_20' ) end [2025-03-26 22:55:19] Production.INFO: ProcessCDR(1,14770021,1,1,2) [2025-03-26 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770021', 'tblTempUsageDetail_20' ) start [2025-03-26 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770021', 'tblTempUsageDetail_20' ) end [2025-03-26 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:55:23] Production.INFO: ==26329== Releasing lock... [2025-03-26 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:55:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-26 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:56:05 [end_date_ymd] => 2025-03-26 22:56:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:56:05' and `end` < '2025-03-26 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-26 22:56:18] Production.INFO: count ==1590 [2025-03-26 22:56:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:56:05 - End Time 2025-03-26 22:56:05 [2025-03-26 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770026', 'tblTempUsageDetail_20' ) start [2025-03-26 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770026', 'tblTempUsageDetail_20' ) end [2025-03-26 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770026', 'tblTempVendorCDR_20' ) start [2025-03-26 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770026', 'tblTempVendorCDR_20' ) end [2025-03-26 22:56:18] Production.INFO: ProcessCDR(1,14770026,1,1,2) [2025-03-26 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770026', 'tblTempUsageDetail_20' ) start [2025-03-26 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770026', 'tblTempUsageDetail_20' ) end [2025-03-26 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:56:23] Production.INFO: ==26404== Releasing lock... [2025-03-26 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:56:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-26 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:57:05 [end_date_ymd] => 2025-03-26 22:57:05 [RateCDR] => 1 ) [2025-03-26 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-26 19:57:05' and `end` < '2025-03-26 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-26 22:57:18] Production.INFO: count ==1588 [2025-03-26 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-26 19:57:05 - End Time 2025-03-26 22:57:05 [2025-03-26 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770031', 'tblTempUsageDetail_20' ) start [2025-03-26 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770031', 'tblTempUsageDetail_20' ) end [2025-03-26 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770031', 'tblTempVendorCDR_20' ) start [2025-03-26 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770031', 'tblTempVendorCDR_20' ) end [2025-03-26 22:57:18] Production.INFO: ProcessCDR(1,14770031,1,1,2) [2025-03-26 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770031', 'tblTempUsageDetail_20' ) start [2025-03-26 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770031', 'tblTempUsageDetail_20' ) end [2025-03-26 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:57:23] Production.INFO: ==26478== Releasing lock... [2025-03-26 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:57:23] Production.INFO: 40 MB #Memory Used# [2025-03-26 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:58:06 [end_date_ymd] => 2025-03-26 22:58:06 [RateCDR] => 1 ) [2025-03-26 22: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-26 19:58:06' and `end` < '2025-03-26 22: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-26 22:58:18] Production.INFO: count ==1575 [2025-03-26 22:58:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:58:06 - End Time 2025-03-26 22:58:06 [2025-03-26 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770036', 'tblTempUsageDetail_20' ) start [2025-03-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770036', 'tblTempUsageDetail_20' ) end [2025-03-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770036', 'tblTempVendorCDR_20' ) start [2025-03-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770036', 'tblTempVendorCDR_20' ) end [2025-03-26 22:58:19] Production.INFO: ProcessCDR(1,14770036,1,1,2) [2025-03-26 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770036', 'tblTempUsageDetail_20' ) start [2025-03-26 22:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770036', 'tblTempUsageDetail_20' ) end [2025-03-26 22:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:58:24] Production.INFO: ==26548== Releasing lock... [2025-03-26 22:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:58:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-26 22:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 19:59:06 [end_date_ymd] => 2025-03-26 22:59:06 [RateCDR] => 1 ) [2025-03-26 22: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-26 19:59:06' and `end` < '2025-03-26 22: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-26 22:59:18] Production.INFO: count ==1575 [2025-03-26 22:59:19] Production.ERROR: pbx CDR StartTime 2025-03-26 19:59:06 - End Time 2025-03-26 22:59:06 [2025-03-26 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770041', 'tblTempUsageDetail_20' ) start [2025-03-26 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770041', 'tblTempUsageDetail_20' ) end [2025-03-26 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770041', 'tblTempVendorCDR_20' ) start [2025-03-26 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770041', 'tblTempVendorCDR_20' ) end [2025-03-26 22:59:19] Production.INFO: ProcessCDR(1,14770041,1,1,2) [2025-03-26 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770041', 'tblTempUsageDetail_20' ) start [2025-03-26 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770041', 'tblTempUsageDetail_20' ) end [2025-03-26 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 22:59:22] Production.INFO: ==26627== Releasing lock... [2025-03-26 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 22:59:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-26 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:00:06 [end_date_ymd] => 2025-03-26 23:00:06 [RateCDR] => 1 ) [2025-03-26 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 20:00:06' and `end` < '2025-03-26 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 23:00:19] Production.INFO: count ==1572 [2025-03-26 23:00:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:00:06 - End Time 2025-03-26 23:00:06 [2025-03-26 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770046', 'tblTempUsageDetail_20' ) start [2025-03-26 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770046', 'tblTempUsageDetail_20' ) end [2025-03-26 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770046', 'tblTempVendorCDR_20' ) start [2025-03-26 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770046', 'tblTempVendorCDR_20' ) end [2025-03-26 23:00:19] Production.INFO: ProcessCDR(1,14770046,1,1,2) [2025-03-26 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770046', 'tblTempUsageDetail_20' ) start [2025-03-26 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770046', 'tblTempUsageDetail_20' ) end [2025-03-26 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:00:22] Production.INFO: ==26703== Releasing lock... [2025-03-26 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:00:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-26 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:01:05 [end_date_ymd] => 2025-03-26 23:01:05 [RateCDR] => 1 ) [2025-03-26 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 20:01:05' and `end` < '2025-03-26 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 23:01:18] Production.INFO: count ==1552 [2025-03-26 23:01:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:01:05 - End Time 2025-03-26 23:01:05 [2025-03-26 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770052', 'tblTempUsageDetail_20' ) start [2025-03-26 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770052', 'tblTempUsageDetail_20' ) end [2025-03-26 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770052', 'tblTempVendorCDR_20' ) start [2025-03-26 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770052', 'tblTempVendorCDR_20' ) end [2025-03-26 23:01:19] Production.INFO: ProcessCDR(1,14770052,1,1,2) [2025-03-26 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770052', 'tblTempUsageDetail_20' ) start [2025-03-26 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770052', 'tblTempUsageDetail_20' ) end [2025-03-26 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:01:22] Production.INFO: ==26829== Releasing lock... [2025-03-26 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:01:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-26 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:02:05 [end_date_ymd] => 2025-03-26 23:02:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:02:05' and `end` < '2025-03-26 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-26 23:02:18] Production.INFO: count ==1559 [2025-03-26 23:02:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:02:05 - End Time 2025-03-26 23:02:05 [2025-03-26 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770057', 'tblTempUsageDetail_20' ) start [2025-03-26 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770057', 'tblTempUsageDetail_20' ) end [2025-03-26 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770057', 'tblTempVendorCDR_20' ) start [2025-03-26 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770057', 'tblTempVendorCDR_20' ) end [2025-03-26 23:02:19] Production.INFO: ProcessCDR(1,14770057,1,1,2) [2025-03-26 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770057', 'tblTempUsageDetail_20' ) start [2025-03-26 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770057', 'tblTempUsageDetail_20' ) end [2025-03-26 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:02:22] Production.INFO: ==26946== Releasing lock... [2025-03-26 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:02:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-26 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:03:06 [end_date_ymd] => 2025-03-26 23:03:06 [RateCDR] => 1 ) [2025-03-26 23: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-26 20:03:06' and `end` < '2025-03-26 23: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-26 23:03:18] Production.INFO: count ==1551 [2025-03-26 23:03:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:03:06 - End Time 2025-03-26 23:03:06 [2025-03-26 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770062', 'tblTempUsageDetail_20' ) start [2025-03-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770062', 'tblTempUsageDetail_20' ) end [2025-03-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770062', 'tblTempVendorCDR_20' ) start [2025-03-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770062', 'tblTempVendorCDR_20' ) end [2025-03-26 23:03:19] Production.INFO: ProcessCDR(1,14770062,1,1,2) [2025-03-26 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770062', 'tblTempUsageDetail_20' ) start [2025-03-26 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770062', 'tblTempUsageDetail_20' ) end [2025-03-26 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:03:22] Production.INFO: ==27022== Releasing lock... [2025-03-26 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:03:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-26 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:04:05 [end_date_ymd] => 2025-03-26 23:04:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:04:05' and `end` < '2025-03-26 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-26 23:04:18] Production.INFO: count ==1552 [2025-03-26 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:04:05 - End Time 2025-03-26 23:04:05 [2025-03-26 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770067', 'tblTempUsageDetail_20' ) start [2025-03-26 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770067', 'tblTempUsageDetail_20' ) end [2025-03-26 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770067', 'tblTempVendorCDR_20' ) start [2025-03-26 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770067', 'tblTempVendorCDR_20' ) end [2025-03-26 23:04:18] Production.INFO: ProcessCDR(1,14770067,1,1,2) [2025-03-26 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770067', 'tblTempUsageDetail_20' ) start [2025-03-26 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770067', 'tblTempUsageDetail_20' ) end [2025-03-26 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:04:22] Production.INFO: ==27095== Releasing lock... [2025-03-26 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:04:22] Production.INFO: 40 MB #Memory Used# [2025-03-26 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:05:05 [end_date_ymd] => 2025-03-26 23:05:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:05:05' and `end` < '2025-03-26 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-26 23:05:18] Production.INFO: count ==1550 [2025-03-26 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:05:05 - End Time 2025-03-26 23:05:05 [2025-03-26 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770072', 'tblTempUsageDetail_20' ) start [2025-03-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770072', 'tblTempUsageDetail_20' ) end [2025-03-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770072', 'tblTempVendorCDR_20' ) start [2025-03-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770072', 'tblTempVendorCDR_20' ) end [2025-03-26 23:05:18] Production.INFO: ProcessCDR(1,14770072,1,1,2) [2025-03-26 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770072', 'tblTempUsageDetail_20' ) start [2025-03-26 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770072', 'tblTempUsageDetail_20' ) end [2025-03-26 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:05:21] Production.INFO: ==27244== Releasing lock... [2025-03-26 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:05:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-26 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:06:05 [end_date_ymd] => 2025-03-26 23:06:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:06:05' and `end` < '2025-03-26 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-26 23:06:17] Production.INFO: count ==1553 [2025-03-26 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:06:05 - End Time 2025-03-26 23:06:05 [2025-03-26 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770077', 'tblTempUsageDetail_20' ) start [2025-03-26 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770077', 'tblTempUsageDetail_20' ) end [2025-03-26 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770077', 'tblTempVendorCDR_20' ) start [2025-03-26 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770077', 'tblTempVendorCDR_20' ) end [2025-03-26 23:06:18] Production.INFO: ProcessCDR(1,14770077,1,1,2) [2025-03-26 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770077', 'tblTempUsageDetail_20' ) start [2025-03-26 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770077', 'tblTempUsageDetail_20' ) end [2025-03-26 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:06:21] Production.INFO: ==27316== Releasing lock... [2025-03-26 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:06:21] Production.INFO: 40 MB #Memory Used# [2025-03-26 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:07:05 [end_date_ymd] => 2025-03-26 23:07:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:07:05' and `end` < '2025-03-26 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-26 23:07:18] Production.INFO: count ==1554 [2025-03-26 23:07:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:07:05 - End Time 2025-03-26 23:07:05 [2025-03-26 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770082', 'tblTempUsageDetail_20' ) start [2025-03-26 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770082', 'tblTempUsageDetail_20' ) end [2025-03-26 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770082', 'tblTempVendorCDR_20' ) start [2025-03-26 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770082', 'tblTempVendorCDR_20' ) end [2025-03-26 23:07:18] Production.INFO: ProcessCDR(1,14770082,1,1,2) [2025-03-26 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770082', 'tblTempUsageDetail_20' ) start [2025-03-26 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770082', 'tblTempUsageDetail_20' ) end [2025-03-26 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:07:22] Production.INFO: ==27388== Releasing lock... [2025-03-26 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:07:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-26 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:08:05 [end_date_ymd] => 2025-03-26 23:08:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:08:05' and `end` < '2025-03-26 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-26 23:08:17] Production.INFO: count ==1549 [2025-03-26 23:08:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:08:05 - End Time 2025-03-26 23:08:05 [2025-03-26 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770087', 'tblTempUsageDetail_20' ) start [2025-03-26 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770087', 'tblTempUsageDetail_20' ) end [2025-03-26 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770087', 'tblTempVendorCDR_20' ) start [2025-03-26 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770087', 'tblTempVendorCDR_20' ) end [2025-03-26 23:08:18] Production.INFO: ProcessCDR(1,14770087,1,1,2) [2025-03-26 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770087', 'tblTempUsageDetail_20' ) start [2025-03-26 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770087', 'tblTempUsageDetail_20' ) end [2025-03-26 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:08:21] Production.INFO: ==27543== Releasing lock... [2025-03-26 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:08:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-26 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:09:05 [end_date_ymd] => 2025-03-26 23:09:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:09:05' and `end` < '2025-03-26 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-26 23:09:18] Production.INFO: count ==1551 [2025-03-26 23:09:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:09:05 - End Time 2025-03-26 23:09:05 [2025-03-26 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770092', 'tblTempUsageDetail_20' ) start [2025-03-26 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770092', 'tblTempUsageDetail_20' ) end [2025-03-26 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770092', 'tblTempVendorCDR_20' ) start [2025-03-26 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770092', 'tblTempVendorCDR_20' ) end [2025-03-26 23:09:19] Production.INFO: ProcessCDR(1,14770092,1,1,2) [2025-03-26 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770092', 'tblTempUsageDetail_20' ) start [2025-03-26 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770092', 'tblTempUsageDetail_20' ) end [2025-03-26 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:09:22] Production.INFO: ==27654== Releasing lock... [2025-03-26 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:09:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-26 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:10:06 [end_date_ymd] => 2025-03-26 23:10:06 [RateCDR] => 1 ) [2025-03-26 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-26 20:10:06' and `end` < '2025-03-26 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-26 23:10:19] Production.INFO: count ==1552 [2025-03-26 23:10:20] Production.ERROR: pbx CDR StartTime 2025-03-26 20:10:06 - End Time 2025-03-26 23:10:06 [2025-03-26 23:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770097', 'tblTempUsageDetail_20' ) start [2025-03-26 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770097', 'tblTempUsageDetail_20' ) end [2025-03-26 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770097', 'tblTempVendorCDR_20' ) start [2025-03-26 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770097', 'tblTempVendorCDR_20' ) end [2025-03-26 23:10:20] Production.INFO: ProcessCDR(1,14770097,1,1,2) [2025-03-26 23:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770097', 'tblTempUsageDetail_20' ) start [2025-03-26 23:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770097', 'tblTempUsageDetail_20' ) end [2025-03-26 23:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:10:25] Production.INFO: ==27734== Releasing lock... [2025-03-26 23:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:10:25] Production.INFO: 39.5 MB #Memory Used# [2025-03-26 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:11:05 [end_date_ymd] => 2025-03-26 23:11:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:11:05' and `end` < '2025-03-26 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-26 23:11:18] Production.INFO: count ==1488 [2025-03-26 23:11:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:11:05 - End Time 2025-03-26 23:11:05 [2025-03-26 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770103', 'tblTempUsageDetail_20' ) start [2025-03-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770103', 'tblTempUsageDetail_20' ) end [2025-03-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770103', 'tblTempVendorCDR_20' ) start [2025-03-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770103', 'tblTempVendorCDR_20' ) end [2025-03-26 23:11:18] Production.INFO: ProcessCDR(1,14770103,1,1,2) [2025-03-26 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770103', 'tblTempUsageDetail_20' ) start [2025-03-26 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770103', 'tblTempUsageDetail_20' ) end [2025-03-26 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:11:22] Production.INFO: ==27811== Releasing lock... [2025-03-26 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:11:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-26 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:12:06 [end_date_ymd] => 2025-03-26 23:12:06 [RateCDR] => 1 ) [2025-03-26 23: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-26 20:12:06' and `end` < '2025-03-26 23: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-26 23:12:18] Production.INFO: count ==1488 [2025-03-26 23:12:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:12:06 - End Time 2025-03-26 23:12:06 [2025-03-26 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770108', 'tblTempUsageDetail_20' ) start [2025-03-26 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770108', 'tblTempUsageDetail_20' ) end [2025-03-26 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770108', 'tblTempVendorCDR_20' ) start [2025-03-26 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770108', 'tblTempVendorCDR_20' ) end [2025-03-26 23:12:19] Production.INFO: ProcessCDR(1,14770108,1,1,2) [2025-03-26 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770108', 'tblTempUsageDetail_20' ) start [2025-03-26 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770108', 'tblTempUsageDetail_20' ) end [2025-03-26 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:12:22] Production.INFO: ==27961== Releasing lock... [2025-03-26 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:12:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-26 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:13:05 [end_date_ymd] => 2025-03-26 23:13:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:13:05' and `end` < '2025-03-26 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-26 23:13:18] Production.INFO: count ==1487 [2025-03-26 23:13:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:13:05 - End Time 2025-03-26 23:13:05 [2025-03-26 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770113', 'tblTempUsageDetail_20' ) start [2025-03-26 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770113', 'tblTempUsageDetail_20' ) end [2025-03-26 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770113', 'tblTempVendorCDR_20' ) start [2025-03-26 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770113', 'tblTempVendorCDR_20' ) end [2025-03-26 23:13:18] Production.INFO: ProcessCDR(1,14770113,1,1,2) [2025-03-26 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770113', 'tblTempUsageDetail_20' ) start [2025-03-26 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770113', 'tblTempUsageDetail_20' ) end [2025-03-26 23:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:13:23] Production.INFO: ==28035== Releasing lock... [2025-03-26 23:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:13:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-26 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:14:05 [end_date_ymd] => 2025-03-26 23:14:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:14:05' and `end` < '2025-03-26 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-26 23:14:18] Production.INFO: count ==1482 [2025-03-26 23:14:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:14:05 - End Time 2025-03-26 23:14:05 [2025-03-26 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770118', 'tblTempUsageDetail_20' ) start [2025-03-26 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770118', 'tblTempUsageDetail_20' ) end [2025-03-26 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770118', 'tblTempVendorCDR_20' ) start [2025-03-26 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770118', 'tblTempVendorCDR_20' ) end [2025-03-26 23:14:19] Production.INFO: ProcessCDR(1,14770118,1,1,2) [2025-03-26 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770118', 'tblTempUsageDetail_20' ) start [2025-03-26 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770118', 'tblTempUsageDetail_20' ) end [2025-03-26 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:14:22] Production.INFO: ==28105== Releasing lock... [2025-03-26 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:14:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-26 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:15:05 [end_date_ymd] => 2025-03-26 23:15:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:15:05' and `end` < '2025-03-26 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-26 23:15:18] Production.INFO: count ==1471 [2025-03-26 23:15:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:15:05 - End Time 2025-03-26 23:15:05 [2025-03-26 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770123', 'tblTempUsageDetail_20' ) start [2025-03-26 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770123', 'tblTempUsageDetail_20' ) end [2025-03-26 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770123', 'tblTempVendorCDR_20' ) start [2025-03-26 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770123', 'tblTempVendorCDR_20' ) end [2025-03-26 23:15:18] Production.INFO: ProcessCDR(1,14770123,1,1,2) [2025-03-26 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770123', 'tblTempUsageDetail_20' ) start [2025-03-26 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770123', 'tblTempUsageDetail_20' ) end [2025-03-26 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:15:22] Production.INFO: ==28258== Releasing lock... [2025-03-26 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:15:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-26 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:16:06 [end_date_ymd] => 2025-03-26 23:16:06 [RateCDR] => 1 ) [2025-03-26 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 20:16:06' and `end` < '2025-03-26 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 23:16:18] Production.INFO: count ==1466 [2025-03-26 23:16:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:16:06 - End Time 2025-03-26 23:16:06 [2025-03-26 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770128', 'tblTempUsageDetail_20' ) start [2025-03-26 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770128', 'tblTempUsageDetail_20' ) end [2025-03-26 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770128', 'tblTempVendorCDR_20' ) start [2025-03-26 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770128', 'tblTempVendorCDR_20' ) end [2025-03-26 23:16:19] Production.INFO: ProcessCDR(1,14770128,1,1,2) [2025-03-26 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770128', 'tblTempUsageDetail_20' ) start [2025-03-26 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770128', 'tblTempUsageDetail_20' ) end [2025-03-26 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:16:22] Production.INFO: ==28331== Releasing lock... [2025-03-26 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:16:22] Production.INFO: 39 MB #Memory Used# [2025-03-26 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:17:05 [end_date_ymd] => 2025-03-26 23:17:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:17:05' and `end` < '2025-03-26 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-26 23:17:18] Production.INFO: count ==1465 [2025-03-26 23:17:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:17:05 - End Time 2025-03-26 23:17:05 [2025-03-26 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770133', 'tblTempUsageDetail_20' ) start [2025-03-26 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770133', 'tblTempUsageDetail_20' ) end [2025-03-26 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770133', 'tblTempVendorCDR_20' ) start [2025-03-26 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770133', 'tblTempVendorCDR_20' ) end [2025-03-26 23:17:19] Production.INFO: ProcessCDR(1,14770133,1,1,2) [2025-03-26 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770133', 'tblTempUsageDetail_20' ) start [2025-03-26 23:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770133', 'tblTempUsageDetail_20' ) end [2025-03-26 23:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:17:24] Production.INFO: ==28403== Releasing lock... [2025-03-26 23:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:17:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-26 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:18:06 [end_date_ymd] => 2025-03-26 23:18:06 [RateCDR] => 1 ) [2025-03-26 23: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-26 20:18:06' and `end` < '2025-03-26 23: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-26 23:18:18] Production.INFO: count ==1462 [2025-03-26 23:18:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:18:06 - End Time 2025-03-26 23:18:06 [2025-03-26 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770138', 'tblTempUsageDetail_20' ) start [2025-03-26 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770138', 'tblTempUsageDetail_20' ) end [2025-03-26 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770138', 'tblTempVendorCDR_20' ) start [2025-03-26 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770138', 'tblTempVendorCDR_20' ) end [2025-03-26 23:18:19] Production.INFO: ProcessCDR(1,14770138,1,1,2) [2025-03-26 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770138', 'tblTempUsageDetail_20' ) start [2025-03-26 23:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770138', 'tblTempUsageDetail_20' ) end [2025-03-26 23:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:18:24] Production.INFO: ==28483== Releasing lock... [2025-03-26 23:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:18:24] Production.INFO: 39 MB #Memory Used# [2025-03-26 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:19:05 [end_date_ymd] => 2025-03-26 23:19:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:19:05' and `end` < '2025-03-26 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-26 23:19:17] Production.INFO: count ==1462 [2025-03-26 23:19:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:19:05 - End Time 2025-03-26 23:19:05 [2025-03-26 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770143', 'tblTempUsageDetail_20' ) start [2025-03-26 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770143', 'tblTempUsageDetail_20' ) end [2025-03-26 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770143', 'tblTempVendorCDR_20' ) start [2025-03-26 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770143', 'tblTempVendorCDR_20' ) end [2025-03-26 23:19:18] Production.INFO: ProcessCDR(1,14770143,1,1,2) [2025-03-26 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770143', 'tblTempUsageDetail_20' ) start [2025-03-26 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770143', 'tblTempUsageDetail_20' ) end [2025-03-26 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:19:21] Production.INFO: ==28558== Releasing lock... [2025-03-26 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:19:21] Production.INFO: 39 MB #Memory Used# [2025-03-26 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:20:06 [end_date_ymd] => 2025-03-26 23:20:06 [RateCDR] => 1 ) [2025-03-26 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 20:20:06' and `end` < '2025-03-26 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 23:20:18] Production.INFO: count ==1463 [2025-03-26 23:20:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:20:06 - End Time 2025-03-26 23:20:06 [2025-03-26 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770148', 'tblTempUsageDetail_20' ) start [2025-03-26 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770148', 'tblTempUsageDetail_20' ) end [2025-03-26 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770148', 'tblTempVendorCDR_20' ) start [2025-03-26 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770148', 'tblTempVendorCDR_20' ) end [2025-03-26 23:20:19] Production.INFO: ProcessCDR(1,14770148,1,1,2) [2025-03-26 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770148', 'tblTempUsageDetail_20' ) start [2025-03-26 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770148', 'tblTempUsageDetail_20' ) end [2025-03-26 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:20:22] Production.INFO: ==28633== Releasing lock... [2025-03-26 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:20:22] Production.INFO: 39 MB #Memory Used# [2025-03-26 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:21:05 [end_date_ymd] => 2025-03-26 23:21:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:21:05' and `end` < '2025-03-26 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-26 23:21:17] Production.INFO: count ==1428 [2025-03-26 23:21:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:21:05 - End Time 2025-03-26 23:21:05 [2025-03-26 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770154', 'tblTempUsageDetail_20' ) start [2025-03-26 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770154', 'tblTempUsageDetail_20' ) end [2025-03-26 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770154', 'tblTempVendorCDR_20' ) start [2025-03-26 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770154', 'tblTempVendorCDR_20' ) end [2025-03-26 23:21:18] Production.INFO: ProcessCDR(1,14770154,1,1,2) [2025-03-26 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770154', 'tblTempUsageDetail_20' ) start [2025-03-26 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770154', 'tblTempUsageDetail_20' ) end [2025-03-26 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:21:21] Production.INFO: ==28711== Releasing lock... [2025-03-26 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:21:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-26 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:22:05 [end_date_ymd] => 2025-03-26 23:22:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:22:05' and `end` < '2025-03-26 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-26 23:22:18] Production.INFO: count ==1432 [2025-03-26 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:22:05 - End Time 2025-03-26 23:22:05 [2025-03-26 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770159', 'tblTempUsageDetail_20' ) start [2025-03-26 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770159', 'tblTempUsageDetail_20' ) end [2025-03-26 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770159', 'tblTempVendorCDR_20' ) start [2025-03-26 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770159', 'tblTempVendorCDR_20' ) end [2025-03-26 23:22:18] Production.INFO: ProcessCDR(1,14770159,1,1,2) [2025-03-26 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770159', 'tblTempUsageDetail_20' ) start [2025-03-26 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770159', 'tblTempUsageDetail_20' ) end [2025-03-26 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:22:22] Production.INFO: ==28783== Releasing lock... [2025-03-26 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:22:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-26 23:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:23:04 [end_date_ymd] => 2025-03-26 23:23:04 [RateCDR] => 1 ) [2025-03-26 23:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 20:23:04' and `end` < '2025-03-26 23:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 23:23:17] Production.INFO: count ==1434 [2025-03-26 23:23:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:23:04 - End Time 2025-03-26 23:23:04 [2025-03-26 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770164', 'tblTempUsageDetail_20' ) start [2025-03-26 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770164', 'tblTempUsageDetail_20' ) end [2025-03-26 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770164', 'tblTempVendorCDR_20' ) start [2025-03-26 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770164', 'tblTempVendorCDR_20' ) end [2025-03-26 23:23:18] Production.INFO: ProcessCDR(1,14770164,1,1,2) [2025-03-26 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770164', 'tblTempUsageDetail_20' ) start [2025-03-26 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770164', 'tblTempUsageDetail_20' ) end [2025-03-26 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:23:21] Production.INFO: ==28857== Releasing lock... [2025-03-26 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:23:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-26 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:24:06 [end_date_ymd] => 2025-03-26 23:24:06 [RateCDR] => 1 ) [2025-03-26 23:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 20:24:06' and `end` < '2025-03-26 23:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 23:24:18] Production.INFO: count ==1426 [2025-03-26 23:24:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:24:06 - End Time 2025-03-26 23:24:06 [2025-03-26 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770169', 'tblTempUsageDetail_20' ) start [2025-03-26 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770169', 'tblTempUsageDetail_20' ) end [2025-03-26 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770169', 'tblTempVendorCDR_20' ) start [2025-03-26 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770169', 'tblTempVendorCDR_20' ) end [2025-03-26 23:24:19] Production.INFO: ProcessCDR(1,14770169,1,1,2) [2025-03-26 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770169', 'tblTempUsageDetail_20' ) start [2025-03-26 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770169', 'tblTempUsageDetail_20' ) end [2025-03-26 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:24:22] Production.INFO: ==28934== Releasing lock... [2025-03-26 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:24:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-26 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:25:05 [end_date_ymd] => 2025-03-26 23:25:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:25:05' and `end` < '2025-03-26 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-26 23:25:18] Production.INFO: count ==1422 [2025-03-26 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:25:05 - End Time 2025-03-26 23:25:05 [2025-03-26 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770174', 'tblTempUsageDetail_20' ) start [2025-03-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770174', 'tblTempUsageDetail_20' ) end [2025-03-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770174', 'tblTempVendorCDR_20' ) start [2025-03-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770174', 'tblTempVendorCDR_20' ) end [2025-03-26 23:25:18] Production.INFO: ProcessCDR(1,14770174,1,1,2) [2025-03-26 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770174', 'tblTempUsageDetail_20' ) start [2025-03-26 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770174', 'tblTempUsageDetail_20' ) end [2025-03-26 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:25:21] Production.INFO: ==29048== Releasing lock... [2025-03-26 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:25:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-26 23:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:26:06 [end_date_ymd] => 2025-03-26 23:26:06 [RateCDR] => 1 ) [2025-03-26 23:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 20:26:06' and `end` < '2025-03-26 23:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 23:26:18] Production.INFO: count ==1425 [2025-03-26 23:26:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:26:06 - End Time 2025-03-26 23:26:06 [2025-03-26 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770179', 'tblTempUsageDetail_20' ) start [2025-03-26 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770179', 'tblTempUsageDetail_20' ) end [2025-03-26 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770179', 'tblTempVendorCDR_20' ) start [2025-03-26 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770179', 'tblTempVendorCDR_20' ) end [2025-03-26 23:26:19] Production.INFO: ProcessCDR(1,14770179,1,1,2) [2025-03-26 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770179', 'tblTempUsageDetail_20' ) start [2025-03-26 23:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770179', 'tblTempUsageDetail_20' ) end [2025-03-26 23:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:26:24] Production.INFO: ==29122== Releasing lock... [2025-03-26 23:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:26:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-26 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:27:05 [end_date_ymd] => 2025-03-26 23:27:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:27:05' and `end` < '2025-03-26 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-26 23:27:18] Production.INFO: count ==1429 [2025-03-26 23:27:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:27:05 - End Time 2025-03-26 23:27:05 [2025-03-26 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770184', 'tblTempUsageDetail_20' ) start [2025-03-26 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770184', 'tblTempUsageDetail_20' ) end [2025-03-26 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770184', 'tblTempVendorCDR_20' ) start [2025-03-26 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770184', 'tblTempVendorCDR_20' ) end [2025-03-26 23:27:18] Production.INFO: ProcessCDR(1,14770184,1,1,2) [2025-03-26 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770184', 'tblTempUsageDetail_20' ) start [2025-03-26 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770184', 'tblTempUsageDetail_20' ) end [2025-03-26 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:27:22] Production.INFO: ==29192== Releasing lock... [2025-03-26 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:27:22] Production.INFO: 39 MB #Memory Used# [2025-03-26 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:28:05 [end_date_ymd] => 2025-03-26 23:28:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:28:05' and `end` < '2025-03-26 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-26 23:28:18] Production.INFO: count ==1427 [2025-03-26 23:28:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:28:05 - End Time 2025-03-26 23:28:05 [2025-03-26 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770189', 'tblTempUsageDetail_20' ) start [2025-03-26 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770189', 'tblTempUsageDetail_20' ) end [2025-03-26 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770189', 'tblTempVendorCDR_20' ) start [2025-03-26 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770189', 'tblTempVendorCDR_20' ) end [2025-03-26 23:28:19] Production.INFO: ProcessCDR(1,14770189,1,1,2) [2025-03-26 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770189', 'tblTempUsageDetail_20' ) start [2025-03-26 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770189', 'tblTempUsageDetail_20' ) end [2025-03-26 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:28:22] Production.INFO: ==29268== Releasing lock... [2025-03-26 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:28:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-26 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:29:05 [end_date_ymd] => 2025-03-26 23:29:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:29:05' and `end` < '2025-03-26 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-26 23:29:18] Production.INFO: count ==1431 [2025-03-26 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:29:05 - End Time 2025-03-26 23:29:05 [2025-03-26 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770194', 'tblTempUsageDetail_20' ) start [2025-03-26 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770194', 'tblTempUsageDetail_20' ) end [2025-03-26 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770194', 'tblTempVendorCDR_20' ) start [2025-03-26 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770194', 'tblTempVendorCDR_20' ) end [2025-03-26 23:29:18] Production.INFO: ProcessCDR(1,14770194,1,1,2) [2025-03-26 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770194', 'tblTempUsageDetail_20' ) start [2025-03-26 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770194', 'tblTempUsageDetail_20' ) end [2025-03-26 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:29:22] Production.INFO: ==29343== Releasing lock... [2025-03-26 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:29:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-26 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:30:06 [end_date_ymd] => 2025-03-26 23:30:06 [RateCDR] => 1 ) [2025-03-26 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 20:30:06' and `end` < '2025-03-26 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 23:30:19] Production.INFO: count ==1409 [2025-03-26 23:30:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:30:06 - End Time 2025-03-26 23:30:06 [2025-03-26 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770199', 'tblTempUsageDetail_20' ) start [2025-03-26 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770199', 'tblTempUsageDetail_20' ) end [2025-03-26 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770199', 'tblTempVendorCDR_20' ) start [2025-03-26 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770199', 'tblTempVendorCDR_20' ) end [2025-03-26 23:30:19] Production.INFO: ProcessCDR(1,14770199,1,1,2) [2025-03-26 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770199', 'tblTempUsageDetail_20' ) start [2025-03-26 23:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770199', 'tblTempUsageDetail_20' ) end [2025-03-26 23:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:30:24] Production.INFO: ==29420== Releasing lock... [2025-03-26 23:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:30:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-26 23:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:31:06 [end_date_ymd] => 2025-03-26 23:31:06 [RateCDR] => 1 ) [2025-03-26 23: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-26 20:31:06' and `end` < '2025-03-26 23: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-26 23:31:18] Production.INFO: count ==1378 [2025-03-26 23:31:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:31:06 - End Time 2025-03-26 23:31:06 [2025-03-26 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770205', 'tblTempUsageDetail_20' ) start [2025-03-26 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770205', 'tblTempUsageDetail_20' ) end [2025-03-26 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770205', 'tblTempVendorCDR_20' ) start [2025-03-26 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770205', 'tblTempVendorCDR_20' ) end [2025-03-26 23:31:19] Production.INFO: ProcessCDR(1,14770205,1,1,2) [2025-03-26 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770205', 'tblTempUsageDetail_20' ) start [2025-03-26 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770205', 'tblTempUsageDetail_20' ) end [2025-03-26 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:31:22] Production.INFO: ==29495== Releasing lock... [2025-03-26 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:31:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-26 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:32:05 [end_date_ymd] => 2025-03-26 23:32:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:32:05' and `end` < '2025-03-26 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-26 23:32:17] Production.INFO: count ==1372 [2025-03-26 23:32:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:32:05 - End Time 2025-03-26 23:32:05 [2025-03-26 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770210', 'tblTempUsageDetail_20' ) start [2025-03-26 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770210', 'tblTempUsageDetail_20' ) end [2025-03-26 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770210', 'tblTempVendorCDR_20' ) start [2025-03-26 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770210', 'tblTempVendorCDR_20' ) end [2025-03-26 23:32:18] Production.INFO: ProcessCDR(1,14770210,1,1,2) [2025-03-26 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770210', 'tblTempUsageDetail_20' ) start [2025-03-26 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770210', 'tblTempUsageDetail_20' ) end [2025-03-26 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:32:23] Production.INFO: ==29572== Releasing lock... [2025-03-26 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:32:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-26 23:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:33:06 [end_date_ymd] => 2025-03-26 23:33:06 [RateCDR] => 1 ) [2025-03-26 23: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-26 20:33:06' and `end` < '2025-03-26 23: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-26 23:33:18] Production.INFO: count ==1372 [2025-03-26 23:33:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:33:06 - End Time 2025-03-26 23:33:06 [2025-03-26 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770215', 'tblTempUsageDetail_20' ) start [2025-03-26 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770215', 'tblTempUsageDetail_20' ) end [2025-03-26 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770215', 'tblTempVendorCDR_20' ) start [2025-03-26 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770215', 'tblTempVendorCDR_20' ) end [2025-03-26 23:33:19] Production.INFO: ProcessCDR(1,14770215,1,1,2) [2025-03-26 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770215', 'tblTempUsageDetail_20' ) start [2025-03-26 23:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770215', 'tblTempUsageDetail_20' ) end [2025-03-26 23:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:33:24] Production.INFO: ==29647== Releasing lock... [2025-03-26 23:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:33:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-26 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:34:05 [end_date_ymd] => 2025-03-26 23:34:05 [RateCDR] => 1 ) [2025-03-26 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 20:34:05' and `end` < '2025-03-26 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 23:34:17] Production.INFO: count ==1373 [2025-03-26 23:34:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:34:05 - End Time 2025-03-26 23:34:05 [2025-03-26 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770220', 'tblTempUsageDetail_20' ) start [2025-03-26 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770220', 'tblTempUsageDetail_20' ) end [2025-03-26 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770220', 'tblTempVendorCDR_20' ) start [2025-03-26 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770220', 'tblTempVendorCDR_20' ) end [2025-03-26 23:34:18] Production.INFO: ProcessCDR(1,14770220,1,1,2) [2025-03-26 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770220', 'tblTempUsageDetail_20' ) start [2025-03-26 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770220', 'tblTempUsageDetail_20' ) end [2025-03-26 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:34:21] Production.INFO: ==29719== Releasing lock... [2025-03-26 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:34:21] Production.INFO: 38 MB #Memory Used# [2025-03-26 23:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:35:06 [end_date_ymd] => 2025-03-26 23:35:06 [RateCDR] => 1 ) [2025-03-26 23: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-26 20:35:06' and `end` < '2025-03-26 23: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-26 23:35:18] Production.INFO: count ==1370 [2025-03-26 23:35:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:35:06 - End Time 2025-03-26 23:35:06 [2025-03-26 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770225', 'tblTempUsageDetail_20' ) start [2025-03-26 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770225', 'tblTempUsageDetail_20' ) end [2025-03-26 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770225', 'tblTempVendorCDR_20' ) start [2025-03-26 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770225', 'tblTempVendorCDR_20' ) end [2025-03-26 23:35:19] Production.INFO: ProcessCDR(1,14770225,1,1,2) [2025-03-26 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770225', 'tblTempUsageDetail_20' ) start [2025-03-26 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770225', 'tblTempUsageDetail_20' ) end [2025-03-26 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:35:22] Production.INFO: ==29794== Releasing lock... [2025-03-26 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:35:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-26 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:36:05 [end_date_ymd] => 2025-03-26 23:36:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:36:05' and `end` < '2025-03-26 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-26 23:36:18] Production.INFO: count ==1367 [2025-03-26 23:36:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:36:05 - End Time 2025-03-26 23:36:05 [2025-03-26 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770230', 'tblTempUsageDetail_20' ) start [2025-03-26 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770230', 'tblTempUsageDetail_20' ) end [2025-03-26 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770230', 'tblTempVendorCDR_20' ) start [2025-03-26 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770230', 'tblTempVendorCDR_20' ) end [2025-03-26 23:36:18] Production.INFO: ProcessCDR(1,14770230,1,1,2) [2025-03-26 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770230', 'tblTempUsageDetail_20' ) start [2025-03-26 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770230', 'tblTempUsageDetail_20' ) end [2025-03-26 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:36:22] Production.INFO: ==29866== Releasing lock... [2025-03-26 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:36:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-26 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:37:05 [end_date_ymd] => 2025-03-26 23:37:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:37:05' and `end` < '2025-03-26 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-26 23:37:18] Production.INFO: count ==1364 [2025-03-26 23:37:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:37:05 - End Time 2025-03-26 23:37:05 [2025-03-26 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770235', 'tblTempUsageDetail_20' ) start [2025-03-26 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770235', 'tblTempUsageDetail_20' ) end [2025-03-26 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770235', 'tblTempVendorCDR_20' ) start [2025-03-26 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770235', 'tblTempVendorCDR_20' ) end [2025-03-26 23:37:19] Production.INFO: ProcessCDR(1,14770235,1,1,2) [2025-03-26 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770235', 'tblTempUsageDetail_20' ) start [2025-03-26 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770235', 'tblTempUsageDetail_20' ) end [2025-03-26 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:37:22] Production.INFO: ==29946== Releasing lock... [2025-03-26 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:37:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-26 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:38:05 [end_date_ymd] => 2025-03-26 23:38:05 [RateCDR] => 1 ) [2025-03-26 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 20:38:05' and `end` < '2025-03-26 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 23:38:18] Production.INFO: count ==1361 [2025-03-26 23:38:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:38:05 - End Time 2025-03-26 23:38:05 [2025-03-26 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770240', 'tblTempUsageDetail_20' ) start [2025-03-26 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770240', 'tblTempUsageDetail_20' ) end [2025-03-26 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770240', 'tblTempVendorCDR_20' ) start [2025-03-26 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770240', 'tblTempVendorCDR_20' ) end [2025-03-26 23:38:18] Production.INFO: ProcessCDR(1,14770240,1,1,2) [2025-03-26 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770240', 'tblTempUsageDetail_20' ) start [2025-03-26 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770240', 'tblTempUsageDetail_20' ) end [2025-03-26 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:38:22] Production.INFO: ==30021== Releasing lock... [2025-03-26 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:38:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-26 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:39:05 [end_date_ymd] => 2025-03-26 23:39:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:39:05' and `end` < '2025-03-26 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-26 23:39:18] Production.INFO: count ==1361 [2025-03-26 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:39:05 - End Time 2025-03-26 23:39:05 [2025-03-26 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770245', 'tblTempUsageDetail_20' ) start [2025-03-26 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770245', 'tblTempUsageDetail_20' ) end [2025-03-26 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770245', 'tblTempVendorCDR_20' ) start [2025-03-26 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770245', 'tblTempVendorCDR_20' ) end [2025-03-26 23:39:18] Production.INFO: ProcessCDR(1,14770245,1,1,2) [2025-03-26 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770245', 'tblTempUsageDetail_20' ) start [2025-03-26 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770245', 'tblTempUsageDetail_20' ) end [2025-03-26 23:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:39:23] Production.INFO: ==30090== Releasing lock... [2025-03-26 23:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:39:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-26 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:40:05 [end_date_ymd] => 2025-03-26 23:40:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:40:05' and `end` < '2025-03-26 23:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 23:40:18] Production.INFO: count ==1356 [2025-03-26 23:40:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:40:05 - End Time 2025-03-26 23:40:05 [2025-03-26 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770251', 'tblTempUsageDetail_20' ) start [2025-03-26 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770251', 'tblTempUsageDetail_20' ) end [2025-03-26 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770251', 'tblTempVendorCDR_20' ) start [2025-03-26 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770251', 'tblTempVendorCDR_20' ) end [2025-03-26 23:40:19] Production.INFO: ProcessCDR(1,14770251,1,1,2) [2025-03-26 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770251', 'tblTempUsageDetail_20' ) start [2025-03-26 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770251', 'tblTempUsageDetail_20' ) end [2025-03-26 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:40:22] Production.INFO: ==30200== Releasing lock... [2025-03-26 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:40:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-26 23:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:41:06 [end_date_ymd] => 2025-03-26 23:41:06 [RateCDR] => 1 ) [2025-03-26 23: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-26 20:41:06' and `end` < '2025-03-26 23: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-26 23:41:18] Production.INFO: count ==1308 [2025-03-26 23:41:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:41:06 - End Time 2025-03-26 23:41:06 [2025-03-26 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770256', 'tblTempUsageDetail_20' ) start [2025-03-26 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770256', 'tblTempUsageDetail_20' ) end [2025-03-26 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770256', 'tblTempVendorCDR_20' ) start [2025-03-26 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770256', 'tblTempVendorCDR_20' ) end [2025-03-26 23:41:19] Production.INFO: ProcessCDR(1,14770256,1,1,2) [2025-03-26 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770256', 'tblTempUsageDetail_20' ) start [2025-03-26 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770256', 'tblTempUsageDetail_20' ) end [2025-03-26 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:41:22] Production.INFO: ==30275== Releasing lock... [2025-03-26 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:41:22] Production.INFO: 38 MB #Memory Used# [2025-03-26 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:42:05 [end_date_ymd] => 2025-03-26 23:42:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:42:05' and `end` < '2025-03-26 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-26 23:42:17] Production.INFO: count ==1312 [2025-03-26 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:42:05 - End Time 2025-03-26 23:42:05 [2025-03-26 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770261', 'tblTempUsageDetail_20' ) start [2025-03-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770261', 'tblTempUsageDetail_20' ) end [2025-03-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770261', 'tblTempVendorCDR_20' ) start [2025-03-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770261', 'tblTempVendorCDR_20' ) end [2025-03-26 23:42:18] Production.INFO: ProcessCDR(1,14770261,1,1,2) [2025-03-26 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770261', 'tblTempUsageDetail_20' ) start [2025-03-26 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770261', 'tblTempUsageDetail_20' ) end [2025-03-26 23:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:42:23] Production.INFO: ==30348== Releasing lock... [2025-03-26 23:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:42:23] Production.INFO: 38 MB #Memory Used# [2025-03-26 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:43:05 [end_date_ymd] => 2025-03-26 23:43:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:43:05' and `end` < '2025-03-26 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-26 23:43:18] Production.INFO: count ==1310 [2025-03-26 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:43:05 - End Time 2025-03-26 23:43:05 [2025-03-26 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770266', 'tblTempUsageDetail_20' ) start [2025-03-26 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770266', 'tblTempUsageDetail_20' ) end [2025-03-26 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770266', 'tblTempVendorCDR_20' ) start [2025-03-26 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770266', 'tblTempVendorCDR_20' ) end [2025-03-26 23:43:18] Production.INFO: ProcessCDR(1,14770266,1,1,2) [2025-03-26 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770266', 'tblTempUsageDetail_20' ) start [2025-03-26 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770266', 'tblTempUsageDetail_20' ) end [2025-03-26 23:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:43:23] Production.INFO: ==30419== Releasing lock... [2025-03-26 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:43:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-26 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:44:05 [end_date_ymd] => 2025-03-26 23:44:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:44:05' and `end` < '2025-03-26 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-26 23:44:18] Production.INFO: count ==1309 [2025-03-26 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:44:05 - End Time 2025-03-26 23:44:05 [2025-03-26 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770271', 'tblTempUsageDetail_20' ) start [2025-03-26 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770271', 'tblTempUsageDetail_20' ) end [2025-03-26 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770271', 'tblTempVendorCDR_20' ) start [2025-03-26 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770271', 'tblTempVendorCDR_20' ) end [2025-03-26 23:44:18] Production.INFO: ProcessCDR(1,14770271,1,1,2) [2025-03-26 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770271', 'tblTempUsageDetail_20' ) start [2025-03-26 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770271', 'tblTempUsageDetail_20' ) end [2025-03-26 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:44:23] Production.INFO: ==30491== Releasing lock... [2025-03-26 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:44:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-26 23:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:45:06 [end_date_ymd] => 2025-03-26 23:45:06 [RateCDR] => 1 ) [2025-03-26 23: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-26 20:45:06' and `end` < '2025-03-26 23: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-26 23:45:19] Production.INFO: count ==1322 [2025-03-26 23:45:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:45:06 - End Time 2025-03-26 23:45:06 [2025-03-26 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770276', 'tblTempUsageDetail_20' ) start [2025-03-26 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770276', 'tblTempUsageDetail_20' ) end [2025-03-26 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770276', 'tblTempVendorCDR_20' ) start [2025-03-26 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770276', 'tblTempVendorCDR_20' ) end [2025-03-26 23:45:19] Production.INFO: ProcessCDR(1,14770276,1,1,2) [2025-03-26 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770276', 'tblTempUsageDetail_20' ) start [2025-03-26 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770276', 'tblTempUsageDetail_20' ) end [2025-03-26 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:45:22] Production.INFO: ==30565== Releasing lock... [2025-03-26 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:45:22] Production.INFO: 38 MB #Memory Used# [2025-03-26 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:46:05 [end_date_ymd] => 2025-03-26 23:46:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:46:05' and `end` < '2025-03-26 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-26 23:46:18] Production.INFO: count ==1324 [2025-03-26 23:46:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:46:05 - End Time 2025-03-26 23:46:05 [2025-03-26 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770281', 'tblTempUsageDetail_20' ) start [2025-03-26 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770281', 'tblTempUsageDetail_20' ) end [2025-03-26 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770281', 'tblTempVendorCDR_20' ) start [2025-03-26 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770281', 'tblTempVendorCDR_20' ) end [2025-03-26 23:46:18] Production.INFO: ProcessCDR(1,14770281,1,1,2) [2025-03-26 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770281', 'tblTempUsageDetail_20' ) start [2025-03-26 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770281', 'tblTempUsageDetail_20' ) end [2025-03-26 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:46:22] Production.INFO: ==30642== Releasing lock... [2025-03-26 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:46:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-26 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:47:05 [end_date_ymd] => 2025-03-26 23:47:05 [RateCDR] => 1 ) [2025-03-26 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 20:47:05' and `end` < '2025-03-26 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 23:47:18] Production.INFO: count ==1324 [2025-03-26 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:47:05 - End Time 2025-03-26 23:47:05 [2025-03-26 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770286', 'tblTempUsageDetail_20' ) start [2025-03-26 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770286', 'tblTempUsageDetail_20' ) end [2025-03-26 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770286', 'tblTempVendorCDR_20' ) start [2025-03-26 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770286', 'tblTempVendorCDR_20' ) end [2025-03-26 23:47:18] Production.INFO: ProcessCDR(1,14770286,1,1,2) [2025-03-26 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770286', 'tblTempUsageDetail_20' ) start [2025-03-26 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770286', 'tblTempUsageDetail_20' ) end [2025-03-26 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:47:21] Production.INFO: ==30729== Releasing lock... [2025-03-26 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:47:21] Production.INFO: 38 MB #Memory Used# [2025-03-26 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:48:05 [end_date_ymd] => 2025-03-26 23:48:05 [RateCDR] => 1 ) [2025-03-26 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 20:48:05' and `end` < '2025-03-26 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 23:48:18] Production.INFO: count ==1334 [2025-03-26 23:48:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:48:05 - End Time 2025-03-26 23:48:05 [2025-03-26 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770291', 'tblTempUsageDetail_20' ) start [2025-03-26 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770291', 'tblTempUsageDetail_20' ) end [2025-03-26 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770291', 'tblTempVendorCDR_20' ) start [2025-03-26 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770291', 'tblTempVendorCDR_20' ) end [2025-03-26 23:48:18] Production.INFO: ProcessCDR(1,14770291,1,1,2) [2025-03-26 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770291', 'tblTempUsageDetail_20' ) start [2025-03-26 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770291', 'tblTempUsageDetail_20' ) end [2025-03-26 23:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:48:23] Production.INFO: ==30816== Releasing lock... [2025-03-26 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:48:23] Production.INFO: 38 MB #Memory Used# [2025-03-26 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:49:05 [end_date_ymd] => 2025-03-26 23:49:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:49:05' and `end` < '2025-03-26 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-26 23:49:18] Production.INFO: count ==1351 [2025-03-26 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:49:05 - End Time 2025-03-26 23:49:05 [2025-03-26 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770296', 'tblTempUsageDetail_20' ) start [2025-03-26 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770296', 'tblTempUsageDetail_20' ) end [2025-03-26 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770296', 'tblTempVendorCDR_20' ) start [2025-03-26 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770296', 'tblTempVendorCDR_20' ) end [2025-03-26 23:49:18] Production.INFO: ProcessCDR(1,14770296,1,1,2) [2025-03-26 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770296', 'tblTempUsageDetail_20' ) start [2025-03-26 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770296', 'tblTempUsageDetail_20' ) end [2025-03-26 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:49:22] Production.INFO: ==30907== Releasing lock... [2025-03-26 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:49:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-26 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:50:05 [end_date_ymd] => 2025-03-26 23:50:05 [RateCDR] => 1 ) [2025-03-26 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 20:50:05' and `end` < '2025-03-26 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-26 23:50:18] Production.INFO: count ==1355 [2025-03-26 23:50:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:50:05 - End Time 2025-03-26 23:50:05 [2025-03-26 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770301', 'tblTempUsageDetail_20' ) start [2025-03-26 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770301', 'tblTempUsageDetail_20' ) end [2025-03-26 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770301', 'tblTempVendorCDR_20' ) start [2025-03-26 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770301', 'tblTempVendorCDR_20' ) end [2025-03-26 23:50:18] Production.INFO: ProcessCDR(1,14770301,1,1,2) [2025-03-26 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770301', 'tblTempUsageDetail_20' ) start [2025-03-26 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770301', 'tblTempUsageDetail_20' ) end [2025-03-26 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:50:22] Production.INFO: ==31005== Releasing lock... [2025-03-26 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:50:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-26 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:51:05 [end_date_ymd] => 2025-03-26 23:51:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:51:05' and `end` < '2025-03-26 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-26 23:51:18] Production.INFO: count ==1333 [2025-03-26 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:51:05 - End Time 2025-03-26 23:51:05 [2025-03-26 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770307', 'tblTempUsageDetail_20' ) start [2025-03-26 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770307', 'tblTempUsageDetail_20' ) end [2025-03-26 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770307', 'tblTempVendorCDR_20' ) start [2025-03-26 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770307', 'tblTempVendorCDR_20' ) end [2025-03-26 23:51:18] Production.INFO: ProcessCDR(1,14770307,1,1,2) [2025-03-26 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770307', 'tblTempUsageDetail_20' ) start [2025-03-26 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770307', 'tblTempUsageDetail_20' ) end [2025-03-26 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:51:21] Production.INFO: ==31099== Releasing lock... [2025-03-26 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:51:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-26 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:52:05 [end_date_ymd] => 2025-03-26 23:52:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:52:05' and `end` < '2025-03-26 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-26 23:52:17] Production.INFO: count ==1332 [2025-03-26 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:52:05 - End Time 2025-03-26 23:52:05 [2025-03-26 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770312', 'tblTempUsageDetail_20' ) start [2025-03-26 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770312', 'tblTempUsageDetail_20' ) end [2025-03-26 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770312', 'tblTempVendorCDR_20' ) start [2025-03-26 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770312', 'tblTempVendorCDR_20' ) end [2025-03-26 23:52:18] Production.INFO: ProcessCDR(1,14770312,1,1,2) [2025-03-26 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770312', 'tblTempUsageDetail_20' ) start [2025-03-26 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770312', 'tblTempUsageDetail_20' ) end [2025-03-26 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:52:21] Production.INFO: ==31169== Releasing lock... [2025-03-26 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:52:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-26 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:53:05 [end_date_ymd] => 2025-03-26 23:53:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:53:05' and `end` < '2025-03-26 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-26 23:53:18] Production.INFO: count ==1332 [2025-03-26 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:53:05 - End Time 2025-03-26 23:53:05 [2025-03-26 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770317', 'tblTempUsageDetail_20' ) start [2025-03-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770317', 'tblTempUsageDetail_20' ) end [2025-03-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770317', 'tblTempVendorCDR_20' ) start [2025-03-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770317', 'tblTempVendorCDR_20' ) end [2025-03-26 23:53:18] Production.INFO: ProcessCDR(1,14770317,1,1,2) [2025-03-26 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770317', 'tblTempUsageDetail_20' ) start [2025-03-26 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770317', 'tblTempUsageDetail_20' ) end [2025-03-26 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:53:21] Production.INFO: ==31240== Releasing lock... [2025-03-26 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:53:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-26 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:54:05 [end_date_ymd] => 2025-03-26 23:54:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:54:05' and `end` < '2025-03-26 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-26 23:54:18] Production.INFO: count ==1326 [2025-03-26 23:54:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:54:05 - End Time 2025-03-26 23:54:05 [2025-03-26 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770322', 'tblTempUsageDetail_20' ) start [2025-03-26 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770322', 'tblTempUsageDetail_20' ) end [2025-03-26 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770322', 'tblTempVendorCDR_20' ) start [2025-03-26 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770322', 'tblTempVendorCDR_20' ) end [2025-03-26 23:54:18] Production.INFO: ProcessCDR(1,14770322,1,1,2) [2025-03-26 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770322', 'tblTempUsageDetail_20' ) start [2025-03-26 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770322', 'tblTempUsageDetail_20' ) end [2025-03-26 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:54:22] Production.INFO: ==31315== Releasing lock... [2025-03-26 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:54:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-26 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:55:05 [end_date_ymd] => 2025-03-26 23:55:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:55:05' and `end` < '2025-03-26 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-26 23:55:18] Production.INFO: count ==1325 [2025-03-26 23:55:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:55:05 - End Time 2025-03-26 23:55:05 [2025-03-26 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770327', 'tblTempUsageDetail_20' ) start [2025-03-26 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770327', 'tblTempUsageDetail_20' ) end [2025-03-26 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770327', 'tblTempVendorCDR_20' ) start [2025-03-26 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770327', 'tblTempVendorCDR_20' ) end [2025-03-26 23:55:18] Production.INFO: ProcessCDR(1,14770327,1,1,2) [2025-03-26 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770327', 'tblTempUsageDetail_20' ) start [2025-03-26 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770327', 'tblTempUsageDetail_20' ) end [2025-03-26 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:55:22] Production.INFO: ==31433== Releasing lock... [2025-03-26 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:55:22] Production.INFO: 38 MB #Memory Used# [2025-03-26 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:56:06 [end_date_ymd] => 2025-03-26 23:56:06 [RateCDR] => 1 ) [2025-03-26 23: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-26 20:56:06' and `end` < '2025-03-26 23: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-26 23:56:18] Production.INFO: count ==1322 [2025-03-26 23:56:19] Production.ERROR: pbx CDR StartTime 2025-03-26 20:56:06 - End Time 2025-03-26 23:56:06 [2025-03-26 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770332', 'tblTempUsageDetail_20' ) start [2025-03-26 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770332', 'tblTempUsageDetail_20' ) end [2025-03-26 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770332', 'tblTempVendorCDR_20' ) start [2025-03-26 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770332', 'tblTempVendorCDR_20' ) end [2025-03-26 23:56:19] Production.INFO: ProcessCDR(1,14770332,1,1,2) [2025-03-26 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770332', 'tblTempUsageDetail_20' ) start [2025-03-26 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770332', 'tblTempUsageDetail_20' ) end [2025-03-26 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:56:22] Production.INFO: ==31504== Releasing lock... [2025-03-26 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:56:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-26 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:57:05 [end_date_ymd] => 2025-03-26 23:57:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:57:05' and `end` < '2025-03-26 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-26 23:57:17] Production.INFO: count ==1320 [2025-03-26 23:57:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:57:05 - End Time 2025-03-26 23:57:05 [2025-03-26 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770337', 'tblTempUsageDetail_20' ) start [2025-03-26 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770337', 'tblTempUsageDetail_20' ) end [2025-03-26 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770337', 'tblTempVendorCDR_20' ) start [2025-03-26 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770337', 'tblTempVendorCDR_20' ) end [2025-03-26 23:57:18] Production.INFO: ProcessCDR(1,14770337,1,1,2) [2025-03-26 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770337', 'tblTempUsageDetail_20' ) start [2025-03-26 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770337', 'tblTempUsageDetail_20' ) end [2025-03-26 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:57:21] Production.INFO: ==31579== Releasing lock... [2025-03-26 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:57:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-26 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:58:05 [end_date_ymd] => 2025-03-26 23:58:05 [RateCDR] => 1 ) [2025-03-26 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-26 20:58:05' and `end` < '2025-03-26 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-26 23:58:18] Production.INFO: count ==1320 [2025-03-26 23:58:18] Production.ERROR: pbx CDR StartTime 2025-03-26 20:58:05 - End Time 2025-03-26 23:58:05 [2025-03-26 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770342', 'tblTempUsageDetail_20' ) start [2025-03-26 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770342', 'tblTempUsageDetail_20' ) end [2025-03-26 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770342', 'tblTempVendorCDR_20' ) start [2025-03-26 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770342', 'tblTempVendorCDR_20' ) end [2025-03-26 23:58:18] Production.INFO: ProcessCDR(1,14770342,1,1,2) [2025-03-26 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770342', 'tblTempUsageDetail_20' ) start [2025-03-26 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770342', 'tblTempUsageDetail_20' ) end [2025-03-26 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:58:21] Production.INFO: ==31653== Releasing lock... [2025-03-26 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:58:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-26 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 20:59:04 [end_date_ymd] => 2025-03-26 23:59:04 [RateCDR] => 1 ) [2025-03-26 23: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-26 20:59:04' and `end` < '2025-03-26 23: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-26 23:59:17] Production.INFO: count ==1306 [2025-03-26 23:59:17] Production.ERROR: pbx CDR StartTime 2025-03-26 20:59:04 - End Time 2025-03-26 23:59:04 [2025-03-26 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-26 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770347', 'tblTempUsageDetail_20' ) start [2025-03-26 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770347', 'tblTempUsageDetail_20' ) end [2025-03-26 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770347', 'tblTempVendorCDR_20' ) start [2025-03-26 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770347', 'tblTempVendorCDR_20' ) end [2025-03-26 23:59:17] Production.INFO: ProcessCDR(1,14770347,1,1,2) [2025-03-26 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-26 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-26 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770347', 'tblTempUsageDetail_20' ) start [2025-03-26 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770347', 'tblTempUsageDetail_20' ) end [2025-03-26 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-26 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-26 23:59:21] Production.INFO: ==31722== Releasing lock... [2025-03-26 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-26 23:59:21] Production.INFO: 37.75 MB #Memory Used#